Hi,
I have loaded a jpeg image in flash. Now I need the handler after the loading complete
I have used the following code.
var imageLoader:Loader = new Loader();
var req:URLRequest=new URLRequest(arr[0]);
imageLoader.load(req);
mc.addChild(imageLoader);
imageLoader.addEventListener(Event.COMPLETE, image_func);
function image_func(e:Event):void {
trace("image laoded complete");
}
The above code is not working for loading complete.
can any one point me where I am going wrong?
thanks in advance.