home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / ZanyAttack.swf / scripts / DefineSprite_155 / frame_165 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  355 b   |  23 lines

  1. tellTarget("/player")
  2. {
  3.    gotoAndStop("die");
  4.    play();
  5. }
  6. if("1" >= eval("/:playerLives"))
  7. {
  8.    call("PlayerLose");
  9. }
  10. else
  11. {
  12.    set("/:playerLives",eval("/:playerLives") - "1");
  13.    tellTarget("/lives")
  14.    {
  15.       gotoAndStop(eval("/:playerLives"));
  16.    }
  17.    tellTarget("/")
  18.    {
  19.       gotoAndStop("PlayerDie");
  20.       play();
  21.    }
  22. }
  23.