1 Reply Latest reply on Jun 18, 2007 12:11 PM by kglad

    Loading a swf from an swf gets URL Not Found Error

    studmanho
      I have a loader.swf which loads other swf files and plays them. I put all the swf files in the same diectory and it works fine locally. When I put it into our webserver and try to run it, I get the error below.

      #2035: URL Not Found.

      The code to load in the loader.swf looks like:

      function init(){
      var url:String = "page1.swf";
      var urlReq:URLRequest = new URLRequest(url);
      ldr = new Loader();
      ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
      ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);
      ldr.load(urlReq);
      }

      Anyone know whats causing it? How shoudl I be pathing it?