I have included an image control in my app:

 

<mx:Image id=”imgPic1” source=”@Embed(“images/pic1.gif”)” />

 

Next I am trying to programmatically change the image (in an event handler):

 

[Embed(source="images/pic2.gif")]

var _img:String;

this.imgPic1 = _img as Image;

 

 

However, nothing happens. Any idea?



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to