home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Beteroid.swf / scripts / DefineSprite_109 / frame_4 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  663 b   |  41 lines

  1. _X = _X + ix;
  2. _Y = _Y + iy;
  3. if(_X < 0 or 550 < _X or _Y < 0 or 400 < _Y)
  4. {
  5.    borra = 1;
  6. }
  7. if(this.hitTest(_root.piedra_practice1))
  8. {
  9.    with(_root.sonido1)
  10.    {
  11.       gotoAndPlay(2);
  12.    }
  13.    borra = 1;
  14.    _root.muestra_piedras = _root.muestra_piedras + 1;
  15.    with(_root.piedra_practice1)
  16.    {
  17.       gotoAndPlay(2);
  18.    }
  19. }
  20. else if(this.hitTest(_root.piedra_practice2))
  21. {
  22.    with(_root.sonido1)
  23.    {
  24.       gotoAndPlay(2);
  25.    }
  26.    borra = 1;
  27.    _root.muestra_piedras = _root.muestra_piedras + 1;
  28.    with(_root.piedra_practice2)
  29.    {
  30.       gotoAndPlay(2);
  31.    }
  32. }
  33. if(borra == 1)
  34. {
  35.    nextFrame();
  36. }
  37. else
  38. {
  39.    gotoAndPlay(3);
  40. }
  41.