1 Reply Latest reply on Jul 9, 2007 4:16 AM by Newsgroup_User

    preloader help

    phil1943 Level 1
      can someone please help here.
      My preloader loads the target file immediately. It should actually be showing the gradual progression of my preloader graphic ("countdownmovie", a 100 frame animation) - but it doesn't - it just appears and does not progress.

      PRELOADER SCRIPT ( can anyone see anything wrong here?)

      var myMCL:MovieClipLoader = new MovieClipLoader();
      var myListener:Object = new Object();

      myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
      var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100);
      countdownmovie.gotoAndStop(loaded);
      }

      myListener.onLoadInit = function(target_mc:MovieClip) {
      countdownmovie._visible = false;
      }

      myListener.onLoadStart = function(target_mc:MovieClip) {
      countdownmovie._visible = true;
      }

      myMCL.loadClip("backupflash.swf", "container");