1: 2: 3: 4: 5: 6: 7:
// in as2 LoadListener.onLoadError = function(targetMC:MovieClip) { msgbox ( "Empty!") imageLoader.addListener(LoadListener); imageLoader.loadClip(base_url+"data/empty.jpg", targetMC); };
1: 2: 3: 4: 5: 6:
imageloader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, image_failed); function image_failed(e:IOErrorEvent) { imageloader.load(new URLRequest("canvas/empty.jpg")) }