home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / LOGIC / OBJECTS / ACTORS / RECTS / _le239.as < prev    next >
Encoding:
Text File  |  2008-09-26  |  2.2 KB  |  88 lines

  1. package Code.LOGIC.OBJECTS.ACTORS.RECTS
  2. {
  3.    import Code.LIB._uu24;
  4.    import Code.LOGIC.OBJECTS.ACTORS.INTERFACES._xn130;
  5.    import Code.OPTIONS._dx111;
  6.    import Code.org.cove.ape._ms106;
  7.    import flash.display.Sprite;
  8.    
  9.    public class _le239 extends _gg531 implements _xn130
  10.    {
  11.        
  12.       
  13.       private var _active:Boolean = true;
  14.       
  15.       private var _action:String;
  16.       
  17.       public function _le239(param1:Object)
  18.       {
  19.          var _loc2_:_ms106 = null;
  20.          _active = true;
  21.          param1.width = 40;
  22.          param1.height = 18;
  23.          super(param1);
  24.          _action = param1.action;
  25.          _loc2_ = new _ms106();
  26.          _loc2_.addChild(_uu24._sa70(new _dx111.GActiveButton() as Sprite));
  27.          _mb474(_loc2_);
  28.       }
  29.       
  30.       public static function _lu255() : Object
  31.       {
  32.          var _loc1_:Object = null;
  33.          return {
  34.             "toolClass":_le239,
  35.             "name":"active but",
  36.             "params":{
  37.                "_tp253":0,
  38.                "x":0,
  39.                "y":0,
  40.                "action":""
  41.             }
  42.          };
  43.       }
  44.       
  45.       public function get active() : Boolean
  46.       {
  47.          return _active == true;
  48.       }
  49.       
  50.       public function get action() : String
  51.       {
  52.          return _action.substr(0,_action.length);
  53.       }
  54.       
  55.       public function _he73(param1:String) : void
  56.       {
  57.          switch(param1)
  58.          {
  59.             case "disable":
  60.                _active = false;
  61.          }
  62.       }
  63.       
  64.       public function _eu538() : Object
  65.       {
  66.          var _loc1_:Object = null;
  67.          _loc1_ = new Object();
  68.          _loc1_.prClass = "TActiveButton";
  69.          _loc1_.x = _ej28 - width / 2;
  70.          _loc1_.y = _th99 - height / 2;
  71.          _loc1_._tp253 = _tp253;
  72.          _loc1_.action = _action;
  73.          return _loc1_;
  74.       }
  75.       
  76.       public function _ur45() : Object
  77.       {
  78.          var _loc1_:Object = null;
  79.          _loc1_ = _lu255();
  80.          _loc1_.params.x = _ej28 - width / 2;
  81.          _loc1_.params.y = _th99 - height / 2;
  82.          _loc1_.params._tp253 = _tp253;
  83.          _loc1_.params.action = _action;
  84.          return _loc1_;
  85.       }
  86.    }
  87. }
  88.