home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / blob_lander.swf / scripts / DefineSprite_163 / frame_26 / DoAction.as
Encoding:
Text File  |  2006-07-26  |  444 b   |  22 lines

  1. _root.crashcount += 1;
  2. if(_root.crashcount == 1)
  3. {
  4.    _root.crashone._visible = 0;
  5. }
  6. if(_root.crashcount == 2)
  7. {
  8.    _root.crashtwo._visible = 0;
  9. }
  10. if(_root.crashcount == 3)
  11. {
  12.    _root.crashthre._visible = 0;
  13.    _root.gotoAndStop("end");
  14. }
  15. _root.shields = 100;
  16. _root.petrol = 500;
  17. _root.ship.percentage = 100;
  18. _root.ship.dim = _root.petrol / 500;
  19. _root.ship.percentage = 100 * dim;
  20. _root.ship._rotation = 0;
  21. gotoAndPlay(1);
  22.