home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / LIB / _ei76.as < prev    next >
Encoding:
Text File  |  2008-09-26  |  3.2 KB  |  128 lines

  1. package Code.LIB
  2. {
  3.    import Code.OPTIONS._dx111;
  4.    import flash.display.Bitmap;
  5.    import flash.display.Sprite;
  6.    import flash.events.Event;
  7.    
  8.    public class _ei76 extends _ja537
  9.    {
  10.        
  11.       
  12.       protected var iITimer:int = 0;
  13.       
  14.       private var prvisible:Boolean;
  15.       
  16.       private var isShowing:Boolean = false;
  17.       
  18.       private var isHiding:Boolean = false;
  19.       
  20.       protected var state:int;
  21.       
  22.       private const alfaFade:Number = 0.2;
  23.       
  24.       protected var iHandCursor:Bitmap;
  25.       
  26.       public function _ei76(param1:Array = null)
  27.       {
  28.          isHiding = false;
  29.          isShowing = false;
  30.          iITimer = 0;
  31.          super();
  32.          this.alpha = 0;
  33.          prvisible = true;
  34.          if(param1 != null)
  35.          {
  36.             _mv112(param1);
  37.          }
  38.          this.show();
  39.          this.iHandCursor = _uu24._ec508(new _dx111.CurHand() as Sprite);
  40.       }
  41.       
  42.       public function get _rm382() : Boolean
  43.       {
  44.          return prvisible;
  45.       }
  46.       
  47.       public function get _mf556() : Boolean
  48.       {
  49.          return this.isHiding || this.isShowing;
  50.       }
  51.       
  52.       public function hide() : void
  53.       {
  54.          this.isShowing = false;
  55.          this.isHiding = true;
  56.       }
  57.       
  58.       public function _pe446(param1:Array) : void
  59.       {
  60.          while(this.numChildren != 0)
  61.          {
  62.             this.removeChildAt(0);
  63.          }
  64.          _mv112(param1);
  65.       }
  66.       
  67.       override public function onEnterFrame(param1:Event) : void
  68.       {
  69.          if(isShowing)
  70.          {
  71.             this.alpha += alfaFade;
  72.             if(this.alpha >= 1)
  73.             {
  74.                this.isShowing = false;
  75.                this.alpha = 1;
  76.             }
  77.          }
  78.          if(isHiding)
  79.          {
  80.             this.alpha -= alfaFade;
  81.             if(this.alpha <= 0)
  82.             {
  83.                this.isHiding = false;
  84.                this.alpha = 0;
  85.                this.prvisible = false;
  86.             }
  87.          }
  88.       }
  89.       
  90.       private function _mv112(param1:Array) : void
  91.       {
  92.          var _loc2_:uint = 0;
  93.          var _loc3_:* = undefined;
  94.          var _loc4_:int = 0;
  95.          _loc2_ = 0;
  96.          while(_loc2_ < param1.length)
  97.          {
  98.             _loc3_ = param1[_loc2_][0](param1[_loc2_]);
  99.             _loc4_ = param1[_loc2_][(param1[_loc2_] as Array).length - 4] as int;
  100.             if(param1[_loc2_][(param1[_loc2_] as Array).length - 2] != null)
  101.             {
  102.                this[param1[_loc2_][(param1[_loc2_] as Array).length - 2]] = _loc3_;
  103.             }
  104.             _loc3_["_vt351"] += _loc4_;
  105.             _loc3_["_lh238"] += int(param1[_loc2_][param1[_loc2_].length - 3]);
  106.             if(!param1[_loc2_][(param1[_loc2_] as Array).length - 1])
  107.             {
  108.                _loc3_["visible"] = false;
  109.             }
  110.             this.addChild(_loc3_);
  111.             _loc2_++;
  112.          }
  113.       }
  114.       
  115.       override public function _fy281() : void
  116.       {
  117.          super._fy281();
  118.       }
  119.       
  120.       public function show() : void
  121.       {
  122.          this.isShowing = true;
  123.          this.isHiding = false;
  124.          this.prvisible = true;
  125.       }
  126.    }
  127. }
  128.