home *** CD-ROM | disk | FTP | other *** search
- function hide()
- {
- this._visible = false;
- }
- function show()
- {
- if(dataSave.data.level == undefined)
- {
- continueGame._visible = false;
- }
- else
- {
- continueGame._visible = true;
- }
- _parent.credits_mc._visible = false;
- credits._visible = startGame._visible = helpGame._visible = viewScores._visible = moreGames._visible = getGame._visible = downloadGame._visible = true;
- final_score_mc._visible = youWin_mc._visible = downloadGame2._visible = getGame2._visible = moreGames2._visible = submitScore._visible = mainMenu._visible = false;
- this._visible = true;
- }
- function showWon()
- {
- _root.score_str = "Final score: " + _root.score;
- credits._visible = startGame._visible = continueGame._visible = helpGame._visible = viewScores._visible = moreGames._visible = getGame._visible = downloadGame._visible = false;
- final_score_mc._visible = youWin_mc._visible = downloadGame2._visible = getGame2._visible = moreGames2._visible = submitScore._visible = mainMenu._visible = true;
- this._visible = true;
- }
- function showExit()
- {
- _root.score_str = "Final score: " + _root.score;
- credits._visible = youWin_mc._visible = startGame._visible = continueGame._visible = helpGame._visible = viewScores._visible = moreGames._visible = getGame._visible = downloadGame._visible = false;
- final_score_mc._visible = downloadGame2._visible = getGame2._visible = moreGames2._visible = submitScore._visible = mainMenu._visible = true;
- this._visible = true;
- }
- var dataSave = SharedObject.getLocal("3d_ligic");
- youWin_mc._visible = false;
- show();
- this.startGame.onRelease = function()
- {
- hide();
- youWin_mc._visible = false;
- _parent.playGame.show();
- _parent.level = 1;
- _root.score = 0;
- _parent.playGame.score = 0;
- _parent.startNextLevel();
- };
- this.continueGame.onRelease = function()
- {
- hide();
- youWin_mc._visible = false;
- _parent.playGame.show();
- _parent.level = dataSave.data.level;
- _parent.score = 0;
- _parent.playGame.score = 0;
- _parent.startNextLevel();
- };
- this.helpGame.onRelease = function()
- {
- hide();
- _parent.helpGame.show();
- };
- this.mainMenu.onRelease = function()
- {
- show();
- };
- this.viewScores.onRelease = function()
- {
- getURL(_root.viewscores_link,"_blank");
- };
- this.moreGames.onRelease = this.moreGames2.onRelease = function()
- {
- getURL(_root.main_link,"_blank");
- };
- this.getGame.onRelease = this.getGame2.onRelease = function()
- {
- getURL(_root.get_game_link,"_blank");
- };
- this.downloadGame.onRelease = this.downloadGame2.onRelease = function()
- {
- getURL(_root.download_link,"_blank");
- };
- this.submitScore.onRelease = function()
- {
- var _loc2_ = _root.hex_md5("gameid=1367&hiscore=" + _root.score + "2DPlay.com/");
- getURL(String(_root.scores_link + _root.score + "&hash=" + _loc2_),"_blank");
- };
-