home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / LOGIC / OBJECTS / ACTORS / BLOB / _pg56.as < prev   
Encoding:
Text File  |  2008-09-26  |  2.3 KB  |  89 lines

  1. package Code.LOGIC.OBJECTS.ACTORS.BLOB
  2. {
  3.    import Code.LOGIC.OBJECTS.ACTORS.INTERFACES._mk516;
  4.    import Code.LOGIC.OBJECTS.GRAPHICS._mi130;
  5.    import Code.org.cove.ape._be271;
  6.    import flash.geom.Point;
  7.    
  8.    public class _pg56 extends _la458 implements _mk516
  9.    {
  10.        
  11.       
  12.       private var timer:int;
  13.       
  14.       private var direction:int = 1;
  15.       
  16.       public function _pg56(param1:Object)
  17.       {
  18.          var _loc2_:_mi130 = null;
  19.          direction = 1;
  20.          super(param1);
  21.          _loc2_ = new _mi130(this);
  22.          _mb474(_loc2_);
  23.          _il244 = 0;
  24.          State = _la458.stMove;
  25.       }
  26.       
  27.       public static function _lu255() : Object
  28.       {
  29.          var _loc1_:Object = null;
  30.          return {
  31.             "toolClass":_pg56,
  32.             "name":"alien",
  33.             "params":{
  34.                "_tp253":0,
  35.                "radius":24
  36.             }
  37.          };
  38.       }
  39.       
  40.       override public function _eu538() : Object
  41.       {
  42.          var _loc1_:Object = null;
  43.          _loc1_ = new Object();
  44.          _loc1_.prClass = "TAlienBlob";
  45.          _loc1_.x = initalCoords.x;
  46.          _loc1_.y = initalCoords.y;
  47.          _loc1_.radius = radius;
  48.          _loc1_._tp253 = _tp253;
  49.          return _loc1_;
  50.       }
  51.       
  52.       override public function _ur45() : Object
  53.       {
  54.          var _loc1_:Object = null;
  55.          _loc1_ = _lu255();
  56.          _loc1_.params.x = initalCoords.x;
  57.          _loc1_.params.y = initalCoords.y;
  58.          _loc1_.params.radius = radius;
  59.          _loc1_.params._tp253 = _tp253;
  60.          return _loc1_;
  61.       }
  62.       
  63.       override public function update(param1:Number) : void
  64.       {
  65.          var _loc2_:_be271 = null;
  66.          var _loc3_:Point = null;
  67.          super.update(param1);
  68.          switch(state)
  69.          {
  70.             case _la458.stMove:
  71.                ++timer;
  72.                if(timer > 170)
  73.                {
  74.                   direction *= -1;
  75.                   timer = 0;
  76.                }
  77.                _loc2_ = new _be271(direction,0);
  78.                _ev130(_loc2_);
  79.                _loc3_ = new Point(_rx33.x,_rx33.y);
  80.                if(Math.abs(_loc3_.x) > 2)
  81.                {
  82.                   _loc3_.x = 2 * (_loc3_.x > 0 ? 1 : -1);
  83.                }
  84.                _rx33 = new _be271(_loc3_.x,_loc3_.y);
  85.          }
  86.       }
  87.    }
  88. }
  89.