home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / roam-and-protect.swf / scripts / DefineSprite_250 / frame_13 / DoAction.as
Encoding:
Text File  |  2005-09-29  |  458 b   |  32 lines

  1. if(_root.scoresXML != 0)
  2. {
  3.    if(_root.scoresXML eq "error")
  4.    {
  5.       gotoAndStop("failed");
  6.       play();
  7.    }
  8.    else if(_root.playsLeft < 1)
  9.    {
  10.       gotoAndStop("noneleft");
  11.       play();
  12.    }
  13.    else
  14.    {
  15.       text = "SUBMISSION COMPLETE";
  16.       gotoAndPlay(2);
  17.    }
  18. }
  19. else
  20. {
  21.    cnt += 1;
  22.    if(cnt < 120)
  23.    {
  24.       gotoAndPlay(_currentframe - 1);
  25.    }
  26.    else
  27.    {
  28.       gotoAndStop("failed");
  29.       play();
  30.    }
  31. }
  32.