home *** CD-ROM | disk | FTP | other *** search
- function showForLoose(is_time_out)
- {
- _root.game_over_sfx.start(0,1);
- result_star._visible = false;
- txtScore = "GAME OVER";
- txtMsg = !is_time_out ? "NO MORE MOVES!" : "TIME OUT!";
- _visible = true;
- }
- function showForWin(sc, c)
- {
- _root.level_done_sfx.start(0,1);
- if(c)
- {
- txtMsg = "LEVEL COMPLETE";
- }
- else
- {
- txtMsg = "GAME COMPLETE!!!";
- }
- txtScore = "YOUR SCORE: " + String(sc);
- result_star.gotoAndStop(_root.AwardType(_global.Levels.selectedLevel - 1));
- _visible = true;
- }
- function hideMe()
- {
- txtMsg = "";
- txtScore = "";
- _visible = false;
- }
- _root.total_score = 0;
- var c = 0;
- while(c < 25)
- {
- var one_level_score = _global.Settings.playedScores[c];
- if(one_level_score > 0)
- {
- _root.total_score += one_level_score;
- }
- c++;
- }
- _root.total_score_str = String("TOTAL SCORE: " + _root.total_score);
- btnExit.onPress = function()
- {
- hideMe();
- _root.gotoAndPlay("preLevelsFrame");
- };
- hideMe();
-