vendredi 30 septembre 2016

Can't Load Downloaded Swf Files to AIR App

I'm using MyFlashLab "Download Manager" ANE file for download SWF files to directories. (

I'm creating application for Android, it will load other downloaded swf files. (Interactive Book Application, load other books when user buy)

Download Manager ANE download my swf files to "/storage/emulated/0/downloads/" directory. But i cant load swf files to stage.

It create this error after loading: TypeError: Error #1009: Cannot access a property or method of a null object reference.

Any solution please write. Thank you


var f:File = File.documentsDirectory;
f = f.resolvePath("downloads/test.swf");
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfComplete);
loader.load(new URLRequest(f.url));

public function swfComplete(e:Event){

Aucun commentaire:

Enregistrer un commentaire