I have an image component in flex (mxml file), like below
<mx:image id="imageID"/>
I have a separate actionscript class and I am trying to set the source of the image from the init() in the actionscript class.
I am trying to access it like,
[Embed(source="hello_world.png")]
[Bindable]
public var hello_world:Class;
init()
{
.................
imageID.source = new hello_world();
....................
}
But the image doesnt get displayed.
So my question is, how do we access the image component declared in the mxml page in the actionscript class.