event complete not firing in browser
Hi
Using flash builder am working on my project. Its working on locally... once i moved to server its not working here the my code.
public var loader:UILoader;
public var imgUrl:String;
public var loadBool:Boolean;
public function UrlImage(imgUrl:String, width, height)
{
loader = new UILoader();
this.imgUrl = imgUrl;
loader.width = width;
loader.height = height;
loader.scaleContent = true;
loader.autoLoad = true;
loader.source = imgUrl;
this.addChild(loader);
loader.addEventListener(Event.COMPLETE, completeHandler);
}
public function completeHandler(e:Event):void
{
Bitmap(loader.content).smoothing = true;
}
Thanks in advance
Chandu
