Flex ~ Image Class addEventListener on load

this is a sample for Flex load an image

var source:STring = "img/qoo.png";
var img:Image = new Image();

img.addEventListener(Event.COMPLETE, function():void{
//do something
});
img.load(source);


http://blog.flexexamples.com/2007/10/18/using-the-image-control-as-a-pop-up/

沒有留言:

發佈留言