0 Replies Latest reply on May 16, 2006 6:56 AM by criticalx2

    Preloader please help

    criticalx2
      How do we show the % loaded in a preloader.swf and the current file size the user is downloading my .swf file? I already made the action script for the progress bar.
      here's my sample code:

      var myMCL:MovieClipLoader = new MovieClipLoader();
      var myListener bject = new Object();
      myMCL.addListener(myListener);

      myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number)
      {
      var loaded:Number = Math.round((bytesLoaded/bytesTotal)*100);
      ProgressBar.gotoAndStop(loaded);
      }
      myListener.onLoadInit = function(target_mc:MovieClip)
      {
      ProgressBar._visible = false;
      }
      myListener.onLoadStart = function(target_mc:MovieClip)
      {
      ProgressBar._visible = true;
      }
      myMCL.loadClip("InteractiveMedia.swf", "Container");