mardi 14 mars 2017

Error during external image load

I am getting error during external image load

": app:/META-INF/AIR", "trace: Extensions to load: 0"

This is what I've tried :

   function LoadImage() {
     loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onContentLoadInfo, false, 0, true);
     loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onContentLoadError, false, 0, true);
     loader.load(new URLRequest(sourcePath));
 }


 function onContentLoadInfo(e: Event) {
     loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onContentLoadInfo);
     loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, onContentLoadError);
     if (e.target.hasOwnProperty("content")) {
         this.bitmapData = e.target.content.bitmapData.clone();
         this.smoothing = true;
         this.dispatchEvent(new Event(EVENT_IMAGE_LOADED, false, false));
     }
 }

Aucun commentaire:

Enregistrer un commentaire