Frame 1
function BeginSession() {
if (_global.SessionBegan == false) {
_global.SessionBegan = true;
fscommand ("SessionReady", "<data></data>");
}
}
function GameLaunch() {
if (_root.isSound == true) {
_root.unMuteSounds();
}
if (_root.isSound == false) {
_root.muteSounds();
}
fscommand ("GameReady", ("<data><mode>" + _root.gameMode) + "</mode></data>");
}
function ppOff() {
_root.unMuteSounds();
maingame.masterUnpause();
}
function ppOn() {
_root.muteSounds();
maingame.masterPause();
}
function BroadcastGameScore() {
fscommand ("ScoreBroadcast", ((("<game><score>" + _root.mmscore) + "</score><time>") + returnTime(true)) + "</time></game>");
}
function SubmitFinal() {
fscommand ("ScoreSubmit", ((("<game><score>" + _root.mmscore) + "</score><time>") + returnTime(true)) + "</time></game>");
_root.gameOver();
}
function gameOver() {
_root.fromGameOver = true;
fscommand ("GameEnd", "<gamedata></gamedata>");
}
function DeluxeDownload() {
fscommand ("CustomEvent", "<gamedata>DeluxeDownload</gamedata>");
}
function RoundIntermission() {
transitionAnim.stop();
if (soundHolder._currentframe == 2) {
_root.storemuteon = true;
} else {
_root.storemuteon = false;
}
muteSounds();
_root.pauseTime();
breakdata = ("<data><breakpoint>" + maingame.levelOn) + "</breakpoint></data>";
fscommand ("GameBreak", breakdata);
}
function roundContinue() {
if (_root.storemuteon == false) {
unMuteSounds();
}
_root.resumeTime();
transitionAnim.play();
}
function loadCastcaner(loperLoad) {
ldata = ("<data><percentcomplete>" + loperLoad) + "</percentcomplete></data>";
fscommand ("LoadBroadcast", ldata);
}
_global.SessionBegan = false;
_root.startedTime = 0;
_root.gameTime = 0;
zaptimer = 0;
zapsecs = 0;
_root.txt_classicmenu = "CLASSIC";
_root.txt_classicdescription = "THE ORIGINAL UNTIMED GAME";
_root.txt_actionmenu = "ACTION";
_root.txt_actiondescription = "BEAT THE CLOCK";
_root.txt_puzzlemenu = "BUY NOW";
_root.txt_puzzledescription = "DOWNLOAD THE FULL VERSION";
_root.txt_inshead = "HOW TO PLAY";
_root.txt_ins1 = "SWAP ADJACENT GEMS TO MAKE SETS OF 3";
_root.txt_ins2 = "CLEAR MULTIPLE SETS FOR EXTRA POINTS";
_root.txt_ins3 = "4 GEMS WILL CREATE A POWER GEM";
_root.txt_ins4 = "5 GEMS WILL CREATE A HYPERCUBE";
_root.txt_optionshead = "OPTIONS";
_root.txt_optionssoundoff = "Sounds Off";
_root.txt_optionssoundon = "Sounds On";
_root.txt_optionhelp = "Help";
_root.txt_optionupgrade = "Upgrade";
_root.txt_optionmenu = "Main Menu";
_root.txt_optionback = "Back to Game";
_root.txt_endhead = "END GAME";
_root.txt_endmsg = "Are you sure you want to end the current game?";
_root.txt_endyes = "YES";
_root.txt_endno = "NO";
_root.txt_goduration = "Game Duration";
_root.txt_gocollected = "Gems Collected";
_root.txt_gocas = "Biggest Cascade";
_root.txt_gocomb = "Biggest Combo";
_root.txt_gotscore = "Total Score";
_root.txt_goplayagain = "Play Again";
_root.txt_gomainmeun = "Main Menu";
_root.txt_hint1head = "POWER GEM";
_root.txt_hint1body = "Create POWER GEMS by merging 4 gems of the same color. These new gems will explode when matched, scoring extra points!";
_root.txt_hint2head = "HYPER CUBE";
_root.txt_hint2body = "You created a HYPER CUBE by merging 5 gems of the same color. Swap it with a gem to clear all gems of that color onscreen!";
_root.txt_hintdontshow = "Don't Show Again";
_root.txt_hintcontinue = "Continue";
_root.txt_nosolvehead = "No Longer Solvable";
_root.txt_nosolvebody = "Do you want to UNDO to the last point the puzzle could be solved from?";
_root.txt_nosolveyes = "YES";
_root.txt_nosolveno = "NO";
_root.txt_pausehead = "Game paused";
_root.txt_pausetxt = "The game is paused. Click to resume.";
_root.txt_pauseresume = "RESUME";
_root.txt_popgo = "GO!";
_root.txt_popgood = "GOOD";
_root.txt_popexcellent = "EXCELLENT";
_root.txt_popincred = "INCREDIBLE";
_root.txt_popnomore1 = "NO MORE";
_root.txt_popnomore2 = "MOVES";
_root.txt_popsolved = "SOLVED";
_root.txt_poptimeup = "TIME UP!";
_root.txt_poplevelup = "LEVEL";
_root.txt_pausescreen = "*** GAME PAUSED ***";
_root.txt_pausescreen2 = "CLICK TO CONTINUE!";
_root.txt_puzuphead = "Want more puzzles?";
_root.txt_puzuptext = "Download Bejeweled 2 Deluxe to get 75+ all new puzzles, better graphics, spectacular music and more!";
_root.txt_puzupdown = "Download Now";
_root.txt_puzupmainmenu = "Main Menu";
_root.txt_puznomoves1 = "No more moves can be made.";
_root.txt_puznomoves2 = "UNDO some moves with the UNDO button or RESET by clicking the green pod to the left";
_root.txt_puznomoves3 = "Press HINT any time you're stuck on a puzzle!";
_root.txt_wrongpiecehead = "Wrong Piece";
_root.txt_wrongpiecebody = "Please select the piece indicated under the CLICK HERE arrow.";
_root.txt_wrongpieceok = "OK";
_root.txt_puz1tutetxt = "CLEAR ALL THE GEMS TO COMPLETE THE PUZZLE.";
_root.txt_puzhintclickhere = "CLICK HERE";
_root.txt_puzhintshowagain = "Show Again";
_root.txt_puzhintcontinue = "Continue";
_root.txt_puz1tute1 = "Make a set 4 gems to create a Power Gem.";
_root.txt_puz1tute2 = "When you use a Power Gem in another set it will detonate, destroying adjacent gems!";
_root.txt_puz3tute1 = "Make a Hyper Cube by combining 5 gems in a row.";
_root.txt_puz3tute2 = "Swap the Hyper Cube to destroy all gems of one color.";
_root.txt_upsellmsg = "THE WEB VERSION IS JUST A TASTE OF WHAT'S IN STORE...";
_root.txt_upsellbackto = "Back to Game";
_root.txt_upselltellmore = "Tell Me More";
_root.txt_upselldownloadnow = "Download Now!";
_root.txt_dontshowthis = "Don't Show This Again";
_root.txt_continue = "Continue";
_root.txt_backtogame = "Back to game";
_root.txt_menubut = "MENU";
_root.txt_hintbut = "HINT";
_root.txt_pausebut = "PAUSE";
_root.txt_undobut = "UNDO";
Stage.showMenu = false;
function deluxeClick() {
getURL (_root.upselllink, "_blank");
if (_root.zone_api == "true") {
_root.DeluxeDownload();
}
}
stop();
MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;
TextField.prototype.tabEnabled = false;
_root.deluxelink = "http://www.popcap.com/games/bejeweled2";
_root.loadVariables("arcade/gamedata/Bejeweled2v32BuZZ/bj2_config.txt");
lTimero = -20;
this.onEnterFrame = function () {
amountloaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
loadbar.gotoAndStop(int(100 * (amountloaded / total)));
if (lTimero < 0) {
loadCastcaner(loadbar._currentframe);
lTimero = 40;
}
if ((amountloaded >= total) && (_root.configloaded == "true")) {
loadCastcaner(loadbar._currentframe);
if (_root.zone_api == "true") {
_root.BeginSession();
} else {
gotoAndStop ("splash");
}
delete this.onEnterFrame;
}
};
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local2 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local3 = _local6;
var _local7 = String(_local4).length;
while (_local3 < String(_local4).length) {
_local2 = _local4.charAt(_local3);
if (_local2 == ".") {
break;
}
_local5 = _local5 + _local2;
_local3++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 17
function resetTimer() {
timeStart = getTimer();
pauseTimeCount = 0;
pausedAt = 0;
}
function pauseTime() {
if (pausedAt == 0) {
pausedAt = getTimer();
}
}
function resumeTime() {
if (pausedAt > 0) {
pauseTimeCount = pauseTimeCount + (getTimer() - pausedAt);
pausedAt = 0;
}
}
function returnTime(secformat) {
if (pausedAt > 0) {
tempPCount = getTimer() - pausedAt;
} else {
tempPCount = 0;
}
totTime = ((getTimer() - timeStart) - pauseTimeCount) - tempPCount;
if (secformat) {
return(Math.floor(totTime / 1000));
}
return(formatTime(totTime));
}
function formatTime(milisec) {
daysGone = Math.floor(milisec / 86400000);
hoursGone = Math.floor((milisec - (daysGone * 86400000)) / 3600000);
minsGone = Math.floor(((milisec - (hoursGone * 3600000)) - (daysGone * 86400000)) / 60000);
secsGone = Math.floor((((milisec - (minsGone * 60000)) - (hoursGone * 3600000)) - (daysGone * 86400000)) / 1000);
if (secsGone < 10) {
secsGone = "0" + secsGone;
}
if ((hoursGone > 0) && (minsGone < 10)) {
minsGone = "0" + minsGone;
}
if (daysGone > 0) {
if (minsGone < 10) {
minsGone = "0" + minsGone;
}
if (hoursGone < 10) {
hoursGone = "0" + hoursGone;
}
}
if ((hoursGone == 0) && (daysGone == 0)) {
return((minsGone + ":") + secsGone);
}
if (daysGone == 0) {
return((((hoursGone + ":") + minsGone) + ":") + secsGone);
}
return((((((daysGone + ":") + hoursGone) + ":") + minsGone) + ":") + secsGone);
}
timeStart = 0;
pauseTimeCount = 0;
pausedAt = 0;
function playSound(cName) {
_root.soundHolder[cName].playme();
}
function stopSound(cName) {
_root.soundHolder[cName].stopme();
}
function muteSounds() {
gameMutedOut = true;
stopAllSounds();
soundHolder.gotoAndStop(2);
soundTracks.stopAllMyTracks();
}
function unMuteSounds() {
if (_root.isMuted != true) {
gameMutedOut = false;
soundHolder.gotoAndStop(1);
soundTracks.resumeGameTrack();
}
}
soundHolder._visible = false;
stop();
_quality = "HIGH";
myScreenOn = "menu";
function bTrans(fTarg) {
transblack.ftarget = fTarg;
transblack.gotoAndPlay(2);
}
function hTrans(hTarg, fTarg) {
halotrans.trantarget = hTarg;
halotrans.ftarget = fTarg;
halotrans.gotoAndPlay(2);
}
function gTrans(hTarg) {
transitionAnim.trantarget = hTarg;
transitionAnim.gotoAndPlay(2);
}
Frame 25
myScreenOn = "menu";
helpbutf = 1;
Frame 33
myScreenOn = "game";
helpbutf = 2;
helppop.stop();
Frame 43
_quality = "HIGH";
myScreenOn = "menu";
Frame 52
gotoAndStop ("menu");
Frame 61
gotoAndStop ("menu");
Frame 71
if (_root.gs_notran == true) {
gotoAndStop ("game");
_root.gs_notran = false;
} else {
_root.hTrans(_root.gs_bb, _root.gs_ct);
}
Frame 81
roundContinue();
Frame 91
_root.isMuted = true;
muteSounds();
Frame 101
_root.isMuted = false;
unMuteSounds();
Frame 111
ppOn();
Frame 121
ppOff();
Symbol 538 MovieClip Frame 7
stop();
Symbol 1306 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 36 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Symbol 41 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Symbol 46 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Symbol 51 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Symbol 56 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Symbol 61 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Symbol 66 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Symbol 77 MovieClip [scorepopon] Frame 1
Symbol 77 MovieClip [scorepopon] Frame 43
this.removeMovieClip();
Symbol 77 MovieClip [scorepopon] Frame 44
stop();
Symbol 142 MovieClip [lightning] Frame 18
_parent.doneStike(this);
Symbol 142 MovieClip [lightning] Frame 32
_parent.finishStike(this);
this.removeMovieClip();
Symbol 154 MovieClip Frame 10
stop();
Symbol 163 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 225 Button
on (press) {
trace((("org row = " + originalRow) + " org col = ") + originalCol);
_parent.selectGem(this);
_parent.dragGem(this);
}
on (release, releaseOutside) {
_parent.stopGemDrag();
}
Symbol 522 MovieClip [gem] Frame 1
gembut.useHandCursor = false;
Symbol 531 MovieClip Frame 40
gotoAndPlay (20);
Symbol 553 MovieClip Frame 120
_parent.gotoAndStop("menu");
Symbol 579 Button
on (release) {
_root.gameMode = "classic";
if (_root.zone_api == "true") {
_root.gs_bb = 1;
if (_root.noTute != true) {
_root.hTrans(1, "tute");
} else {
_root.gs_ct = "game";
_root.GameLaunch("classic");
}
} else if (_root.noTute != true) {
_root.hTrans(1, "tute");
} else {
_root.hTrans(1, "game");
}
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 580 Button
on (release) {
_root.gameMode = "action";
if (_root.zone_api == "true") {
_root.gs_bb = 1;
if (_root.noTute != true) {
_root.hTrans(1, "tute");
} else {
_root.gs_ct = "game";
_root.GameLaunch("action");
}
} else if (_root.noTute != true) {
_root.hTrans(1, "tute");
} else {
_root.hTrans(1, "game");
}
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 587 Button
on (release) {
_root.deluxeClick();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 604 MovieClip Frame 44
stop();
Symbol 644 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 4
bg_bj.gotoAndStop(trantarget);
trace("tran target = " + trantarget);
Symbol 644 MovieClip Frame 21
bg_bj.gotoAndStop(trantarget);
Symbol 644 MovieClip Frame 37
bg_bj.gotoAndStop(trantarget);
Symbol 644 MovieClip Frame 42
trace("call intermission");
if (_root.zone_api == "true") {
_root.RoundIntermission();
}
Symbol 644 MovieClip Frame 47
_parent.maingame.clearEverything();
Symbol 644 MovieClip Frame 49
bg_bj.gotoAndStop(trantarget);
Symbol 644 MovieClip Frame 50
_parent.maingame.newLevel();
_root.bg_bj.gotoAndStop(trantarget);
Symbol 655 MovieClip Frame 1
stop();
Symbol 655 MovieClip Frame 2
blbut.useHandCursor = false;
Symbol 655 MovieClip Frame 3
bg_bj.gotoAndStop(trantarget);
_root.playSound("halo");
Symbol 655 MovieClip Frame 17
bg_bj.gotoAndStop(trantarget);
Symbol 655 MovieClip Frame 20
bg_bj.gotoAndStop(trantarget);
_root.gotoAndStop(ftarget);
_root.bg_bj.gotoAndStop(trantarget);
Symbol 657 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 2
blbut.useHandCursor = false;
Symbol 657 MovieClip Frame 7
_root.gotoAndStop(ftarget);
Symbol 659 MovieClip Frame 1
function loadNextTrack() {
targetClip = this[loadClips.shift()];
trackToLoad = loadQueue.shift();
targetClip.loadMovie(trackToLoad);
if (trackToLoad == undefined) {
delete this.onEnterFrame;
}
}
loadQueue = ["s_mainmenu.swf", "s_track1.swf", "s_track2.swf", "s_track3.swf", "s_track4.swf", "s_track5.swf"];
loadClips = ["c_main", "c_track1", "c_track2", "c_track3", "c_track4", "c_track5"];
finalClips = ["c_main", "c_track1", "c_track2", "c_track3", "c_track4", "c_track5"];
numLoaded = 0;
if (_root.enable_music != "false") {
loadNextTrack();
this.onEnterFrame = function () {
if (targetClip.getBytesTotal() > 100) {
if (targetClip.getBytesLoaded() > (targetClip.getBytesTotal() - 1)) {
loadNextTrack();
numLoaded++;
trace(numLoaded);
trackDone();
}
}
};
}
function nextGameTrack() {
trackOn++;
if (trackOn > (numLoaded - 1)) {
trackOn = 1;
}
if (numLoaded > 1) {
playTrack("c_track" + trackOn);
}
}
function resumeGameTrack() {
targyTrack = "c_track" + trackOn;
if (_parent.gameMutedOut != true) {
this[targyTrack].mysound.setVolume(60);
this[targyTrack].playme();
} else {
stopAllMyTracks();
}
}
function trackDone() {
if (numLoaded == 1) {
if (_root.myScreenOn == "menu") {
playTrack("c_main");
}
} else if (numLoaded == 2) {
if (_root.myScreenOn == "game") {
playTrack("c_track1");
}
}
}
function playTrack(targyTrack) {
if ((_root.soundHolder._currentframe == 1) && (_parent.gameMutedOut != true)) {
for (cfg in finalClips) {
this[finalClips[cfg]].stopme();
}
this[targyTrack].mysound.setVolume(60);
this[targyTrack].playme();
} else {
stopAllMyTracks();
}
}
function stopAllMyTracks() {
for (cfg in finalClips) {
this[finalClips[cfg]].stopme();
}
}
trackOn = 0;
Symbol 662 MovieClip Frame 1
function playme() {
mysound.start(0, 999999);
}
function stopme() {
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("playing1");
_parent.titlemus.stopme();
Symbol 664 MovieClip Frame 1
function playme() {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
};
}
function stopme() {
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("select");
Symbol 666 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("gemongem2");
amplaying = false;
Symbol 668 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("gotset2");
amplaying = false;
Symbol 670 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("gotsetbig2");
amplaying = false;
Symbol 672 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("gosound");
amplaying = false;
Symbol 674 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("Get_ready");
amplaying = false;
Symbol 676 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("Good");
amplaying = false;
Symbol 678 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("excellent1");
amplaying = false;
Symbol 680 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("Incredible");
amplaying = false;
Symbol 682 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("Level_Complete");
amplaying = false;
Symbol 684 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("combo32");
amplaying = false;
Symbol 686 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("combo42");
amplaying = false;
Symbol 688 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("combo52");
amplaying = false;
Symbol 690 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("combo62");
amplaying = false;
Symbol 692 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("combo72");
amplaying = false;
Symbol 694 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("bad2");
amplaying = false;
Symbol 696 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("hypergem_creation");
amplaying = false;
Symbol 698 MovieClip Frame 1
function playme() {
if (amplaying == false) {
amplaying = true;
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("bombexplode");
mysound.setVolume(60);
amplaying = false;
Symbol 700 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("electro_start");
amplaying = false;
Symbol 702 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("electro_explode");
amplaying = false;
Symbol 704 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("No_More_Moves");
amplaying = false;
Symbol 706 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("Time_Up");
amplaying = false;
Symbol 708 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("Puzzle_Solved");
amplaying = false;
Symbol 710 MovieClip Frame 1
function playme() {
if (amplaying == false) {
amplaying = true;
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("mainmenu_gamestart");
mysound.setVolume(60);
amplaying = false;
Symbol 712 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("mainmenu_mouseover");
amplaying = false;
Symbol 714 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("mainmenu_mouseclick");
amplaying = false;
Symbol 716 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("mainmenu_mouseoff");
amplaying = false;
Symbol 718 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("whirlpool1");
amplaying = false;
Symbol 720 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("multishot");
amplaying = false;
Symbol 722 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("explode2");
mysound.setVolume(60);
amplaying = false;
Symbol 724 MovieClip Frame 1
function playme() {
if (amplaying == false) {
mysound.start(0, 1);
mysound.onSoundComplete = function () {
amplaying = false;
};
}
}
function stopme() {
amplaying = false;
delete mysound.onSoundComplete;
mysound.stop();
}
mysound = new Sound(this);
mysound.attachSound("badsw");
amplaying = false;
mysound.setVolume(140);
Symbol 726 MovieClip Frame 1
stop();
_root.soundTracks.resumeGameTrack();
Symbol 755 Button
on (release) {
_parent._parent.play();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 756 Button
on (release) {
_root.noTute = true;
_parent._parent.play();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 766 Button
on (release) {
_root.noTute = true;
_parent._parent.play();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 768 MovieClip Frame 1
gotoAndStop(_root.helpbutf);
Symbol 769 MovieClip Frame 10
stop();
Symbol 770 MovieClip Frame 11
stop();
Symbol 771 MovieClip Frame 11
stop();
Symbol 772 MovieClip Frame 35
stop();
Symbol 773 MovieClip Frame 11
stop();
Symbol 778 MovieClip Frame 23
stop();
Symbol 778 MovieClip Frame 33
if (_parent.helpbutf == 2) {
_parent.maingame.helpBackGame();
} else if (_root.zone_api == "true") {
_root.gs_bb = 1;
_root.gs_ct = "game";
_root.gs_notran = true;
_root.GameLaunch();
} else {
_root.gotoAndStop("game");
}
Symbol 778 MovieClip Frame 34
stop();
Symbol 788 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 12
gotoAndPlay (2);
Symbol 791 MovieClip Frame 1
stop();
Symbol 791 MovieClip Frame 12
gotoAndPlay (2);
Symbol 796 MovieClip Frame 1
stop();
Symbol 869 Button
on (release) {
_parent.wrongpiece._visible = true;
}
Symbol 877 MovieClip Frame 1
stop();
Symbol 877 MovieClip Frame 20
stop();
Symbol 877 MovieClip Frame 33
stop();
Symbol 880 MovieClip Frame 1
stop();
Symbol 880 MovieClip Frame 2
stop();
Symbol 881 Button
on (rollOver, dragOver) {
_parent.completeanim.sgem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.sgem2.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece._visible = true;
}
Symbol 882 Button
on (rollOver, dragOver) {
_parent.completeanim.sgem3.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.sgem3.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece._visible = true;
}
Symbol 883 Button
on (rollOver, dragOver) {
_parent.completeanim.sgem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.sgem1.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece._visible = true;
}
Symbol 884 Button
on (rollOver, dragOver) {
_parent.completeanim.bgem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.bgem2.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece._visible = true;
}
Symbol 885 Button
on (rollOver, dragOver) {
_parent.completeanim.bgem3.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.bgem3.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece._visible = true;
}
Symbol 886 Button
on (press) {
_root.playSound("selectgem");
_parent.clickhere.play();
_parent.clicktypes.play();
_parent.completeanim.bgem1.gotoAndStop(3);
play();
}
on (rollOver, dragOver) {
_parent.completeanim.bgem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.bgem1.gotoAndStop(1);
}
Symbol 887 Button
on (press) {
_parent.wrongpiece._visible = true;
}
on (rollOver, dragOver) {
_parent.completeanim.sgem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.sgem2.gotoAndStop(1);
}
Symbol 888 Button
on (press) {
_parent.wrongpiece._visible = true;
}
on (rollOver, dragOver) {
_parent.completeanim.sgem3.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.sgem3.gotoAndStop(1);
}
Symbol 889 Button
on (press) {
_root.playSound("selectgem");
_parent.completeanim.play();
_parent.clickhere.gotoAndPlay(21);
_parent.cleartxtanim.play();
}
on (rollOver, dragOver) {
_parent.completeanim.sgem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.sgem1.gotoAndStop(1);
}
Symbol 890 Button
on (press) {
_parent.wrongpiece._visible = true;
}
on (rollOver, dragOver) {
_parent.completeanim.bgem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.bgem2.gotoAndStop(1);
}
Symbol 891 Button
on (press) {
_parent.wrongpiece._visible = true;
}
on (rollOver, dragOver) {
_parent.completeanim.bgem3.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim.bgem3.gotoAndStop(1);
}
Symbol 892 Button
on (press) {
_parent.wrongpiece._visible = true;
}
Symbol 893 MovieClip Frame 1
stop();
Symbol 893 MovieClip Frame 2
stop();
Symbol 898 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 2
stop();
Symbol 898 MovieClip Frame 3
stop();
Symbol 898 MovieClip Frame 4
stop();
Symbol 900 MovieClip Frame 1
stop();
Symbol 900 MovieClip Frame 2
stop();
Symbol 902 MovieClip Frame 1
stop();
Symbol 902 MovieClip Frame 2
clrb.useHandCursor = false;
Symbol 902 MovieClip Frame 11
_root.playSound("gotset");
Symbol 902 MovieClip Frame 22
stop();
_parent.gotoAndStop(2);
Symbol 913 Button
on (release) {
this._visible = false;
}
Symbol 917 MovieClip Frame 1
clrb.useHandCursor = false;
Symbol 924 Button
on (release) {
_parent.gotoAndStop(1);
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 925 Button
on (release) {
_parent._parent._parent._parent._parent.puzzFirstTuteEnd();
_parent._parent.gotoAndStop(1);
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 928 MovieClip Frame 1
clrb.useHandCursor = false;
clrb2.useHandCursor = false;
Symbol 929 MovieClip Frame 1
stop();
clickhere.gotoAndStop(1);
clickright.gotoAndStop(1);
completeanim.gotoAndStop(1);
cleartxtanim.gotoAndStop(1);
wrongpiece._visible = false;
clrb.useHandCursor = false;
clrb2.useHandCursor = false;
Symbol 929 MovieClip Frame 2
clrb.useHandCursor = false;
clrb2.useHandCursor = false;
Symbol 930 Button
on (release) {
_parent.wrongpiece2._visible = true;
}
Symbol 931 Button
on (rollOver, dragOver) {
_parent.completeanim2.rgem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.rgem1.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 932 Button
on (rollOver, dragOver) {
_parent.completeanim2.bgem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.bgem2.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 933 Button
on (rollOver, dragOver) {
_parent.completeanim2.rgem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.rgem2.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 934 Button
on (rollOver, dragOver) {
_parent.completeanim2.bgem3.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.bgem3.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 935 Button
on (rollOver, dragOver) {
_parent.completeanim2.rgem3.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.rgem3.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 936 Button
on (rollOver, dragOver) {
_parent.completeanim2.bgem4.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.bgem4.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 937 Button
on (rollOver, dragOver) {
_parent.completeanim2.ogem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.ogem2.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 938 Button
on (rollOver, dragOver) {
_parent.completeanim2.bgem5.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.bgem5.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 939 Button
on (rollOver, dragOver) {
_parent.completeanim2.bgem6.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.bgem6.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 940 Button
on (rollOver, dragOver) {
_parent.completeanim2.ogem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.ogem1.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 941 Button
on (press) {
_root.playSound("selectgem");
_parent.clickhere2.play();
_parent.clicktypes2.play();
_parent.completeanim2.bgem1.gotoAndStop(3);
play();
}
on (rollOver, dragOver) {
_parent.completeanim2.bgem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.bgem1.gotoAndStop(1);
}
Symbol 942 Button
on (rollOver, dragOver) {
_parent.completeanim2.rgem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.rgem1.gotoAndStop(1);
}
on (press) {
_root.playSound("selectgem");
_parent.completeanim2.play();
_parent.clickhere2.gotoAndPlay(21);
play();
}
Symbol 943 Button
on (press) {
_root.playSound("selectgem");
_parent.clickhere2.gotoAndPlay(45);
_parent.completeanim2.bgem1.gotoAndStop(5);
play();
}
Symbol 944 Button
on (rollOver, dragOver) {
_parent.completeanim2.ogem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.ogem2.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece2._visible = true;
}
Symbol 945 Button
on (press) {
_parent.clickhere2.play();
_parent.completeanim2.bgem1.gotoAndStop(5);
}
Symbol 946 Button
on (rollOver, dragOver) {
_parent.completeanim2.ogem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim2.ogem2.gotoAndStop(1);
}
on (press) {
_root.playSound("selectgem");
_parent.completeanim2.play();
}
Symbol 947 MovieClip Frame 1
stop();
Symbol 947 MovieClip Frame 2
stop();
Symbol 947 MovieClip Frame 3
stop();
Symbol 947 MovieClip Frame 4
stop();
Symbol 952 MovieClip Frame 1
stop();
Symbol 952 MovieClip Frame 2
stop();
Symbol 952 MovieClip Frame 3
stop();
Symbol 952 MovieClip Frame 4
stop();
Symbol 952 MovieClip Frame 5
stop();
Symbol 954 MovieClip Frame 1
stop();
Symbol 954 MovieClip Frame 2
stop();
Symbol 955 MovieClip Frame 1
stop();
Symbol 955 MovieClip Frame 2
clrb.useHandCursor = false;
Symbol 955 MovieClip Frame 11
bgem1.gotoAndStop(4);
_root.playSound("createpower");
Symbol 955 MovieClip Frame 25
stop();
_root.playSound("gemclick");
Symbol 955 MovieClip Frame 26
clrb.useHandCursor = false;
Symbol 955 MovieClip Frame 36
_parent._parent._parent._parent._parent.puzzTutetwo();
Symbol 955 MovieClip Frame 37
_parent.clickhere2.play();
_root.playSound("bombexplosion");
Symbol 955 MovieClip Frame 56
_parent.gotoAndStop(2);
Symbol 956 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 20
stop();
Symbol 956 MovieClip Frame 44
stop();
Symbol 956 MovieClip Frame 65
stop();
Symbol 956 MovieClip Frame 71
stop();
Symbol 960 Button
on (release) {
_parent.gotoAndStop(1);
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 961 Button
on (release) {
_parent._parent._parent._parent._parent.forcePuzzleLevel();
_parent._parent.gotoAndStop(1);
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 964 MovieClip Frame 1
clrb.useHandCursor = false;
clrb2.useHandCursor = false;
Symbol 965 MovieClip Frame 1
stop();
clickhere2.gotoAndStop(1);
clickright2.gotoAndStop(1);
completeanim2.gotoAndStop(1);
cleartxtanim2.gotoAndStop(1);
wrongpiece2._visible = false;
clrb.useHandCursor = false;
clrb2.useHandCursor = false;
Symbol 965 MovieClip Frame 2
clrb.useHandCursor = false;
clrb2.useHandCursor = false;
Symbol 966 Button
on (release) {
_parent.wrongpiece3._visible = true;
}
Symbol 967 Button
on (rollOver, dragOver) {
_parent.completeanim3.ogem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.ogem2.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 968 Button
on (rollOver, dragOver) {
_parent.completeanim3.ogem3.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.ogem3.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 969 Button
on (rollOver, dragOver) {
_parent.completeanim3.rgem2.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.rgem2.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 970 Button
on (rollOver, dragOver) {
_parent.completeanim3.rgem3.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.rgem3.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 971 Button
on (rollOut, dragOut) {
_parent.completeanim3.ogem4.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
on (rollOver, dragOver) {
_parent.completeanim3.ogem4.gotoAndStop(2);
}
Symbol 972 Button
on (rollOver, dragOver) {
_parent.completeanim3.rgem4.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.rgem4.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 973 Button
on (rollOver, dragOver) {
_parent.completeanim3.rgem5.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.rgem5.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 974 Button
on (rollOver, dragOver) {
_parent.completeanim3.ogem5.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.ogem5.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 975 Button
on (rollOver, dragOver) {
_parent.completeanim3.ogem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.ogem1.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 976 Button
on (press) {
_root.playSound("selectgem");
_parent.completeanim3.rgem1.gotoAndStop(3);
_parent.clickhere3.play();
play();
}
on (rollOver, dragOver) {
_parent.completeanim3.rgem1.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.rgem1.gotoAndStop(1);
}
Symbol 977 Button
on (rollOver, dragOver) {
_parent.completeanim3.ogem4.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.ogem4.gotoAndStop(1);
}
on (press) {
_root.playSound("selectgem");
_parent.completeanim3.play();
_parent.completeanim3.rgem1.gotoAndStop(3);
_parent.clickhere3.play();
play();
}
Symbol 978 Button
on (rollOver, dragOver) {
_parent.completeanim3.ogem5.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.ogem5.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 979 Button
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 980 Button
on (press) {
_root.playSound("selectgem");
_parent.clickhere3.gotoAndPlay(55);
play();
_parent.completeanim3.rgem1.gotoAndStop(6);
}
Symbol 981 Button
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 982 Button
on (rollOver, dragOver) {
_parent.completeanim3.ogem4.gotoAndStop(2);
}
on (rollOut, dragOut) {
_parent.completeanim3.ogem4.gotoAndStop(1);
}
on (press) {
_parent.wrongpiece3._visible = true;
}
Symbol 983 Button
on (press) {
_root.playSound("selectgem");
_parent.completeanim3.play();
_parent.clickhere3.play();
play();
}
Symbol 984 MovieClip Frame 1
stop();
Symbol 984 MovieClip Frame 2
stop();
Symbol 984 MovieClip Frame 3
stop();
Symbol 984 MovieClip Frame 4
stop();
Symbol 984 MovieClip Frame 5
stop();
Symbol 985 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 2
clrb.useHandCursor = false;
Symbol 985 MovieClip Frame 11
rgem1.gotoAndStop(4);
_root.playSound("createhyper");
Symbol 985 MovieClip Frame 23
stop();
_root.playSound("gemclick");
Symbol 985 MovieClip Frame 24
clrb.useHandCursor = false;
Symbol 985 MovieClip Frame 33
rgem1.gotoAndStop(4);
_root.playSound("hyperstart");
_root.playSound("hyperzap");
Symbol 985 MovieClip Frame 54
_parent._parent._parent._parent._parent.puzzTutethree();
Symbol 985 MovieClip Frame 58
_parent.gotoAndStop(2);
Symbol 986 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 20
stop();
Symbol 986 MovieClip Frame 44
stop();
Symbol 986 MovieClip Frame 54
stop();
Symbol 986 MovieClip Frame 65
stop();
Symbol 986 MovieClip Frame 76
stop();
Symbol 990 MovieClip Frame 1
stop();
clickhere3.gotoAndStop(1);
clickright3.gotoAndStop(1);
completeanim3.gotoAndStop(1);
cleartxtanim3.gotoAndStop(1);
wrongpiece3._visible = false;
clrb.useHandCursor = false;
clrb2.useHandCursor = false;
Symbol 990 MovieClip Frame 2
clrb.useHandCursor = false;
clrb2.useHandCursor = false;
Symbol 991 MovieClip Frame 1
Symbol 991 MovieClip Frame 2
stop();
noclicky.useHandCursor = false;
Symbol 991 MovieClip Frame 3
noclicky.useHandCursor = false;
Symbol 991 MovieClip Frame 4
noclicky.useHandCursor = false;
Symbol 994 MovieClip Frame 1
if (_root.gameMode == "puzzle") {
gotoAndStop (2);
} else {
stop();
}
Symbol 1020 MovieClip Frame 1
if (_root.txt_hintbut != "HINT") {
gotoAndStop (2);
} else {
stop();
}
Symbol 1026 Button
on (release) {
_parent._parent.findHint();
}
Symbol 1027 Button
on (release) {
_parent._parent.showOptions();
}
Symbol 1051 Button
on (release) {
_parent._parent.actionPause();
}
Symbol 1053 Button
on (release) {
_parent._parent.puzzleHintClick();
}
Symbol 1054 Button
on (release) {
_parent._parent.puzzleUndeMove();
}
Symbol 1055 MovieClip Frame 1
if (_root.gameMode == "action") {
gotoAndStop (2);
} else if (_root.gameMode == "puzzle") {
gotoAndStop (3);
} else {
stop();
}
Symbol 1080 MovieClip Frame 1
stop();
Symbol 1081 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1083 MovieClip Frame 1
stop();
Symbol 1084 MovieClip Frame 1
stop();
Symbol 1085 MovieClip Frame 1
stop();
Symbol 1086 MovieClip Frame 1
stop();
Symbol 1101 Button
on (release) {
trace("cock");
_parent._parent._parent.puzzleForceLevelStart(1, true);
}
Symbol 1102 Button
on (release) {
_parent._parent._parent.puzzleForceLevelStart(2, true);
}
Symbol 1103 Button
on (release) {
_parent._parent._parent.puzzleForceLevelStart(3, true);
}
Symbol 1104 Button
on (release) {
_parent._parent._parent.puzzleForceLevelStart(4, true);
}
Symbol 1105 Button
on (release) {
_parent._parent._parent.puzzleForceLevelStart(5, true);
}
Symbol 1106 Button
on (release) {
_parent._parent._parent.puzzleForceLevelStart(6, true);
}
Symbol 1107 Button
on (release) {
_parent._parent._parent.puzzleForceLevelStart(7, true);
}
Symbol 1109 MovieClip Frame 1
if (_root.gameMode == "puzzle") {
gotoAndStop (2);
} else {
stop();
}
Symbol 1110 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 22
stop();
if (_root.gameMode == "puzzle") {
_parent.puzzleForcePosition();
}
Symbol 1111 Button
on (release) {
_parent.actionResume();
}
Symbol 1114 Button
on (release) {
_root.deluxeClick();
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1115 Button
on (release) {
_root.bTrans("menu");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1125 MovieClip Frame 1
stop();
Symbol 1125 MovieClip Frame 3
blubut.useHandCursor = false;
Symbol 1126 MovieClip Frame 2
stop();
_root.isSound = true;
_root.isMuted = false;
gamePhase = "norm";
levelOn = 0;
levelInPlay = false;
myScoreTarget = 0;
lastScoreTarget = 0;
lastLevelScore = 0;
NormBonus = 500;
NormBonusMult = 150;
NormPMBase = 1;
NormPMMult = 0.5;
_root.gameDuration = 0;
_root.gemsCollected = 0;
_root.biggestCascade = 0;
_root.biggestCombo = 0;
_root.totalScore = 0;
boardWidth = 8;
boardHeight = 8;
boardArray = [];
boardY = 0;
tileWidth = 39.7;
tileHeight = 39.3;
dropArray = [];
moveArray = [];
dropSpeed = 15;
swapDirection = "";
swapGemAr = [];
swapSpeed = 5;
numBomb = 0;
numHyper = 0;
randySpecials = [];
gClickTimer = 0;
function boardFill(builder, forced, withtimer) {
myNewGems = [];
lc = 0;
while (lc < boardWidth) {
gemsPlaced = 0;
yBoost = 0;
lr = boardHeight - 1;
while (lr > -1) {
if (boardArray[lc][lr] == 0) {
myGem = newGem(lc, lr, builder);
myNewGems.push(myGem);
boardArray[lc][lr] = myGem;
gemsPlaced++;
yBoost = yBoost + (random(5) * 10);
myGem._y = (boardY - (gemsPlaced * (tileHeight * 1.5))) - yBoost;
if (forced != undefined) {
myGem.dSpeed = forced;
myGem.dtimer = withtimer;
withtimer++;
} else {
myGem.dSpeed = dropOnSpeed;
myGem.dtimer = (40 - (lr * 2)) + random(lr / 2);
}
if (myGem.myType > 9) {
myGem.myType = myGem.myType - 10;
myGem.gotoAndStop(myGem.myType);
makeMeBang(myGem);
myGem.gemSelect._visible = false;
myGem.gem.gotoAndStop(1);
} else if (myGem.myType == 8) {
makeMeHyper(myGem);
}
for (cm in randySpecials) {
if ((randySpecials[cm][0] == lr) && (randySpecials[cm][1] == lc)) {
if (randySpecials[cm][2] == "bomb") {
makeMeBang(myGem);
} else {
makeMeHyper(myGem);
}
}
}
myGem._x = myGem.xTarg;
dropArray.push(myGem);
}
lr--;
}
lc++;
}
randySpecials = [];
puzzResetOrg = false;
checkBoardDead = findMatchForMe();
if (checkBoardDead == false) {
if ((levelOn == 1) or (_root.gameMode == "action")) {
while (checkGemStringMatch(myNewGems) == false) {
amItRand = myNewGems[random(myNewGems.length)];
randNeighs = getGemNeighs(amItRand);
realNeigh = "";
for (rockit in randNeighs) {
foundit = false;
for (findit in myNewGems) {
if (randNeighs[rockit] == myNewGems[findit]) {
foundit = true;
}
}
if (foundit == false) {
realNeigh = randNeighs[rockit];
}
}
if (realNeigh != "") {
realNeighCol = realNeigh.myType;
lcounter = 0;
for (loopie in myNewGems) {
if ((myNewGems[loopie] != amItRand) && (lcounter < 2)) {
myNewGems[loopie].myType = realNeighCol;
lcounter++;
} else {
myNewGems[loopie].myType = randGemType();
}
myNewGems[loopie].gotoAndStop(myNewGems[loopie].myType);
}
}
}
}
}
}
function randomSpecials() {
randySpecials = [];
while (numBomb > 0) {
newLoc = [random(boardWidth), random(boardHeight), "bomb"];
prevSpec = false;
for (rcd in randySpecials) {
if ((randySpecials[rdc] == newLoc[0]) && (randySpecials[rdc] == newLoc[1])) {
prevSpec = true;
}
}
if (prevSpec == false) {
randySpecials.push(newLoc);
numBomb--;
}
}
while (numHyper > 0) {
newLoc = [random(boardWidth), random(boardHeight), "hyper"];
prevSpec = false;
for (rcd in randySpecials) {
if ((randySpecials[rdc] == newLoc[0]) && (randySpecials[rdc] == newLoc[1])) {
prevSpec = true;
}
}
if (prevSpec == false) {
randySpecials.push(newLoc);
numHyper--;
}
}
}
function sortBoard() {
casCounty = 0;
bl = 0;
while (bl < boardWidth) {
mCount = 0;
dcount = 0;
lr = boardHeight - 1;
while (lr > -1) {
dcount++;
if (boardArray[bl][lr] == "x") {
boardArray[bl].splice(lr, 1);
mCount++;
dcount = 0;
} else if ((boardArray[bl][lr].myType == 9) && (boardArray[bl][lr - 1].myType != 9)) {
boardArray[bl].splice(lr, 1);
mCount++;
dcount = 0;
} else if (mCount > 0) {
if (((boardArray[bl][lr] != undefined) && (boardArray[bl][lr] != "")) && (boardArray[bl][lr] != "x")) {
if (boardArray[bl][lr].dSpeed == 0) {
boardArray[bl][lr].dSpeed = dropRegMatch;
boardArray[bl][lr].dtimer = dcount;
}
dropArray.push(boardArray[bl][lr]);
}
}
lr--;
}
casCounty = casCounty + mCount;
while (mCount > 0) {
boardArray[bl].unshift(0);
mCount--;
}
lr = boardHeight - 1;
while (lr > -1) {
setTargs(boardArray[bl][lr], bl, lr);
lr--;
}
bl++;
}
boardFill(false, dropRegMatch, 0);
}
function resetBoard() {
tAr = [];
cc = 0;
while (cc < boardWidth) {
cAr = [];
cr = 0;
while (cr < boardHeight) {
cAr.push(0);
cr++;
}
tAr.push(cAr);
cc++;
}
return(tAr);
}
dropOnSpeed = 5;
dropRegMatch = 0;
function dragGem(dGem) {
if ((dGem == swapGem1) or (dGem == swapGem2)) {
return(false);
}
gemDragging = true;
gemDragTarg = dGem;
}
function runGemDrag() {
if ((gemDragging == true) && (gemDragTarg != "")) {
dragNeigh = getGemNeighs(gemDragTarg);
mxTile = Math.floor(_xmouse / tileWidth);
myTile = Math.floor(_ymouse / tileHeight);
for (dgc in dragNeigh) {
if ((dragNeigh[dgc].myRow == myTile) && (dragNeigh[dgc].myCol == mxTile)) {
selectGem(dragNeigh[dgc]);
stopGemDrag();
return(undefined);
}
}
} else {
gemDragging = false;
}
}
function stopGemDrag() {
gemDragging = false;
gemDragTarg = "";
}
function addBombCol(newNum) {
inAr = false;
for (ab in bombCols) {
if (bombCols[ab] == newNum) {
inAr = true;
}
}
if (inAr != true) {
bombCols.push(newNum);
}
bombCols.sort();
}
function erPluster() {
for (fP in forcePluster) {
forcePluster[fP].queueMe = false;
}
}
function wipeGems(gArray) {
xtot = 0;
ytot = 0;
numG = 0;
forceSoverX = false;
soverx = 0;
sovery = 0;
gCol = gArray[0].myType;
detCheck = [];
for (tg in gArray) {
if (amIPlus(gArray[tg]) && (gArray[tg].bangMe != true)) {
gArray[tg].queueMe = true;
makeMeBang(gArray[tg]);
forcePluster.push(gArray[tg]);
} else {
detCheck.push(gArray[tg]);
}
}
nobomb = true;
bangGemmer();
if (nobomb == true) {
bombcombo = 0;
}
for (gr in gArray) {
rGem = gArray[gr];
if (((rGem != undefined) && (boardArray[rGem.myCol][rGem.myRow] != "x")) && (rGem.queueMe != true)) {
if (rGem.myRow != undefined) {
xtot = xtot + rGem.myRow;
ytot = ytot + rGem.myCol;
}
numG++;
_root.gemsCollected++;
boardArray[rGem.myCol][rGem.myRow] = "x";
gemsShrinking.push(rGem);
}
}
if (numG > 0) {
if (forceSoverX == true) {
displayScore(calcScore(masterGemMatchScore, nobomb), gCol, soverx, sovery);
} else {
displayScore(calcScore(masterGemMatchScore, nobomb), gCol, ((ytot * tileWidth) / numG) + (tileWidth / 2), ((xtot * tileHeight) / numG) + (tileWidth / 2));
}
if (madeHyper == true) {
_root.playSound("createhyper");
} else if (madeBoom == true) {
_root.playSound("createpower");
} else if (combocount < 3) {
if (numG < 4) {
_root.playSound("gotset");
} else {
_root.playSound("gotsetbig");
}
} else if (combocount < 4) {
_root.playSound("combo3");
} else if (combocount < 5) {
_root.playSound("combo4");
} else if (combocount < 6) {
_root.playSound("combo5");
} else if (combocount < 7) {
_root.playSound("combo6");
} else {
_root.playSound("combo7");
}
madeHyper = false;
madeBoom = false;
}
if (bombQueue.length > 0) {
gamePhase = "bombQ";
} else {
gamePhase = "gemshrink";
}
removeAllHints();
}
function gemShrink() {
gLen = gemsShrinking.length;
for (gg in gemsShrinking) {
gsRef = gemsShrinking[gg];
gsRef._xscale = gsRef._xscale - 15;
gsRef._yscale = gsRef._yscale - 15;
if (((gsRef._xscale < 5) or (gsRef == undefined)) or (gsRef._xscale == undefined)) {
gemsShrinking.splice(gg, 1);
gsRef.removeMovieClip();
}
}
if (gemsShrinking.length < 1) {
gamePhase = "drop";
sortBoard();
}
}
function selectGem(sGem) {
if (hackSel < 1) {
deHighAll = false;
if ((sGem == swapGem1) or (sGem == swapGem2)) {
return(false);
}
if (_root.cheatsOn == "true") {
if (Key.isDown(16)) {
makeMeBang(sGem);
return(undefined);
}
if (Key.isDown(17)) {
makeMeHyper(sGem);
return(undefined);
}
}
if (gemHigh1 == sGem) {
deHighGem(gemHigh1);
gemHigh1 = "";
} else if ((gemHigh1 != "") && (gamePhase == "norm")) {
foundA = false;
myN = getGemNeighs(sGem);
for (nn in myN) {
if (myN[nn] == gemHigh1) {
gemHigh2 = sGem;
highGem(sGem);
swapGem1 = gemHigh1;
swapGem2 = gemHigh2;
swapGem1.tG = gemHigh2;
swapGem2.tG = gemHigh1;
swapGemAr = [swapGem1, swapGem2];
gemHigh1 = "";
gemHigh2 = "";
gamePhase = "gemswap";
swapDirection = "first";
foundA = true;
removeAllHints();
}
}
if (foundA == false) {
deHighGem(gemHigh1);
deHighGem(gemHigh2);
gemHigh1 = "";
gemHigh2 = "";
deHighAll = true;
}
} else if (gemHigh1 == "") {
if (sGem.myType != 9) {
highGem(sGem);
gemHigh1 = sGem;
_root.playSound("selectgem");
}
}
if (deHighAll == true) {
selectGem(sGem);
deHighAll = false;
}
}
}
function swapGemVars(g1, g2, noTarg) {
sc = g1.myCol;
sr = g1.myRow;
g1.myCol = g2.myCol;
g1.myRow = g2.myRow;
boardArray[g1.myCol][g1.myRow] = g1;
g2.myCol = sc;
g2.myRow = sr;
boardArray[g2.myCol][g2.myRow] = g2;
if (noTarg != true) {
setTargs(g1, g1.myCol, g1.myRow);
setTargs(g2, g2.myCol, g2.myRow);
}
}
function highGem(hGem) {
hGem.gemSelect._visible = true;
hGem.gem.play();
glowOff(hGem);
}
function deHighGem(hGem) {
hGem.gemSelect._visible = false;
hGem.tG = "";
hGem.gem.gotoAndStop(1);
mxxxTile = Math.floor(_xmouse / tileWidth);
myyyTile = Math.floor(_ymouse / tileHeight);
trace("mouse over = " + boardArray[myyyTile][mxxxTile]);
trace("h gem " + hGem);
if (boardArray[mxxxTile][myyyTile] == hGem) {
glowOn(hGem);
}
}
function newGem(tCol, tRow, noMatch) {
puzzGem = 0;
if (_root.gameMode == "puzzle") {
if (levelInPlay == true) {
puzzGem = 9;
} else {
puzzGem = puzzleBoard[tRow][tCol];
}
noMatch = false;
}
gName = "gem" + gemDepth;
attachMovie("gem", gName, gemDepth);
gemDepth++;
gRef = this[gName];
if (puzzResetOrg == true) {
gRef.originalRow = puzzleBoardRestore[tRow][(boardWidth - tCol) - 1][0];
gRef.originalCol = puzzleBoardRestore[tRow][(boardWidth - tCol) - 1][1];
} else {
gRef.originalRow = tRow;
gRef.originalCol = tCol;
}
setTargs(gRef, tCol, tRow);
if (puzzGem < 1) {
gRef.myType = randGemType();
} else {
gRef.myType = puzzGem;
}
if (noMatch == true) {
nM = false;
while (nM == false) {
hasM = matchCheck(gRef, true);
if (hasM == false) {
nM = true;
} else {
gRef.myType = randGemType();
}
}
}
gRef.gemSelect._visible = false;
gRef.gotoAndStop(gRef.myType);
gRef.gem.gotoAndStop(1);
gRef.exploSpark.gotoAndStop(1);
gRef.exploSpark._visible = false;
gRef.pglow.gotoAndStop(1);
gRef.pglow._visible = false;
return(gRef);
}
function setTargs(tGem, tC, tR) {
tGem.myCol = tC;
tGem.myRow = tR;
tGem.xTarg = getColX(tC);
tGem.yTarg = getRowY(tR);
}
function getColX(co) {
return((co * tileWidth) + (tileWidth / 2));
}
function getRowY(co) {
return((co * tileHeight) + (tileHeight / 2));
}
function randGemType() {
return(random(7) + 1);
}
function glowGems() {
mxTile = Math.floor(_xmouse / tileWidth);
myTile = Math.floor(_ymouse / tileHeight);
glowTile = boardArray[mxTile][myTile];
if (glowTile == gemGlowing) {
} else {
glowOff(gemGlowing);
gemGlowing = glowTile;
glowOn(gemGlowing);
}
}
function glowOn(gloGem) {
gloGem.pglow._visible = true;
gloGem.pglow.play();
}
function glowOff(gloGem) {
gloGem.pglow._visible = false;
gloGem.pglow.stop();
}
function amIPlus(plusCan) {
plusNeigh = getGemNeighs(plusCan);
amPlussy = true;
if (plusNeigh.length < 4) {
return(false);
}
for (pan in plusNeigh) {
if (plusNeigh[pan].myType != plusCan.myType) {
amPlussy = false;
}
}
return(amPlussy);
}
function getGemNeighs(gemN) {
neighArray = [];
topG = boardArray[gemN.myCol][gemN.myRow - 1];
if (topG != undefined) {
neighArray.push(topG);
}
botG = boardArray[gemN.myCol][gemN.myRow + 1];
if (botG != undefined) {
neighArray.push(botG);
}
leftG = boardArray[gemN.myCol - 1][gemN.myRow];
if (leftG != undefined) {
neighArray.push(leftG);
}
rightG = boardArray[gemN.myCol + 1][gemN.myRow];
if (rightG != undefined) {
neighArray.push(rightG);
}
return(neighArray);
}
function getNineNeighbours(nineGem) {
nineArray = getGemNeighs(nineGem);
topG = boardArray[nineGem.myCol - 1][nineGem.myRow - 1];
if (topG != undefined) {
nineArray.push(topG);
}
botG = boardArray[nineGem.myCol - 1][nineGem.myRow + 1];
if (botG != undefined) {
nineArray.push(botG);
}
leftG = boardArray[nineGem.myCol + 1][nineGem.myRow - 1];
if (leftG != undefined) {
nineArray.push(leftG);
}
rightG = boardArray[nineGem.myCol + 1][nineGem.myRow + 1];
if (rightG != undefined) {
nineArray.push(rightG);
}
return(nineArray);
}
gemDepth = 1000;
gemHigh1 = "";
gemHigh2 = "";
gemGlowing = "";
gemsShrinking = [];
bombCols = [];
bombcombo = 0;
gemDragging = false;
gemDragTarg = "";
nobomb = false;
masterGemMatchScore = 0;
forcePluster = [];
madeHyper = false;
madeBoom = false;
hackSel = 0;
function runLightning() {
lightTimer--;
if (lightTimer < 0) {
if (lightGems.length < 1) {
if ((lightTimer < 35) && (lStrikes.length == 0)) {
detonateGem(hyperGem);
sortBoard();
wipeGems();
}
} else {
lightTarget = lightGems.shift();
startStrike = lightGems[random(lightGems.length)];
if (startStrike == undefined) {
startStrike = hyperGem;
}
lightStrike(startStrike, lightTarget);
lightTimer = lightBreak;
}
}
}
function lightStrike(startGem, endGem) {
liName = "light" + scorePopDepth;
attachMovie("lightning", liName, scorePopDepth);
scorePopDepth++;
liRef = this[liName];
liRef._x = startGem._x;
liRef._y = startGem._y;
liRef.lightline.gotoAndStop(hyperCol);
x_cord = startGem._x - endGem._x;
y_cord = startGem._y - endGem._y;
dist = Math.round(Math.sqrt((x_cord * x_cord) + (y_cord * y_cord)));
liRef._height = dist;
Radians = Math.atan2(startGem._y - endGem._y, startGem._x - endGem._x);
liRef._rotation = Math.round((Radians * 180) / Math.PI) - 90;
liRef.myDet = endGem;
lStrikes.push(liRef);
}
function killMrLighting() {
for (sts in lStrikes) {
lStrikes[sts].removeMovieClip();
lStrikes.splice(sts, 1);
}
lStrikes = [];
_root.stopSound("hyperstart");
_root.stopSound("hyperzap");
}
function doneStike(strikeRef) {
levelMultStrike = (levelOn / 2) + 0.5;
_root.playSound("hyperzap");
if (strikeRef.myDet.bangMe == true) {
detCheck = [strikeRef.myDet];
strikeScore = 45 * levelMultStrike;
currentPower = currentPower + 45;
if (_root.gameMode == "action") {
strikeScore = strikeScore * 20;
}
displayScore(strikeScore, hyperCol, strikeRef.myDet._x, strikeRef.myDet._y, true);
bangGemmer();
} else {
strikeScore = 20 * levelMultStrike;
if (_root.gameMode == "action") {
strikeScore = strikeScore * 20;
}
currentPower = currentPower + 20;
displayScore(strikeScore, hyperCol, strikeRef.myDet._x, strikeRef.myDet._y, true);
}
detonateGem(strikeRef.myDet);
}
function finishStike(strikeDoneRef) {
for (sts in lStrikes) {
if (lStrikes[sts] == strikeDoneRef) {
lStrikes.splice(sts, 1);
}
}
}
function bangGemmer(instadet) {
while (detCheck.length > 0) {
checkG = detCheck.pop();
if ((checkG.bangMe == true) && (checkG.queueMe != true)) {
exGem = checkG;
gNeighbours = getNineNeighbours(exGem);
if (exGem._x != undefined) {
addBombCol(exGem.myCol);
addBombCol(exGem.myCol - 1);
addBombCol(exGem.myCol + 1);
xtot = xtot + exGem.myRow;
ytot = ytot + exGem.myCol;
numG++;
forceSoverX = true;
soverx = exGem._x;
sovery = exGem._y;
detonateGem(exGem, true);
bombcombo++;
nobomb = false;
for (dg in gNeighbours) {
if ((gNeighbours[dg].bangMe != true) && (gNeighbours[dg] != undefined)) {
if (gNeighbours[dg]._x != undefined) {
if (gNeighbours[dg].isHyper == true) {
powerMyScore = 75;
currentPower = currentPower + powerMyScore;
levelMult = (levelOn / 2) + 0.5;
powerMyScore = powerMyScore * levelMult;
if (_root.gameMode == "action") {
powerMyScore = powerMyScore * 20;
}
displayScore(powerMyScore, 5, gNeighbours[dg]._x, gNeighbours[dg]._y, true);
}
xtot = xtot + gNeighbours[dg].myRow;
ytot = ytot + gNeighbours[dg].myCol;
numG++;
detonateGem(gNeighbours[dg]);
}
} else if (gNeighbours[dg].bangMe == true) {
if (instadet == true) {
detCheck.push(gNeighbours[dg]);
} else {
gNeighbours[dg].queueMe == true;
bombQueue.push(gNeighbours[dg]);
}
}
}
}
}
}
}
function activateHyper(hGem1, hGem2) {
_root.playSound("hyperstart");
lightGems = [];
deHighGem(gemHigh1);
gemHigh1 = "";
deHighGem(gemHigh2);
gemHigh2 = "";
if (hGem1.isHyper == true) {
hyperGem = hGem1;
otherGem = hGem2;
hyperCol = hGem2.myType;
} else {
hyperGem = hGem2;
otherGem = hGem1;
hyperCol = hGem1.myType;
}
slc = 0;
while (slc < boardWidth) {
slr = boardHeight - 1;
while (slr > -1) {
if (boardArray[slc][slr].myType == hyperCol) {
if ((boardArray[slc][slr] != hyperGem) && (boardArray[slc][slr] != otherGem)) {
lightGems.push(boardArray[slc][slr]);
}
}
slr--;
}
slc++;
}
lightStrike(hyperGem, otherGem);
lightTimer = 0;
gamePhase = "lightning";
}
function makeMeBang(bGem) {
bGem.exploSpark._visible = true;
bGem.exploSpark.play();
bGem.bangMe = true;
madeBoom = true;
doneBang = bGem;
}
function makeMeHyper(hGem) {
hGem.gotoAndStop(8);
hGem.isHyper = true;
hGem.bangMe = false;
hGem.myType = 8;
madeHyper = true;
doneHyper = hGem;
}
function detonateGem(deGem, exploOn) {
if (deGem._x != undefined) {
bs = 0;
while (bs < numberShards) {
createShard(deGem.myType, deGem._x, deGem._y);
bs++;
}
_root.gemsCollected++;
_root.stopSound("gotset");
_root.stopSound("gotsetbig");
_root.stopSound("combo3");
_root.stopSound("combo4");
_root.stopSound("combo5");
_root.stopSound("combo6");
_root.playSound("bombexplosion");
boardArray[deGem.myCol][deGem.myRow] = "x";
if (exploOn == true) {
exploHere(deGem._x, deGem._y);
}
deGem.removeMovieClip();
}
}
function exploHere(ex, ey) {
eEff = "e" + gemDepth;
attachMovie("exploeffect", eEff, gemDepth);
gemDepth++;
eRef = this[eEff];
eRef._x = ex;
eRef._y = ey;
}
function bQueue() {
bQTimer--;
if (bQTimer < 0) {
bT = bombQueue.shift();
bT.queueMe = false;
bTemp = [bT];
wipeGems(bTemp);
bQTimer = bQbreak;
}
}
function checkcheckcheckBOOM() {
slc = 0;
while (slc < boardWidth) {
slr = boardHeight - 1;
while (slr > -1) {
if (boardArray[slc][slr].bangMe == true) {
return(boardArray[slc][slr]);
}
slr--;
}
slc++;
}
return(false);
}
function checkcheckcheckHYPER() {
slc = 0;
while (slc < boardWidth) {
slr = boardHeight - 1;
while (slr > -1) {
if (boardArray[slc][slr].isHyper == true) {
return(boardArray[slc][slr]);
}
slr--;
}
slc++;
}
return(false);
}
numberShards = 5;
bombQueue = [];
bQbreak = -1;
bQTimer = bQbreak;
lightGems = [];
lStrikes = [];
lightBreak = 1;
lightTimer = 0;
function matchCheck(mGem, checking) {
gemType = mGem.myType;
if ((gemType == 8) or (gemType == 9)) {
return(false);
}
vertArray = [];
horzArray = [];
stopCount = false;
counter = 1;
while (stopCount == false) {
stopCount = true;
uGem = boardArray[mGem.myCol][mGem.myRow - counter];
if (uGem != undefined) {
if (uGem.myType == gemType) {
vertArray.push(uGem);
counter++;
stopCount = false;
}
}
}
stopCount = false;
counter = 1;
while (stopCount == false) {
stopCount = true;
uGem = boardArray[mGem.myCol][mGem.myRow + counter];
if (uGem != undefined) {
if (uGem.myType == gemType) {
vertArray.push(uGem);
counter++;
stopCount = false;
}
}
}
stopCount = false;
counter = 1;
while (stopCount == false) {
stopCount = true;
uGem = boardArray[mGem.myCol - counter][mGem.myRow];
if (uGem != undefined) {
if (uGem.myType == gemType) {
horzArray.push(uGem);
counter++;
stopCount = false;
}
}
}
stopCount = false;
counter = 1;
while (stopCount == false) {
stopCount = true;
uGem = boardArray[mGem.myCol + counter][mGem.myRow];
if (uGem != undefined) {
if (uGem.myType == gemType) {
horzArray.push(uGem);
counter++;
stopCount = false;
}
}
}
if (checking == true) {
if ((vertArray.length > 1) or (horzArray.length > 1)) {
return(true);
}
return(false);
}
if ((vertArray.length > 1) && (horzArray.length > 1)) {
if ((vertArray.length == 4) or (horzArray.length == 4)) {
if (mGem.bangMe != true) {
makeMeHyper(mGem);
} else {
vertArray.push(mGem);
}
masterGemMatchScore = 5;
} else if (mGem.bangMe == true) {
vertArray.push(mGem);
masterGemMatchScore = 4;
} else {
makeMeBang(mGem);
masterGemMatchScore = 5;
}
wipeGems(vertArray);
wipeGems(horzArray);
return(true);
}
if (vertArray.length > 1) {
if (vertArray.length == 4) {
if (mGem.bangMe != true) {
makeMeHyper(mGem);
} else {
vertArray.push(mGem);
}
masterGemMatchScore = 5;
} else if ((vertArray.length == 3) && (mGem.bangMe != true)) {
makeMeBang(mGem);
masterGemMatchScore = 4;
} else {
vertArray.push(mGem);
if (mGem.bangMe != true) {
masterGemMatchScore = 3;
} else {
masterGemMatchScore = vertArray.length;
}
}
wipeGems(vertArray);
return(true);
}
if (horzArray.length > 1) {
if (horzArray.length == 4) {
if (mGem.bangMe != true) {
makeMeHyper(mGem);
} else {
horzArray.push(mGem);
}
masterGemMatchScore = 5;
} else if ((horzArray.length == 3) && (mGem.bangMe != true)) {
makeMeBang(mGem);
masterGemMatchScore = 4;
} else {
horzArray.push(mGem);
if (mGem.bangMe != true) {
masterGemMatchScore = 3;
} else {
masterGemMatchScore = horzArray.length;
}
}
wipeGems(horzArray);
return(true);
}
return(false);
}
function moveShards() {
ss = 0;
while (ss < shardsOn.length) {
smR = shardsOn[ss];
smR._x = smR._x + smR.xmov;
smR._y = smR._y + smR.ymov;
smR.xmov = smR.xmov * 0.95;
smR.ymov = smR.ymov + 0.8;
if (smR.noRot != true) {
smR._rotation = smR._rotation + smR.xmov;
}
if (smR._y > shardRemove) {
smR.removeMovieClip();
shardsOn.splice(ss, 1);
}
ss++;
}
}
function createShard(sColour, sX, sY) {
sName = "shard" + shardDepth;
attachMovie("shard", sName, shardDepth);
shardDepth++;
shRef = this[sName];
shRef.gotoAndStop(sColour);
shRef._x = sX;
shRef._y = sY;
sHscale = random(50) + 50;
shRef._xscale = sHscale;
shRef._yscale = sHscale;
shRef.xmov = random(5) + 3;
if (random(2) == 1) {
shRef.xmov = shRef.xmov * -1;
}
shRef.ymov = (random(10) + 1) * -1;
shardsOn.push(shRef);
}
function gemToShard(shardGem) {
shardGem.xmov = random(12) + 3;
if (random(2) == 1) {
shardGem.xmov = shardGem.xmov * -1;
}
shardGem.ymov = (random(10) + 3) * -1;
shardGem.noRot = true;
shardsOn.push(shardGem);
}
function swapGems() {
onTarg = false;
for (gg in swapGemAr) {
gemS = swapGemAr[gg];
if (gemS.xTarg == gemS.tG.xTarg) {
if (swapDirection == "first") {
gTarg = gemS.tG.yTarg;
} else {
gTarg = gemS.yTarg;
}
if (gTarg > gemS._y) {
gemS._y = gemS._y + swapSpeed;
if (gemS._y > gTarg) {
gemS._y = gTarg;
onTarg = true;
}
} else {
gemS._y = gemS._y - swapSpeed;
if (gemS._y < gTarg) {
gemS._y = gTarg;
onTarg = true;
}
}
} else {
if (swapDirection == "first") {
gTarg = gemS.tG.xTarg;
} else {
gTarg = gemS.xTarg;
}
if (gTarg > gemS._x) {
gemS._x = gemS._x + swapSpeed;
if (gemS._x > gTarg) {
gemS._x = gTarg;
onTarg = true;
}
} else {
gemS._x = gemS._x - swapSpeed;
if (gemS._x < gTarg) {
gemS._x = gTarg;
onTarg = true;
}
}
}
}
if (onTarg == true) {
if (swapDirection == "first") {
swapGemVars(swapGem1, swapGem2);
if ((((swapGem1.isHyper == true) or (swapGem2.isHyper == true)) && (swapGem1.myType != 9)) && (swapGem2.myType != 9)) {
if (_root.gameMode == "puzzle") {
buildSolution(swapGem1, swapGem2);
makePuzzleMove(swapGem1, swapGem2);
}
activateHyper(swapGem1, swapGem2);
} else {
if (swapGem1.bangMe == true) {
hasMatched2 = matchCheck(swapGem2);
hasMatched1 = matchCheck(swapGem1);
} else {
hasMatched1 = matchCheck(swapGem1);
hasMatched2 = matchCheck(swapGem2);
}
erPluster();
if ((hasMatched1 == false) && (hasMatched2 == false)) {
swapDirection = "second";
swapGemVars(swapGem1, swapGem2);
_root.playSound("badswap");
showWarning();
} else {
if (_root.gameMode == "puzzle") {
buildSolution(swapGem1, swapGem2);
makePuzzleMove(swapGem1, swapGem2);
}
deHighGem(swapGem1);
swapGem1 = "";
deHighGem(swapGem2);
swapGem2 = "";
swapGemAr = [];
}
}
} else {
deHighGem(swapGem1);
swapGem1 = "";
deHighGem(swapGem2);
swapGem2 = "";
gamePhase = "norm";
}
}
}
function dropGems() {
if (boardinAnimate._currentframe == boardinAnimate._totalframes) {
d = 0;
while (d < dropArray.length) {
dRef = dropArray[d];
if (gemHigh1 != dRef) {
dRef.gem.gotoAndStop(1);
}
dRef._y = dRef._y + dRef.dSpeed;
dRef._y = dRef._y + findBombBoost(dRef.myCol);
dRef.dSpeed = dRef.dSpeed + speedDecrease;
if (((dRef._y > dRef.yTarg) or (dRef._y == undefined)) or (dRef.myType == 9)) {
dRef.dSpeed = 0;
dRef.haveBeenFaked = false;
dRef._y = dRef.yTarg;
moveArray.push(dRef);
dropArray.splice(d, 1);
d--;
if ((gClickTimer < -2) && (dRef.myType != 9)) {
gClickTimer = 0;
_root.playSound("gemclick");
}
}
d++;
}
if (dropArray.length < 1) {
erPluster();
if (myFirstDropBaby == true) {
myFirstDropBaby = false;
}
gemMatched = false;
for (m in moveArray) {
checkMe = matchCheck(moveArray[m]);
if (checkMe == true) {
gemMatched = true;
}
}
moveArray = [];
bombCols = [];
if (gemMatched == false) {
gamePhase = "norm";
doneHintTurn = false;
scorecombocount = 0;
combocount = 1;
bombcombo = 0;
if (_root.gameMode == "puzzle") {
doubleCheckBoard();
isPuzzDone = puzzleCheckWin();
puzzleCopyBoard();
if (isPuzzDone == true) {
puzzleEndLevel();
} else {
allPuzzMovesDone = findMatchForMe(false, false, true);
if (allPuzzMovesDone == false) {
actionpPop.gotoAndStop(4);
}
}
} else {
if (_root.gameMode != "action") {
isTheJigUp = findMatchForMe();
} else {
isTheJigUp = true;
}
if (isTheJigUp == false) {
startGameOver();
} else if ((showPower == false) && (doneBang != false)) {
bommmbGem = checkcheckcheckBOOM();
if (bommmbGem != false) {
showHint(1, bommmbGem);
showPower = true;
doneBang = false;
}
} else if ((doneHyper != false) && (showHyper == false)) {
bommmbGem = checkcheckcheckHYPER();
if (bommmbGem != false) {
showHint(2, bommmbGem);
showHyper = true;
doneHyper = false;
}
}
if (gemHigh1 != "") {
gemDragTarg = gemHigh1;
gemDragging = true;
runGemDrag();
}
}
}
}
}
}
function findBombBoost(myCol) {
arPos = -1;
for (ami in bombCols) {
if (bombCols[ami] == myCol) {
arPos = ami;
}
}
if (arPos > -1) {
if ((arPos == 0) or (arPos == (bombCols.length - 1))) {
return(-10);
}
return(-12);
}
return(0);
}
function raiseBombCols() {
lbc = 0;
while (lbc < bombCols.length) {
thisBombCol = bombCols[lbc];
gonePastBoom = false;
btt = boardHeight;
while (btt > -1) {
fakeMoveGem = boardArray[thisBombCol][btt];
if (fakeMoveGem == "x") {
gonePastBoom = true;
}
if (gonePastBoom == true) {
if (fakeMoveGem.haveBeenFaked != true) {
fakeMoveGem.dSpeed = dropRegMatch;
fakeMoveGem.haveBeenFaked = true;
}
calcSpedd = fakeMoveGem.dSpeed + findBombBoost(fakeMoveGem.myCol);
if (fakeMoveGem != "x") {
fakeYTarg = calcFakeY(fakeMoveGem);
if ((fakeMoveGem._y + calcSpedd) > fakeYTarg) {
fakeMoveGem._y = fakeYTarg;
} else {
fakeMoveGem._y = fakeMoveGem._y + calcSpedd;
fakeMoveGem.dSpeed = fakeMoveGem.dSpeed + speedDecrease;
}
}
}
btt--;
}
lbc++;
}
}
function calcFakeY(yfaker) {
fyCorCount = boardHeight + 1;
fy = boardHeight;
while (fy > -1) {
cfgemmy = boardArray[yfaker.myCol][fy];
if (cfgemmy != "x") {
fyCorCount--;
}
if (cfgemmy == yfaker) {
fyC = getRowY(fyCorCount);
return(fyC);
}
fy--;
}
}
shardDepth = 9999;
shardsOn = [];
shardRemove = 385;
speedDecrease = 2;
function showHint(hintNum, gemRef) {
if (_parent.hintShow._visible != false) {
if (((hintNum == 1) && (_root.shownThePower != true)) or ((hintNum == 2) && (_root.shownTheHyper != true))) {
_parent.hintShow.gotoAndStop(2);
_parent.hintShow.myHints.gotoAndStop(hintNum);
if (gemRef.myRow < 4) {
_parent.hintShow._y = 270;
} else {
_parent.hintShow._y = 90;
}
popHintArrow(gemRef);
_root.pauseTime();
gamePaused = true;
}
}
}
function showWarning() {
if (shownWarn == false) {
_parent.hintShow._y = 90;
_parent.hintShow.gotoAndStop(5);
_root.pauseTime();
gamePaused = true;
shownWarn = true;
}
}
function hideHint() {
_parent.hintShow.gotoAndStop(1);
_root.resumeTime();
removeAllHints();
gamePaused = false;
}
function findHint(autohinty) {
hideHint();
hinty = findMatchForMe();
if (hinty != false) {
popHintArrow(hinty);
if ((autohinty != true) && (doneHintTurn != true)) {
if (_root.gameMode == "action") {
myScore = myScore - 1000;
if (myScore < 0) {
myScore = 0;
}
} else {
currentPower = currentPower - 20;
if (currentPower < 0) {
currentPower = 0;
}
}
}
doneHintTurn = true;
}
}
function popHintArrow(hTarg, noeeer) {
if (noeeer != true) {
removeAllHints();
}
if (hTarg._x != undefined) {
hName = "hint" + gemDepth;
attachMovie("hintarrow", hName, gemDepth);
gemDepth++;
hintRef = this[hName];
hintRef._x = hTarg._x;
hintRef._y = hTarg._y;
hintArrows.push(hintRef);
hackHintCount = 200;
}
}
function removeAllHints() {
for (hh in hintArrows) {
hintArrows[hh].removeMovieClip();
}
hintArrows = [];
hackHintCount = 0;
}
function findMatchForMe(findAll, chkHypp, puzcan) {
findAllGems = [];
if ((_root.gameMode == "puzzle") && (puzcan != true)) {
return(true);
}
flc = 0;
while (flc < boardWidth) {
flr = boardHeight - 1;
while (flr > -1) {
fmGem = boardArray[flc][flr];
chker = false;
if ((flc % 2) == 0) {
if ((flr % 2) == 0) {
chker = true;
}
} else if ((flr % 2) != 0) {
chker = true;
}
chker = true;
if (chker == true) {
matchHere = checkIMatch(fmGem);
if (fmGem.isHyper == true) {
fetchHyperNeigh = getGemNeighs(fmGem);
for (faf in fetchHyperNeigh) {
if (fetchHyperNeigh[faf].myType != 9) {
matchHere = true;
}
}
}
if (matchHere == true) {
if (findAll == true) {
findAllGems.push(fmGem);
} else {
return(fmGem);
}
}
}
flr--;
}
flc++;
}
if (findAllGems.length > 0) {
return(findAllGems);
}
return(false);
}
function checkGemStringMatch(drArray) {
for (dra in drArray) {
drCheck = checkIMatch(drArray[dra]);
if (drCheck == true) {
return(true);
}
}
return(false);
}
function checkIMatch(cmGem, noNeighs) {
nToCheck = getGemNeighs(cmGem);
for (cmN in nToCheck) {
cmNeigh = nToCheck[cmN];
if (cmNeigh != undefined) {
if (noNeighs != true) {
swapGemVars(cmGem, cmNeigh, true);
}
isThereMatch = matchCheck(cmGem, true);
if (noNeighs != true) {
swapGemVars(cmGem, cmNeigh, true);
}
if (isThereMatch == true) {
return(true);
}
}
}
}
hintArrows = [];
showPower = false;
showHyper = false;
doneBang = false;
doneHyper = false;
shownWarn = false;
doneHintTurn = false;
hackHintCount = 0;
function masterPause() {
muteSounds();
actionPause();
}
function masterUnpause() {
if (gamePaused == true) {
unMuteSounds();
actionResume();
}
}
function showMeHelp() {
this._visible = false;
_parent.helppop.gotoAndPlay("helpin");
_parent.levelStartPop.gotoAndStop(1);
_root.options.gotoAndStop(1);
if (_root.gameMode == "action") {
actionRevealGems();
}
}
function helpBackGame() {
if (_root.isSound == true) {
_root.unMuteSounds();
}
if (_root.isSound == false) {
_root.muteSounds();
}
gamePaused = false;
_root.resumeTime();
_parent.levelStartPop.gotoAndStop(1);
this._visible = true;
}
function quitGamePress() {
if ((_root.zone_api == "true") && (_root.gameMode != "puzzle")) {
if (_root.isSound == true) {
_root.unMuteSounds();
}
if (_root.isSound == false) {
_root.muteSounds();
}
_root.SubmitFinal();
} else {
if (_root.isSound == true) {
_root.unMuteSounds();
}
if (_root.isSound == false) {
_root.muteSounds();
}
_root.backGame = false;
_root.bTrans("upsell");
}
}
function playAgainPress() {
_root.backGame = true;
_root.bTrans("upsell");
}
function showOptions() {
if (((gamePhase != "gameover") && (gamePhase != "levelEnd")) or ((gamePhase != "gameover") && (_root.gameMode == "puzzle"))) {
_root.muteSounds();
gamePaused = true;
_root.pauseTime();
_parent.levelStartPop.stop();
_root.options.gotoAndStop(2);
if (_root.gameMode == "action") {
actionHideGems();
}
}
}
function hideMenu() {
if (_root.isSound == true) {
_root.unMuteSounds();
} else if (_root.isSound == false) {
_root.muteSounds();
}
gamePaused = false;
_root.resumeTime();
if (_parent.levelStartPop._currentframe > 1) {
_parent.levelStartPop.play();
}
_root.options.gotoAndStop(1);
if (_root.gameMode == "action") {
actionRevealGems();
}
}
function calcScore(gCount, nobomber) {
ccScore = 0;
if (combocount == 1) {
bScore = 10;
} else if (combocount == 2) {
bScore = 20;
} else if (combocount == 3) {
bScore = 30;
} else if (combocount == 4) {
bScore = 40;
} else if (combocount == 5) {
bScore = 60;
} else if (combocount == 6) {
bScore = 80;
} else if (combocount == 7) {
bScore = 110;
} else if (combocount == 8) {
bScore = 160;
} else {
bScore = 210;
}
ccScore = ccScore + bScore;
if (nobomber == false) {
ccScore = ccScore + 25;
}
if (bombcombo > 1) {
trace("bomb combo");
if (bombcombo == 2) {
ccScore = 40;
} else if (bombcombo == 3) {
ccScore = 50;
} else if (bombcombo == 4) {
ccScore = 60;
} else {
ccScore = (bombcombo + 2) * 10;
}
}
if (gCount == 4) {
ccScore = ccScore + 10;
} else if (gCount == 5) {
ccScore = ccScore + 20;
}
if (_root.gameMode != "action") {
currentPower = currentPower + int(ccScore);
}
levelMult = (levelOn / 2) + 0.5;
ccScore = ccScore * levelMult;
if (_root.gameMode == "action") {
ccScore = ccScore * 20;
}
ccScore = Math.floor(ccScore);
scorecombocount = scorecombocount + ccScore;
if (scorecombocount > _root.biggestCombo) {
_root.biggestCombo = scorecombocount;
}
return(ccScore);
}
function displayScore(score, col, sx, sy, noinc) {
if ((lastScoreYHack > (sy - 5)) && (lastScoreYHack < (sy + 5))) {
sy = sy + 25;
lastScoreYHack = sy;
} else {
lastScoreYHack = sy;
}
ddScore = Math.floor(score);
ddScore = ddScore + "";
splitScore = ddScore.split("");
if (_root.gameMode == "action") {
splitScore[splitScore.length - 1] = "0";
}
ddScore = "";
spz = 0;
while (spz < splitScore.length) {
ddScore = ddScore + splitScore[spz];
spz++;
}
ddScore = int(ddScore);
score = ddScore;
if (_root.gameMode == "puzzle") {
return(false);
}
if (noinc != true) {
combocount++;
if (combocount > (_root.biggestCascade - 1)) {
_root.biggestCascade = combocount - 1;
}
if (combocount == 4) {
textPop(3);
} else if (combocount == 6) {
textPop(4);
} else if (combocount == 8) {
textPop(5);
}
}
scName = "scorepoparrooo" + testScoreDepthy;
attachMovie("scorepopon", scName, testScoreDepthy);
testScoreDepthy++;
scRef = this[scName];
scRef.cScore.gotoAndStop(col);
scRef.mScore = Math.floor(score);
scRef._x = sx;
scRef._y = sy;
if (col == undefined) {
scRef._visible = false;
}
myScore = myScore + Math.floor(score);
delayGraceTimer = delayGraceTimer + ((GraceSeconds * 2) / 10);
if (delayGraceTimer > (GraceSecondsMax / 10)) {
delayGraceTimer = GraceSecondsMax;
}
}
function textPop(tType, delay) {
if (delay == true) {
_parent.levelStartPop.gotoAndPlay("delay");
} else {
_parent.levelStartPop.gotoAndPlay("nodelay");
}
_parent.levelStartPop.levNum = levelOn;
_parent.levelStartPop.levFrame = tType;
}
function autoHintMe() {
autoHintTimer++;
if (autoHintTimer == autoHintAt) {
if (_root.gameMode != "puzzle") {
findHint(true);
autoHintTimer = 0;
}
}
}
function managePowerBar() {
if (_root.gameMode == "action") {
barPer = actionPower;
} else {
thisRoundTarget = myScoreTarget - lastScoreTarget;
thisRoundScore = myScore - lastScoreTarget;
barPer = Math.round((thisRoundScore / thisRoundTarget) * 500);
}
if (boardinAnimate.mainboard.powerbar._currentframe < barPer) {
dist = barPer - boardinAnimate.mainboard.powerbar._currentframe;
if (dist > 50) {
boardinAnimate.mainboard.powerbar.nextFrame();
boardinAnimate.mainboard.powerbar.nextFrame();
boardinAnimate.mainboard.powerbar.nextFrame();
boardinAnimate.mainboard.powerbar.nextFrame();
} else if (dist > 30) {
boardinAnimate.mainboard.powerbar.nextFrame();
boardinAnimate.mainboard.powerbar.nextFrame();
boardinAnimate.mainboard.powerbar.nextFrame();
} else if (dist > 15) {
boardinAnimate.mainboard.powerbar.nextFrame();
boardinAnimate.mainboard.powerbar.nextFrame();
} else {
boardinAnimate.mainboard.powerbar.nextFrame();
}
if (boardinAnimate.mainboard.powerbar._currentframe == 500) {
if (gamePhase == "norm") {
levelEnd();
}
}
} else if (boardinAnimate.mainboard.powerbar._currentframe > barPer) {
boardinAnimate.mainboard.powerbar.prevFrame();
}
}
scorePopDepth = 50000;
testScoreDepthy = 70000 /* 0x011170 */;
myScore = 0;
combocount = 1;
basepoints = 10;
scorecombocount = 0;
powerTarget = 0;
currentPower = 0;
autoHintTimer = 0;
autoHintAt = 1000;
lastScoreYHack = -100;
mTimedBonus = 130;
mTimedBonusMult = 50;
mTimedBonusAccel = 10;
mTimedPMBase = 20;
mTimedPMMult = 10;
TimedPV = 50;
TimedPA = 0.26;
TimedPJ = 0.00121;
TimedLevelAdvance = 135;
GraceSeconds = 0.2;
GraceSecondsMult = 0.002;
GraceSecondsMax = 1;
delayGraceTimer = 0;
function setupActionGame() {
actionDec = 6;
actionTimer = 75;
actionTimeOver = false;
delayGraceTimer = 0;
}
function setupActionLevel() {
currentPower = powerTarget / 2;
boardinAnimate.mainboard.powerbar.gotoAndStop(50);
if (actionTimer > 15) {
actionTimer = actionTimer - 9;
} else if (actionDec < 12) {
actionDec++;
}
actionCounter = 0;
redflash = false;
mPointMultiplier = mTimedPMBase + (levelOn * mTimedPMMult);
mPointsPerQuake = int(mTimedBonus * mPointMultiplier);
mTimedBonus = mTimedBonus + mTimedBonusMult;
mTimedBonusMult = mTimedBonusMult + mTimedBonusAccel;
mBonusPenalty = 0;
finalActionPower = 0;
if (aLastPointMultiplier == undefined) {
trace("\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3 RESET ACTION MODE");
mTimedPenaltyVel = TimedPV;
mTimedPenaltyAccel = TimedPA;
mTimedPenaltyJerk = TimedPJ;
} else {
aScale = mPointMultiplier / aLastPointMultiplier;
mTimedPenaltyVel = mTimedPenaltyVel * aScale;
mTimedPenaltyAccel = mTimedPenaltyAccel * aScale;
mTimedPenaltyJerk = mTimedPenaltyJerk * aScale;
aTimeToAdvance = TimedLevelAdvance;
mTimedPenaltyVel = mTimedPenaltyVel + (mTimedPenaltyAccel * aTimeToAdvance);
mTimedPenaltyAccel = mTimedPenaltyAccel + (mTimedPenaltyJerk * aTimeToAdvance);
}
aLastPointMultiplier = mPointMultiplier;
mLastQuakePoints = myScore;
mNextQuakePoints = myScore + mPointsPerQuake;
clearInterval(_root.myBonusUpdate);
_root.myBonusUpdate = setInterval(UpdateBonusPenalty, 100);
}
function UpdateBonusPenalty() {
if (gamePaused == false) {
if (delayGraceTimer > 0) {
delayGraceTimer--;
} else {
aPenaltyPct = Math.min((boardinAnimate.mainboard.powerbar._currentframe / mBarLen) + 0.65, 1);
mBonusPenalty = mBonusPenalty + ((mTimedPenaltyVel * aPenaltyPct) / 10);
mTimedPenaltyVel = mTimedPenaltyVel + ((mTimedPenaltyAccel * aPenaltyPct) / 10);
mTimedPenaltyAccel = mTimedPenaltyAccel + ((mTimedPenaltyJerk * aPenaltyPct) / 10);
trace("************* " + getTimer());
trace("mTimedPenaltyVel = " + mTimedPenaltyVel);
}
}
}
function runActionMode() {
aBonusBarLen = (((((myScore - mLastQuakePoints) - mBonusPenalty) * mBarLen) / 2) / (mNextQuakePoints - mLastQuakePoints)) + (mBarLen / 2);
actionPower = int(aBonusBarLen);
if (boardinAnimate.mainboard.powerbar._currentframe < 50) {
if (redflash == false) {
boardinAnimate.mainboard.redlights.gotoAndStop(2);
boardinAnimate.mainboard.powerbar.end1.gotoAndPlay(2);
boardinAnimate.mainboard.powerbar.end2.gotoAndPlay(2);
boardinAnimate.mainboard.powerbar.bar.gotoAndPlay(2);
redflash = true;
}
} else if (redflash == true) {
boardinAnimate.mainboard.redlights.gotoAndStop(1);
boardinAnimate.mainboard.powerbar.end1.gotoAndStop(1);
boardinAnimate.mainboard.powerbar.end2.gotoAndStop(1);
boardinAnimate.mainboard.powerbar.bar.gotoAndStop(1);
redflash = false;
}
if (gamePhase == "norm") {
if (((boardinAnimate.mainboard.powerbar._currentframe == 1) && (gamePhase != "gameover")) && (gamePhase != "dead")) {
actionTimeOver = true;
startGameOver();
}
}
}
function actionPause() {
_root.muteSounds();
if (levelInPlay != false) {
if (myFirstDropBaby == false) {
gamePaused = true;
removeAllHints();
actionHideGems();
actionpPop.gotoAndStop(2);
_root.pauseTime();
} else {
flagMeUpBaby = true;
}
}
}
function actionResume() {
if (_root.isSound == true) {
_root.unMuteSounds();
} else if (_root.isSound == false) {
_root.muteSounds();
}
gamePaused = false;
actionpPop.gotoAndStop(1);
actionRevealGems();
_root.resumeTime();
}
function actionHideGems() {
lc = 0;
while (lc < boardWidth) {
lr = boardHeight - 1;
while (lr > -1) {
boardArray[lc][lr]._visible = false;
lr--;
}
lc++;
}
gcs = 0;
while (gcs < gemsShrinking.length) {
gemsShrinking[gcs]._visible = false;
gcs++;
}
for (sed in shardsOn) {
shardsOn[sed]._visible = false;
}
removeAllHints();
}
function actionRevealGems() {
lc = 0;
while (lc < boardWidth) {
lr = boardHeight - 1;
while (lr > -1) {
boardArray[lc][lr]._visible = true;
lr--;
}
lc++;
}
gcs = 0;
while (gcs < gemsShrinking.length) {
gemsShrinking[gcs]._visible = true;
gcs++;
}
for (sed in shardsOn) {
shardsOn[sed]._visible = true;
}
}
actionTimer = 70;
actionDec = 3;
actionCounter = 0;
redflash = false;
actionTimeOver = false;
mBarLen = 500;
map1 = [[9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9], [9, 5, 4, 6, 5, 4, 5, 9], [9, 5, 4, 6, 5, 4, 5, 9], [9, 4, 5, 5, 6, 5, 4, 9], [3, 2, 1, 7, 7, 1, 2, 3], [3, 2, 1, 7, 7, 1, 2, 3], [2, 3, 7, 1, 1, 7, 3, 2]];
map2 = [[9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9], [6, 4, 1, 5, 2, 7, 4, 3], [3, 6, 4, 1, 5, 2, 7, 4], [6, 4, 1, 5, 2, 7, 4, 3]];
map3 = [[9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 4, 4, 9, 9, 9, 9], [9, 6, 1, 6, 9, 9, 9, 9], [9, 1, 6, 1, 9, 9, 9, 9], [9, 6, 1, 6, 9, 9, 9, 9], [9, 1, 6, 1, 9, 9, 9, 9], [9, 6, 1, 6, 5, 5, 9, 9], [9, 1, 6, 1, 14, 5, 9, 9]];
map4 = [[9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 5], [9, 9, 9, 9, 9, 9, 9, 5], [9, 9, 9, 9, 4, 9, 4, 4], [9, 6, 4, 3, 7, 2, 6, 5], [9, 6, 4, 3, 7, 2, 6, 5], [9, 4, 3, 7, 2, 6, 5, 1], [9, 6, 4, 3, 7, 2, 6, 5]];
map5 = [[9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 5, 9, 9], [9, 9, 9, 9, 1, 4, 9, 9], [9, 9, 9, 9, 1, 4, 9, 9], [9, 9, 7, 2, 4, 1, 9, 9], [9, 9, 7, 4, 6, 4, 9, 9], [9, 9, 4, 7, 4, 6, 9, 9], [9, 9, 7, 5, 5, 6, 9, 9]];
map6 = [[9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 1, 9, 9], [9, 9, 9, 9, 6, 5, 6, 9], [9, 9, 9, 9, 4, 6, 4, 9], [9, 9, 9, 9, 2, 4, 2, 9], [9, 9, 9, 9, 6, 2, 6, 9], [9, 9, 9, 9, 4, 6, 4, 9], [1, 9, 9, 5, 5, 4, 5, 5]];
map7 = [[9, 9, 9, 9, 5, 4, 9, 9], [9, 9, 9, 9, 1, 4, 9, 9], [9, 9, 9, 9, 1, 2, 9, 9], [3, 9, 9, 9, 6, 1, 5, 8], [6, 9, 9, 9, 5, 1, 4, 8], [7, 9, 9, 9, 5, 7, 1, 8], [2, 9, 9, 6, 3, 5, 6, 8], [4, 9, 9, 5, 4, 1, 6, 8]];
function copySolutions() {
copyMySol = [];
for (cms in currentPuzSolutions) {
copyMeToo = [];
meToo = 0;
while (meToo < currentPuzSolutions[cms].length) {
copyMeToo.push(currentPuzSolutions[cms][meToo]);
meToo++;
}
copyMySol.push(copyMeToo);
}
solutionsUndo.push(copyMySol);
}
function reverseSolutions() {
currentPuzSolutions = [];
solutionsUndo.pop();
thisTurnsSol = solutionsUndo.pop();
for (fft in thisTurnsSol) {
currentPuzSolutions.push(thisTurnsSol[fft]);
}
}
function puzzleHintClick() {
if (gamePhase == "norm") {
if (puzzleSolveable == false) {
_parent.hintShow.gotoAndStop(3);
} else if ((currentPuzSolutions.length > 1) or (currentPuzSolutions[0].length > 1)) {
puzzHintLoc = findValidGeminPaths();
popHintArrow(puzzHintLoc[0]);
popHintArrow(puzzHintLoc[1], true);
} else {
trace("uno");
popHintArrow(findCoordBoard(currentPuzSolutions[0][0][0], true));
popHintArrow(findCoordBoard(currentPuzSolutions[0][0][1], true), true);
}
}
}
function findValidGeminPaths() {
for (mpv in currentPuzSolutions) {
thisPc = currentPuzSolutions[mpv];
for (fgh in thisPc) {
puzzLoca = thisPc[fgh];
puzzGee1 = findCoordBoard(puzzLoca[0], true);
puzzGee2 = findCoordBoard(puzzLoca[1], true);
puzz1Neighs = getGemNeighs(puzzGee1);
for (pcf in puzz1Neighs) {
if (puzz1Neighs[pcf] == puzzGee2) {
trace("NEXT TO");
swapGemVars(puzzGee1, puzzGee2, true);
willMatchUp1 = checkIMatch(puzzGee1, true);
willMatchUp2 = checkIMatch(puzzGee2, true);
swapGemVars(puzzGee1, puzzGee2, true);
if ((((willMatchUp1 == true) or (willMatchUp2 == true)) or (puzzGee2.isHyper == true)) or (puzzGee1.isHyper == true)) {
return([puzzGee1, puzzGee2]);
}
}
}
}
}
return(false);
}
function findCoordBoard(bbcCoords, blankok) {
slc = 0;
while (slc < boardWidth) {
slr = boardHeight - 1;
while (slr > -1) {
if (((boardArray[slc][slr].originalRow == bbcCoords[0]) && (boardArray[slc][slr].originalCol == bbcCoords[1])) && (boardArray[slc][slr].myType != 9)) {
if (blankok == true) {
return(boardArray[slc][slr]);
}
if (boardArray[slc][slr].myType != 9) {
return(boardArray[slc][slr]);
}
}
slr--;
}
slc++;
}
return(false);
}
function puzzUndoToPoss() {
while (puzzleSolveCount > 1) {
puzzleUndo.pop();
puzzleUndoOrgPos.pop();
reverseSolutions();
copySolutions();
puzzleSolveCount--;
}
puzzleUndeMove();
}
function setupPuzzHints() {
resetPuzzAns();
solutionsUndo = [];
copySolutions();
puzzleSolveable = true;
puzzleSolveCount = 0;
}
function resetPuzzAns() {
myPuzHints = this[("puzzle" + levelOn) + "Solutions"];
currentPuzSolutions = [];
for (mph in myPuzHints) {
copyAlso = [];
gogo = 0;
while (gogo < myPuzHints[mph].length) {
copyAlso.push(myPuzHints[mph][gogo]);
gogo++;
}
currentPuzSolutions.push(copyAlso);
}
}
function doubleCheckBoard() {
if (puzzleSolveable == true) {
if ((levelOn == 4) && (mrPuzMoveCount == 7)) {
return(undefined);
}
testCanHint = findValidGeminPaths();
if (testCanHint == false) {
puzzleSolveable = false;
puzzleSolveCount++;
}
}
}
function makePuzzleMove(pbuild1, pbuild2) {
mrPuzMoveCount++;
trace(" MY MOVES = " + mrPuzMoveCount);
hackblock = false;
if (levelOn == 4) {
if ((pbuild1.myRow == 3) && (pbuild1.myCol == 4)) {
if ((pbuild2.myRow == 3) && (pbuild2.myCol == 5)) {
hackblock = true;
}
} else if ((pbuild2.myRow == 3) && (pbuild2.myCol == 4)) {
if ((pbuild1.myRow == 3) && (pbuild1.myCol == 5)) {
hackblock = true;
}
}
}
canCompletePuzz = false;
for (lps in currentPuzSolutions) {
flagPuzzValid = false;
isItHere = puzzleMoveInPath(currentPuzSolutions[lps], pbuild1, pbuild2, true);
if (isItHere == true) {
canCompletePuzz = true;
flagPuzzValid = true;
}
if ((flagPuzzValid == false) or (hackblock == true)) {
if (hackblock) {
canCompletePuzz = false;
}
currentPuzSolutions.splice(lps, 1);
}
}
if (currentPuzSolutions.length < 1) {
trace("IMPOSSIBLE");
puzzleSolveable = false;
puzzleSolveCount++;
} else {
trace("POSSIBLE");
if (puzzleSolveable == false) {
puzzleSolveCount++;
}
}
copySolutions();
}
function puzzleMoveInPath(myPathoo, ppMoo1, ppMoo2, splicer) {
for (oop in myPathoo) {
grabCoords = myPathoo[oop];
pFirstIn = false;
pSecondIn = false;
isMeAMatch = clipMatchCoords(ppMoo1, ppMoo2, grabCoords);
if (isMeAMatch == true) {
if (splicer == true) {
myPathoo.splice(oop, 1);
}
return(true);
}
}
return(false);
}
function clipMatchCoords(pMove1, pMove2, theseCoords) {
if ((pMove1.originalRow == theseCoords[0][0]) && (pMove1.originalCol == theseCoords[0][1])) {
pFirstIn = true;
} else if ((pMove1.originalRow == theseCoords[1][0]) && (pMove1.originalCol == theseCoords[1][1])) {
pFirstIn = true;
}
if ((pMove2.originalRow == theseCoords[0][0]) && (pMove2.originalCol == theseCoords[0][1])) {
pSecondIn = true;
} else if ((pMove2.originalRow == theseCoords[1][0]) && (pMove2.originalCol == theseCoords[1][1])) {
pSecondIn = true;
}
if ((pSecondIn == true) && (pFirstIn == true)) {
return(true);
}
return(false);
}
function undoPuzzleMove() {
reverseSolutions();
copySolutions();
mrPuzMoveCount--;
puzzleSolveCount--;
if (puzzleSolveCount < 1) {
puzzleSolveable = true;
puzzleSolveCount = 0;
}
solBuilder = [];
}
function buildSolution(builder1, builder2) {
solBuilder.push(((((((("[" + builder1.originalRow) + ",") + builder1.originalCol) + "],[") + builder2.originalRow) + ",") + builder2.originalCol) + "]");
}
function traceSolution() {
solString = "[";
for (idd in solBuilder) {
solString = solString + (("[" + solBuilder[idd]) + "],");
}
solString = solString + "]";
trace("************");
trace(solString);
trace("************");
}
currentPuzSolutions = [];
validPairs = [];
puzzleSolveable = true;
puzzleSolveCount = 0;
solutionsUndo = [];
mrPuzMoveCount = 0;
puzzle1Solutions = [[[[7, 1], [7, 0]], [[7, 3], [7, 2]], [[7, 5], [7, 4]], [[7, 7], [7, 6]], [[4, 5], [4, 6]], [[4, 3], [4, 4]], [[4, 1], [4, 2]]]];
puzzle2Solutions = [[[[6, 7], [6, 0]], [[6, 6], [6, 0]], [[6, 5], [6, 0]], [[6, 0], [6, 4]], [[6, 3], [6, 0]], [[6, 0], [6, 2]], [[6, 0], [6, 1]]]];
puzzle3Solutions = [[[[3, 2], [2, 2]], [[5, 2], [4, 2]], [[7, 2], [6, 2]]], [[[6, 2], [7, 2]], [[2, 2], [5, 2]], [[4, 2], [3, 2]]], [[[2, 2], [7, 2]], [[3, 2], [6, 2]], [[4, 2], [5, 2]]], [[[2, 2], [3, 2]], [[7, 2], [4, 2]], [[5, 2], [6, 2]]], [[[2, 2], [7, 2]], [[3, 2], [4, 2]], [[6, 2], [5, 2]]], [[[6, 2], [7, 2]], [[2, 2], [3, 2]], [[5, 2], [4, 2]]], [[[2, 2], [7, 2]], [[3, 2], [4, 2]], [[6, 2], [5, 2]]], [[[2, 2], [6, 1]], [[7, 3], [6, 3]], [[6, 1], [6, 2]], [[4, 3], [4, 2]]], [[[2, 1], [7, 1]], [[2, 3], [3, 3]], [[6, 2], [6, 3]], [[4, 1], [4, 2]]], [[[5, 3], [7, 2]], [[5, 1], [6, 1]], [[5, 3], [5, 2]], [[3, 1], [3, 2]]], [[[5, 1], [7, 2]], [[5, 3], [6, 3]], [[5, 1], [5, 2]], [[3, 3], [3, 2]]], [[[6, 3], [2, 2]], [[6, 1], [7, 1]], [[6, 2], [6, 3]], [[4, 1], [4, 2]]], [[[7, 2], [2, 2]], [[3, 1], [4, 1]], [[6, 2], [6, 1]], [[4, 3], [4, 2]]], [[[2, 3], [7, 3]], [[2, 1], [3, 1]], [[6, 1], [6, 2]], [[4, 3], [4, 2]]], [[[2, 2], [7, 2]], [[4, 3], [3, 3]], [[6, 3], [6, 2]], [[4, 1], [4, 2]]], [[[6, 1], [7, 1]], [[6, 3], [2, 2]], [[6, 3], [6, 2]], [[4, 1], [4, 2]]], [[[6, 3], [7, 3]], [[6, 1], [2, 2]], [[6, 2], [6, 1]], [[4, 2], [4, 3]]], [[[6, 2], [7, 2]], [[2, 1], [3, 1]], [[5, 2], [5, 1]], [[3, 2], [3, 3]]]];
puzzle4Solutions = [[[[3, 4], [3, 5]], [[6, 7], [7, 1]], [[6, 7], [6, 1]], [[6, 7], [6, 2]], [[6, 7], [6, 3]], [[6, 7], [6, 4]], [[6, 7], [6, 5]], [[6, 7], [6, 6]]]];
puzzle5Solutions = [[[[4, 4], [5, 4]], [[4, 5], [4, 4]]], [[[6, 2], [3, 2]], [[5, 4], [4, 4]], [[6, 2], [7, 2]], [[4, 4], [4, 5]]], [[[6, 2], [3, 2]], [[5, 4], [4, 4]], [[4, 4], [4, 5]], [[6, 2], [7, 2]]]];
puzzle6Solutions = [[[[2, 5], [1, 5]], [[3, 5], [2, 5]], [[4, 5], [3, 5]], [[5, 5], [4, 5]], [[6, 5], [5, 5]], [[7, 5], [6, 5]]], [[[2, 5], [1, 5]], [[7, 5], [2, 5]], [[6, 5], [2, 5]], [[5, 5], [3, 5]], [[4, 5], [3, 5]]], [[[2, 5], [1, 5]], [[2, 5], [3, 5]], [[3, 5], [7, 5]], [[4, 5], [6, 5]], [[4, 5], [5, 5]]], [[[2, 5], [1, 5]], [[2, 5], [7, 5]], [[2, 5], [5, 5]], [[2, 5], [3, 5]], [[3, 5], [4, 5]], [[5, 5], [6, 5]]], [[[2, 5], [1, 5]], [[2, 5], [7, 5]], [[4, 5], [6, 5]], [[5, 5], [4, 5]], [[2, 5], [3, 5]]], [[[2, 5], [1, 5]], [[2, 5], [3, 5]], [[3, 5], [7, 5]], [[3, 5], [5, 5]], [[4, 5], [3, 5]], [[5, 5], [6, 5]]], [[[2, 5], [1, 5]], [[2, 5], [7, 5]], [[2, 5], [6, 5]], [[2, 5], [5, 5]], [[2, 5], [4, 5]], [[3, 5], [2, 5]]], [[[2, 5], [1, 5]], [[2, 5], [6, 5]], [[5, 5], [2, 5]], [[7, 5], [6, 5]], [[2, 5], [4, 5]], [[2, 5], [3, 5]]], [[[2, 5], [1, 5]], [[4, 5], [2, 5]], [[5, 5], [4, 5]], [[6, 5], [5, 5]], [[7, 5], [6, 5]], [[2, 5], [3, 5]]], [[[2, 5], [1, 5]], [[5, 5], [2, 5]], [[6, 5], [5, 5]], [[7, 5], [6, 5]], [[2, 5], [4, 5]], [[2, 5], [3, 5]]], [[[2, 5], [1, 5]], [[2, 5], [6, 5]], [[2, 5], [4, 5]], [[2, 5], [3, 5]], [[6, 5], [7, 5]], [[5, 5], [4, 5]]], [[[1, 5], [0, 5]], [[1, 5], [6, 5]], [[5, 6], [1, 5]], [[1, 5], [3, 5]], [[2, 5], [1, 5]], [[5, 6], [5, 5]]], [[[1, 5], [2, 5]], [[6, 5], [2, 5]], [[3, 5], [5, 5]], [[7, 5], [6, 5]], [[3, 5], [4, 5]]], [[[1, 5], [2, 5]], [[5, 5], [2, 5]], [[5, 5], [7, 5]], [[4, 5], [2, 5]], [[5, 5], [6, 5]], [[3, 5], [2, 5]]], [[[1, 5], [2, 5]], [[2, 5], [7, 5]], [[3, 5], [2, 5]], [[3, 5], [5, 5]], [[3, 5], [4, 5]], [[6, 5], [5, 5]]], [[[2, 5], [1, 5]], [[2, 5], [4, 5]], [[4, 5], [6, 5]], [[4, 5], [5, 5]], [[3, 5], [2, 5]], [[7, 5], [6, 5]]], [[[1, 5], [2, 5]], [[2, 5], [7, 5]], [[2, 5], [6, 5]], [[3, 5], [4, 5]], [[4, 5], [5, 5]]], [[[2, 5], [1, 5]], [[2, 5], [7, 5]], [[5, 5], [4, 5]], [[5, 5], [6, 5]], [[2, 5], [3, 5]]], [[[2, 5], [1, 5]], [[6, 5], [2, 5]], [[7, 5], [6, 5]], [[4, 5], [3, 5]], [[5, 5], [4, 5]]], [[[2, 5], [1, 5]], [[2, 5], [6, 5]], [[4, 5], [3, 5]], [[7, 5], [6, 5]], [[4, 5], [5, 5]]], [[[1, 5], [2, 5]], [[2, 5], [7, 5]], [[2, 5], [6, 5]], [[2, 5], [5, 5]], [[3, 5], [2, 5]], [[4, 5], [3, 5]]], [[[1, 5], [2, 5]], [[2, 5], [6, 5]], [[6, 5], [7, 5]], [[3, 5], [5, 5]], [[4, 5], [3, 5]]], [[[1, 5], [2, 5]], [[7, 5], [2, 5]], [[2, 5], [5, 5]], [[2, 5], [4, 5]], [[2, 5], [3, 5]], [[5, 5], [6, 5]]], [[[2, 5], [1, 5]], [[3, 5], [2, 5]], [[4, 5], [3, 5]], [[5, 5], [4, 5]], [[7, 5], [5, 5]], [[6, 5], [5, 5]]], [[[1, 5], [2, 5]], [[5, 5], [2, 5]], [[3, 5], [2, 5]], [[4, 5], [3, 5]], [[5, 5], [7, 5]], [[6, 5], [5, 5]]], [[[2, 5], [1, 5]], [[2, 5], [3, 5]], [[3, 5], [5, 5]], [[5, 5], [7, 5]], [[6, 5], [5, 5]], [[4, 5], [3, 5]]], [[[2, 5], [1, 5]], [[2, 5], [5, 5]], [[5, 5], [6, 5]], [[2, 5], [3, 5]], [[6, 5], [7, 5]], [[3, 5], [4, 5]]], [[[1, 5], [2, 5]], [[3, 5], [2, 5]], [[3, 5], [7, 5]], [[5, 5], [4, 5]], [[5, 5], [6, 5]]], [[[2, 5], [1, 5]], [[2, 5], [3, 5]], [[3, 5], [5, 5]], [[3, 5], [4, 5]], [[6, 5], [5, 5]], [[7, 5], [6, 5]]], [[[1, 5], [2, 5]], [[2, 5], [6, 5]], [[6, 5], [7, 5]], [[2, 5], [5, 5]], [[2, 5], [3, 5]], [[3, 5], [4, 5]]]];
puzzle7Solutions = [[[[7, 4], [3, 7]], [[3, 6], [7, 4]], [[7, 7], [7, 6]], [[7, 5], [7, 4]], [[6, 7], [6, 4]], [[6, 6], [6, 4]], [[6, 5], [6, 4]], [[2, 5], [4, 7]], [[4, 6], [2, 5]], [[5, 5], [5, 7]], [[5, 6], [5, 5]]], [[[3, 7], [2, 5]], [[3, 6], [2, 5]], [[7, 7], [7, 6]], [[6, 7], [6, 4]], [[5, 7], [5, 5]], [[4, 6], [4, 7]], [[7, 4], [7, 5]], [[6, 4], [6, 6]], [[6, 4], [6, 5]], [[5, 5], [5, 6]], [[2, 5], [1, 5]], [[6, 5], [2, 5]], [[7, 5], [6, 5]], [[2, 5], [5, 5]], [[2, 5], [4, 5]], [[2, 5], [3, 5]]], [[[2, 5], [3, 7]], [[3, 6], [2, 5]], [[7, 7], [7, 6]], [[5, 7], [5, 5]], [[4, 7], [4, 6]], [[2, 5], [7, 4]], [[7, 5], [7, 4]], [[6, 4], [6, 7]], [[6, 6], [6, 4]], [[5, 6], [5, 5]], [[6, 5], [6, 4]]]];
breakCount = 0;
solBuilder = [];
function puzzleForceLevelStart(targLevel, skipper) {
_parent.levelStartPop.gotoAndStop(1);
levelOn = targLevel - 1;
levelInPlay = false;
gamePhase = "levelEnd";
actionpPop.gotoAndStop(1);
numBomb = 0;
numHyper = 0;
clearEverything();
forcePuzzleLevel(true, skipper);
killMrLighting();
mrPuzMoveCount = 0;
solBuilder = [];
}
function puzzleNewLevel() {
puzzleBoard = this["map" + levelOn];
numBomb = 0;
numHyper = 0;
setupPuzzHints();
mrPuzMoveCount = 0;
}
function puzzleForcePosition() {
lc = 0;
while (lc < boardWidth) {
lr = boardHeight - 1;
while (lr > -1) {
boardArray[lc][lr]._x = boardArray[lc][lr].xTarg;
boardArray[lc][lr]._y = boardArray[lc][lr].yTarg;
lr--;
}
lc++;
}
boardinAnimate.scordp.puzzlemaps["puzbut" + levelOn].gotoAndStop(2);
setPDisplay();
dropArray = [];
}
function puzzleRunMode() {
currentPower = 0;
}
function puzzleCheckWin() {
puzzGemFound = false;
lc = 0;
while (lc < boardWidth) {
lr = boardHeight - 1;
while (lr > -1) {
if ((boardArray[lc][lr].myType != undefined) && (boardArray[lc][lr].myType < 9)) {
puzzGemFound = true;
}
lr--;
}
lc++;
}
if (puzzGemFound == true) {
return(false);
}
puzzlesComplete.push(levelOn);
return(true);
}
function puzzleEndLevel() {
levelInPlay = false;
gamePhase = "levelEnd";
numBomb = 0;
numHyper = 0;
_root.pauseTime();
textPop(7);
_root.playSound("solved");
}
function forcePuzzleLevel(noTutey, skipper) {
skipcreate = false;
numBomb = 0;
numHyper = 0;
puzGameCompp = false;
allPuzzyDone = returnPuzzUnsolved();
if ((allPuzzyDone == false) && (skipper != true)) {
remAllGems();
actionpPop.gotoAndStop(3);
} else {
if (skipper != true) {
if (allPuzzyDone > 0) {
levelOn = allPuzzyDone - 1;
} else {
levelOn = allPuzzyDone;
}
}
if (noTutey != true) {
if (levelOn == 2) {
if (puz2shown == false) {
remAllGems();
boardinAnimate.mainboard.pztutes.gotoAndStop(3);
puz2shown = true;
skipcreate = true;
}
} else if (levelOn == 5) {
if (puz3shown == false) {
remAllGems();
boardinAnimate.mainboard.pztutes.gotoAndStop(4);
puz3shown = true;
skipcreate = true;
}
}
}
if (skipcreate == false) {
newLevel();
boardinAnimate.gotoAndStop(boardinAnimate._totalframes);
}
}
puzzleUndo = [];
setPDisplay();
}
function returnPuzzUnsolved() {
resetpxc = false;
pxc = levelOn;
while (pxc < 8) {
levHasDone = false;
for (pzc in puzzlesComplete) {
if (pxc == puzzlesComplete[pzc]) {
levHasDone = true;
}
}
if ((levHasDone != true) && (pxc < 8)) {
return(pxc);
}
if ((resetpxc == false) && (pxc > 6)) {
pxc = 0;
resetpxc = true;
}
pxc++;
}
return(false);
}
function setPDisplay() {
for (gfd in puzzlesComplete) {
trace("highlight " + puzzlesComplete[gfd]);
trace("c frame = " + boardinAnimate.scordp.puzzlemaps["puzbut" + puzzlesComplete[gfd]]._currentframe);
if (boardinAnimate.scordp.puzzlemaps["puzbut" + puzzlesComplete[gfd]]._currentframe != 2) {
boardinAnimate.scordp.puzzlemaps["puzbut" + puzzlesComplete[gfd]].gotoAndStop(3);
}
}
}
function puzzTutetwo() {
puzzExplode(4, 100, 300);
puzzExplode(4, 140, 300);
puzzExplode(2, 140, 240);
puzzExplode(4, 180, 300);
puzzExplode(2, 220, 300);
}
function puzzTutethree() {
puzzExplode(2, 20, 300);
puzzExplode(2, 60, 300);
puzzExplode(2, 140, 300);
puzzExplode(2, 180, 300);
puzzExplode(2, 180, 240);
puzzExplode(2, 260, 300);
}
function puzzExplode(col, pxx, pyy) {
bs = 0;
while (bs < numberShards) {
createShard(col, pxx, pyy);
bs++;
}
}
function puzzFirstTuteEnd() {
puz1shown = true;
beginGame();
}
function puzzleCopyBoard() {
pzUndo = [];
pzUndoOrg = [];
lc = 0;
while (lc < boardWidth) {
pzRow = [];
pzoRow = [];
lr = boardHeight - 1;
while (lr > -1) {
gType = boardArray[lr][lc].myType;
if (boardArray[lr][lc].bangMe == true) {
gType = gType + 10;
}
pzRow.push(gType);
pzoRow.push([boardArray[lr][lc].originalRow, boardArray[lr][lc].originalCol]);
lr--;
}
pzRow.reverse();
pzUndo.push(pzRow);
pzUndoOrg.push(pzoRow);
lc++;
}
puzzleUndo.push(pzUndo);
puzzleUndoOrgPos.push(pzUndoOrg);
}
function puzzleUndeMove() {
if (gamePhase == "norm") {
if (puzzleUndo.length > 1) {
remAllGems();
levelInPlay = false;
boardArray = resetBoard();
puzzleUndo.pop();
puzzleBoard = puzzleUndo.pop();
puzzleUndoOrgPos.pop();
puzzleBoardRestore = puzzleUndoOrgPos.pop();
puzzResetOrg = true;
boardFill(true);
puzzleForcePosition();
gamePhase = "drop";
if (actionpPop._currentframe == 4) {
actionpPop.gotoAndStop(1);
}
levelInPlay = true;
undoPuzzleMove();
madeHyper = false;
madeBoom = false;
}
}
}
puzzleBoard = [];
puzzleUndo = [];
puzzleUndoOrgPos = [];
puzzlesComplete = [];
puzzResetOrg = false;
puzzleBoardRestore = [];
puz1shown = false;
puz2shown = false;
puz3shown = false;
function beginGame() {
levelOn = 0;
myScore = 0;
myScoreTarget = 0;
lastScoreTarget = 0;
lastLevelScore = 0;
API_timer = API_btime;
_root.gameDuration = 0;
_root.gemsCollected = 0;
_root.biggestCascade = 0;
_root.biggestCombo = 0;
_root.totalScore = 0;
showPower = false;
showHyper = false;
doneBang = false;
doneHyper = false;
madeHyper = false;
madeBoom = false;
_root.resetTimer();
if (_root.gameMode == "action") {
setupActionGame();
}
if (_root.gameMode == "puzzle") {
if (puz1shown == false) {
boardinAnimate.gotoAndPlay(2);
} else {
newLevel();
boardinAnimate.gotoAndStop(boardinAnimate._totalframes);
}
} else {
newLevel();
}
}
function newLevel() {
clearEverything();
API_timer = API_btime;
randomSpecials();
lastLevelScore = myScore;
lastScoreTarget = myScoreTarget;
mPointMultiplier = NormPMBase + (levelOn * NormPMMult);
myScoreTarget = myScoreTarget + int((NormBonus + (levelOn * NormBonusMult)) * mPointMultiplier);
levelOn++;
if ((levelOn % 2) != 0) {
_root.soundTracks.nextGameTrack();
}
if (_root.gameMode == "puzzle") {
puzzleNewLevel();
}
boardArray = resetBoard();
boardFill(true);
myFirstDropBaby = true;
if (_root.gameMode != "puzzle") {
powerTarget = 500 + (levelOn * 150);
currentPower = 0;
boardinAnimate.mainboard.powerbar.gotoAndStop(1);
if (levelOn == 1) {
textPop(1, true);
} else {
textPop(2, true);
}
}
gamePhase = "drop";
boardinAnimate.gotoAndPlay(2);
madeHyper = false;
madeBoom = false;
_root.resumeTime();
levelInPlay = true;
if (_root.gameMode == "action") {
setupActionLevel();
}
}
function levelEnd() {
levelInPlay = false;
gamePhase = "levelEnd";
_root.pauseTime();
hideHint();
_root.playSound("levelcomplete");
_root.playSound("leveltrans");
bggCount = levelOn + 1;
madeHyper = false;
madeBoom = false;
while (bggCount > 18) {
bggCount = bggCount - 18;
}
_parent.gTrans(bggCount);
clearInterval(myBonusUpdate);
}
function clearEverything() {
randySpecials = [];
remAllGems();
ss = 0;
while (ss < shardsOn.length) {
shardsOn[ss].removeMovieClip();
ss++;
}
hideHint();
shardsOn = [];
bombCols = [];
boardinAnimate.gotoAndStop(1);
}
function remAllGems() {
lc = 0;
while (lc < boardWidth) {
lr = boardHeight - 1;
while (lr > -1) {
if (boardArray[lc][lr].bangMe == true) {
numBomb++;
}
if (boardArray[lc][lr].isHyper == true) {
numHyper++;
}
boardArray[lc][lr].removeMovieClip();
lr--;
}
lc++;
}
for (dc in dropArray) {
dropArray[dc].removeMovieClip();
}
for (gss in gemsShrinking) {
gemsShrinking[gss].removeMovieClip();
}
gemsShrinking = [];
hideHint();
dropArray = [];
madeHyper = false;
madeBoom = false;
}
function startGameOver() {
removeAllHints();
gamePhase = "gameover";
if ((_root.gameMode == "action") && (actionTimeOver == true)) {
textPop(8);
_root.playSound("timeup");
} else {
textPop(6);
_root.playSound("nomoves");
}
hideHint();
shakeCount = 50;
_root.totalScore = myScore;
}
function runGameOver() {
if (shakeCount > -1) {
removeAllHints();
flc = 0;
while (flc < boardWidth) {
flr = boardHeight - 1;
while (flr > -1) {
fmGem = boardArray[flc][flr];
if (shakeCount == 0) {
gemToShard(fmGem);
} else {
if (fmGem.orgX == undefined) {
fmGem.orgX = fmGem._x;
fmGem.orgY = fmGem._y;
}
fmGem._x = (fmGem.orgX + random(8)) - 4;
fmGem._y = (fmGem.orgY + random(8)) - 4;
}
flr--;
}
if (shakeCount == 0) {
_root.playSound("explosion2");
}
flc++;
}
} else if (shardsOn.length == 0) {
gamePhase = "dead";
_root.gameoverPop.gotoAndStop(2);
if (_root.zone_api == "true") {
_root.SubmitFinal();
}
}
shakeCount--;
}
gamePaused = false;
spacePressed = false;
actionpPop.swapDepths(99999999);
this.onEnterFrame = function () {
if (gamePaused == false) {
if (gamePhase == "drop") {
dropGems();
} else if (gamePhase == "gemswap") {
swapGems();
} else if (gamePhase == "gemshrink") {
gemShrink();
raiseBombCols();
} else if (gamePhase == "bombQ") {
bQueue();
raiseBombCols();
} else if (gamePhase == "lightning") {
runLightning();
raiseBombCols();
} else if (gamePhase == "gameover") {
runGameOver();
}
moveShards();
glowGems();
managePowerBar();
runGemDrag();
autoHintMe();
gClickTimer--;
if (_root.gameMode == "action") {
runActionMode();
} else if (_root.gameMode == "puzzle") {
puzzleRunMode();
}
if (_root.zone_api == "true") {
API_timer--;
if ((API_timer < 0) && (_root.pausedAt < 1)) {
_root.BroadcastGameScore();
API_timer = API_btime;
}
}
hackHintCount--;
if (hackHintCount == 1) {
removeAllHints();
}
_root.mmscore = myScore;
}
if (Key.isDown(32)) {
if (hackPauseT < 0) {
spacePressed = true;
}
} else if (spacePressed == true) {
if ((_root.options._currentframe == 1) && (_root.hintShow._currentframe == 1)) {
if ((gamePaused != true) && (levelInPlay == true)) {
masterPause();
} else if ((levelInPlay == true) && (gamePaused == true)) {
masterUnpause();
}
}
hackPauseT = 10;
spacePressed = false;
}
hackPauseT--;
hackSel--;
};
hackPauseT = 0;
API_timer = 0;
API_btime = 100;
this.onMouseMove = function () {
autoHintTimer = 0;
};
shakeCount = 20;
beginGame();
Symbol 1129 MovieClip Frame 2
stop();
_root.playSound("go");
Symbol 1132 MovieClip Frame 1
_root.leveltitleDisplay = (_root.txt_poplevelup + " ") + _parent._parent.levNum.toString();
Symbol 1152 MovieClip Frame 1
stop();
trace("*********** p count = " + _parent._parent._parent.maingame.returnPuzzUnsolved());
if (_parent._parent._parent.maingame.returnPuzzUnsolved() == false) {
gotoAndStop (2);
}
Symbol 1152 MovieClip Frame 2
blockit.useHandCursor = false;
Symbol 1156 MovieClip Frame 1
gotoAndStop(_parent.levFrame);
Symbol 1156 MovieClip Frame 2
_root.playSound("getready");
Symbol 1156 MovieClip Frame 3
_root.playSound("good");
Symbol 1156 MovieClip Frame 4
_root.playSound("excellent");
Symbol 1156 MovieClip Frame 5
_root.playSound("incredible");
Symbol 1157 MovieClip Frame 1
stop();
Symbol 1157 MovieClip Frame 80
if (_root.gameMode == "puzzle") {
if (tClip._currentframe == 7) {
_root.maingame.forcePuzzleLevel();
}
}
Symbol 1157 MovieClip Frame 85
if (_root.maingame.flagMeUpBaby) {
_root.maingame.actionPause();
_root.maingame.flagMeUpBaby = false;
}
Symbol 1161 Button
on (release) {
this._visible = false;
_root.shownThePower = true;
_root.maingame.hideHint();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1162 Button
on (release) {
_root.maingame.hideHint();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1167 Button
on (release) {
this._visible = false;
_root.shownTheHyper = true;
_root.maingame.hideHint();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1177 Button
on (release) {
_parent.gotoAndStop(1);
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1178 Button
on (release) {
_root.maingame.puzzUndoToPoss();
_parent.gotoAndStop(1);
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1183 MovieClip Frame 1
stop();
Symbol 1184 Button
on (release) {
_root.ppOff();
gotoAndStop (1);
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1188 Button
on (release) {
_root.maingame.hideHint();
gotoAndStop (1);
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1192 MovieClip Frame 1
stop();
delete this.onEnterFrame;
Symbol 1192 MovieClip Frame 2
bbut.useHandCursor = false;
Symbol 1192 MovieClip Frame 3
bbut.useHandCursor = false;
Symbol 1192 MovieClip Frame 4
bbut.useHandCursor = false;
spacePressedDown = false;
this.onEnterFrame = function () {
if (Key.isDown(32)) {
spacePressedDown = true;
} else if (spacePressedDown == true) {
_root.ppOff();
gotoAndStop (1);
spacePressedDown = false;
}
};
Symbol 1192 MovieClip Frame 5
bbut.useHandCursor = false;
Symbol 1209 Button
on (release) {
_root.maingame.playAgainPress();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1210 Button
on (release) {
_root.maingame.quitGamePress();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1305 Button
on (release) {
_global.ipbSend();
stop();
}
Symbol 1213 MovieClip Frame 1
_root.gameDuration = _root.returnTime();
blankiebut.useHandCursor = false;
Symbol 1214 MovieClip Frame 1
stop();
Symbol 1218 Button
on (release) {
if (soundclip._currentframe == 1) {
soundclip.gotoAndStop(2);
_root.isSound = false;
} else if (soundclip._currentframe == 2) {
soundclip.gotoAndStop(1);
_root.isSound = true;
}
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1219 Button
on (release) {
_root.maingame.showMeHelp();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1220 Button
on (release) {
_root.deluxeClick();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1221 Button
on (release) {
gotoAndStop (2);
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1222 Button
on (release) {
_root.maingame.hideMenu();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1231 Button
on (release) {
_root.maingame.quitGamePress();
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1232 Button
on (release) {
_root.maingame.hideMenu();
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1236 MovieClip Frame 1
if (_root.isSound == true) {
soundclip.gotoAndStop(1);
}
if (_root.isSound == false) {
soundclip.gotoAndStop(2);
}
stop();
bbut.useHandCursor = false;
Symbol 1237 MovieClip Frame 1
stop();
Symbol 1270 Button
on (release) {
if (_currentframe == 1) {
gotoAndStop (2);
} else {
tellmemorestuff.nextFrame();
}
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1277 Button
on (release) {
if (_root.backGame == true) {
if (_root.noTute != true) {
_root.hTrans(1, "tute");
} else {
_root.hTrans(1, "game");
}
_root.backGame = false;
} else {
_root.bTrans("menu");
}
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1282 Button
on (release) {
_root.deluxeClick();
_root.playSound("mouse_click");
}
on (rollOver) {
_root.playSound("mouse_over");
}
on (rollOut) {
_root.playSound("mouse_off");
}
Symbol 1289 MovieClip Frame 36
stop();
Symbol 1299 MovieClip Frame 1
stop();
Symbol 1299 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 1300 MovieClip Frame 1
stop();
bg.gotoAndStop(random(6) + 1);