home *** CD-ROM | disk | FTP | other *** search
- package Code.LIB.COMPONENTS
- {
- import Code.LIB._iv163;
- import Code.LIB._ja537;
- import Code._vy402;
- import flash.display.BitmapData;
- import flash.events.Event;
- import flash.geom.Point;
- import flash.geom.Rectangle;
-
- public class _mf489 extends _ja537
- {
-
-
- private var iBitmaps:Array;
-
- private var iProgress:int;
-
- private var iInd:int;
-
- private var iWidth:Number;
-
- private var iHeight:Number;
-
- private var iBitmap:_iv163;
-
- public function _mf489(param1:Number, param2:Number, param3:int)
- {
- var _loc4_:_iv163 = null;
- var _loc5_:_iv163 = null;
- var _loc6_:int = 0;
- var _loc7_:Number = NaN;
- var _loc8_:BitmapData = null;
- super();
- this.iWidth = param1;
- this.iHeight = param2;
- _loc4_ = _vy402._yi495([null,param3,param1,param2,true,1]);
- _loc5_ = _vy402._yi495([null,11579568,param1,param2,true,1]);
- this.iBitmaps = new Array();
- this.addChild(_loc5_);
- _loc6_ = 0;
- while(_loc6_ < 100)
- {
- _loc7_ = (_loc6_ + 1) / 100;
- (_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));
- this.iBitmaps.push(_loc8_);
- _loc6_++;
- }
- this.iBitmap = new _iv163();
- iBitmap._cg260 = _loc4_._cg260;
- iBitmap._st175 = _loc4_._st175;
- iBitmap._vt351 = 0;
- iBitmap._lh238 = 0;
- this.addChild(iBitmap);
- iProgress = 1;
- iInd = 0;
- }
-
- public function get _jy161() : int
- {
- return this.iProgress;
- }
-
- public function set _jy161(param1:int) : void
- {
- if(param1 == iProgress)
- {
- return;
- }
- this.iProgress = param1;
- if(iProgress < 1)
- {
- iProgress = 1;
- }
- if(iProgress > 100)
- {
- iProgress = 100;
- }
- }
-
- override public function onEnterFrame(param1:Event) : void
- {
- if(iProgress != iInd)
- {
- iInd += iInd < iProgress ? 1 : -1;
- this.iBitmap.bitmapData = iBitmaps[iInd - 1];
- }
- }
- }
- }
-