home *** CD-ROM | disk | FTP | other *** search
/ Neil's C++ Stuff / 2016-02-neilstuff-weebly.iso / apps / audioPlayer2.swf / scripts / __Packages / Loading.as < prev    next >
Text File  |  2016-02-05  |  404b  |  19 lines

  1. class Loading extends MovieClip
  2. {
  3.    function Loading()
  4.    {
  5.       super();
  6.       this.bar_mc._width = 0;
  7.    }
  8.    function update(loaded)
  9.    {
  10.       this.bar_mc._width = Math.round(loaded * this.track_mc._width);
  11.    }
  12.    function resize(newWidth)
  13.    {
  14.       var _loc2_ = newWidth / this.track_mc._width;
  15.       this.track_mc._width = newWidth;
  16.       this.bar_mc._width *= _loc2_;
  17.    }
  18. }
  19.