X-Git-Url: https://git.openstreetmap.org/potlatch2.git/blobdiff_plain/241096d711b4b2f26da3352da3a85c3ab6e2908d..9113ab1111d4e9e345f1be43ab55c9ad2fe4810e:/net/systemeD/potlatch2/mapfeatures/editors/Choice.as diff --git a/net/systemeD/potlatch2/mapfeatures/editors/Choice.as b/net/systemeD/potlatch2/mapfeatures/editors/Choice.as index 635c95a2..2b390c1b 100644 --- a/net/systemeD/potlatch2/mapfeatures/editors/Choice.as +++ b/net/systemeD/potlatch2/mapfeatures/editors/Choice.as @@ -1,6 +1,7 @@ package net.systemeD.potlatch2.mapfeatures.editors { import flash.events.*; + import flash.utils.ByteArray; public class Choice extends EventDispatcher { @@ -10,8 +11,8 @@ package net.systemeD.potlatch2.mapfeatures.editors { public var description:String = ""; [Bindable] public var value:String = null; - [Bindable] - public var icon:String = null; + [Bindable(event="iconLoaded")] + public var icon:ByteArray = null; private var _match:RegExp = null; @@ -26,6 +27,11 @@ package net.systemeD.potlatch2.mapfeatures.editors { _match = new RegExp("^("+matchStr+")$"); } } + + public function imageLoaded(url:String, data:ByteArray):void { + icon = data; + dispatchEvent(new Event("iconLoaded")); + } } }