6 Replies Latest reply on May 20, 2009 6:41 PM by Alfarovive

    Problem reloading swfs inside movieclip in IE

    Alfarovive Level 1

      I'm not quite sure whats going on. I have a website i'm working on http://www.tulum14.com and it works fine in safari and firefox, but when I run it in explorer it doesn't.  Whats going on is that when you go to the homes section of the site, each home's section is a swf that is loaded into the main movieclip.  In explorer these swfs load fine the first time around, but when you return and want to load the swf/section and see it again, they get stuck and although they appear to load, i'm not sure if they have and are getting stuck on the first frame or they are not loading, or there is something going on with the cache.


      I am loading from the main movieclip using a container with the following code:


      var homeLdr:Loader = new Loader();
      var homeURL:String = (MovieClip(root).gotoArea)+"Eng.swf";

      //gotoArea names the swf to load
      var homeURLReq:URLRequest = new URLRequest(homeURL);
      homeLdr.x = -500;
      homeLdr.y = -250;
      MovieClip(root)[MovieClip(root).gotoArea + "_holder"].addChild(homeLdr);

      //each instance of the holder clip is named after the area it should load



      the loader script to check and see if the swf is loaded before running it is:

      function progressHandler(event:ProgressEvent):void {
          var percent1:int;
          percent1 = (Math.round(event.target.bytesLoaded/event.target.bytesTotal*100));
          if (percent1==100) {
          } else if (percent1!=100) {



      this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);


      any ideas? help?

      I appreciate it.