8 Replies Latest reply on Jun 14, 2006 8:27 PM by kglad

    problem with myListener line in this code

      the progressBar mc never plays. It shows the MC but just stays on frame one. (progress bar is a a 100 frame MC with stop(); on frame one) when I comment out the "myListener.onLoadProgress" line and change the progressBar.gotoAndPlay(loaded) to progressBar.gotoAndPlay(50) it goes to that frame just fine. Seems the var "loaded" isn't getting a value plugged into it.

      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);


      myMCL.loadClip("bigass.jpg", "container");