[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (1.4 KiB) ●
_global.myMusicPlayer = new Music();
_global.SoundManager = new SoundPlayer();
_global.nextScreen = "title";
_global.trailOn = true;
_global.soundOn = true;
_global.musicOn = true;
_global.gameDifficulty = 1;
_global.cloudsMove = true;
_global.gamePaused = false;
_global.challengeUnlocked = true;
_global.lastScore = 0;
_global.hotKey_red = 49;
_global.hotKey_purple = 50;
_global.hotKey_blue = 51;
_global.hotKey_green = 52;
_global.hotKey_yellow = 53;
_global.hotKey_orange = 54;
_global.hotKey_multi = 55;
_global.lockRelease = false;
_global.lockHold = false;
var mySharedObject = SharedObject.getLocal("userData");
if (mySharedObject.data.challengeWritten == true) {
_global.challengeUnlocked = mySharedObject.data.challengeUnlocked;
}
if (mySharedObject.data.written == true) {
_global.trailOn = mySharedObject.data.trailOn;
_global.soundOn = mySharedObject.data.soundOn;
_global.musicOn = mySharedObject.data.musicOn;
_global.cloudsMove = mySharedObject.data.cloudsMove;
_global.hotKey_red = mySharedObject.data.hotKey_red;
_global.hotKey_purple = mySharedObject.data.hotKey_purple;
_global.hotKey_blue = mySharedObject.data.hotKey_blue;
_global.hotKey_green = mySharedObject.data.hotKey_green;
_global.hotKey_yellow = mySharedObject.data.hotKey_yellow;
_global.hotKey_orange = mySharedObject.data.hotKey_orange;
_global.hotKey_multi = mySharedObject.data.hotKey_multi;
}
stop();
Instance of Symbol 800 MovieClip in Frame 1 (0.98 KiB)
onClipEvent (load) {
myFlag = 0;
Counter = -1;
totalFileSize = _root.getBytesTotal();
startBytes = _root.getBytesLoaded();
}
onClipEvent (enterFrame) {
if (Counter == -1) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
_root.preloader.inside._xscale = percentLoaded;
myMessageOne = ((int(bytesLoaded / 1024) + "kb / ") + int(totalFileSize / 1024)) + "kb";
myMessageOne = ((myMessageOne + newline) + percentLoaded) + "%";
_root.loadingVars = myMessageOne;
if ((amountLoaded >= 1) && (myFlag == 0)) {
myFlag = 1;
Counter = 50;
}
} else if (Counter == 0) {
okToPlay = true;
siteURL = "http://www.herointeractive.com";
siteURL2 = "http://herointeractive.com";
if ((_url.substr(0, siteURL.length) == siteURL) || (_url.substr(0, siteURL2.length) == siteURL2)) {
okToPlay = true;
}
if (okToPlay) {
_root.preloader.gotoAndPlay(2);
Counter = -2;
}
} else {
Counter--;
}
}
Frame 19 (8 B)
stop();
Frame 20 (8 B)
stop();
Instance of Symbol 800 MovieClip in Frame 20 (259 B)
onClipEvent (load) {
if (_global.musicOn == true) {
_global.myMusicPlayer.SetTrack("titleMusic");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(4);
}
}
onClipEvent (enterFrame) {
_global.myMusicPlayer.RunPlayer();
}
Frame 30 (48 B)
_root.transition2.gotoAndPlay("open");
stop();
Frame 31 (48 B)
_root.transition2.gotoAndPlay("open");
stop();
Instance of Symbol 890 MovieClip in Frame 31 (70 B)
on (release) {
getURL ("http://www.herointeractive.com", "_blank");
}
Frame 32 (48 B)
_root.transition2.gotoAndPlay("open");
stop();
Instance of Symbol 896 MovieClip "low" in Frame 32 (307 B)
onClipEvent (load) {
if (_quality == "LOW") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "LOW") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "LOW";
this._parent.high.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 896 MovieClip "med" in Frame 32 (316 B)
onClipEvent (load) {
if (_quality == "MEDIUM") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "MEDIUM") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "MEDIUM";
this._parent.high.gotoAndStop("off");
this._parent.low.gotoAndStop("off");
}
Instance of Symbol 896 MovieClip "high" in Frame 32 (309 B)
onClipEvent (load) {
if (_quality == "HIGH") {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_quality != "HIGH") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "HIGH";
this._parent.low.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 896 MovieClip "musicOn" in Frame 32 (410 B)
onClipEvent (load) {
if (_global.musicOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.musicOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.musicOn = true;
this._parent.musicOff.gotoAndStop("off");
_global.myMusicPlayer.SetTrack("titleMusic");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.Play();
}
Instance of Symbol 896 MovieClip "musicOff" in Frame 32 (322 B)
onClipEvent (load) {
if (_global.musicOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.musicOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.musicOn = false;
this._parent.musicOn.gotoAndStop("off");
_global.myMusicPlayer.Stop();
}
Instance of Symbol 896 MovieClip "soundsOn" in Frame 32 (291 B)
onClipEvent (load) {
if (_global.soundOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.soundOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = true;
this._parent.soundsOff.gotoAndStop("off");
}
Instance of Symbol 896 MovieClip "soundsOff" in Frame 32 (292 B)
onClipEvent (load) {
if (_global.soundOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.soundOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = false;
this._parent.soundsOn.gotoAndStop("off");
}
Instance of Symbol 896 MovieClip "trailOn" in Frame 32 (290 B)
onClipEvent (load) {
if (_global.trailOn == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.trailOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.trailOn = true;
this._parent.trailOff.gotoAndStop("off");
}
Instance of Symbol 896 MovieClip "trailOff" in Frame 32 (291 B)
onClipEvent (load) {
if (_global.trailOn == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.trailOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.trailOn = false;
this._parent.trailOn.gotoAndStop("off");
}
Instance of Symbol 896 MovieClip "cloudOn" in Frame 32 (299 B)
onClipEvent (load) {
if (_global.cloudsMove == true) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.cloudsMove != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.cloudsMove = true;
this._parent.cloudOff.gotoAndStop("off");
}
Instance of Symbol 896 MovieClip "cloudOff" in Frame 32 (300 B)
onClipEvent (load) {
if (_global.cloudsMove == false) {
this.gotoAndStop("on");
}
}
on (rollOver) {
this.gotoAndStop("on");
}
on (rollOut) {
if (_global.cloudsMove == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.cloudsMove = false;
this._parent.cloudOn.gotoAndStop("off");
}
Frame 33 (1.12 KiB) ●
_root.transition2.gotoAndPlay("open");
var myScoreSaver = new BagunkScores();
myScoreSaver.SetCode("jz5D1H2SlkB4jiR5");
myScoreSaver.SetGameID(358);
myScoreSaver.OnGetScoresCompleted = function (myScores) {
var _local5 = "";
var _local9 = "";
var _local4 = new Array();
var _local6 = new TextFormat();
_local6.bold = true;
_local6.color = 8572415 /* 0x82CDFF */;
var _local2 = 0;
while (_local2 < myScores.length) {
if (myScores[_local2].verified == 1) {
var _local7 = _local5.length;
var _local8 = _local5.length + myScores[_local2].username.length;
_local4.push({start:_local7, end:_local8, url:myScores[_local2].profileURL});
}
_local5 = (_local5 + myScores[_local2].username) + newline;
_local9 = (_local9 + myScores[_local2].score) + newline;
_local2++;
}
_root.name_txt.text = _local5;
_root.score_txt.text = _local9;
_local2 = 0;
while (_local2 < _local4.length) {
_local6.url = _local4[_local2].url;
trace(_local6.url);
_root.name_txt.setTextFormat(_local4[_local2].start, _local4[_local2].end, _local6);
_local2++;
}
};
myScoreSaver.GetScores();
stop();
Frame 34 (4.61 KiB) ●
function OutputValue(fieldName, keyCode) {
var textRef = eval ("this." + fieldName);
var returnValue = "";
switch (keyCode) {
case 8 :
returnValue = "BACKSPACE";
break;
case 20 :
returnValue = "CAPSLOCK";
break;
case 17 :
returnValue = "CONTROL";
break;
case 46 :
returnValue = "DELETE";
break;
case 40 :
returnValue = "DOWN";
break;
case 35 :
returnValue = "END";
break;
case 13 :
returnValue = "ENTER";
break;
case 27 :
returnValue = "ESCAPE";
break;
case 36 :
returnValue = "HOME";
break;
case 45 :
returnValue = "INSERT";
break;
case 37 :
returnValue = "LEFT";
break;
case 34 :
returnValue = "PGDN";
break;
case 33 :
returnValue = "PGUP";
break;
case 39 :
returnValue = "RIGHT";
break;
case 16 :
returnValue = "SHIFT";
break;
case 32 :
returnValue = "SPACE";
break;
case 9 :
returnValue = "TAB";
break;
case 38 :
returnValue = "UP";
break;
case 186 :
returnValue = ";";
break;
case 187 :
returnValue = "=";
break;
case 189 :
returnValue = "-";
break;
case 191 :
returnValue = "/";
break;
case 192 :
returnValue = "`";
break;
case 219 :
returnValue = "[";
break;
case 220 :
returnValue = "\\";
break;
case 221 :
returnValue = "]";
break;
case 222 :
returnValue = "'";
break;
case 188 :
returnValue = ",";
break;
case 190 :
returnValue = ".";
break;
case 96 :
returnValue = "NUMPAD 0";
break;
case 97 :
returnValue = "NUMPAD 1";
break;
case 98 :
returnValue = "NUMPAD 2";
break;
case 99 :
returnValue = "NUMPAD 3";
break;
case 100 :
returnValue = "NUMPAD 4";
break;
case 101 :
returnValue = "NUMPAD 5";
break;
case 102 :
returnValue = "NUMPAD 6";
break;
case 103 :
returnValue = "NUMPAD 7";
break;
case 104 :
returnValue = "NUMPAD 8";
break;
case 105 :
returnValue = "NUMPAD 9";
break;
case 106 :
returnValue = "MULTIPLY";
break;
case 107 :
returnValue = "ADD";
break;
case 109 :
returnValue = "SUBTRACT";
break;
case 110 :
returnValue = "DECIMAL";
break;
case 111 :
returnValue = "DIVIDE";
break;
default :
returnValue = chr(keyCode);
returnValue.toUpperCase();
}
textRef.text = returnValue;
}
function UnselectOthers(myName) {
if (myName != "redClip") {
this.redClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "purpleClip") {
this.purpleClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "blueClip") {
this.blueClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "greenClip") {
this.greenClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "yellowClip") {
this.yellowClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "orangeClip") {
this.orangeClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
if (myName != "multiClip") {
this.multiClip.gotoAndStop(1);
} else {
hasFocus = myName;
}
}
_root.transition2.gotoAndPlay("open");
stop();
var hasFocus = "";
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (hasFocus == "redClip") {
_global.hotKey_red = Key.getCode();
OutputValue("red_txt", _global.hotKey_red);
}
if (hasFocus == "purpleClip") {
_global.hotKey_purple = Key.getCode();
OutputValue("purple_txt", _global.hotKey_purple);
}
if (hasFocus == "blueClip") {
_global.hotKey_blue = Key.getCode();
OutputValue("blue_txt", _global.hotKey_blue);
}
if (hasFocus == "greenClip") {
_global.hotKey_green = Key.getCode();
OutputValue("green_txt", _global.hotKey_green);
}
if (hasFocus == "yellowClip") {
_global.hotKey_yellow = Key.getCode();
OutputValue("yellow_txt", _global.hotKey_yellow);
}
if (hasFocus == "orangeClip") {
_global.hotKey_orange = Key.getCode();
OutputValue("orange_txt", _global.hotKey_orange);
}
if (hasFocus == "multiClip") {
_global.hotKey_multi = Key.getCode();
OutputValue("multi_txt", _global.hotKey_multi);
}
};
Key.addListener(keyListener);
OutputValue("red_txt", _global.hotKey_red);
OutputValue("purple_txt", _global.hotKey_purple);
OutputValue("blue_txt", _global.hotKey_blue);
OutputValue("green_txt", _global.hotKey_green);
OutputValue("yellow_txt", _global.hotKey_yellow);
OutputValue("orange_txt", _global.hotKey_orange);
OutputValue("multi_txt", _global.hotKey_multi);
Instance of Symbol 934 MovieClip "redClip" in Frame 34 (126 B)
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 934 MovieClip "purpleClip" in Frame 34 (126 B)
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 934 MovieClip "blueClip" in Frame 34 (126 B)
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 934 MovieClip "greenClip" in Frame 34 (126 B)
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 934 MovieClip "yellowClip" in Frame 34 (126 B)
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 934 MovieClip "orangeClip" in Frame 34 (126 B)
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 934 MovieClip "multiClip" in Frame 34 (126 B)
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Frame 35 (681 B)
function submitScore() {
if (_root.playerName_txt.text == "Your Name Here") {
_global.SoundManager.PlaySound("nocando");
} else {
myScoreSaver.SendScores(_root.playerName_txt.text, _global.lastScore);
_root.gotoAndPlay("title");
_global.SoundManager.PlaySound("button2");
}
}
function loginScore() {
myScoreSaver.UserLogin(_global.lastScore);
_root.gotoAndPlay("title");
}
function endGameScore() {
_root.finalScore_txt.text = "Your Score: " + _global.lastScore;
}
stop();
var myScoreSaver = new BagunkScores();
myScoreSaver.SetCode("jz5D1H2SlkB4jiR5");
myScoreSaver.SetGameID(358);
_root.finalScore_txt.text = "Your Score: " + _global.lastScore;
Frame 40 (765 B)
function StartGame() {
game.BeginGame();
}
function GameSetup() {
}
function Mediator() {
game.Run();
}
function RainbowOver() {
game.OverAnim();
}
function OrbHold() {
if (_global.gamePaused == false) {
game.HoldOrbs();
}
}
function OrbRelease() {
game.ReleaseOrbs();
}
function GameChangeType(numType) {
if (_global.gamePaused == false) {
game.ChangeOrbs(numType);
}
}
function ResumeGame() {
game.ResumeThisGame();
}
function QuitGame() {
game.EndGame();
}
function GameFinished() {
game.GameOver(true);
}
_global.danceSync = 20;
_global.difficulty = 1;
_root.transition2.swapDepths(1000001);
_root.transition2.gotoAndPlay("open");
_root.paused.swapDepths(1000000);
stop();
var game = new LightSpriteGame();
Instance of Symbol 800 MovieClip in Frame 40 (297 B)
onClipEvent (load) {
_root.GameSetup();
if (_global.musicOn == true) {
_global.myMusicPlayer.SetTrack("gameMusic");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(3);
}
}
onClipEvent (enterFrame) {
_root.Mediator();
_global.myMusicPlayer.RunPlayer();
}
Frame 50 (28 B)
gotoAndPlay ("doneStored");
Frame 90 (17 B)
gotoAndPlay (2);
Symbol 5 MovieClip Frame 1 (8 B)
stop();
Symbol 5 MovieClip Frame 15 (8 B)
stop();
Symbol 8 MovieClip Frame 1 (8 B)
stop();
Symbol 8 MovieClip Frame 10 (8 B)
stop();
Symbol 10 MovieClip Frame 1 (23 B)
this._visible = false;
Symbol 33 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 33 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 60 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 60 MovieClip Frame 64 (46 B)
_global.SoundManager.PlayHitSound("thunder");
Symbol 60 MovieClip Frame 104 (8 B)
stop();
Symbol 74 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 74 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 85 MovieClip Frame 1 (18 B)
gotoAndPlay (20);
Symbol 86 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 86 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 98 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 98 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 110 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 110 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 120 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 120 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 131 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 131 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 137 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 137 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 149 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 149 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 157 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 157 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 171 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 171 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 186 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 186 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 200 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 200 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 210 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 210 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 214 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 214 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 224 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 224 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 235 MovieClip Frame 1 (18 B)
gotoAndPlay (20);
Symbol 236 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 236 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 250 MovieClip Frame 85 (44 B)
_global.SoundManager.PlayHitSound("chomp");
Symbol 250 MovieClip Frame 126 (8 B)
stop();
Symbol 292 MovieClip Frame 19 (1 B)
Symbol 292 MovieClip Frame 68 (1 B)
Symbol 292 MovieClip Frame 115 (8 B)
stop();
Symbol 306 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 306 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 321 MovieClip Frame 19 (1 B)
Symbol 321 MovieClip Frame 20 (8 B)
stop();
Symbol 334 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 334 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 345 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 345 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 356 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 356 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 374 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 374 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 386 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 386 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 400 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 400 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 416 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 416 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 428 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 428 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 440 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 440 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 451 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 451 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 461 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 461 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 471 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 471 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 481 MovieClip Frame 19 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 481 MovieClip Frame 68 (18 B)
gotoAndPlay (20);
Symbol 500 MovieClip Frame 48 (44 B)
_global.SoundManager.PlayHitSound("chomp");
Symbol 500 MovieClip Frame 97 (8 B)
stop();
Symbol 517 MovieClip Frame 15 (8 B)
stop();
Symbol 522 MovieClip Frame 110 (8 B)
stop();
Symbol 532 MovieClip Frame 19 (1 B)
Symbol 532 MovieClip Frame 141 (8 B)
stop();
Symbol 552 MovieClip Frame 17 (44 B)
_global.SoundManager.PlayHitSound("eagle");
Symbol 552 MovieClip Frame 133 (8 B)
stop();
Symbol 567 MovieClip Frame 19 (1 B)
Symbol 567 MovieClip Frame 54 (44 B)
_global.SoundManager.PlayHitSound("slice");
Symbol 567 MovieClip Frame 125 (8 B)
stop();
Symbol 586 MovieClip Frame 101 (8 B)
stop();
Symbol 587 MovieClip Frame 1 (8 B)
stop();
Symbol 587 MovieClip Frame 2 (8 B)
stop();
Symbol 587 MovieClip Frame 3 (8 B)
stop();
Symbol 587 MovieClip Frame 4 (8 B)
stop();
Symbol 587 MovieClip Frame 5 (8 B)
stop();
Symbol 587 MovieClip Frame 6 (8 B)
stop();
Symbol 587 MovieClip Frame 15 (8 B)
stop();
Symbol 587 MovieClip Frame 20 (8 B)
stop();
Symbol 587 MovieClip Frame 21 (8 B)
stop();
Symbol 587 MovieClip Frame 22 (8 B)
stop();
Symbol 587 MovieClip Frame 23 (8 B)
stop();
Symbol 587 MovieClip Frame 24 (8 B)
stop();
Symbol 587 MovieClip Frame 25 (8 B)
stop();
Symbol 587 MovieClip Frame 26 (8 B)
stop();
Symbol 587 MovieClip Frame 27 (8 B)
stop();
Symbol 587 MovieClip Frame 28 (8 B)
stop();
Symbol 587 MovieClip Frame 29 (8 B)
stop();
Symbol 587 MovieClip Frame 30 (8 B)
stop();
Symbol 587 MovieClip Frame 31 (8 B)
stop();
Symbol 587 MovieClip Frame 32 (8 B)
stop();
Symbol 587 MovieClip Frame 33 (8 B)
stop();
Symbol 587 MovieClip Frame 34 (8 B)
stop();
Symbol 587 MovieClip Frame 35 (8 B)
stop();
Symbol 587 MovieClip Frame 36 (8 B)
stop();
Symbol 587 MovieClip Frame 37 (8 B)
stop();
Symbol 587 MovieClip Frame 38 (8 B)
stop();
Symbol 587 MovieClip Frame 39 (8 B)
stop();
Symbol 587 MovieClip Frame 40 (8 B)
stop();
Symbol 587 MovieClip Frame 41 (8 B)
stop();
Symbol 587 MovieClip Frame 42 (8 B)
stop();
Symbol 587 MovieClip Frame 43 (8 B)
stop();
Symbol 587 MovieClip Frame 44 (8 B)
stop();
Symbol 587 MovieClip Frame 45 (8 B)
stop();
Symbol 587 MovieClip Frame 46 (8 B)
stop();
Symbol 587 MovieClip Frame 47 (8 B)
stop();
Symbol 587 MovieClip Frame 48 (8 B)
stop();
Symbol 587 MovieClip Frame 49 (8 B)
stop();
Symbol 587 MovieClip Frame 50 (8 B)
stop();
Symbol 587 MovieClip Frame 51 (8 B)
stop();
Symbol 587 MovieClip Frame 52 (8 B)
stop();
Symbol 587 MovieClip Frame 53 (8 B)
stop();
Symbol 587 MovieClip Frame 54 (8 B)
stop();
Symbol 587 MovieClip Frame 55 (8 B)
stop();
Symbol 587 MovieClip Frame 56 (8 B)
stop();
Symbol 587 MovieClip Frame 57 (8 B)
stop();
Symbol 587 MovieClip Frame 58 (8 B)
stop();
Symbol 587 MovieClip Frame 59 (8 B)
stop();
Symbol 587 MovieClip Frame 60 (8 B)
stop();
Symbol 588 MovieClip [western_1] Frame 1 (81 B)
#initclip 66
Object.registerClass("western_1", Target_Western_1);
#endinitclip
Symbol 590 MovieClip Frame 1 (23 B)
this._visible = false;
Symbol 593 MovieClip Frame 1 (8 B)
stop();
Symbol 593 MovieClip Frame 10 (8 B)
stop();
Symbol 596 MovieClip Frame 1 (8 B)
stop();
Symbol 596 MovieClip Frame 35 (8 B)
stop();
Symbol 598 MovieClip [grass_1] Frame 1 (77 B)
#initclip 35
Object.registerClass("grass_1", Target_Grass_1);
#endinitclip
Symbol 601 MovieClip Frame 1 (8 B)
stop();
Symbol 601 MovieClip Frame 35 (8 B)
stop();
Symbol 605 MovieClip [hill_1] Frame 1 (75 B)
#initclip 36
Object.registerClass("hill_1", Target_Hill_1);
#endinitclip
Symbol 608 MovieClip Frame 1 (8 B)
stop();
Symbol 608 MovieClip Frame 10 (8 B)
stop();
Symbol 611 MovieClip Frame 1 (8 B)
stop();
Symbol 611 MovieClip Frame 10 (8 B)
stop();
Symbol 613 MovieClip [japan_1] Frame 1 (77 B)
#initclip 37
Object.registerClass("japan_1", Target_Japan_1);
#endinitclip
Symbol 615 MovieClip [japan_2] Frame 1 (77 B)
#initclip 38
Object.registerClass("japan_2", Target_Japan_2);
#endinitclip
Symbol 619 MovieClip Frame 1 (8 B)
stop();
Symbol 619 MovieClip Frame 13 (8 B)
stop();
Symbol 621 MovieClip [japan_3] Frame 1 (77 B)
#initclip 39
Object.registerClass("japan_3", Target_Japan_3);
#endinitclip
Symbol 623 MovieClip Frame 1 (8 B)
stop();
Symbol 623 MovieClip Frame 10 (8 B)
stop();
Symbol 625 MovieClip [egypt_2] Frame 1 (77 B)
#initclip 40
Object.registerClass("egypt_2", Target_Egypt_2);
#endinitclip
Symbol 631 MovieClip Frame 1 (8 B)
stop();
Symbol 631 MovieClip Frame 10 (8 B)
stop();
Symbol 633 MovieClip [egypt_1] Frame 1 (77 B)
#initclip 41
Object.registerClass("egypt_1", Target_Egypt_1);
#endinitclip
Symbol 636 MovieClip Frame 1 (8 B)
stop();
Symbol 636 MovieClip Frame 10 (8 B)
stop();
Symbol 638 MovieClip [india_1] Frame 1 (77 B)
#initclip 42
Object.registerClass("india_1", Target_India_1);
#endinitclip
Symbol 640 MovieClip [india_2] Frame 1 (77 B)
#initclip 43
Object.registerClass("india_2", Target_India_2);
#endinitclip
Symbol 641 MovieClip Frame 1 (8 B)
stop();
Symbol 641 MovieClip Frame 10 (8 B)
stop();
Symbol 647 MovieClip Frame 1 (8 B)
stop();
Symbol 647 MovieClip Frame 22 (18 B)
stop();
stop();
Symbol 649 MovieClip [western_2] Frame 1 (81 B)
#initclip 44
Object.registerClass("western_2", Target_Western_2);
#endinitclip
Symbol 652 MovieClip Frame 1 (8 B)
stop();
Symbol 652 MovieClip Frame 10 (8 B)
stop();
Symbol 658 MovieClip Frame 40 (8 B)
stop();
Symbol 661 MovieClip Frame 1 (8 B)
stop();
Symbol 661 MovieClip Frame 9 (8 B)
stop();
Symbol 663 MovieClip [jungle_1] Frame 1 (79 B)
#initclip 45
Object.registerClass("jungle_1", Target_Jungle_1);
#endinitclip
Symbol 666 MovieClip Frame 1 (8 B)
stop();
Symbol 666 MovieClip Frame 10 (8 B)
stop();
Symbol 668 MovieClip [savannah_2] Frame 1 (83 B)
#initclip 46
Object.registerClass("savannah_2", Target_Savannah_2);
#endinitclip
Symbol 671 MovieClip Frame 1 (8 B)
stop();
Symbol 671 MovieClip Frame 10 (8 B)
stop();
Symbol 673 MovieClip [savannah_1] Frame 1 (83 B)
#initclip 47
Object.registerClass("savannah_1", Target_Savannah_1);
#endinitclip
Symbol 676 MovieClip Frame 1 (8 B)
stop();
Symbol 676 MovieClip Frame 10 (8 B)
stop();
Symbol 678 MovieClip [jungle_2] Frame 1 (79 B)
#initclip 48
Object.registerClass("jungle_2", Target_Jungle_2);
#endinitclip
Symbol 681 MovieClip Frame 1 (8 B)
stop();
Symbol 681 MovieClip Frame 10 (8 B)
stop();
Symbol 684 MovieClip Frame 1 (8 B)
stop();
Symbol 684 MovieClip Frame 10 (8 B)
stop();
Symbol 686 MovieClip [arctic_2] Frame 1 (79 B)
#initclip 49
Object.registerClass("arctic_2", Target_Arctic_2);
#endinitclip
Symbol 689 MovieClip Frame 1 (8 B)
stop();
Symbol 689 MovieClip Frame 10 (8 B)
stop();
Symbol 691 MovieClip [china_2] Frame 1 (77 B)
#initclip 50
Object.registerClass("china_2", Target_China_2);
#endinitclip
Symbol 694 MovieClip Frame 1 (8 B)
stop();
Symbol 694 MovieClip Frame 35 (8 B)
stop();
Symbol 696 MovieClip Frame 1 (8 B)
stop();
Symbol 696 MovieClip Frame 15 (8 B)
stop();
Symbol 698 MovieClip [arctic_1] Frame 1 (79 B)
#initclip 51
Object.registerClass("arctic_1", Target_Arctic_1);
#endinitclip
Symbol 700 MovieClip [hill_2] Frame 1 (75 B)
#initclip 52
Object.registerClass("hill_2", Target_Hill_2);
#endinitclip
Symbol 714 MovieClip Frame 1 (8 B)
stop();
Symbol 714 MovieClip Frame 2 (8 B)
stop();
Symbol 714 MovieClip Frame 3 (8 B)
stop();
Symbol 714 MovieClip Frame 4 (8 B)
stop();
Symbol 714 MovieClip Frame 5 (8 B)
stop();
Symbol 714 MovieClip Frame 6 (8 B)
stop();
Symbol 714 MovieClip Frame 7 (8 B)
stop();
Symbol 714 MovieClip Frame 8 (8 B)
stop();
Symbol 714 MovieClip Frame 9 (8 B)
stop();
Symbol 714 MovieClip Frame 10 (8 B)
stop();
Symbol 715 MovieClip [points] Frame 40 (1 B)
Symbol 722 MovieClip [pirate_boat_1] Frame 1 (82 B)
#initclip 53
Object.registerClass("pirate_boat_1", Target_Boat_1);
#endinitclip
Symbol 729 MovieClip [arctic_3] Frame 1 (79 B)
#initclip 54
Object.registerClass("arctic_3", Target_Arctic_3);
#endinitclip
Symbol 731 MovieClip [island_1] Frame 1 (79 B)
#initclip 55
Object.registerClass("island_1", Target_Island_1);
#endinitclip
Symbol 734 MovieClip [china_1] Frame 1 (77 B)
#initclip 56
Object.registerClass("china_1", Target_China_1);
#endinitclip
Symbol 736 MovieClip [arctic_4] Frame 1 (79 B)
#initclip 57
Object.registerClass("arctic_4", Target_Arctic_4);
#endinitclip
Symbol 739 MovieClip Frame 1 (8 B)
stop();
Symbol 739 MovieClip Frame 10 (8 B)
stop();
Symbol 742 MovieClip Frame 1 (8 B)
stop();
Symbol 742 MovieClip Frame 10 (8 B)
stop();
Symbol 745 MovieClip Frame 1 (8 B)
stop();
Symbol 745 MovieClip Frame 15 (1 B)
Symbol 745 MovieClip Frame 20 (8 B)
stop();
Symbol 747 MovieClip [city_1] Frame 1 (75 B)
#initclip 58
Object.registerClass("city_1", Target_City_1);
#endinitclip
Symbol 749 MovieClip [blueEffect] Frame 1 (74 B)
#initclip 59
Object.registerClass("blueEffect", OrbTrail);
#endinitclip
Symbol 751 MovieClip [multiEffect] Frame 1 (75 B)
#initclip 60
Object.registerClass("multiEffect", OrbTrail);
#endinitclip
Symbol 752 MovieClip [greenEffect] Frame 1 (75 B)
#initclip 61
Object.registerClass("greenEffect", OrbTrail);
#endinitclip
Symbol 754 MovieClip [yellowEffect] Frame 1 (76 B)
#initclip 62
Object.registerClass("yellowEffect", OrbTrail);
#endinitclip
Symbol 756 MovieClip [orangeEffect] Frame 1 (76 B)
#initclip 63
Object.registerClass("orangeEffect", OrbTrail);
#endinitclip
Symbol 758 MovieClip [purpleEffect] Frame 1 (76 B)
#initclip 64
Object.registerClass("purpleEffect", OrbTrail);
#endinitclip
Symbol 760 MovieClip [redEffect] Frame 1 (73 B)
#initclip 65
Object.registerClass("redEffect", OrbTrail);
#endinitclip
Symbol 764 MovieClip Frame 1 (8 B)
stop();
Symbol 766 MovieClip Frame 1 (8 B)
stop();
Symbol 768 MovieClip Frame 1 (8 B)
stop();
Symbol 770 MovieClip Frame 1 (8 B)
stop();
Symbol 774 MovieClip [orb red] Frame 1 (8 B)
stop();
Symbol 774 MovieClip [orb red] Frame 2 (8 B)
stop();
Symbol 774 MovieClip [orb red] Frame 3 (8 B)
stop();
Symbol 774 MovieClip [orb red] Frame 4 (8 B)
stop();
Symbol 774 MovieClip [orb red] Frame 5 (8 B)
stop();
Symbol 774 MovieClip [orb red] Frame 6 (8 B)
stop();
Symbol 774 MovieClip [orb red] Frame 7 (8 B)
stop();
Symbol 791 MovieClip Frame 1 (8 B)
stop();
Symbol 791 MovieClip Frame 75 (33 B)
_root.gotoAndPlay("loadSounds");
Symbol 1191 MovieClip [__Packages.SoundPlayer] Frame 0 (3.47 KiB) ●
class SoundPlayer
{
var channelsAvailable, channel1, channel2, voiceChannel, hitChannel, externalSoundVolume;
function SoundPlayer () {
channelsAvailable = new Array(true, true, true, true);
channel1 = new Sound();
channel2 = new Sound();
voiceChannel = new Sound();
hitChannel = new Sound();
externalSoundVolume = 100;
}
function CleanSounds(intIndex) {
channelsAvailable[intIndex] = true;
}
function PlaySound(linkIdentifier) {
if (_global.soundOn == true) {
var thisRef = this;
if (channelsAvailable[0] == true) {
channelsAvailable[0] = false;
delete channel1;
channel1 = new Sound();
channel1.attachSound(linkIdentifier);
channel1.setVolume(100);
channel1.start(0, 0);
channel1.onSoundComplete = function () {
thisRef.CleanSounds(0);
};
} else if (channelsAvailable[1] == true) {
channelsAvailable[1] = false;
delete channel2;
channel2 = new Sound();
channel2.attachSound(linkIdentifier);
channel2.setVolume(100);
channel2.start(0, 0);
channel2.onSoundComplete = function () {
thisRef.CleanSounds(1);
};
} else {
channelsAvailable[0] = false;
delete channel1;
channel1 = new Sound();
channel1.attachSound(linkIdentifier);
channel1.setVolume(100);
channel1.start(0, 0);
channel1.onSoundComplete = function () {
thisRef.CleanSounds(0);
};
}
}
}
function PlayHitSound(linkIdentifier) {
if (_global.soundOn == true) {
var thisRef = this;
if (channelsAvailable[2] == true) {
channelsAvailable[2] = false;
delete hitChannel;
hitChannel = new Sound();
hitChannel.attachSound(linkIdentifier);
hitChannel.setVolume(100);
hitChannel.start(0, 0);
hitChannel.onSoundComplete = function () {
thisRef.CleanSounds(2);
};
}
}
}
function PlayVoiceSound(linkIdentifier) {
if (_global.soundOn == true) {
var thisRef = this;
if (channelsAvailable[3] == true) {
channelsAvailable[3] = false;
delete voiceChannel;
voiceChannel = new Sound();
voiceChannel.attachSound(linkIdentifier);
voiceChannel.setVolume(100);
voiceChannel.start(0, 0);
voiceChannel.onSoundComplete = function () {
thisRef.CleanSounds(3);
};
}
}
}
function PlayExternalSound(urlPath) {
var thisRef = this;
if (channelsAvailable[0] == true) {
channelsAvailable[0] = false;
delete channel1;
channel1 = new Sound();
channel1.loadSound(urlPath, false);
channel1.setVolume(externalSoundVolume);
channel1.onLoad = function (loadedOK) {
if (loadedOK) {
this.start();
}
};
channel1.onSoundComplete = function () {
thisRef.CleanSounds(0);
};
} else if (channelsAvailable[1] == true) {
channelsAvailable[1] = false;
delete channel2;
channel2 = new Sound();
channel2.loadSound(urlPath, false);
channel2.setVolume(externalSoundVolume);
channel2.onLoad = function (loadedOK) {
if (loadedOK) {
this.start();
}
};
channel2.onSoundComplete = function () {
thisRef.CleanSounds(1);
};
} else {
channelsAvailable[0] = false;
delete channel1;
channel1 = new Sound();
channel1.loadSound(urlPath, false);
channel1.setVolume(externalSoundVolume);
channel1.onLoad = function (loadedOK) {
if (loadedOK) {
this.start();
}
};
channel1.onSoundComplete = function () {
thisRef.CleanSounds(0);
};
}
}
}
Symbol 1192 MovieClip [__Packages.Music] Frame 0 (1.96 KiB) ●
class Music
{
var mySound, volume, currentTrack, inCrossfade, state, changeSongs, maxVolume, targetVolume, volumeSpeed;
function Music () {
mySound = new Sound();
volume = 100;
currentTrack = "";
inCrossfade = false;
state = false;
changeSongs = true;
maxVolume = 100;
}
function SetMaxVolume(vol) {
maxVolume = vol;
}
function SetTrack(setMusic) {
if (setMusic == currentTrack) {
changeSongs = false;
} else {
changeSongs = true;
currentTrack = setMusic;
}
}
function Play() {
mySound.stop();
mySound.attachSound(currentTrack);
volume = maxVolume;
mySound.setVolume(volume);
mySound.start(0, 2000);
state = true;
}
function Stop() {
mySound.stop();
state = false;
}
function PlayWithCrossFade(secondDuration) {
if (changeSongs == true) {
if (state == true) {
inCrossfade = true;
targetVolume = 0;
var _local2 = secondDuration * 50;
volumeSpeed = (targetVolume - volume) / (_local2 / 2);
} else {
mySound.stop();
mySound.attachSound(currentTrack);
mySound.start(0, 2000);
state = true;
inCrossfade = false;
targetVolume = maxVolume;
volume = 0;
mySound.setVolume(0);
var _local2 = secondDuration * 50;
volumeSpeed = (targetVolume - volume) / _local2;
}
}
}
function RunPlayer() {
if (targetVolume != volume) {
var _local2;
_local2 = volume + volumeSpeed;
if ((volumeSpeed < 0) && (_local2 < 0)) {
_local2 = 0;
} else if ((volumeSpeed > 0) && (_local2 > targetVolume)) {
_local2 = targetVolume;
}
volume = _local2;
mySound.setVolume(_local2);
}
if (inCrossfade == true) {
if (volume <= 0) {
volumeSpeed = volumeSpeed * -1;
inCrossfade = false;
targetVolume = maxVolume;
mySound.stop();
mySound.attachSound(currentTrack);
mySound.setVolume(0);
mySound.start(0, 2000);
state = true;
}
}
}
}
Symbol 1193 MovieClip [__Packages.TargetObject] Frame 0 (11.63 KiB) ● ●
class TargetObject extends MovieClip
{
var arrTargets, arrPeople, arrFinish, arrDeaths, blnMoving, globalToLocal, blnGotOne, localToGlobal, blnMissed, numTargets, _name;
function TargetObject () {
super();
arrTargets = new Array();
arrPeople = new Array("person1");
arrFinish = new Array();
arrDeaths = new Array();
blnMoving = false;
}
function CheckHits(orbName, orbType) {
var multiHit = false;
var insideString = "inside";
var insideRef = eval ("this." + insideString);
var returnValue = new HitData();
returnValue._hit = false;
returnValue._allCorrect = false;
var tempPoint = new Object();
tempPoint.x = _root[orbName]._x;
tempPoint.y = _root[orbName]._y;
if (blnMoving == false) {
globalToLocal(tempPoint);
} else {
insideRef.globalToLocal(tempPoint);
}
var thisRef;
var i = 0;
while (i < arrTargets.length) {
if (blnMoving == false) {
thisRef = eval ("this." + arrTargets[i].name);
} else {
thisRef = eval ("this.inside." + arrTargets[i].name);
}
var distancex = (tempPoint.x - thisRef._x);
var distancey = (tempPoint.y - thisRef._y);
var distance = Math.sqrt((distancex * distancex) + (distancey * distancey));
if (distance <= _root[orbName]._width) {
if ((arrTargets[i].type == orbType) || (orbType == 7)) {
returnValue._hit = true;
returnValue._correctColor = true;
blnGotOne = true;
var myPerson = Math.round(Math.random() * (arrPeople.length - 1));
thisRef.gotoAndPlay(arrPeople[myPerson]);
var tempPoint2 = new Object();
tempPoint2.x = thisRef._x;
tempPoint2.y = thisRef._y;
if (blnMoving == false) {
localToGlobal(tempPoint2);
} else {
insideRef.localToGlobal(tempPoint2);
}
returnValue._x = tempPoint2.x;
returnValue._y = tempPoint2.y;
if (orbType == 7) {
multiHit = true;
}
} else {
returnValue._hit = true;
returnValue._correctColor = false;
blnMissed = true;
var myDeath = Math.round(Math.random() * (arrDeaths.length - 1));
thisRef.gotoAndPlay(arrDeaths[myDeath]);
var tempPoint2 = new Object();
tempPoint2.x = thisRef._x;
tempPoint2.y = thisRef._y;
if (blnMoving == false) {
localToGlobal(tempPoint2);
} else {
insideRef.localToGlobal(tempPoint2);
}
returnValue._x = tempPoint2.x;
returnValue._y = tempPoint2.y;
}
arrTargets.splice(i, 1);
if (arrTargets.length == 0) {
returnValue._filled = true;
if (blnMissed == false) {
returnValue._allCorrect = true;
returnValue._numTargets = numTargets;
}
if (arrFinish.length != 0) {
var myFinish = Math.round(Math.random() * (arrFinish.length - 1));
var finishRef = eval ((("_root." + _name) + ".") + arrFinish[myFinish]);
trace((("Finish Anim 2: " + arrFinish.length) + " - ") + myFinish);
finishRef.gotoAndPlay(1);
}
}
break;
}
i++;
}
if (multiHit == true) {
if (arrTargets.length != 0) {
returnValue._filled = true;
if (arrFinish.length != 0) {
var myFinish = Math.round(Math.random() * (arrFinish.length - 1));
trace((("Finish Anim 1: " + arrFinish.length) + " - ") + myFinish);
var finishRef = eval ((("_root." + _name) + ".") + arrFinish[myFinish]);
finishRef.gotoAndPlay(1);
}
var i = 0;
while (i < arrTargets.length) {
if (blnMoving == false) {
thisRef = eval ("this." + arrTargets[i].name);
} else {
thisRef = eval ("this.inside." + arrTargets[i].name);
}
var myPerson = Math.round(Math.random() * (arrPeople.length - 1));
thisRef.gotoAndPlay(arrPeople[myPerson]);
i++;
}
if (blnMissed == false) {
returnValue._allCorrect = true;
returnValue._numTargets = numTargets;
}
}
delete arrTargets;
arrTargets = new Array();
}
return(returnValue);
}
function AdjustTargets() {
blnMissed = false;
var queueRemoval = new Array();
var thisRef;
var tempPoint = new Object();
var layout = 1;
var randNum = 0;
var color1;
var color2;
switch (_global.difficulty) {
case 2 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 0) {
layout = 2;
}
break;
case 3 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 50) {
layout = 2;
} else {
layout = 1;
}
break;
case 5 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 0) {
layout = 3;
}
break;
case 6 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 50) {
layout = 3;
} else {
layout = 1;
}
break;
case 7 :
randNum = Math.round(Math.random() * 100);
if (randNum <= 33) {
layout = 3;
} else if ((randNum >= 34) && (randNum < 66)) {
layout = 2;
} else if ((randNum >= 66) && (randNum < 101)) {
layout = 1;
}
break;
case 8 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 0) {
layout = 4;
}
break;
case 9 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 50) {
layout = 2;
} else {
layout = 4;
}
break;
case 10 :
randNum = Math.round(Math.random() * 100);
if (randNum <= 25) {
layout = 3;
} else if ((randNum >= 26) && (randNum < 50)) {
layout = 2;
} else if ((randNum >= 50) && (randNum < 75)) {
layout = 1;
} else if ((randNum >= 75) && (randNum < 101)) {
layout = 4;
}
break;
case 11 :
randNum = Math.round(Math.random() * 100);
if (randNum <= 25) {
layout = 4;
} else if ((randNum >= 26) && (randNum < 50)) {
layout = 2;
} else if ((randNum >= 50) && (randNum < 75)) {
layout = 1;
} else if ((randNum >= 75) && (randNum < 101)) {
layout = 8;
color1 = Math.round(Math.random() * 3) + 1;
color2 = Math.round(Math.random() * 3) + 1;
}
break;
case 13 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 0) {
layout = 5;
}
break;
case 14 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 50) {
layout = 3;
} else {
layout = 5;
}
break;
case 15 :
randNum = Math.round(Math.random() * 100);
if (randNum < 20) {
layout = 3;
} else if ((randNum >= 20) && (randNum < 40)) {
layout = 2;
} else if ((randNum >= 40) && (randNum < 60)) {
layout = 1;
} else if ((randNum >= 60) && (randNum < 80)) {
layout = 4;
} else if ((randNum >= 80) && (randNum < 101)) {
layout = 5;
}
break;
case 16 :
randNum = Math.round(Math.random() * 100);
if (randNum <= 20) {
layout = 4;
} else if ((randNum >= 21) && (randNum < 40)) {
layout = 2;
} else if ((randNum >= 40) && (randNum < 55)) {
layout = 1;
} else if ((randNum >= 55) && (randNum < 75)) {
layout = 1;
} else if ((randNum >= 75) && (randNum < 101)) {
layout = 8;
color1 = Math.round(Math.random() * 4) + 1;
color2 = Math.round(Math.random() * 4) + 1;
}
break;
case 17 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 0) {
layout = 6;
}
break;
case 18 :
randNum = Math.round(Math.random() * 100);
if (randNum >= 50) {
layout = 6;
} else {
layout = 4;
}
break;
case 19 :
randNum = Math.round(Math.random() * 120);
if (randNum < 20) {
layout = 1;
} else if ((randNum >= 20) && (randNum < 40)) {
layout = 2;
} else if ((randNum >= 40) && (randNum < 60)) {
layout = 3;
} else if ((randNum >= 60) && (randNum < 80)) {
layout = 4;
} else if ((randNum >= 80) && (randNum < 100)) {
layout = 5;
} else if ((randNum >= 100) && (randNum < 121)) {
layout = 6;
}
break;
case 20 :
randNum = Math.round(Math.random() * 160);
if (randNum < 20) {
layout = 1;
} else if ((randNum >= 20) && (randNum < 40)) {
layout = 2;
} else if ((randNum >= 40) && (randNum < 60)) {
layout = 3;
} else if ((randNum >= 60) && (randNum < 80)) {
layout = 4;
} else if ((randNum >= 80) && (randNum < 100)) {
layout = 5;
} else if ((randNum >= 100) && (randNum < 120)) {
layout = 6;
} else if ((randNum >= 120) && (randNum < 161)) {
layout = 8;
color1 = Math.round(Math.random() * 5) + 1;
color2 = Math.round(Math.random() * 5) + 1;
}
break;
case 21 :
layout = 8;
color1 = Math.round(Math.random() * 5) + 1;
color2 = Math.round(Math.random() * 5) + 1;
break;
case 22 :
layout = 9;
break;
case 23 :
layout = 9;
break;
case 24 :
layout = 9;
}
var i = 0;
while (i < arrTargets.length) {
if (blnMoving == false) {
thisRef = eval ("this." + arrTargets[i].name);
} else {
thisRef = eval ("this.inside." + arrTargets[i].name);
}
tempPoint.x = thisRef._x;
tempPoint.y = thisRef._y;
localToGlobal(tempPoint);
if (blnMoving == false) {
if ((tempPoint.x - (thisRef._width / 2)) < 0) {
queueRemoval.push(arrTargets[i].name);
} else if ((tempPoint.x + (thisRef._width / 2)) > Stage.width) {
queueRemoval.push(arrTargets[i].name);
}
}
switch (layout) {
case 2 :
thisRef.gotoAndStop("purple");
arrTargets[i].type = 2;
break;
case 3 :
thisRef.gotoAndStop("blue");
arrTargets[i].type = 3;
break;
case 4 :
thisRef.gotoAndStop("green");
arrTargets[i].type = 4;
break;
case 5 :
thisRef.gotoAndStop("yellow");
arrTargets[i].type = 5;
break;
case 6 :
thisRef.gotoAndStop("orange");
arrTargets[i].type = 6;
break;
case 8 :
if (((i == 1) || (i == 3)) || (i == 5)) {
thisRef.gotoAndStop(GetColor(color1));
arrTargets[i].type = color1;
} else {
thisRef.gotoAndStop(GetColor(color2));
arrTargets[i].type = color2;
}
break;
case 9 :
var myColor = (Math.round(Math.random() * 5) + 1);
thisRef.gotoAndStop(GetColor(myColor));
arrTargets[i].type = myColor;
}
i++;
}
var i = 0;
while (i < queueRemoval.length) {
RemoveTargets(queueRemoval[i]);
i++;
}
numTargets = arrTargets.length;
return(arrTargets.length);
}
function GetColor(numType) {
switch (numType) {
case 1 :
return("red");
case 2 :
return("purple");
case 3 :
return("blue");
case 4 :
return("green");
case 5 :
return("yellow");
case 6 :
return("orange");
}
}
function RemoveTargets(strName) {
var thisRef;
var i = 0;
while (i < arrTargets.length) {
if (strName == arrTargets[i].name) {
if (blnMoving == false) {
thisRef = eval ("this." + arrTargets[i].name);
} else {
thisRef = eval ("this.inside." + arrTargets[i].name);
}
thisRef.swapDepths(1);
thisRef.removeMovieClip();
arrTargets.splice(i, 1);
return;
}
i++;
}
}
function GetTargetsLeft() {
return(arrTargets.length);
}
}
Symbol 1194 MovieClip [__Packages.HitData] Frame 0 (48 B)
class HitData
{
function HitData () {
}
}
Symbol 1195 MovieClip [__Packages.Target_Grass_1] Frame 0 (430 B)
class Target_Grass_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Grass_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1});
arrPeople = new Array("person1", "sheep", "person9");
arrDeaths = new Array("lightning", "fall");
arrFinish = new Array("fin1", "fin2");
blnMoving = false;
}
}
Symbol 1196 MovieClip [__Packages.Target_Hill_1] Frame 0 (544 B)
class Target_Hill_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Hill_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1}, {name:"target5", type:1});
arrPeople = new Array("person1", "person6", "person7", "person8", "person9", "person10");
arrDeaths = new Array("lightning", "fire", "fall");
arrFinish = new Array("fin1");
trace(arrFinish.length);
blnMoving = false;
}
}
Symbol 1197 MovieClip [__Packages.Target_Japan_1] Frame 0 (500 B)
class Target_Japan_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Japan_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1}, {name:"target5", type:1});
arrPeople = new Array("person25", "person26", "person27", "person28");
arrDeaths = new Array("lightning", "ninja");
arrFinish = new Array("fin1", "fin2");
blnMoving = false;
}
}
Symbol 1198 MovieClip [__Packages.Target_Japan_2] Frame 0 (474 B)
class Target_Japan_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Japan_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person25", "person26", "person27", "person28");
arrDeaths = new Array("lightning", "ninja");
arrFinish = new Array("fin1", "fin2");
blnMoving = false;
}
}
Symbol 1199 MovieClip [__Packages.Target_Japan_3] Frame 0 (461 B)
class Target_Japan_3 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Japan_3 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person25", "person26", "person27", "person28");
arrDeaths = new Array("ninja", "fire");
arrFinish = new Array("fin1");
blnMoving = false;
}
}
Symbol 1200 MovieClip [__Packages.Target_Egypt_2] Frame 0 (414 B)
class Target_Egypt_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Egypt_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1});
arrPeople = new Array("person19", "person30", "person31", "person32");
arrDeaths = new Array("reaper", "fire");
arrFinish = new Array("palmAnim");
blnMoving = false;
}
}
Symbol 1201 MovieClip [__Packages.Target_Egypt_1] Frame 0 (462 B)
class Target_Egypt_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Egypt_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person19", "person30", "person31", "person32");
arrDeaths = new Array("reaper", "fire");
arrFinish = new Array("fin1");
blnMoving = false;
}
}
Symbol 1202 MovieClip [__Packages.Target_India_1] Frame 0 (487 B)
class Target_India_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_India_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person19", "person21", "person22", "person23", "person24");
arrDeaths = new Array("lightning", "fire", "reaper");
arrFinish = new Array("fin1");
blnMoving = false;
}
}
Symbol 1203 MovieClip [__Packages.Target_India_2] Frame 0 (429 B)
class Target_India_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_India_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1});
arrPeople = new Array("person19", "person21", "person22", "person23", "person24");
arrDeaths = new Array("lightning", "fire", "reaper");
arrFinish = new Array();
blnMoving = false;
}
}
Symbol 1204 MovieClip [__Packages.Target_Western_2] Frame 0 (564 B)
class Target_Western_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Western_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1}, {name:"target5", type:1}, {name:"target6", type:1}, {name:"target7", type:1}, {name:"target8", type:1});
arrPeople = new Array("person18", "person19", "person20");
arrDeaths = new Array("bird", "fire");
arrFinish = new Array("fin1", "fin2");
blnMoving = false;
}
}
Symbol 1205 MovieClip [__Packages.Target_Jungle_1] Frame 0 (471 B)
class Target_Jungle_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Jungle_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person12", "person13", "person16", "person17");
arrDeaths = new Array("fire", "plant");
arrFinish = new Array("fin1", "fin2");
blnMoving = false;
}
}
Symbol 1206 MovieClip [__Packages.Target_Savannah_2] Frame 0 (417 B)
class Target_Savannah_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Savannah_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1});
arrPeople = new Array("person12", "person13", "person17");
arrDeaths = new Array("lightning", "fire", "reaper");
arrFinish = new Array("fin1");
blnMoving = false;
}
}
Symbol 1207 MovieClip [__Packages.Target_Savannah_1] Frame 0 (469 B)
class Target_Savannah_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Savannah_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person12", "person13", "person17");
arrDeaths = new Array("lightning", "fire", "reaper");
arrFinish = new Array("fin1");
blnMoving = false;
}
}
Symbol 1208 MovieClip [__Packages.Target_Jungle_2] Frame 0 (416 B)
class Target_Jungle_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Jungle_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1});
arrPeople = new Array("person12", "person13", "person16", "person17");
arrDeaths = new Array("lightning", "plant");
arrFinish = new Array("fin1");
blnMoving = false;
}
}
Symbol 1209 MovieClip [__Packages.Target_Arctic_2] Frame 0 (440 B)
class Target_Arctic_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Arctic_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person5");
arrDeaths = new Array("lightning", "freeze");
arrFinish = new Array("fin1", "fin2");
blnMoving = false;
}
}
Symbol 1210 MovieClip [__Packages.Target_China_2] Frame 0 (471 B)
class Target_China_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_China_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1}, {name:"target5", type:1});
arrPeople = new Array("person3", "person29");
arrDeaths = new Array("lightning", "reaper");
arrFinish = new Array("finAnim");
blnMoving = false;
}
}
Symbol 1211 MovieClip [__Packages.Target_Arctic_1] Frame 0 (466 B)
class Target_Arctic_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Arctic_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1}, {name:"target5", type:1});
arrPeople = new Array("person5");
arrDeaths = new Array("lightning", "freeze");
arrFinish = new Array("fin1", "fin2");
blnMoving = false;
}
}
Symbol 1212 MovieClip [__Packages.Target_Hill_2] Frame 0 (476 B)
class Target_Hill_2 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Hill_2 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person1", "person9", "person10", "person6", "person7", "person8");
arrDeaths = new Array("lightning", "fall");
arrFinish = new Array();
blnMoving = false;
}
}
Symbol 1213 MovieClip [__Packages.Target_Boat_1] Frame 0 (382 B)
class Target_Boat_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Boat_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1});
arrPeople = new Array("person15");
arrDeaths = new Array("shark");
arrFinish = new Array();
blnMoving = true;
}
}
Symbol 1214 MovieClip [__Packages.Target_Arctic_3] Frame 0 (374 B)
class Target_Arctic_3 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Arctic_3 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1});
arrPeople = new Array("person5");
arrDeaths = new Array("lightning", "freeze");
arrFinish = new Array();
blnMoving = false;
}
}
Symbol 1215 MovieClip [__Packages.Target_Island_1] Frame 0 (431 B)
class Target_Island_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Island_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1});
arrPeople = new Array("person2", "person11", "person14");
arrDeaths = new Array("lightning", "shark", "fire");
arrFinish = new Array();
blnMoving = false;
}
}
Symbol 1216 MovieClip [__Packages.Target_China_1] Frame 0 (540 B)
class Target_China_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_China_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1}, {name:"target5", type:1}, {name:"target6", type:1}, {name:"target7", type:1}, {name:"target8", type:1});
arrPeople = new Array("person3", "person29");
arrDeaths = new Array("lightning", "reaper");
arrFinish = new Array();
blnMoving = false;
}
}
Symbol 1217 MovieClip [__Packages.Target_Arctic_4] Frame 0 (374 B)
class Target_Arctic_4 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Arctic_4 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1});
arrPeople = new Array("person5");
arrDeaths = new Array("lightning", "freeze");
arrFinish = new Array();
blnMoving = false;
}
}
Symbol 1218 MovieClip [__Packages.Target_City_1] Frame 0 (498 B)
class Target_City_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_City_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1}, {name:"target4", type:1});
arrPeople = new Array("person1", "person9", "person10", "person6", "person7", "person8");
arrDeaths = new Array("lightning", "fire");
arrFinish = new Array("fin1", "fin2", "fin3");
blnMoving = false;
}
}
Symbol 1219 MovieClip [__Packages.OrbTrail] Frame 0 (245 B)
class OrbTrail extends MovieClip
{
var frameCounter, removeMovieClip;
function OrbTrail () {
super();
frameCounter = 7;
}
function onEnterFrame() {
frameCounter--;
if (frameCounter == 0) {
removeMovieClip();
}
}
}
Symbol 1220 MovieClip [__Packages.Target_Western_1] Frame 0 (470 B)
class Target_Western_1 extends TargetObject
{
var arrTargets, arrPeople, arrDeaths, arrFinish, blnMoving;
function Target_Western_1 () {
super();
arrTargets = new Array({name:"target1", type:1}, {name:"target2", type:1}, {name:"target3", type:1});
arrPeople = new Array("person18", "person19", "person20");
arrDeaths = new Array("bird", "fire");
arrFinish = new Array("fin1", "fin2", "fin3");
trace(arrFinish.length);
blnMoving = false;
}
}
Symbol 1221 MovieClip [__Packages.BagunkScores] Frame 0 (2.05 KiB) ●
class BagunkScores
{
var strFilePath, loadVarObject, xmlLoader, intGameID, strConnectionKey;
function BagunkScores () {
strFilePath = "http://www.bagunk.com/receiveScores.php";
loadVarObject = new LoadVars();
xmlLoader = new XML();
}
function SetGameID(id) {
intGameID = id;
}
function SetCode(passwordString) {
strConnectionKey = passwordString;
}
function SendScores(username, score) {
var _local3 = new ScoreEncrypter(128, 128);
var _local2 = String(score);
var _local4 = _local3.encrypt(_local2, strConnectionKey, "ECB");
loadVarObject.name = username;
loadVarObject.score = _local4;
loadVarObject.gameID = intGameID;
loadVarObject.pageMode = 1;
loadVarObject.send(strFilePath, "_blank", "POST");
}
function UserLogin(score) {
var _local3 = new ScoreEncrypter(128, 128);
var _local2 = String(score);
var _local4 = _local3.encrypt(_local2, strConnectionKey, "ECB");
loadVarObject.gameID = intGameID;
loadVarObject.score = _local4;
loadVarObject.pageMode = 2;
loadVarObject.send(strFilePath, "_blank", "POST");
}
function GetScores() {
var thisRef = this;
xmlLoader.ignoreWhite = true;
xmlLoader.onLoad = function (blnSuccess) {
thisRef.scoreArray = new Array();
if (blnSuccess) {
var _local11 = this.firstChild.attributes.userProfilePage;
var _local12 = this.firstChild.firstChild;
if (_local12.attributes.blnSuccess == 0) {
trace("Bagunk Scores Loading Failed!");
}
_local12 = _local12.nextSibling;
var _local2 = _local12.firstChild;
while (_local2) {
var _local5 = _local2.attributes.username;
var _local4 = _local2.attributes.verified;
var _local6 = _local2.attributes.score;
var _local3 = _local11 + _local2.attributes.userID;
thisRef.scoreArray.push({username:_local5, verified:_local4, score:_local6, profileURL:_local3});
_local2 = _local2.nextSibling;
}
thisRef.OnGetScoresCompleted(thisRef.scoreArray);
}
};
xmlLoader.load("http://www.bagunk.com/sendScores.php?gameID=" + intGameID);
}
}
Symbol 1222 MovieClip [__Packages.ScoreEncrypter] Frame 0 (11.67 KiB) ● ●
class ScoreEncrypter
{
var roundsArray, shiftOffsets, Nb, Nk, Nr;
function ScoreEncrypter (keySize, blockSize) {
if (keySize != null) {
this.keySize = keySize;
}
if (blockSize != null) {
this.blockSize = blockSize;
}
roundsArray = [0, 0, 0, 0, [0, 0, 0, 0, 10, 0, 12, 0, 14], 0, [0, 0, 0, 0, 12, 0, 12, 0, 14], 0, [0, 0, 0, 0, 14, 0, 14, 0, 14]];
shiftOffsets = [0, 0, 0, 0, [0, 1, 2, 3], 0, [0, 1, 2, 3], 0, [0, 1, 3, 4]];
Nb = blockSize / 32;
Nk = keySize / 32;
Nr = roundsArray[Nk][Nb];
}
function encrypt(src, key, mode) {
var _local5 = new Array();
var _local6 = new Array();
var _local4 = blockSize / 8;
if (mode == "CBC") {
_local5 = getRandomBytes(_local4);
}
var _local7 = formatPlaintext(strToChars(src));
var _local8 = keyExpansion(strToChars(key));
var _local3 = 0;
while (_local3 < (_local7.length / _local4)) {
_local6 = _local7.slice(_local3 * _local4, (_local3 + 1) * _local4);
if (mode == "CBC") {
var _local2 = 0;
while (_local2 < _local4) {
_local6[_local2] = _local6[_local2] ^ _local5[(_local3 * _local4) + _local2];
_local2++;
}
}
_local5 = _local5.concat(encryption(_local6, _local8));
_local3++;
}
return(charsToHex(_local5));
}
function decrypt(src, key, mode) {
var _local5 = new Array();
var _local7 = new Array();
var _local6 = hexToChars(src);
var _local4 = blockSize / 8;
var _local8 = keyExpansion(strToChars(key));
var _local3 = (_local6.length / _local4) - 1;
while (_local3 > 0) {
_local7 = decryption(_local6.slice(_local3 * _local4, (_local3 + 1) * _local4), _local8);
if (mode == "CBC") {
var _local2 = 0;
while (_local2 < _local4) {
_local5[((_local3 - 1) * _local4) + _local2] = _local7[_local2] ^ _local6[((_local3 - 1) * _local4) + _local2];
_local2++;
}
} else {
_local5 = _local7.concat(_local5);
}
_local3--;
}
if (mode == "ECB") {
_local5 = decryption(_local6.slice(0, _local4), _local8).concat(_local5);
}
return(charsToStr(_local5));
}
function cyclicShiftLeft(src, pos) {
var _local2 = src.slice(0, pos);
src = src.slice(pos).concat(_local2);
return(src);
}
function xtime(poly) {
poly = poly << 1;
return(((poly & 256) ? (poly ^ 283) : (poly)));
}
function mult_GF256(x, y) {
var _local4 = 0;
var _local2 = 1;
while (_local2 < 256) {
if (x & _local2) {
_local4 = _local4 ^ y;
}
_local2 = _local2 * 2;
y = xtime(y);
}
return(_local4);
}
function byteSub(state, dir) {
if (dir == "encrypt") {
var _local5 = SBox;
} else {
var _local5 = SBoxInverse;
}
var _local3 = 0;
while (_local3 < 4) {
var _local2 = 0;
while (_local2 < Nb) {
state[_local3][_local2] = _local5[state[_local3][_local2]];
_local2++;
}
_local3++;
}
}
function shiftRow(state, dir) {
var _local2 = 1;
while (_local2 < 4) {
if (dir == "encrypt") {
state[_local2] = cyclicShiftLeft(state[_local2], shiftOffsets[Nb][_local2]);
} else {
state[_local2] = cyclicShiftLeft(state[_local2], Nb - shiftOffsets[Nb][_local2]);
}
_local2++;
}
}
function mixColumn(state, dir) {
var _local5 = new Array();
var _local2 = 0;
while (_local2 < Nb) {
var _local4 = 0;
while (_local4 < 4) {
if (dir == "encrypt") {
_local5[_local4] = ((mult_GF256(state[_local4][_local2], 2) ^ mult_GF256(state[(_local4 + 1) % 4][_local2], 3)) ^ state[(_local4 + 2) % 4][_local2]) ^ state[(_local4 + 3) % 4][_local2];
} else {
_local5[_local4] = ((mult_GF256(state[_local4][_local2], 14) ^ mult_GF256(state[(_local4 + 1) % 4][_local2], 11)) ^ mult_GF256(state[(_local4 + 2) % 4][_local2], 13)) ^ mult_GF256(state[(_local4 + 3) % 4][_local2], 9);
}
_local4++;
}
_local4 = 0;
while (_local4 < 4) {
state[_local4][_local2] = _local5[_local4];
_local4++;
}
_local2++;
}
}
function addRoundKey(state, roundKey) {
var _local2 = 0;
while (_local2 < Nb) {
state[0][_local2] = state[0][_local2] ^ (roundKey[_local2] & 255);
state[1][_local2] = state[1][_local2] ^ ((roundKey[_local2] >> 8) & 255);
state[2][_local2] = state[2][_local2] ^ ((roundKey[_local2] >> 16) & 255);
state[3][_local2] = state[3][_local2] ^ ((roundKey[_local2] >> 24) & 255);
_local2++;
}
}
function keyExpansion(key) {
var _local2 = 0;
Nk = keySize / 32;
Nb = blockSize / 32;
var _local4 = new Array();
Nr = roundsArray[Nk][Nb];
var _local3 = 0;
while (_local3 < Nk) {
_local4[_local3] = ((key[4 * _local3] | (key[(4 * _local3) + 1] << 8)) | (key[(4 * _local3) + 2] << 16)) | (key[(4 * _local3) + 3] << 24);
_local3++;
}
_local3 = Nk;
while (_local3 < (Nb * (Nr + 1))) {
_local2 = _local4[_local3 - 1];
if ((_local3 % Nk) == 0) {
_local2 = (((SBox[(_local2 >> 8) & 255] | (SBox[(_local2 >> 16) & 255] << 8)) | (SBox[(_local2 >> 24) & 255] << 16)) | (SBox[_local2 & 255] << 24)) ^ Rcon[Math.floor(_local3 / Nk) - 1];
} else if ((Nk > 6) && ((_local3 % Nk) == 4)) {
_local2 = (((SBox[(_local2 >> 24) & 255] << 24) | (SBox[(_local2 >> 16) & 255] << 16)) | (SBox[(_local2 >> 8) & 255] << 8)) | SBox[_local2 & 255];
}
_local4[_local3] = _local4[_local3 - Nk] ^ _local2;
_local3++;
}
return(_local4);
}
function Round(state, roundKey) {
byteSub(state, "encrypt");
shiftRow(state, "encrypt");
mixColumn(state, "encrypt");
addRoundKey(state, roundKey);
}
function InverseRound(state, roundKey) {
addRoundKey(state, roundKey);
mixColumn(state, "decrypt");
shiftRow(state, "decrypt");
byteSub(state, "decrypt");
}
function FinalRound(state, roundKey) {
byteSub(state, "encrypt");
shiftRow(state, "encrypt");
addRoundKey(state, roundKey);
}
function InverseFinalRound(state, roundKey) {
addRoundKey(state, roundKey);
shiftRow(state, "decrypt");
byteSub(state, "decrypt");
}
function encryption(block, expandedKey) {
block = packBytes(block);
addRoundKey(block, expandedKey);
var _local2 = 1;
while (_local2 < Nr) {
Round(block, expandedKey.slice(Nb * _local2, Nb * (_local2 + 1)));
_local2++;
}
FinalRound(block, expandedKey.slice(Nb * Nr));
return(unpackBytes(block));
}
function decryption(block, expandedKey) {
block = packBytes(block);
InverseFinalRound(block, expandedKey.slice(Nb * Nr));
var _local2 = Nr - 1;
while (_local2 > 0) {
InverseRound(block, expandedKey.slice(Nb * _local2, Nb * (_local2 + 1)));
_local2--;
}
addRoundKey(block, expandedKey);
return(unpackBytes(block));
}
function packBytes(octets) {
var _local2 = new Array();
_local2[0] = new Array();
_local2[1] = new Array();
_local2[2] = new Array();
_local2[3] = new Array();
var _local1 = 0;
while (_local1 < octets.length) {
_local2[0][_local1 / 4] = octets[_local1];
_local2[1][_local1 / 4] = octets[_local1 + 1];
_local2[2][_local1 / 4] = octets[_local1 + 2];
_local2[3][_local1 / 4] = octets[_local1 + 3];
_local1 = _local1 + 4;
}
return(_local2);
}
function unpackBytes(packed) {
var _local1 = new Array();
var _local2 = 0;
while (_local2 < packed[0].length) {
_local1[_local1.length] = packed[0][_local2];
_local1[_local1.length] = packed[1][_local2];
_local1[_local1.length] = packed[2][_local2];
_local1[_local1.length] = packed[3][_local2];
_local2++;
}
return(_local1);
}
function formatPlaintext(plaintext) {
var _local3 = blockSize / 8;
var _local2 = _local3 - (plaintext.length % _local3);
while ((_local2 > 0) && (_local2 < _local3)) {
plaintext[plaintext.length] = 0;
_local2--;
}
return(plaintext);
}
function getRandomBytes(howMany) {
var _local2 = new Array();
var _local1 = 0;
while (_local1 < howMany) {
_local2[_local1] = Math.round(Math.random() * 255);
_local1++;
}
return(_local2);
}
function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
var Rcon = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145];
var SBox = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22];
var SBoxInverse = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125];
var blockSize = 128;
var keySize = 128;
}
Symbol 1223 MovieClip [__Packages.LightSpriteGame] Frame 0 (41.7 KiB) ● ● ● ●
class LightSpriteGame
{
var lineDepth, popUpDepth, arrOrbs, arrOrbsFired, arrTargetObjects, arrCleanup, arrRelease, arrSets, arrSetCounter, arrPopUpFlags, popUpCounter, orbDepth, objectDepth, pointDepth, effectDepth, orbSpeed, orbMaxSpeed, windResistance, numGroundSpeed, gameTargets, blnHolding, blnLeftSide, keyCounter, engineTimer, difficultyPeopleCounter, difficultyTimer, refillType, score, numRelease, setIndex, targetCounter, modeCounter, blnMulti, rainbowHold, statCorrect, statMissed, statWrong, statThrown, statFull, numEnergyMax, numEnergy, backAnimCounter, backAnimMin, backAnimMax, blnArrows1, blnArrows2, multiOrbPointCounter, mouseListener, gameMode, currentSet;
function LightSpriteGame () {
lineDepth = _root.lines.getDepth();
_root.lines.swapDepths(600);
popUpDepth = _root.popUp.getDepth();
_root.popUp.swapDepths(11001);
arrOrbs = new Array();
arrOrbsFired = new Array();
arrTargetObjects = new Array();
arrCleanup = new Array();
arrRelease = new Array();
arrSets = new Array();
if (_global.gameDifficulty == 1) {
arrSetCounter = new Array(25, 50, 75, 100, 125, 150, 175);
} else if (_global.gameDifficulty == 2) {
arrSetCounter = new Array(30, 60, 90, 120, 150, 180, 210, 240, 270);
} else if (_global.gameDifficulty == 3) {
arrSetCounter = new Array(30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 335, 370);
} else if (_global.gameDifficulty == 4) {
arrSetCounter = new Array(30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 335, 370, 400, 430, 460, 490, 510, 540, 570, 600, 630, 660, 690, 720, 750, 780, 910, 940, 1000, 1100, 1200);
} else if (_global.gameDifficulty == 5) {
arrSetCounter = new Array(30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 335, 370, 400, 430, 460, 490, 510, 540, 570, 600, 630, 660, 690, 720, 750, 780, 910, 940, 1000, 1100, 1200);
}
arrPopUpFlags = new Array(false, false, false, false, false, false, false);
popUpCounter = 0;
orbDepth = 5000;
objectDepth = 4000;
pointDepth = 9000;
effectDepth = 10000;
orbSpeed = 0.4;
orbMaxSpeed = 16;
windResistance = 0;
if (_global.gameDifficulty == 1) {
numGroundSpeed = 0.6;
gameTargets = 200;
_root.energy._visible = false;
} else if (_global.gameDifficulty == 2) {
numGroundSpeed = 0.7;
gameTargets = 300;
_root.energy._visible = false;
} else if (_global.gameDifficulty == 3) {
numGroundSpeed = 0.7;
gameTargets = 400;
_root.energy._visible = false;
} else if (_global.gameDifficulty == 4) {
numGroundSpeed = 0.65;
_root.energy._visible = true;
UpdateEnergy();
} else if (_global.gameDifficulty == 5) {
numGroundSpeed = 0.75;
gameTargets = 400;
_root.energy._visible = false;
}
blnHolding = false;
blnLeftSide = true;
keyCounter = 0;
engineTimer = 50;
difficultyPeopleCounter = 0;
difficultyTimer = -1;
refillType = 1;
score = 0;
numRelease = 1;
setIndex = 0;
targetCounter = 0;
modeCounter = -1;
blnMulti = false;
rainbowHold = false;
statCorrect = 0;
statMissed = 0;
statWrong = 0;
statThrown = 0;
statFull = 0;
numEnergyMax = 20;
numEnergy = 10;
backAnimCounter = 500;
backAnimMin = 400;
backAnimMax = 1500;
blnArrows1 = false;
blnArrows2 = false;
multiOrbPointCounter = 9999;
mouseListener = new Object();
mouseListener.onMouseDown = function () {
_root.OrbHold();
};
mouseListener.onMouseUp = function () {
_root.OrbRelease();
};
Mouse.addListener(mouseListener);
Setup();
gameMode = 1;
_global.gamePaused = true;
}
function Run() {
if (_global.gameDifficulty == 4) {
if ((gameMode == 1) || (_global.gamePaused == false)) {
UpdateEnergy();
}
}
if (gameMode == 2) {
if (modeCounter == 0) {
_root.paused.gotoAndStop(4);
gameMode = 3;
modeCounter = 20;
} else {
modeCounter--;
}
} else if (gameMode == 3) {
if (modeCounter == 0) {
_root.paused.gotoAndStop(1);
gameMode = 4;
modeCounter = -1;
_global.gamePaused = false;
} else {
modeCounter--;
}
}
CheckKeyPress();
if (_global.gamePaused == false) {
ManageHolding();
ManageFiredOrbs();
ManageObjects();
ControlDifficultyAndSurroundings();
OrbsFall();
UpdateScore();
UpdateBackAnim();
UpdateMultiOrb();
}
DoCleanup();
_global.danceSync++;
if (_global.danceSync == 69) {
_global.danceSync = 20;
}
}
function Setup() {
_root.arrow1.stop();
_root.arrow2.stop();
_root.arrow3.stop();
_root.arrow4.stop();
_root.arrow5.stop();
_root.startPlayText.stop();
BuildSets();
SelectSet();
AddObject(currentSet.GetPiece());
engineTimer = 10;
DropOrb(1);
DropOrb(2);
DropOrb(3);
DropOrb(4);
DropOrb(5);
UpdateScore();
}
function BeginGame() {
gameMode = 2;
_root.paused.gotoAndStop(3);
modeCounter = 70;
}
function GameOver(blnCompleted) {
_global.gamePaused = true;
gameMode = 5;
trace(blnCompleted);
if (_global.gameDifficulty == 4) {
_root.paused.gotoAndStop(6);
_root.paused.completed_txt.text = "Game Over!";
} else {
_root.paused.gotoAndStop(5);
if (blnCompleted == false) {
_root.paused.completed_txt.text = "Game Completed!";
} else {
_root.paused.completed_txt.text = "Game Over!";
}
}
_root.paused.total_txt.text = targetCounter;
_root.paused.thrown_txt.text = statThrown;
_root.paused.correct_txt.text = statCorrect;
_root.paused.wrong_txt.text = statWrong;
_root.paused.missed_txt.text = statMissed;
if (statThrown == 0) {
_root.paused.accuracy_txt.text = "0%";
} else {
_root.paused.accuracy_txt.text = Math.round((statCorrect / statThrown) * 100) + "%";
}
_root.paused.full_txt.text = statFull;
_root.paused.score_txt.text = score;
_global.lastScore = score;
}
function EndGame() {
_root.paused.removeMovieClip();
var _local4 = 0;
while (_local4 < arrOrbsFired.length) {
_root[arrOrbsFired[_local4].name].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < arrOrbs.length) {
_root[arrOrbs[_local4].name].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < arrTargetObjects.length) {
_root[arrTargetObjects[_local4].name].removeMovieClip();
_local4++;
}
_root.transition2.gotoAndStop(1);
_root.lines.swapDepths(lineDepth);
_root.popUp.swapDepths(popUpDepth);
_global.gamePaused = false;
if (_global.gameDifficulty == 4) {
_root.gotoAndPlay("submitScores");
} else {
_root.gotoAndPlay("title");
}
}
function ControlDifficultyAndSurroundings() {
if (_global.gameDifficulty == 1) {
ControlEasy();
} else if (_global.gameDifficulty == 2) {
ControlMedium();
} else if (_global.gameDifficulty == 3) {
ControlHard();
} else if (_global.gameDifficulty == 4) {
ControlChallenge();
} else if (_global.gameDifficulty == 5) {
ControlInsane();
}
}
function ControlEasy() {
switch (_global.difficulty) {
case 1 :
if (difficultyPeopleCounter > 50) {
difficultyPeopleCounter = 0;
_global.difficulty = 2;
AddButton("purple");
}
break;
case 2 :
if (difficultyPeopleCounter <= 50) {
break;
}
difficultyPeopleCounter = 0;
_global.difficulty = 3;
}
}
function ControlMedium() {
switch (_global.difficulty) {
case 1 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 2;
AddButton("purple");
}
break;
case 2 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 3;
}
break;
case 3 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 5;
AddButton("blue");
}
break;
case 5 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 6;
}
break;
case 6 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 7;
}
break;
case 7 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 8;
AddButton("green");
}
break;
case 8 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 9;
}
break;
case 9 :
if (difficultyPeopleCounter > 25) {
difficultyPeopleCounter = 0;
_global.difficulty = 10;
}
break;
case 10 :
if (difficultyPeopleCounter <= 25) {
break;
}
difficultyPeopleCounter = 0;
_global.difficulty = 11;
}
}
function ControlHard() {
switch (_global.difficulty) {
case 1 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 2;
AddButton("purple");
}
break;
case 2 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 3;
}
break;
case 3 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 5;
AddButton("blue");
}
break;
case 5 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 6;
}
break;
case 6 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 7;
}
break;
case 7 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 8;
AddButton("green");
}
break;
case 8 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 9;
}
break;
case 9 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 10;
}
break;
case 10 :
if (difficultyPeopleCounter > 15) {
difficultyPeopleCounter = 0;
_global.difficulty = 11;
}
break;
case 11 :
if (difficultyPeopleCounter > 30) {
difficultyPeopleCounter = 0;
_global.difficulty = 13;
AddButton("yellow");
}
break;
case 13 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 14;
}
break;
case 14 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 15;
}
break;
case 15 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 16;
}
break;
case 16 :
if (difficultyPeopleCounter > 30) {
difficultyPeopleCounter = 0;
_global.difficulty = 17;
AddButton("orange");
}
break;
case 17 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 18;
}
break;
case 18 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 19;
}
break;
case 19 :
if (difficultyPeopleCounter > 20) {
difficultyPeopleCounter = 0;
_global.difficulty = 20;
}
break;
case 20 :
if (difficultyPeopleCounter <= 50) {
break;
}
difficultyPeopleCounter = 0;
_global.difficulty = 21;
}
}
function ControlInsane() {
switch (_global.difficulty) {
case 1 :
if (difficultyPeopleCounter > 5) {
difficultyPeopleCounter = 0;
_global.difficulty = 2;
AddButton("purple");
}
break;
case 2 :
if (difficultyPeopleCounter > 5) {
difficultyPeopleCounter = 0;
_global.difficulty = 5;
AddButton("blue");
}
break;
case 5 :
if (difficultyPeopleCounter > 5) {
difficultyPeopleCounter = 0;
_global.difficulty = 8;
AddButton("green");
}
break;
case 8 :
if (difficultyPeopleCounter > 5) {
difficultyPeopleCounter = 0;
_global.difficulty = 13;
AddButton("yellow");
}
break;
case 13 :
if (difficultyPeopleCounter > 5) {
difficultyPeopleCounter = 0;
_global.difficulty = 17;
AddButton("orange");
}
break;
case 17 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 19;
}
break;
case 19 :
if (difficultyPeopleCounter > 100) {
difficultyPeopleCounter = 0;
_global.difficulty = 20;
}
break;
case 20 :
if (difficultyPeopleCounter > 100) {
difficultyPeopleCounter = 0;
_global.difficulty = 21;
}
break;
case 21 :
if (difficultyPeopleCounter > 100) {
difficultyPeopleCounter = 0;
_global.difficulty = 22;
}
break;
case 22 :
if (difficultyPeopleCounter <= 50) {
break;
}
difficultyPeopleCounter = 0;
numGroundSpeed = numGroundSpeed + 0.05;
}
}
function ControlChallenge() {
switch (_global.difficulty) {
case 1 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 2;
AddButton("purple");
}
break;
case 2 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 3;
}
break;
case 3 :
if (difficultyPeopleCounter > 20) {
difficultyPeopleCounter = 0;
_global.difficulty = 4;
AddButton("blue");
}
break;
case 4 :
numGroundSpeed = numGroundSpeed + 0.05;
_global.difficulty = 5;
case 5 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 6;
}
break;
case 6 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 7;
}
break;
case 7 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 8;
AddButton("green");
}
break;
case 8 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 9;
}
break;
case 9 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 10;
}
break;
case 10 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 11;
}
break;
case 11 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 12;
AddButton("yellow");
}
break;
case 12 :
numGroundSpeed = numGroundSpeed + 0.05;
_global.difficulty = 13;
case 13 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 14;
}
break;
case 14 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 15;
}
break;
case 15 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 16;
}
break;
case 16 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 17;
AddButton("orange");
}
break;
case 17 :
if (difficultyPeopleCounter > 10) {
difficultyPeopleCounter = 0;
_global.difficulty = 18;
}
break;
case 18 :
if (difficultyPeopleCounter > 20) {
difficultyPeopleCounter = 0;
_global.difficulty = 19;
}
break;
case 19 :
if (difficultyPeopleCounter > 20) {
difficultyPeopleCounter = 0;
_global.difficulty = 20;
}
break;
case 20 :
if (difficultyPeopleCounter > 100) {
difficultyPeopleCounter = 0;
_global.difficulty = 21;
}
break;
case 21 :
if (difficultyPeopleCounter > 100) {
difficultyPeopleCounter = 0;
_global.difficulty = 22;
}
break;
case 22 :
if (difficultyPeopleCounter <= 50) {
break;
}
numGroundSpeed = numGroundSpeed + 0.05;
difficultyPeopleCounter = 0;
}
}
function BuildSets() {
var _local2;
_local2 = new Set();
_local2.AddPiece("hill_1", 60, 60, 100);
_local2.AddPiece("hill_2", 40, 60, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("island_1", 80, 60, 100);
_local2.AddPiece("pirate_boat_1", 20, 60, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("egypt_1", 40, 100, 140);
_local2.AddPiece("egypt_2", 60, 40, 80);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("china_1", 30, 120, 140);
_local2.AddPiece("china_2", 70, 60, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("grass_1", 100, 80, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("arctic_1", 40, 80, 100);
_local2.AddPiece("arctic_2", 20, 80, 100);
_local2.AddPiece("arctic_3", 20, 60, 100);
_local2.AddPiece("arctic_4", 30, 60, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("city_1", 100, 80, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("jungle_1", 50, 80, 100);
_local2.AddPiece("jungle_2", 50, 80, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("savannah_1", 50, 80, 100);
_local2.AddPiece("savannah_2", 50, 80, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("western_1", 70, 80, 120);
_local2.AddPiece("western_2", 30, 80, 120);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("india_1", 30, 100, 140);
_local2.AddPiece("india_2", 70, 80, 100);
arrSets.push(_local2);
_local2 = new Set();
_local2.AddPiece("japan_1", 30, 100, 120);
_local2.AddPiece("japan_2", 45, 100, 120);
_local2.AddPiece("japan_3", 25, 120, 150);
arrSets.push(_local2);
}
function SelectSet() {
if (arrSets.length > 0) {
var _local2 = Math.round(Math.random() * (arrSets.length - 1));
currentSet = arrSets[_local2];
arrSets.splice(_local2, 1);
} else {
BuildSets();
var _local2 = Math.round(Math.random() * (arrSets.length - 1));
currentSet = arrSets[_local2];
arrSets.splice(_local2, 1);
}
}
function ResumeThisGame() {
if (gameMode == 4) {
_global.gamePaused = false;
_root.paused.gotoAndStop(1);
}
}
function CheckKeyPress() {
if (keyCounter <= 0) {
if (Key.isDown(39)) {
keyCounter = 20;
SelectSet();
} else if (Key.isDown(80) || (Key.isDown(27))) {
if (gameMode == 4) {
keyCounter = 20;
if (_global.gamePaused == false) {
_global.gamePaused = true;
_root.paused.gotoAndStop(2);
if (_global.gameDifficulty == 1) {
_root.paused.through_txt.text = Math.round(((200 - gameTargets) / 200) * 100) + "% Through Game";
} else if (_global.gameDifficulty == 2) {
_root.paused.through_txt.text = Math.round(((300 - gameTargets) / 300) * 100) + "% Through Game";
} else if ((_global.gameDifficulty == 3) || (_global.gameDifficulty == 5)) {
_root.paused.through_txt.text = Math.round(((400 - gameTargets) / 400) * 100) + "% Through Game";
} else {
_root.paused.through_txt.text = "";
}
} else {
_global.gamePaused = false;
_root.paused.gotoAndStop(1);
}
}
}
if (gameMode == 4) {
if (Key.isDown(_global.hotKey_red)) {
ChangeOrbs(1);
} else if (Key.isDown(_global.hotKey_purple)) {
if (_global.difficulty >= 2) {
ChangeOrbs(2);
}
} else if (Key.isDown(_global.hotKey_blue)) {
if (_global.difficulty >= 5) {
ChangeOrbs(3);
}
} else if (Key.isDown(_global.hotKey_green)) {
if (_global.difficulty >= 8) {
ChangeOrbs(4);
}
} else if (Key.isDown(_global.hotKey_yellow)) {
if (_global.difficulty >= 13) {
ChangeOrbs(5);
}
} else if (Key.isDown(_global.hotKey_orange)) {
if (_global.difficulty >= 17) {
ChangeOrbs(6);
}
} else if (Key.isDown(_global.hotKey_multi)) {
if (blnMulti == true) {
ChangeOrbs(7);
}
}
}
} else {
keyCounter--;
}
}
function UpdateEnergy() {
if (gameMode == 4) {
if (numEnergy <= 0) {
GameOver(true);
}
}
if (numEnergy > numEnergyMax) {
numEnergy = numEnergyMax;
}
var _local3 = Math.round((numEnergy / numEnergyMax) * 100);
_root.energy.inside._yscale = _local3;
if (_local3 <= 25) {
_root.energy.inside.gotoAndStop(2);
} else {
_root.energy.inside.gotoAndStop(1);
}
}
function DropOrb(orbSlot) {
if ((blnMulti == false) && (refillType == 7)) {
refillType = 1;
}
var _local3 = "Orb_" + orbDepth;
_root.attachMovie("orb red", _local3, orbDepth);
_root[_local3].gotoAndStop(refillType);
_root[_local3]._y = _root.drop1._y;
switch (orbSlot) {
case 1 :
_root[_local3]._x = _root.drop1._x;
break;
case 2 :
_root[_local3]._x = _root.drop2._x;
break;
case 3 :
_root[_local3]._x = _root.drop3._x;
break;
case 4 :
_root[_local3]._x = _root.drop4._x;
break;
case 5 :
_root[_local3]._x = _root.drop5._x;
}
arrOrbs.push({name:_local3, speed:0.5, hold:false, startX:_root[_local3]._x, startY:0, slot:orbSlot, type:refillType});
orbDepth++;
if (orbDepth > 6000) {
orbDepth = 5000;
}
}
function OrbsFall() {
var _local3 = 0;
while (_local3 < arrOrbs.length) {
if ((_root[arrOrbs[_local3].name]._y < _root.land._y) && (arrOrbs[_local3].hold == false)) {
if ((_root[arrOrbs[_local3].name]._y + arrOrbs[_local3].speed) >= _root.land._y) {
_root[arrOrbs[_local3].name]._y = _root.land._y;
if (blnArrows1 == false) {
blnArrows1 = true;
_root.arrow1.play();
_root.arrow2.play();
_root.arrow3.play();
_root.arrow4.play();
_root.arrow5.play();
_root.startPlayText.play();
}
} else {
_root[arrOrbs[_local3].name]._y = _root[arrOrbs[_local3].name]._y + arrOrbs[_local3].speed;
arrOrbs[_local3].speed = arrOrbs[_local3].speed + orbSpeed;
}
}
_local3++;
}
}
function ManageFiredOrbs() {
var _local11 = new Array();
var _local12 = 0;
while (_local12 < arrOrbsFired.length) {
_root[arrOrbsFired[_local12].name]._y = _root[arrOrbsFired[_local12].name]._y + arrOrbsFired[_local12].moveY;
arrOrbsFired[_local12].moveY = arrOrbsFired[_local12].moveY + orbSpeed;
if (arrOrbsFired[_local12].moveY > orbMaxSpeed) {
arrOrbsFired[_local12].moveY = orbMaxSpeed;
}
if ((_root[arrOrbsFired[_local12].name]._y - (_root[arrOrbsFired[_local12].name]._height / 2)) > Stage.height) {
_local11.push(arrOrbsFired[_local12].name);
}
_root[arrOrbsFired[_local12].name]._x = _root[arrOrbsFired[_local12].name]._x + arrOrbsFired[_local12].moveX;
if (arrOrbsFired[_local12].moveX < 0) {
arrOrbsFired[_local12].moveX = arrOrbsFired[_local12].moveX + windResistance;
if (arrOrbsFired[_local12].moveX > 0.1) {
arrOrbsFired[_local12].moveX = 0;
}
} else if (arrOrbsFired[_local12].moveX > 0) {
arrOrbsFired[_local12].moveX = arrOrbsFired[_local12].moveX - windResistance;
if (arrOrbsFired[_local12].moveX < 0.1) {
arrOrbsFired[_local12].moveX = 0;
}
}
if (_global.trailOn == true) {
var _local9 = "effect" + effectDepth;
if (arrOrbsFired[_local12].type == 1) {
_root.attachMovie("redEffect", _local9, effectDepth);
} else if (arrOrbsFired[_local12].type == 2) {
_root.attachMovie("purpleEffect", _local9, effectDepth);
} else if (arrOrbsFired[_local12].type == 3) {
_root.attachMovie("blueEffect", _local9, effectDepth);
} else if (arrOrbsFired[_local12].type == 4) {
_root.attachMovie("greenEffect", _local9, effectDepth);
} else if (arrOrbsFired[_local12].type == 5) {
_root.attachMovie("yellowEffect", _local9, effectDepth);
} else if (arrOrbsFired[_local12].type == 6) {
_root.attachMovie("orangeEffect", _local9, effectDepth);
} else if (arrOrbsFired[_local12].type == 7) {
_root.attachMovie("multiEffect", _local9, effectDepth);
}
_root[_local9]._x = _root[arrOrbsFired[_local12].name]._x;
_root[_local9]._y = _root[arrOrbsFired[_local12].name]._y;
effectDepth++;
if (effectDepth > 11000) {
effectDepth = 10000;
}
}
_local12++;
}
var _local8;
_local12 = 0;
while (_local12 < arrOrbsFired.length) {
var _local7 = 0;
while (_local7 < arrTargetObjects.length) {
if (arrTargetObjects[_local7].down == true) {
if (_root[arrOrbsFired[_local12].name].hitTest(_root[arrTargetObjects[_local7].name])) {
_local8 = _root[arrTargetObjects[_local7].name].CheckHits(arrOrbsFired[_local12].name, arrOrbsFired[_local12].type);
if (_local8._hit == true) {
_local11.push(arrOrbsFired[_local12].name);
difficultyPeopleCounter++;
if (_local8._correctColor == true) {
var _local4 = 0;
statCorrect++;
popUpCounter++;
if ((popUpCounter >= 10) && (arrPopUpFlags[0] == false)) {
arrPopUpFlags[0] = true;
_root.popUp.gotoAndPlay(2);
_local4 = 100;
} else if ((popUpCounter >= 25) && (arrPopUpFlags[1] == false)) {
arrPopUpFlags[1] = true;
_root.popUp.gotoAndPlay(3);
_local4 = 250;
} else if ((popUpCounter >= 50) && (arrPopUpFlags[2] == false)) {
arrPopUpFlags[2] = true;
_root.popUp.gotoAndPlay(4);
_local4 = 500;
} else if ((popUpCounter >= 75) && (arrPopUpFlags[3] == false)) {
arrPopUpFlags[3] = true;
_root.popUp.gotoAndPlay(5);
_local4 = 750;
} else if ((popUpCounter >= 100) && (arrPopUpFlags[4] == false)) {
arrPopUpFlags[4] = true;
_root.popUp.gotoAndPlay(6);
_local4 = 1000;
} else if ((popUpCounter >= 150) && (arrPopUpFlags[5] == false)) {
arrPopUpFlags[5] = true;
_root.popUp.gotoAndPlay(7);
_local4 = 1500;
} else if ((popUpCounter >= 200) && (arrPopUpFlags[6] == false)) {
arrPopUpFlags[6] = true;
_root.popUp.gotoAndPlay(8);
_local4 = 2000;
}
score = _local4 + score;
if (multiOrbPointCounter != 9999) {
multiOrbPointCounter = multiOrbPointCounter - _local4;
}
_local4 = 0;
var _local10 = Math.round(Math.random() * 100);
if (_local10 < 90) {
_global.SoundManager.PlayHitSound("hit");
} else {
_local10 = Math.round(Math.random() * 7) + 1;
switch (_local10) {
case 1 :
_global.SoundManager.PlayVoiceSound("funny1");
break;
case 2 :
_global.SoundManager.PlayVoiceSound("funny2");
break;
case 3 :
_global.SoundManager.PlayVoiceSound("funny3");
break;
case 4 :
_global.SoundManager.PlayVoiceSound("funny4");
break;
case 5 :
_global.SoundManager.PlayVoiceSound("funny5");
break;
case 6 :
_global.SoundManager.PlayVoiceSound("funny6");
break;
case 7 :
_global.SoundManager.PlayVoiceSound("funny7");
break;
case 8 :
_global.SoundManager.PlayVoiceSound("funny8");
}
}
var _local6 = 0;
while (_local6 < arrRelease.length) {
if (arrRelease[_local6].id == arrOrbsFired[_local12].id) {
arrRelease[_local6].count++;
_local4 = 10 * arrRelease[_local6].count;
break;
}
_local6++;
}
if (arrOrbsFired[_local12].type == 7) {
if (rainbowHold == false) {
_root.rainbow.gotoAndPlay(2);
rainbowHold = true;
}
}
score = _local4 + score;
AddPointMarker(_local4, _local8._x, _local8._y, false);
if (multiOrbPointCounter != 9999) {
multiOrbPointCounter = multiOrbPointCounter - _local4;
}
if (_local8._allCorrect == true) {
_local4 = 50 * _local8._numTargets;
score = _local4 + score;
numEnergy++;
if (multiOrbPointCounter != 9999) {
multiOrbPointCounter = multiOrbPointCounter - _local4;
}
var _local5 = new Object();
_local5.x = _root[arrTargetObjects[_local7].name].score._x;
_local5.y = _root[arrTargetObjects[_local7].name].score._y;
_root[arrTargetObjects[_local7].name].localToGlobal(_local5);
if ((_local5.x - 20) < 0) {
_local5.x = 30;
}
if ((_local5.x + 20) > Stage.width) {
_local5.x = Stage.width - 30;
}
AddPointMarker(_local4, _local5.x, _local5.y, true);
statFull++;
}
} else {
statWrong++;
numEnergy = numEnergy - 2;
popUpCounter = 0;
arrPopUpFlags[0] = false;
arrPopUpFlags[1] = false;
arrPopUpFlags[2] = false;
arrPopUpFlags[3] = false;
arrPopUpFlags[4] = false;
arrPopUpFlags[5] = false;
arrPopUpFlags[6] = false;
}
break;
}
}
}
_local7++;
}
_local12++;
}
_local12 = 0;
while (_local12 < _local11.length) {
CleanupFiredOrb(_local11[_local12]);
_local12++;
}
}
function CleanupFiredOrb(strName) {
var _local3 = 0;
while (_local3 < arrOrbsFired.length) {
if (strName == arrOrbsFired[_local3].name) {
_root[arrOrbsFired[_local3].name].removeMovieClip();
arrOrbsFired.splice(_local3, 1);
break;
}
_local3++;
}
}
function HoldOrbs() {
var _local3 = 0;
while (_local3 < arrOrbs.length) {
if (_root[arrOrbs[_local3].name].hitTest(_xmouse, _ymouse, true)) {
blnHolding = true;
arrOrbs[_local3].hold = true;
arrOrbs[_local3].startY = _root[arrOrbs[_local3].name]._y;
}
_local3++;
}
}
function ChangeOrbs(numType) {
var _local3 = 0;
while (_local3 < arrOrbs.length) {
_root[arrOrbs[_local3].name].gotoAndStop(numType);
arrOrbs[_local3].type = numType;
_local3++;
}
refillType = numType;
}
function ChangeHeldOrbs(numType) {
var _local3 = 0;
while (_local3 < arrOrbs.length) {
if (arrOrbs[_local3].hold == true) {
_root[arrOrbs[_local3].name].gotoAndStop(numType);
arrOrbs[_local3].type = numType;
}
_local3++;
}
}
function ReleaseOrbs() {
if (_global.lockHold == false) {
_global.lockRelease = true;
blnHolding = false;
_root.lines.clear();
var _local5 = new Array();
var _local4 = 0;
while (_local4 < arrOrbs.length) {
if (arrOrbs[_local4].hold == true) {
_local5.push(arrOrbs[_local4].name);
}
_local4++;
}
arrRelease.push({id:numRelease, count:0});
_local4 = 0;
while (_local4 < _local5.length) {
FireOrb(_local5[_local4], numRelease);
_local4++;
}
if (numRelease > 2) {
arrRelease.shift();
}
numRelease++;
_global.lockRelease = false;
}
}
function FireOrb(strName, releaseNum) {
var _local4 = 0;
while (_local4 < arrOrbs.length) {
if (strName == arrOrbs[_local4].name) {
var _local8 = arrOrbs[_local4].startX - _root[arrOrbs[_local4].name]._x;
var _local7 = arrOrbs[_local4].startY - _root[arrOrbs[_local4].name]._y;
var _local6 = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
var _local5 = _local6 / 200;
if (_local5 > 1) {
_local5 = 1;
}
_local5 = Math.round(_local5 * 12);
var _local10 = 0;
var _local9 = 0;
if (_local6 != 0) {
_local10 = (_local8 / _local6) * _local5;
_local9 = (_local7 / _local6) * _local5;
}
arrOrbsFired.push({name:strName, moveX:_local10, moveY:_local9, type:arrOrbs[_local4].type, id:releaseNum});
if (arrOrbs[_local4].type == 7) {
if (blnMulti == true) {
if (_global.gameDifficulty == 1) {
blnMulti = false;
AddButton("easyMultiGone");
} else if (_global.gameDifficulty == 2) {
blnMulti = false;
AddButton("medMultiGone");
} else if (_global.gameDifficulty == 3) {
blnMulti = false;
AddButton("multiGone");
} else if (_global.gameDifficulty == 4) {
blnMulti = false;
AddButton("multiGone");
} else if (_global.gameDifficulty == 5) {
blnMulti = false;
AddButton("multiGone");
}
}
}
DropOrb(arrOrbs[_local4].slot);
arrOrbs.splice(_local4, 1);
statThrown++;
break;
}
_local4++;
}
}
function ManageHolding() {
if (_global.lockRelease == false) {
_global.lockHold = true;
if (blnHolding == true) {
var _local4 = 0;
while (_local4 < arrOrbs.length) {
if (arrOrbs[_local4].hold == false) {
if (_root[arrOrbs[_local4].name].hitTest(_xmouse, _ymouse, true)) {
arrOrbs[_local4].hold = true;
arrOrbs[_local4].startY = _root[arrOrbs[_local4].name]._y;
}
} else {
_root[arrOrbs[_local4].name]._x = _xmouse;
if (_ymouse < _root.farthest._y) {
_root[arrOrbs[_local4].name]._y = _ymouse;
} else {
_root[arrOrbs[_local4].name]._y = _root.farthest._y;
}
}
_local4++;
}
var _local5 = new Object();
_local5.x = _xmouse;
_local5.y = _ymouse;
var _local6;
if (_global.difficulty >= 2) {
if (_root.select.cover1.hitTest(_local5.x, _local5.y, true)) {
ChangeHeldOrbs(1);
} else if (_root.select.cover2.hitTest(_local5.x, _local5.y, true)) {
ChangeHeldOrbs(2);
}
}
if (_global.difficulty >= 5) {
if (_root.select.cover3.hitTest(_local5.x, _local5.y, true)) {
ChangeHeldOrbs(3);
}
}
if (_global.difficulty >= 8) {
if (_root.select.cover4.hitTest(_local5.x, _local5.y, true)) {
ChangeHeldOrbs(4);
}
}
if (_global.difficulty >= 13) {
if (_root.select.cover5.hitTest(_local5.x, _local5.y, true)) {
ChangeHeldOrbs(5);
}
}
if (_global.difficulty >= 17) {
if (_root.select.cover6.hitTest(_local5.x, _local5.y, true)) {
ChangeHeldOrbs(6);
}
}
if (blnMulti == true) {
if (_root.select.cover7.hitTest(_local5.x, _local5.y, true)) {
ChangeHeldOrbs(7);
}
}
DrawLines();
}
_global.lockHold = false;
}
}
function CheckChangeType(numType) {
if (blnHolding == true) {
ChangeOrbs(numType);
}
}
function DrawLines() {
_root.lines.clear();
_root.lines.lineStyle(1, 0, 50);
var _local4 = new Object();
var _local5 = new Object();
var _local3 = 0;
while (_local3 < arrOrbs.length) {
if (arrOrbs[_local3].hold == true) {
_local4.x = arrOrbs[_local3].startX;
_local4.y = arrOrbs[_local3].startY;
_local5.x = _root[arrOrbs[_local3].name]._x;
_local5.y = _root[arrOrbs[_local3].name]._y;
_root.lines.globalToLocal(_local4);
_root.lines.globalToLocal(_local5);
_root.lines.moveTo(_local4.x, _local4.y);
_root.lines.lineTo(_local5.x, _local5.y);
}
_local3++;
}
}
function AddObject(linkID) {
var _local3 = "obj" + objectDepth;
_root.attachMovie(linkID, _local3, objectDepth);
arrTargetObjects.push({name:_local3, down:false});
if (blnLeftSide == true) {
var _local5 = Math.round(Math.random() * 100) - 100;
blnLeftSide = false;
} else {
var _local5 = Math.round(Math.random() * 200) + 100;
blnLeftSide = true;
}
_root[_local3]._x = _local5;
_root[_local3]._y = Stage.height + _root[_local3]._height;
var _local4 = _root[_local3].AdjustTargets();
targetCounter = targetCounter + _local4;
gameTargets = gameTargets - _local4;
if (setIndex != arrSetCounter.length) {
if (targetCounter >= arrSetCounter[setIndex]) {
setIndex++;
var _local7 = currentSet.GetMinNext();
var _local6 = currentSet.GetMaxNext();
SelectSet();
currentSet.SetMinMax(_local7, _local6);
}
}
objectDepth--;
if (objectDepth < 1000) {
objectDepth = 4000;
}
}
function ManageObjects() {
var _local6 = new Array();
var _local4 = 0;
while (_local4 < arrTargetObjects.length) {
if (arrTargetObjects[_local4].down == true) {
_root[arrTargetObjects[_local4].name]._y = _root[arrTargetObjects[_local4].name]._y + numGroundSpeed;
if ((_root[arrTargetObjects[_local4].name]._y - _root[arrTargetObjects[_local4].name]._height) > Stage.height) {
_local6.push(arrTargetObjects[_local4].name);
statMissed = statMissed + _root[arrTargetObjects[_local4].name].GetTargetsLeft();
numEnergy = numEnergy - Math.round(_root[arrTargetObjects[_local4].name].GetTargetsLeft() * 1.5);
}
} else {
var _local5 = 0.15 * (_root[arrTargetObjects[_local4].name]._y - _root.start._y);
if (_local5 <= 1) {
_root[arrTargetObjects[_local4].name]._y = _root.start._y;
arrTargetObjects[_local4].down = true;
} else {
_root[arrTargetObjects[_local4].name]._y = _root[arrTargetObjects[_local4].name]._y - _local5;
}
}
_local4++;
}
_local4 = 0;
while (_local4 < _local6.length) {
RemoveObjects(_local6[_local4]);
_local4++;
}
if ((gameTargets > 0) || (_global.gameDifficulty == 4)) {
engineTimer = engineTimer - numGroundSpeed;
if (engineTimer <= 0) {
AddObject(currentSet.GetPiece());
engineTimer = Math.round(Math.random() * (currentSet.GetMaxNext() - currentSet.GetMinNext())) + currentSet.GetMinNext();
}
} else if (arrTargetObjects.length == 0) {
GameOver(false);
}
}
function RemoveObjects(strName) {
var _local3 = 0;
while (_local3 < arrTargetObjects.length) {
if (strName == arrTargetObjects[_local3].name) {
_root[arrTargetObjects[_local3].name].removeMovieClip();
arrTargetObjects.splice(_local3, 1);
break;
}
_local3++;
}
}
function AddButton(strName) {
_root.select.gotoAndPlay(strName);
}
function UpdateScore() {
_root.score_txt.text = score;
}
function AddToCleanup(myName) {
arrCleanup.push({name:myName, counter:40});
}
function DoCleanup() {
var _local4 = new Array();
var _local3 = 0;
while (_local3 < arrCleanup.length) {
arrCleanup[_local3].counter--;
if (arrCleanup[_local3].counter == 0) {
_local4.push(arrCleanup[_local3].name);
}
_local3++;
}
_local3 = 0;
while (_local3 < _local4.length) {
_root[_local4[_local3]].removeMovieClip();
RemoveCleanupItem(_local4[_local3]);
_local3++;
}
}
function RemoveCleanupItem(strName) {
var _local2 = 0;
while (_local2 < arrCleanup.length) {
if (strName == arrCleanup[_local2].name) {
arrCleanup.splice(_local2, 1);
break;
}
_local2++;
}
}
function AddPointMarker(points, xLoc, yLoc, blnObject) {
var _local3 = "points" + pointDepth;
_root.attachMovie("points", _local3, pointDepth);
_root[_local3]._y = yLoc - 20;
_root[_local3]._x = xLoc;
var _local4;
if (blnObject == false) {
_local4 = points / 10;
} else {
_local4 = (points / 50) + 5;
}
_root[_local3].inside.gotoAndStop(_local4);
AddToCleanup(_local3);
pointDepth++;
if (pointDepth > 9050) {
pointDepth = 9000;
}
}
function OverAnim() {
rainbowHold = false;
}
function UpdateBackAnim() {
if (backAnimCounter <= 0) {
var _local3 = Math.round(Math.random() * 5) + 2;
var _local4 = Math.round(Math.random() * (backAnimMax - backAnimMin)) + backAnimMin;
trace((("Playing: " + _local3) + " Next: ") + _local4);
_root.backanim.gotoAndPlay(_local3);
backAnimCounter = _local4;
} else {
backAnimCounter--;
}
}
function UpdateMultiOrb() {
if (multiOrbPointCounter <= 0) {
if (_global.gameDifficulty == 1) {
if ((_global.difficulty >= 2) && (blnMulti == false)) {
blnMulti = true;
AddButton("easyMulti");
multiOrbPointCounter = 4000;
}
} else if (_global.gameDifficulty == 2) {
if ((_global.difficulty >= 8) && (blnMulti == false)) {
blnMulti = true;
AddButton("medMulti");
multiOrbPointCounter = 4000;
}
} else if (_global.gameDifficulty == 3) {
if ((_global.difficulty >= 17) && (blnMulti == false)) {
blnMulti = true;
AddButton("multi");
multiOrbPointCounter = 4000;
}
} else if (_global.gameDifficulty == 4) {
if ((_global.difficulty >= 17) && (blnMulti == false)) {
blnMulti = true;
AddButton("multi");
multiOrbPointCounter = 4000;
}
} else if (_global.gameDifficulty == 5) {
if ((_global.difficulty >= 17) && (blnMulti == false)) {
blnMulti = true;
AddButton("multi");
multiOrbPointCounter = 4000;
}
}
multiOrbPointCounter = 4000;
} else if (multiOrbPointCounter == 9999) {
if (_global.gameDifficulty == 1) {
if (_global.difficulty >= 2) {
multiOrbPointCounter = 1000;
}
} else if (_global.gameDifficulty == 2) {
if (_global.difficulty >= 8) {
multiOrbPointCounter = 1000;
}
} else if (_global.gameDifficulty == 3) {
if (_global.difficulty >= 17) {
multiOrbPointCounter = 1000;
}
} else if (_global.gameDifficulty == 4) {
if (_global.difficulty >= 17) {
multiOrbPointCounter = 1000;
}
} else if (_global.gameDifficulty == 5) {
if (_global.difficulty >= 17) {
multiOrbPointCounter = 1000;
}
}
}
}
}
Symbol 1224 MovieClip [__Packages.Set] Frame 0 (1.62 KiB) ●
class Set
{
var arrPieces, blnUsed, numSelectedMinNext, numSelectedMaxNext;
function Set () {
arrPieces = new Array();
blnUsed = false;
}
function AddPiece(strIdentifier, numPercentChance, minNew, maxNew) {
arrPieces.push({name:strIdentifier, chance:numPercentChance, minChance:0, maxChance:0, minNext:minNew, maxNext:maxNew});
}
function InUse() {
blnUsed = true;
}
function Used() {
return(blnUsed);
}
function GetPiece() {
var _local3 = 0;
var _local4 = 0;
var _local7 = 0;
var _local5 = 0;
var _local2 = 0;
while (_local2 < arrPieces.length) {
_local7 = _local7 + arrPieces[_local2].chance;
_local2++;
}
_local5 = Math.round(Math.random() * _local7);
_local2 = 0;
while (_local2 < arrPieces.length) {
_local4 = _local3 + arrPieces[_local2].chance;
arrPieces[_local2].minChance = _local3;
arrPieces[_local2].maxChance = _local4;
_local3 = _local4;
_local2++;
}
var _local6 = -1;
_local2 = 0;
while (_local2 < arrPieces.length) {
if ((_local5 >= arrPieces[_local2].minChance) && (_local5 < arrPieces[_local2].maxChance)) {
_local6 = _local2;
break;
}
_local2++;
}
if (_local6 == -1) {
_local6 = arrPieces.length - 1;
}
numSelectedMinNext = arrPieces[_local6].minNext;
numSelectedMaxNext = arrPieces[_local6].maxNext;
return(arrPieces[_local6].name);
}
function GetMinNext() {
return(numSelectedMinNext);
}
function GetMaxNext() {
return(numSelectedMaxNext);
}
function SetMinMax(myMin, myMax) {
numSelectedMinNext = myMin;
numSelectedMaxNext = myMax;
}
}
Symbol 804 Button (64 B)
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 811 MovieClip Frame 140 (8 B)
stop();
Instance of Symbol 814 MovieClip in Symbol 815 MovieClip Frame 179 (70 B)
on (release) {
getURL ("http://www.herointeractive.com", "_blank");
}
Symbol 815 MovieClip Frame 328 (28 B)
_root.gotoAndPlay("title");
Symbol 829 MovieClip Frame 1 (8 B)
stop();
Symbol 829 MovieClip Frame 2 (8 B)
stop();
Symbol 842 MovieClip Frame 35 (80 B)
if (_global.challengeUnlocked == true) {
this.orangeButton.gotoAndStop(2);
}
Instance of Symbol 825 MovieClip in Symbol 842 MovieClip Frame 50 (129 B)
on (release) {
_global.nextScreen = "play";
_root.transition.gotoAndPlay("close");
_global.SoundManager.PlaySound("button");
}
Symbol 842 MovieClip Frame 55 (80 B)
if (_global.challengeUnlocked == true) {
this.orangeButton.gotoAndStop(2);
}
Instance of Symbol 829 MovieClip "orangeButton" in Symbol 842 MovieClip Frame 55 (207 B)
on (release) {
if (_global.challengeUnlocked == true) {
_global.gameDifficulty = 4;
_global.nextScreen = "game";
_root.transition.gotoAndPlay("close");
_global.SoundManager.PlaySound("button");
}
}
Instance of Symbol 832 MovieClip in Symbol 842 MovieClip Frame 60 (133 B)
on (release) {
_global.nextScreen = "settings";
_root.transition.gotoAndPlay("close");
_global.SoundManager.PlaySound("button");
}
Instance of Symbol 835 MovieClip in Symbol 842 MovieClip Frame 65 (132 B)
on (release) {
_global.nextScreen = "credits";
_root.transition.gotoAndPlay("close");
_global.SoundManager.PlaySound("button");
}
Instance of Symbol 838 MovieClip in Symbol 842 MovieClip Frame 70 (108 B)
on (release) {
getURL ("http://www.armorgames.com", "_blank");
_global.SoundManager.PlaySound("button");
}
Symbol 842 MovieClip Frame 75 (8 B)
stop();
Instance of Symbol 841 MovieClip in Symbol 842 MovieClip Frame 75 (131 B)
on (release) {
_global.nextScreen = "scores";
_root.transition.gotoAndPlay("close");
_global.SoundManager.PlaySound("button");
}
Instance of Symbol 851 MovieClip in Symbol 858 MovieClip Frame 1 (63 B)
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 858 MovieClip Frame 30 (8 B)
stop();
Symbol 860 MovieClip Frame 1 (8 B)
stop();
Symbol 860 MovieClip Frame 41 (8 B)
stop();
Symbol 860 MovieClip Frame 61 (48 B)
_root.gotoAndPlay(_global.nextScreen);
stop();
Symbol 860 MovieClip Frame 62 (8 B)
play();
Symbol 860 MovieClip Frame 82 (8 B)
stop();
Symbol 869 Button (89 B)
on (release) {
_root.gotoAndPlay("title");
_global.SoundManager.PlaySound("button2");
}
Symbol 871 Button (160 B)
on (release) {
_global.gameDifficulty = 1;
_global.nextScreen = "game";
_root.transition2.gotoAndPlay("close");
_global.SoundManager.PlaySound("button2");
}
Symbol 872 Button (160 B)
on (release) {
_global.gameDifficulty = 2;
_global.nextScreen = "game";
_root.transition2.gotoAndPlay("close");
_global.SoundManager.PlaySound("button2");
}
Symbol 873 Button (160 B)
on (release) {
_global.gameDifficulty = 3;
_global.nextScreen = "game";
_root.transition2.gotoAndPlay("close");
_global.SoundManager.PlaySound("button2");
}
Symbol 874 Button (160 B)
on (release) {
_global.gameDifficulty = 5;
_global.nextScreen = "game";
_root.transition2.gotoAndPlay("close");
_global.SoundManager.PlaySound("button2");
}
Symbol 894 Button (787 B)
on (release) {
var mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.written = true;
mySharedObject.data.trailOn = _global.trailOn;
mySharedObject.data.soundOn = _global.soundOn;
mySharedObject.data.musicOn = _global.musicOn;
mySharedObject.data.cloudsMove = _global.cloudsMove;
mySharedObject.data.hotKey_red = _global.hotKey_red;
mySharedObject.data.hotKey_purple = _global.hotKey_purple;
mySharedObject.data.hotKey_blue = _global.hotKey_blue;
mySharedObject.data.hotKey_green = _global.hotKey_green;
mySharedObject.data.hotKey_yellow = _global.hotKey_yellow;
mySharedObject.data.hotKey_orange = _global.hotKey_orange;
mySharedObject.data.hotKey_multi = _global.hotKey_multi;
_root.gotoAndPlay("title");
_global.SoundManager.PlaySound("button2");
}
Symbol 896 MovieClip Frame 1 (8 B)
stop();
Symbol 896 MovieClip Frame 2 (8 B)
stop();
Symbol 907 Button (134 B)
on (release) {
_global.nextScreen = "hotkeys";
_root.transition2.gotoAndPlay("close");
_global.SoundManager.PlaySound("button2");
}
Symbol 912 Button (128 B)
on (release) {
getURL ("http://www.bagunk.com/scores.php?profile=358", "_blank");
_global.SoundManager.PlaySound("button2");
}
Symbol 921 Button (135 B)
on (release) {
_global.nextScreen = "settings";
_root.transition2.gotoAndPlay("close");
_global.SoundManager.PlaySound("button2");
}
Symbol 934 MovieClip Frame 1 (8 B)
stop();
Symbol 934 MovieClip Frame 2 (8 B)
stop();
Symbol 937 Button (38 B)
on (release) {
_root.submitScore();
}
Symbol 945 Button (37 B)
on (release) {
_root.loginScore();
}
Symbol 957 MovieClip Frame 1 (48 B)
if (_global.cloudsMove == false) {
stop();
}
Symbol 957 MovieClip Frame 1140 (1 B)
Symbol 998 MovieClip Frame 1 (8 B)
stop();
Symbol 998 MovieClip Frame 40 (8 B)
stop();
Symbol 999 MovieClip Frame 1 (8 B)
stop();
Symbol 999 MovieClip Frame 2 (28 B)
this.myMask.gotoAndPlay(2);
Symbol 999 MovieClip Frame 3 (20 B)
this.myMask.play();
Symbol 999 MovieClip Frame 300 (39 B)
_root.RainbowOver();
gotoAndStop (1);
Symbol 1004 MovieClip Frame 70 (8 B)
stop();
Symbol 1005 MovieClip Frame 95 (8 B)
stop();
Symbol 1016 MovieClip Frame 1 (36 B)
gotoAndPlay(_global.danceSync - 1);
Symbol 1016 MovieClip Frame 50 (17 B)
gotoAndPlay (2);
Symbol 1019 MovieClip Frame 270 (8 B)
stop();
Symbol 1020 MovieClip Frame 270 (8 B)
stop();
Symbol 1034 MovieClip Frame 180 (8 B)
stop();
Symbol 1035 MovieClip Frame 1 (8 B)
stop();
Symbol 1035 MovieClip Frame 2 (8 B)
stop();
Symbol 1035 MovieClip Frame 3 (8 B)
stop();
Symbol 1035 MovieClip Frame 4 (8 B)
stop();
Symbol 1035 MovieClip Frame 5 (8 B)
stop();
Symbol 1035 MovieClip Frame 6 (8 B)
stop();
Symbol 1035 MovieClip Frame 7 (8 B)
stop();
Symbol 1041 Button (104 B)
on (release) {
this._visible = false;
_root.StartGame();
_global.SoundManager.PlaySound("button2");
}
Symbol 1043 Button (79 B)
on (release) {
this.nextFrame();
_global.SoundManager.PlaySound("button2");
}
Symbol 1068 MovieClip Frame 1 (8 B)
stop();
Symbol 1068 MovieClip Frame 6 (2.83 KiB) ●
function OutputValue(fieldName, keyCode) {
var textRef = eval ("this." + fieldName);
var returnValue = "";
switch (keyCode) {
case 8 :
returnValue = "BACKSPACE";
break;
case 20 :
returnValue = "CAPSLOCK";
break;
case 17 :
returnValue = "CONTROL";
break;
case 46 :
returnValue = "DELETE";
break;
case 40 :
returnValue = "DOWN";
break;
case 35 :
returnValue = "END";
break;
case 13 :
returnValue = "ENTER";
break;
case 27 :
returnValue = "ESCAPE";
break;
case 36 :
returnValue = "HOME";
break;
case 45 :
returnValue = "INSERT";
break;
case 37 :
returnValue = "LEFT";
break;
case 34 :
returnValue = "PGDN";
break;
case 33 :
returnValue = "PGUP";
break;
case 39 :
returnValue = "RIGHT";
break;
case 16 :
returnValue = "SHIFT";
break;
case 32 :
returnValue = "SPACE";
break;
case 9 :
returnValue = "TAB";
break;
case 38 :
returnValue = "UP";
break;
case 186 :
returnValue = ";";
break;
case 187 :
returnValue = "=";
break;
case 189 :
returnValue = "-";
break;
case 191 :
returnValue = "/";
break;
case 192 :
returnValue = "`";
break;
case 219 :
returnValue = "[";
break;
case 220 :
returnValue = "\\";
break;
case 221 :
returnValue = "]";
break;
case 222 :
returnValue = "'";
break;
case 188 :
returnValue = ",";
break;
case 190 :
returnValue = ".";
break;
case 96 :
returnValue = "NUMPAD 0";
break;
case 97 :
returnValue = "NUMPAD 1";
break;
case 98 :
returnValue = "NUMPAD 2";
break;
case 99 :
returnValue = "NUMPAD 3";
break;
case 100 :
returnValue = "NUMPAD 4";
break;
case 101 :
returnValue = "NUMPAD 5";
break;
case 102 :
returnValue = "NUMPAD 6";
break;
case 103 :
returnValue = "NUMPAD 7";
break;
case 104 :
returnValue = "NUMPAD 8";
break;
case 105 :
returnValue = "NUMPAD 9";
break;
case 106 :
returnValue = "MULTIPLY";
break;
case 107 :
returnValue = "ADD";
break;
case 109 :
returnValue = "SUBTRACT";
break;
case 110 :
returnValue = "DECIMAL";
break;
case 111 :
returnValue = "DIVIDE";
break;
default :
returnValue = chr(keyCode);
returnValue.toUpperCase();
}
textRef.text = returnValue;
}
stop();
OutputValue("red_txt", _global.hotKey_red);
OutputValue("purple_txt", _global.hotKey_purple);
OutputValue("blue_txt", _global.hotKey_blue);
OutputValue("green_txt", _global.hotKey_green);
OutputValue("yellow_txt", _global.hotKey_yellow);
OutputValue("orange_txt", _global.hotKey_orange);
OutputValue("multi_txt", _global.hotKey_multi);
Symbol 1071 MovieClip Frame 135 (8 B)
stop();
Symbol 1074 MovieClip Frame 150 (8 B)
stop();
Symbol 1082 MovieClip Frame 50 (8 B)
stop();
Symbol 1083 MovieClip Frame 10 (41 B)
_global.SoundManager.PlaySound("bonus");
Symbol 1083 MovieClip Frame 70 (8 B)
stop();
Symbol 1088 MovieClip Frame 10 (41 B)
_global.SoundManager.PlaySound("bonus");
Symbol 1088 MovieClip Frame 70 (8 B)
stop();
Symbol 1093 MovieClip Frame 10 (41 B)
_global.SoundManager.PlaySound("bonus");
Symbol 1093 MovieClip Frame 71 (8 B)
stop();
Symbol 1098 MovieClip Frame 10 (41 B)
_global.SoundManager.PlaySound("bonus");
Symbol 1098 MovieClip Frame 70 (8 B)
stop();
Symbol 1103 MovieClip Frame 10 (41 B)
_global.SoundManager.PlaySound("bonus");
Symbol 1103 MovieClip Frame 70 (8 B)
stop();
Symbol 1108 MovieClip Frame 1 (41 B)
_global.SoundManager.PlaySound("bonus");
Symbol 1108 MovieClip Frame 70 (8 B)
stop();
Symbol 1113 MovieClip Frame 10 (41 B)
_global.SoundManager.PlaySound("bonus");
Symbol 1113 MovieClip Frame 70 (8 B)
stop();
Symbol 1117 MovieClip Frame 1 (8 B)
stop();
Symbol 1117 MovieClip Frame 2 (8 B)
stop();
Symbol 1117 MovieClip Frame 3 (8 B)
stop();
Symbol 1117 MovieClip Frame 4 (8 B)
stop();
Symbol 1117 MovieClip Frame 5 (8 B)
stop();
Symbol 1117 MovieClip Frame 6 (8 B)
stop();
Symbol 1117 MovieClip Frame 7 (8 B)
stop();
Symbol 1117 MovieClip Frame 8 (8 B)
stop();
Symbol 1125 MovieClip Frame 1 (8 B)
stop();
Symbol 1126 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 774 MovieClip [orb red] in Symbol 1126 MovieClip Frame 1 (42 B)
on (release) {
_root.GameChangeType(1);
}
Symbol 1126 MovieClip Frame 20 (8 B)
stop();
Instance of Symbol 1125 MovieClip "purpleButton" in Symbol 1126 MovieClip Frame 20 (42 B)
on (release) {
_root.GameChangeType(2);
}
Symbol 1126 MovieClip Frame 40 (8 B)
stop();
Instance of Symbol 764 MovieClip in Symbol 1126 MovieClip Frame 40 (42 B)
on (release) {
_root.GameChangeType(3);
}
Symbol 1126 MovieClip Frame 60 (8 B)
stop();
Instance of Symbol 766 MovieClip in Symbol 1126 MovieClip Frame 60 (42 B)
on (release) {
_root.GameChangeType(4);
}
Symbol 1126 MovieClip Frame 80 (8 B)
stop();
Instance of Symbol 768 MovieClip in Symbol 1126 MovieClip Frame 80 (42 B)
on (release) {
_root.GameChangeType(5);
}
Symbol 1126 MovieClip Frame 100 (8 B)
stop();
Instance of Symbol 770 MovieClip in Symbol 1126 MovieClip Frame 100 (42 B)
on (release) {
_root.GameChangeType(6);
}
Symbol 1126 MovieClip Frame 120 (8 B)
stop();
Instance of Symbol 773 MovieClip in Symbol 1126 MovieClip Frame 120 (42 B)
on (release) {
_root.GameChangeType(7);
}
Symbol 1126 MovieClip Frame 141 (8 B)
stop();
Instance of Symbol 773 MovieClip in Symbol 1126 MovieClip Frame 141 (42 B)
on (release) {
_root.GameChangeType(7);
}
Instance of Symbol 764 MovieClip in Symbol 1126 MovieClip Frame 142 (42 B)
on (release) {
_root.GameChangeType(3);
}
Instance of Symbol 766 MovieClip in Symbol 1126 MovieClip Frame 142 (42 B)
on (release) {
_root.GameChangeType(4);
}
Symbol 1126 MovieClip Frame 162 (8 B)
stop();
Instance of Symbol 773 MovieClip in Symbol 1126 MovieClip Frame 162 (42 B)
on (release) {
_root.GameChangeType(7);
}
Symbol 1126 MovieClip Frame 183 (8 B)
stop();
Instance of Symbol 773 MovieClip in Symbol 1126 MovieClip Frame 184 (42 B)
on (release) {
_root.GameChangeType(7);
}
Symbol 1126 MovieClip Frame 204 (8 B)
stop();
Instance of Symbol 764 MovieClip in Symbol 1126 MovieClip Frame 205 (42 B)
on (release) {
_root.GameChangeType(3);
}
Instance of Symbol 766 MovieClip in Symbol 1126 MovieClip Frame 205 (42 B)
on (release) {
_root.GameChangeType(4);
}
Instance of Symbol 768 MovieClip in Symbol 1126 MovieClip Frame 205 (42 B)
on (release) {
_root.GameChangeType(5);
}
Instance of Symbol 770 MovieClip in Symbol 1126 MovieClip Frame 205 (42 B)
on (release) {
_root.GameChangeType(6);
}
Instance of Symbol 773 MovieClip in Symbol 1126 MovieClip Frame 205 (42 B)
on (release) {
_root.GameChangeType(7);
}
Symbol 1126 MovieClip Frame 225 (8 B)
stop();
Symbol 1131 MovieClip Frame 1 (8 B)
stop();
Symbol 1131 MovieClip Frame 2 (8 B)
stop();
Symbol 1136 Button (39 B)
on (release) {
_root.GameFinished();
}
Symbol 1140 Button (37 B)
on (release) {
_root.ResumeGame();
}
Symbol 1155 Button (79 B)
on (release) {
_root.QuitGame();
_global.SoundManager.PlaySound("button2");
}
Symbol 1168 MovieClip Frame 1 (8 B)
stop();
Symbol 1168 MovieClip Frame 3 (410 B)
if (_global.gameDifficulty == 1) {
this.coming_txt.text = "200 Targets Coming Up!";
} else if (_global.gameDifficulty == 2) {
this.coming_txt.text = "300 Targets Coming Up!";
} else if (_global.gameDifficulty == 3) {
this.coming_txt.text = "400 Targets Coming Up!";
} else if (_global.gameDifficulty == 5) {
this.coming_txt.text = "400 Targets Coming Up!";
} else {
this.coming_txt.text = "";
}