home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / MindScape.swf / scripts / frame_35 / DoAction.as
Encoding:
Text File  |  2007-12-04  |  1.3 KB  |  58 lines

  1. _root.jukebox.targetVol = 0;
  2. myProfile = SharedObject.getLocal("mindScapeProfile");
  3. myProfile.data.secretsFound = secretsFound;
  4. myProfile.data.medalsEarned = medalsEarned;
  5. myProfile.data.unblockedLevels = unlockedLevels;
  6. myProfile.data.url = "http://www.MINDistortion.net";
  7. myProfile.flush();
  8. removeMovieClip("hud");
  9. removeMovieClip("worldContainer");
  10. if(_root.lifes < 0)
  11. {
  12.    _root.attachMovie("game_over","cine",1);
  13.    stop();
  14. }
  15. else if(currLvl == 0)
  16. {
  17.    _root.attachMovie("cine_1","cine",1);
  18.    stop();
  19. }
  20. else if(currLvl == 4)
  21. {
  22.    _root.attachMovie("cine_2","cine",1);
  23.    stop();
  24. }
  25. else if(currLvl == 101)
  26. {
  27.    _root.score += _root.bonusScore;
  28.    _root.bonusScore = 0;
  29.    _root.attachMovie("cine_3","cine",1);
  30.    _root.unlockedLevels = 1;
  31.    stop();
  32. }
  33. else if(currLvl == 102)
  34. {
  35.    _root.score += _root.bonusScore;
  36.    _root.bonusScore = 0;
  37.    _root.attachMovie("cine_4","cine",1);
  38.    _root.unlockedLevels = 2;
  39.    stop();
  40. }
  41. else if(currLvl == 12)
  42. {
  43.    _root.attachMovie("cine_5","cine",1);
  44.    stop();
  45. }
  46. else if(currLvl == 103 && endSuccess)
  47. {
  48.    _root.score += _root.bonusScore;
  49.    _root.bonusScore = 0;
  50.    _root.attachMovie("cine_6","cine",1);
  51.    stop();
  52. }
  53. else if(currLvl == 103 && !endSuccess)
  54. {
  55.    _root.attachMovie("cine_7","cine",1);
  56.    stop();
  57. }
  58.