actionscript 3 - accessing an image component in flex from actionscript3 -
i have image component in flex (mxml file), below
<mx:image id="imageid"/> i have separate actionscript class , trying set source of image init() in actionscript class.
i trying access like,
[embed(source="hello_world.png")] [bindable] public var hello_world:class; init() { ................. imageid.source = new hello_world(); .................... } but image doesnt displayed.
so question is, how access image component declared in mxml page in actionscript class.
judging answers on as3 embed images class , these images class?, need cast hello_world class bitmap:
init() { ................. imageid.source = new hello_world() bitmap; .................... }
Comments
Post a Comment