0 Replies Latest reply on Jun 5, 2006 9:25 PM by Jake_Haugen

    Preloader in external swf not working

    Jake_Haugen
      I have several external SWFs that are loaded into my site and each one has a preloader. When I run them by themselves the preloader works fine, but when it is embeded into the main SWF the preloaders do not work. Any ideas?

      here is my actionscript -

      lBytes = _root.getBytesLoaded();
      tBytes = _root.getBytesTotal();
      percentLoaded = Math.floor((lBytes/tBytes)*100);
      loader.bar._xscale = percentLoaded;
      loader.percent.text = percentLoaded + "% of " + Math.floor(tBytes/1024) + "K loaded.";
      if (lBytes>=tBytes && tBytes>0) {
      if (count>=12) {
      gotoAndPlay("enter");
      } else {
      count++;
      gotoAndPlay("preload");
      }
      } else {
      gotoAndPlay("preload");
      }