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

  1. package Code.LOGIC.OBJECTS.GRAPHICS
  2. {
  3.    import Code.LIB._iv163;
  4.    import Code.LIB._uu24;
  5.    import Code.LOGIC.OBJECTS.ACTORS.BLOB._pg56;
  6.    import Code.OPTIONS._dx111;
  7.    import Code.org.cove.ape._ms106;
  8.    import flash.display.Sprite;
  9.    
  10.    public class _mi130 extends _ms106
  11.    {
  12.        
  13.       
  14.       private var pictureInd:int;
  15.       
  16.       private var picture:_iv163;
  17.       
  18.       private var pictures:Array;
  19.       
  20.       private var timer:int;
  21.       
  22.       private var direction:int = 1;
  23.       
  24.       private var blob:_pg56;
  25.       
  26.       public function _mi130(param1:_pg56)
  27.       {
  28.          var _loc2_:Sprite = null;
  29.          direction = 1;
  30.          super();
  31.          this.blob = param1;
  32.          this.picture = new _iv163();
  33.          this.pictures = new Array();
  34.          _loc2_ = new _dx111.GAlienBlob1() as Sprite;
  35.          _loc2_.scaleX = _loc2_.scaleY = param1.radius / 30;
  36.          pictures.push(_uu24._sa70(_loc2_));
  37.          _loc2_ = new _dx111.GAlienBlob2() as Sprite;
  38.          _loc2_.scaleX = _loc2_.scaleY = param1.radius / 30;
  39.          pictures.push(_uu24._sa70(_loc2_));
  40.          _loc2_ = new _dx111.GAlienBlob3() as Sprite;
  41.          _loc2_.scaleX = _loc2_.scaleY = param1.radius / 30;
  42.          pictures.push(_uu24._sa70(_loc2_));
  43.          _loc2_ = new _dx111.GAlienBlob4() as Sprite;
  44.          _loc2_.scaleX = _loc2_.scaleY = param1.radius / 30;
  45.          pictures.push(_uu24._sa70(_loc2_));
  46.          _loc2_ = new _dx111.GAlienBlob5() as Sprite;
  47.          _loc2_.scaleX = _loc2_.scaleY = param1.radius / 30;
  48.          pictures.push(_uu24._sa70(_loc2_));
  49.          addChild(this.picture);
  50.          this.pictureInd = 0;
  51.          _iv163(pictures[pictureInd])._dn458(picture);
  52.          this.timer = 0;
  53.       }
  54.       
  55.       override public function onEnterFrame() : void
  56.       {
  57.          super.onEnterFrame();
  58.          if(++timer > 2)
  59.          {
  60.             pictureInd += direction;
  61.             _iv163(pictures[pictureInd])._dn458(picture);
  62.             timer = 0;
  63.             if(pictureInd >= pictures.length - 1 || pictureInd <= 0)
  64.             {
  65.                direction *= -1;
  66.             }
  67.          }
  68.          if(blob._rx33.x > 0.1 && scaleX > 0 || blob._rx33.x < -0.1 && scaleX < 0)
  69.          {
  70.             scaleX *= -1;
  71.          }
  72.       }
  73.       
  74.       override public function set rotation(param1:Number) : void
  75.       {
  76.       }
  77.    }
  78. }
  79.