Hello
I have a silly problem and I'm looking for an easy answer
I have an image component in my application and I wanted to set the source which I did like this:
Code:
<mx:Image id="movieImage" source="../../assets/movieImages/300.png"/>
That didn't work so I changed it so that it would work like this:
Code:
<mx:Image id="movieImage" source="@Embed(source='../../assets/movieImages/300.png')"/>
Ok so I've got that... Now I want to set the source via actionscript 3 code so I tried the following 2 things:
Code:
movieImage.source = "../../assets/movieImages/300.png"
and
Code:
movieImage.source = "@Embed(source='../../assets/movieImages/300.png')"
They both did not work... Does anyone know how to set the source of an image via code?
Thanks