home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / AitchuTheAbduction.swf / scripts / DefineSprite_185 / frame_10 / DoAction.as < prev   
Encoding:
Text File  |  2005-11-10  |  797 b   |  31 lines

  1. this.onEnterFrame = function()
  2. {
  3.    if(touche._currentframe == 1)
  4.    {
  5.       if(!this.touche.vesso)
  6.       {
  7.          this.touche.createEmptyMovieClip("tirEnnemiClip",_global.tirEnnemiDepth);
  8.          this.touche.createEmptyMovieClip("tirVaisseauClip",_global.tirVaisseauDepth);
  9.          this.touche.attachMovie("VaisseauClip","vesso",_global.vaisseauDepth);
  10.          this.touche.vesso._x = 50;
  11.          this.touche.vesso._y = 50;
  12.       }
  13.       if(this.touche.vesso._x > 210)
  14.       {
  15.          this.touche.vesso._x = 210;
  16.       }
  17.       if(this.touche.vesso._y > 150)
  18.       {
  19.          this.touche.vesso._y = 150;
  20.       }
  21.    }
  22.    if(touche._currentframe == 2)
  23.    {
  24.       if(this.touche.vesso)
  25.       {
  26.          this.touche.vesso.removeMovieClip();
  27.       }
  28.    }
  29. };
  30. stop();
  31.