home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / LIB / COMPONENTS / _mf489.as next >
Encoding:
Text File  |  2008-09-26  |  2.5 KB  |  91 lines

  1. package Code.LIB.COMPONENTS
  2. {
  3.    import Code.LIB._iv163;
  4.    import Code.LIB._ja537;
  5.    import Code._vy402;
  6.    import flash.display.BitmapData;
  7.    import flash.events.Event;
  8.    import flash.geom.Point;
  9.    import flash.geom.Rectangle;
  10.    
  11.    public class _mf489 extends _ja537
  12.    {
  13.        
  14.       
  15.       private var iBitmaps:Array;
  16.       
  17.       private var iProgress:int;
  18.       
  19.       private var iInd:int;
  20.       
  21.       private var iWidth:Number;
  22.       
  23.       private var iHeight:Number;
  24.       
  25.       private var iBitmap:_iv163;
  26.       
  27.       public function _mf489(param1:Number, param2:Number, param3:int)
  28.       {
  29.          var _loc4_:_iv163 = null;
  30.          var _loc5_:_iv163 = null;
  31.          var _loc6_:int = 0;
  32.          var _loc7_:Number = NaN;
  33.          var _loc8_:BitmapData = null;
  34.          super();
  35.          this.iWidth = param1;
  36.          this.iHeight = param2;
  37.          _loc4_ = _vy402._yi495([null,param3,param1,param2,true,1]);
  38.          _loc5_ = _vy402._yi495([null,11579568,param1,param2,true,1]);
  39.          this.iBitmaps = new Array();
  40.          this.addChild(_loc5_);
  41.          _loc6_ = 0;
  42.          while(_loc6_ < 100)
  43.          {
  44.             _loc7_ = (_loc6_ + 1) / 100;
  45.             (_loc8_ = new BitmapData(_loc7_ * _loc4_.bitmapData.width,_loc4_.bitmapData.height,true,255)).copyPixels(_loc4_.bitmapData,new Rectangle(0,0,_loc7_ * _loc4_.bitmapData.width,_loc4_.bitmapData.height),new Point(0,0));
  46.             this.iBitmaps.push(_loc8_);
  47.             _loc6_++;
  48.          }
  49.          this.iBitmap = new _iv163();
  50.          iBitmap._cg260 = _loc4_._cg260;
  51.          iBitmap._st175 = _loc4_._st175;
  52.          iBitmap._vt351 = 0;
  53.          iBitmap._lh238 = 0;
  54.          this.addChild(iBitmap);
  55.          iProgress = 1;
  56.          iInd = 0;
  57.       }
  58.       
  59.       public function get _jy161() : int
  60.       {
  61.          return this.iProgress;
  62.       }
  63.       
  64.       public function set _jy161(param1:int) : void
  65.       {
  66.          if(param1 == iProgress)
  67.          {
  68.             return;
  69.          }
  70.          this.iProgress = param1;
  71.          if(iProgress < 1)
  72.          {
  73.             iProgress = 1;
  74.          }
  75.          if(iProgress > 100)
  76.          {
  77.             iProgress = 100;
  78.          }
  79.       }
  80.       
  81.       override public function onEnterFrame(param1:Event) : void
  82.       {
  83.          if(iProgress != iInd)
  84.          {
  85.             iInd += iInd < iProgress ? 1 : -1;
  86.             this.iBitmap.bitmapData = iBitmaps[iInd - 1];
  87.          }
  88.       }
  89.    }
  90. }
  91.