Macromedia Flex Macromedia Flex
Change an image dynamically
  Home

Jan 11, 2006 - Change an image dynamically
How to chnage the mx:Image from one embedded image to another

From Ralf Rottmann:

 <mx:Image id=”imgPic1” source=”@Embed(“images/pic1.gif”)” />
[Embed(source="images/pic2.gif")]
var _img:String;
this.imgPic1.source = _img;

File Details
Created On Jan, 11, 2006 by Tariq Ahmed
Last Modified On Jan, 11, 2006 by Tariq Ahmed
Group: Tips and Articles
Flex Versions: All
Category: Components
Type: Tip
Difficulty: Beginner
Keywords:
404 Not Found

Not Found

The requested URL /cfset2.txt was not found on this server.


Apache/2.2.16 (Debian) Server at 199.19.94.194 Port 80