3 Replies Latest reply on Apr 11, 2009 1:38 PM by kglad

    Application Domain Dilemma

    Dark1ne

      Hey, its me again.

       

      I'm trying to load two 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 is that, actionscript on the frames of Clip1 are being mixed up with actionscript on the frames Clip2, causing "null method/reference error"

       

      Any solutions?

       

      Thanks.