home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Estrategia / scooby.swf / scripts / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2006-06-13  |  1.3 KB  |  54 lines

  1. System.security.allowDomain("dev.www2.warnerbros.com");
  2. System.security.allowDomain("preview.www2.warnerbros.com");
  3. System.security.allowDomain("www2.warnerbros.com");
  4. Object.prototype.gameMC = this;
  5. Object.prototype.containerMC = _parent;
  6. gameMC.gLoadInit = false;
  7. gameMC.gGameState = "INIT";
  8. gameMC.gLoadStartTime = 0;
  9. gameMC.gVersionNum = "1.0";
  10. gameMC.gPaused = false;
  11. gameMC.gInitGame = null;
  12. gameMC.min_score = -1;
  13. gameMC.PRELOADFRAMES = 42;
  14. gameMC.PRELOADBYTES = 1361741;
  15. gameMC.L1FRAME = 42;
  16. gameMC.L2FRAME = 50;
  17. gameMC.L3FRAME = 58;
  18. gameMC.INTFRAME = 66;
  19. gameMC.GAMEFRAME = 74;
  20. gameMC.gTotalMin = 0;
  21. gameMC.gTotalSec = 0;
  22. gameMC.gladderScore = 0;
  23. gameMC.gLevel = 0;
  24. gameMC.gScore = 0;
  25. gameMC.gSkipState = false;
  26. gameMC.fnEndLevel = function()
  27. {
  28.    gTotalSec += gPuzzleRoot.eSec;
  29.    gTotalMin += gPuzzleRoot.eMin;
  30.    if(gTotalSec > 60)
  31.    {
  32.       gTotalSec -= 60;
  33.       gTotalMin += 1;
  34.    }
  35.    trace("Cumulative min " + gTotalMin + " sec " + gTotalSec);
  36. };
  37. trace("GameParent: " + _parent);
  38. if(gameMC.gGameID eq "")
  39. {
  40.    gameMC.gGameID = "escape_from_coolsonian";
  41. }
  42. if(gameMC.gHSRoot_swf eq "")
  43. {
  44.    gameMC.gHSRoot_swf = "/games/med/";
  45. }
  46. if(gameMC.gHSRoot_jsp eq "")
  47. {
  48.    gameMC.gHSRoot_jsp = "/web/load_variables/games/";
  49. }
  50. if(gameMC.gHSRoot_top100 eq "")
  51. {
  52.    gameMC.gHSRoot_top100 = "/web/games/";
  53. }
  54.