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

    Application Domain Dilemma

    Dark1ne Level 1

      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);
                  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);


      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?