mercredi 24 février 2016

ActionScript 3.0 import swf

i've little bit trouble with imported swf. Problem is that imported swf has movie clip which exported as movie clip class. Code is here: Imported swf:

 class myBooks(){

    var myBg:MovieClip = new backGround();

and HOLDER flash file:

    var txt:String = "Project/book2.swf";
    var myLoader:Loader = new Loader();
    var url:URLRequest = new URLRequest(txt); 

when i try to run , it shows me error like this:

   TypeError: Error #1009 cannot access a property or method of a null object reference at actions::myBooks()

Aucun commentaire:

Enregistrer un commentaire