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

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