Core of my code is following:
var img:Image = new Image;
img.source = 'http://..........';
img.autoLoad = true;
img.cachePolicy = 'on';
img.addEventListener(Event.COMPLETE, function(event:Event):void {
trace('Loaded!', img.source);
});
img.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function(event:Event):void {
trace('Error!', img.source);
});
img.addEventListener(IOErrorEvent.IO_ERROR, function(event:Event):void {
trace('Error!', img.source);
});
I found that, the complete event does not occur for some images. How can I catch complete event without signal leaks?