0 Replies Latest reply on Dec 18, 2009 3:22 AM by RedChimae

    Create class object ProgressBar width and height an exception occurs


      I am using Flash CS4 ActionScript 2.0
      Problems, such as shown in the following code:


      import mx.controls.ProgressBar;
      this.createEmptyMovieClip("mc_progressBar", this.getNextHighestDepth(), {_x:0, _y:0});
      mc_progressBar.createClassObject(ProgressBar, "pb_progressBar", this.getNextHighestDepth(), {conversion:1, direction:"right", label:"LOADING %3%%", labelPlacement:"top", mode:"manual"});
      trace(mc_progressBar._width + "    " + mc_progressBar._height);



      I ask, why the output width and height to 202.3    102 then?
      And when I shall ProgressBar width is set to 128, its interface shorter than 128