2 Replies Latest reply on May 1, 2009 3:42 PM by kglad

    set specific size and position of preloader's empty movieclip on main stage

    gotoAndExplore

      hey, just wondering if it's possible to script an external preloader's empty movie clip to be of a specific size and position on the main stage? here's the script i've got for the preloader so far:

       

      var my_pb:mx.controls.ProgressBar;

      my_pb.mode = "manual";

       

      this.createEmptyMovieClip("Portfolio", 999);

       

      var my_mcl:MovieClipLoader = new MovieClipLoader();

      var mclListener:Object = new Object();

      mclListener.onLoadStart = function(target_mc:MovieClip):Void {

          my_pb.label = "LOADING: " + target_mc._name;

      };

      mclListener.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void {

          var pctLoaded:Number = Math.ceil(100 * (numBytesLoaded / numBytesTotal));

          my_pb.setProgress(numBytesLoaded, numBytesTotal);

      };

      my_mcl.addListener(mclListener);

      my_mcl.loadClip("Creative-Outrage_External.swf", Portfolio);

       

       

       

      thanks in advance.