Application Domain Dilemma


hey, me again.

 

i'm trying load 2 clips:

 

             ldr = new loader();
            var req:urlrequest = new urlrequest("swf/clip1.swf");
            var ldrcontext:loadercontext = new loadercontext(false, applicationdomain.currentdomain);
            ldr.contentloaderinfo.addeventlistener(event.complete, completehandler);
            ldr.load(req, ldrcontext);
            symbol1.addchild(ldr);
           
            ldd = new loader();
            var ret:urlrequest = new urlrequest("swf/clip2.swf");
            var lddcontent:loadercontext = new loadercontext(false, applicationdomain.currentdomain);
            ldd.contentloaderinfo.addeventlistener(event.complete, completehandling);
            ldd.load(ret, lddcontent);
            symbol2.addchild(ldd);       

 

the problem that, actionscript on frames of clip1 being mixed actionscript on frames clip2, causing "null method/reference error"

 

any solutions?

 

thanks.

actionscript not "mixed up".  if have identically named different classes in 2 swfs, issue.



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Help with codes to add 1 more shift register and add more to matrix LED

tcp client

Can't read sms using Thinker A7 communicate with Arduino