home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / lightsprites.swf / scripts / frame_35 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  723 b   |  28 lines

  1. function submitScore()
  2. {
  3.    if(_root.playerName_txt.text == "Your Name Here")
  4.    {
  5.       _global.SoundManager.PlaySound("nocando");
  6.    }
  7.    else
  8.    {
  9.       myScoreSaver.SendScores(_root.playerName_txt.text,_global.lastScore);
  10.       _root.gotoAndPlay("title");
  11.       _global.SoundManager.PlaySound("button2");
  12.    }
  13. }
  14. function loginScore()
  15. {
  16.    myScoreSaver.UserLogin(_global.lastScore);
  17.    _root.gotoAndPlay("title");
  18. }
  19. function endGameScore()
  20. {
  21.    _root.finalScore_txt.text = "Your Score: " + _global.lastScore;
  22. }
  23. stop();
  24. var myScoreSaver = new BagunkScores();
  25. myScoreSaver.SetCode("jz5D1H2SlkB4jiR5");
  26. myScoreSaver.SetGameID(358);
  27. _root.finalScore_txt.text = "Your Score: " + _global.lastScore;
  28.