Frame 1
toLoad = new Array("arctic", "desert", "space", "jungle", "water");
toLoadLevels = new Array(1, 2, 3, 4, 5);
possibleEndings = new Array();
allButtons = new Array("arctic", "desert", "space", "jungle", "water");
var gMode;
var gLevelNum;
play();
function fnSetConstants() {
lastClipFrame = 62;
centerX = 290;
kimwidth = 80;
floorHdiff = 50;
hdiff = 68;
lev2shelfNum = 5;
lev3shelfNum = 2;
lev4shelfNum = 5;
moveIncr = 15;
beginBgX = 3902.8;
endBgX = 2669.2;
gr1targetItem = 1;
gr2targetItem = 1;
gr3targetItem = 1;
KIMSITEURL = "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/disneychannel/zoogdisney/kimpossible/site/index.html&name=zoog_kimpossible_avenger_bb\r\n";
}
function fnSelectMission(environment) {
i = 0;
while (i < allButtons.length) {
if (allButtons[i] != environment) {
setProperty(allButtons[i] + "Button", _visible , 0);
}
i++;
}
if (missionLoader._currentframe != 1) {
unloadMovieNum (gLevelNum);
missionLoader.gotoAndStop("base");
}
if (environment == "arctic") {
gLevelNum = Number(1);
} else if (environment == "desert") {
gLevelNum = Number(2);
} else if (environment == "space") {
gLevelNum = Number(3);
} else if (environment == "jungle") {
gLevelNum = Number(4);
} else if (environment == "water") {
gLevelNum = Number(5);
}
eval (environment + "Button").gotoAndStop("loading");
gChosenMission = environment;
loadMovieNum (environment + ".swf", gLevelNum);
missionLoader.gotoAndPlay("checkload");
}
Instance of Symbol 19 MovieClip in Frame 1
onClipEvent (enterFrame) {
var percentageLoaded = Number(100 * (_root.getBytesLoaded() / _root.getBytesTotal()));
if (percentageLoaded < 14.2857142857143) {
bar.gotoAndStop("base");
} else if ((percentageLoaded >= Number(14.2857142857143)) && (percentageLoaded < (Number(14.2857142857143) * 2))) {
bar.gotoAndStop("step1");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 2)) && (percentageLoaded < (Number(14.2857142857143) * 3))) {
bar.gotoAndStop("step2");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 3)) && (percentageLoaded < (Number(14.2857142857143) * 4))) {
bar.gotoAndStop("step3");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 4)) && (percentageLoaded < (Number(14.2857142857143) * 5))) {
bar.gotoAndStop("step4");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 5)) && (percentageLoaded < (Number(14.2857142857143) * 6))) {
bar.gotoAndStop("step5");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 6)) && (percentageLoaded < Number(1))) {
bar.gotoAndStop("step6");
} else if (percentageLoaded == 1) {
bar.gotoAndStop("step7");
}
}
Frame 2
play();
Frame 3
if (getBytesLoaded() == getBytesTotal()) {
fnSetConstants();
if ((from != "") && (from != undefined)) {
gMode = "receive";
i = 0;
while (i < toLoadLevels.length) {
if (Number(env) == toLoadLevels[i]) {
loadMovieNum (toLoad[i] + ".swf", toLoadLevels[i]);
toLoad.splice(i, 1);
toLoadLevels.splice(i, 1);
gLevelNum = Number(env);
i = toLoadLevels.length;
}
i++;
}
gotoAndStop (4);
} else {
gMode = "send";
gotoAndPlay (7);
}
} else {
gotoAndPlay (2);
}
Frame 4
stop();
function fnViewEnding() {
gReplay = false;
finalTime = Number(score);
i = 1;
while (i < 4) {
Set(("currentType" + String(i)) + "item", Number(eval (("type" + String(i)) + "item")));
i++;
}
eval ("_level" + gLevelNum).gotoAndPlay("endscene");
gotoAndStop (26);
}
Instance of Symbol 36 MovieClip in Frame 4
onClipEvent (enterFrame) {
var percentageLoaded = Number(100 * (eval ("_level" + _root.gLevelNum).getBytesLoaded() / eval ("_level" + _root.gLevelNum).getBytesTotal()));
if (percentageLoaded != undefined) {
if (percentageLoaded < 14.2857142857143) {
this.loading.bar.gotoAndStop("base");
} else if ((percentageLoaded >= Number(14.2857142857143)) && (percentageLoaded < (Number(14.2857142857143) * 2))) {
this.loading.bar.gotoAndStop("step1");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 2)) && (percentageLoaded < (Number(14.2857142857143) * 3))) {
this.loading.bar.gotoAndStop("step2");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 3)) && (percentageLoaded < (Number(14.2857142857143) * 4))) {
this.loading.bar.gotoAndStop("step3");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 4)) && (percentageLoaded < (Number(14.2857142857143) * 5))) {
this.loading.bar.gotoAndStop("step4");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 5)) && (percentageLoaded < (Number(14.2857142857143) * 6))) {
this.loading.bar.gotoAndStop("step5");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 6)) && (percentageLoaded < Number(100))) {
this.loading.bar.gotoAndStop("step6");
} else if (percentageLoaded == 100) {
this.loading.bar.gotoAndStop("step7");
this.gotoAndStop("ready");
}
}
}
Frame 7
play();
Frame 17
if (0 < toLoad.length) {
loadMovieNum (toLoad[0] + ".swf", toLoadLevels[0]);
missionLoader.gotoAndPlay("loadmore");
gLevelNum = toLoadLevels[0];
}
i = 0;
while (i < allButtons.length) {
setProperty(allButtons[i] + "Button", _visible , 1);
i++;
}
stop();
function fnInitialize() {
falling = false;
mySound = new Sound();
allSlots = new Array("item1", "item2", "item3", "item4", "item5", "item6", "item7", "item8", "item9", "item10", "item11", "item12");
availSlots = new Array("item1", "item2", "item3", "item4", "item5", "item6", "item7", "item8", "item9", "item10", "item11", "item12");
lev2items = new Array();
lev2slots = new Array();
lev3items = new Array();
lev3slots = new Array();
lev4items = new Array();
lev4slots = new Array();
if (0 < toLoad.length) {
loadMovieNum (toLoad[0] + ".swf", toLoadLevels[0]);
missionLoader.gotoAndPlay("loadmore");
} else {
missionLoader.gotoAndStop("base");
}
eval (gChosenMission + "Button.loadStart").gotoAndStop("ready");
}
function fnSetGame() {
halfShelfWidth = background.lev2shelf1._width / 2;
gGameplay = true;
gReplay = false;
possibleEndings.splice(0);
lev2items.splice(0);
lev3items.splice(0);
lev4items.splice(0);
lev2slots.splice(0);
lev3slots.splice(0);
lev4slots.splice(0);
pda.itemIcons.gotoAndStop("set" + gLevelNum);
level = 1;
dir = "right";
jumping = false;
generateProblems();
}
function generateProblems() {
if (gLevelNum == 1) {
lev2items.push("set1gr3item1", "set1gr3item2", "set1gr2item4", "set1gr3item3", "set1gr2item2");
lev3items.push("set1gr1item1", "set1gr1item3");
lev4items.push("set1gr2item1", "set1gr1item2", "set1gr1item4", "set1gr3item4", "set1gr2item3");
} else if (gLevelNum == 2) {
lev2items.push("set2gr1item1", "set2gr1item4", "set2gr2item4", "set2gr3item2", "set2gr3item4");
lev3items.push("set2gr2item1", "set2gr1item2");
lev4items.push("set2gr3item1", "set2gr1item3", "set2gr2item2", "set2gr2item3", "set2gr3item3");
} else if (gLevelNum == 3) {
lev2items.push("set3gr3item1", "set3gr2item2", "set3gr2item4", "set3gr3item3", "set3gr3item4");
lev3items.push("set3gr1item1", "set3gr1item3");
lev4items.push("set3gr2item1", "set3gr1item2", "set3gr1item4", "set3gr2item3", "set3gr3item2");
} else if (gLevelNum == 4) {
lev2items.push("set4gr3item1", "set4gr2item2", "set4gr3item2", "set4gr3item3", "set4gr3item4");
lev3items.push("set4gr1item1", "set4gr1item4");
lev4items.push("set4gr2item1", "set4gr1item2", "set4gr1item3", "set4gr2item3", "set4gr2item4");
} else if (gLevelNum == 5) {
lev2items.push("set5gr3item1", "set5gr2item3", "set5gr2item4", "set5gr3item3", "set5gr3item4");
lev3items.push("set5gr1item1", "set5gr1item3");
lev4items.push("set5gr2item1", "set5gr1item2", "set5gr1item4", "set5gr2item2", "set5gr3item2");
}
lev2slots.push("item2", "item4", "item6", "item9", "item12");
lev3slots.push("item7", "item10");
lev4slots.push("item1", "item3", "item5", "item8", "item11");
currentType1item = "blank";
currentType2item = "blank";
currentType3item = "blank";
placeItems();
}
function placeItems() {
i = 1;
while (i < Number(lev3shelfNum + Number(1))) {
if (i == 1) {
toExtract = 0;
} else {
toExtract = Math.round(Math.random() * lev3items.length);
if (toExtract == lev3items.length) {
toExtract--;
}
}
toFill = Math.round(Math.random() * lev3slots.length);
if (toFill == lev3slots.length) {
toFill--;
}
Set(lev3slots[toFill] + "ID", lev3items[toExtract]);
eval ("background." + lev3slots[toFill]).gotoAndStop(lev3items[toExtract]);
if ((((String(lev3slots[toFill]).substr(-1) == "1") || (String(lev3slots[toFill]).substr(-1) == "2")) || (String(lev3slots[toFill]).substr(-1) == "3")) || (String(lev3slots[toFill]).substr(-1) == "4")) {
Set(lev3slots[toFill] + "aID", lev3items[toExtract]);
eval (("background." + lev3slots[toFill]) + "a").gotoAndStop(lev3items[toExtract]);
}
lev3items.splice(toExtract, 1);
if (i == 1) {
lev3takenSlot = String(lev3slots[toFill]).substr(4);
}
lev3slots.splice(toFill, 1);
I++;
}
i = 1;
while (i < Number(lev2shelfNum + Number(1))) {
if (i == 1) {
toExtract = 0;
} else {
toExtract = Math.round(Math.random() * lev2items.length);
if (toExtract == lev2items.length) {
toExtract--;
}
}
toFill = Math.round(Math.random() * lev2slots.length);
if (toFill == lev2slots.length) {
toFill--;
}
if (i == 1) {
if (Math.abs(Number(Number(String(lev2slots[toFill]).substr(4)) - Number(lev3takenSlot))) < 3) {
if (toFill == Number(Number(lev2slots.length) - Number(1))) {
toFill = 0;
} else {
toFill++;
}
}
lev2takenSlot = String(lev2slots[toFill]).substr(4);
}
Set(lev2slots[toFill] + "ID", lev2items[toExtract]);
eval ("background." + lev2slots[toFill]).gotoAndStop(lev2items[toExtract]);
if ((((String(lev2slots[toFill]).substr(-1) == "1") || (String(lev2slots[toFill]).substr(-1) == "2")) || (String(lev2slots[toFill]).substr(-1) == "3")) || (String(lev2slots[toFill]).substr(-1) == "4")) {
Set(lev2slots[toFill] + "aID", lev2items[toExtract]);
eval (("background." + lev2slots[toFill]) + "a").gotoAndStop(lev2items[toExtract]);
}
lev2items.splice(toExtract, 1);
lev2slots.splice(toFill, 1);
i++;
}
i = 1;
while (i < Number(lev4shelfNum + Number(1))) {
if (i == 1) {
toExtract = 0;
} else {
toExtract = Math.round(Math.random() * lev4items.length);
if (toExtract == lev4items.length) {
toExtract--;
}
}
toFill = Math.round(Math.random() * lev4slots.length);
if (toFill == lev4slots.length) {
toFill--;
}
if (i == 1) {
if (Math.abs(Number(Number(String(lev4slots[toFill]).substr(4)) - Number(lev3takenSlot))) < 3) {
if (toFill == Number(Number(lev4slots.length) - Number(1))) {
toFill = 0;
} else {
toFill++;
}
}
}
Set(lev4slots[toFill] + "ID", lev4items[toExtract]);
eval ("background." + lev4slots[toFill]).gotoAndStop(lev4items[toExtract]);
if ((((String(lev4slots[toFill]).substr(-1) == "1") || (String(lev4slots[toFill]).substr(-1) == "2")) || (String(lev4slots[toFill]).substr(-1) == "3")) || (String(lev4slots[toFill]).substr(-1) == "4")) {
Set(lev4slots[toFill] + "aID", lev4items[toExtract]);
eval (("background." + lev4slots[toFill]) + "a").gotoAndStop(lev4items[toExtract]);
}
lev4items.splice(toExtract, 1);
lev4slots.splice(toFill, 1);
I++;
}
}
Frame 21
fnSetGame();
stop();
function fnBeginGame() {
gGamePlay = true;
dirchecker.still = true;
dirchecker.direction = "right";
dirchecker.gotoAndPlay("checkdir");
timer.gotoAndPlay("go");
}
Frame 23
fnBeginGame();
stop();
function checkLanding() {
dirchecker.stilloverride = false;
if (level < 4) {
canLand = false;
i = 1;
while (i < Number(eval (("lev" + Number(_root.level + Number(1))) + "shelfNum") + Number(1))) {
if (((Number(Number(background._x) + Number(Number(eval (((("background.lev" + String(Number(_root.level + Number(1)))) + "shelf") + i) + "._x")) - Number(halfShelfWidth))) < kim._x) && ((kim._x < Number(Number(background._x) + Number(Number(eval (((("background.lev" + String(Number(_root.level + Number(1)))) + "shelf") + i) + "._x")) + Number(halfShelfWidth)))) == true)) || ((Number(Number(background._x) + Number(Number(eval (((("background.lev" + String(Number(_root.level + Number(1)))) + "shelf") + i) + "a._x")) - Number(halfShelfWidth))) < kim._x) && ((kim._x < Number(Number(background._x) + Number(Number(eval (((("background.lev" + String(Number(_root.level + Number(1)))) + "shelf") + i) + "a._x")) + Number(halfShelfWidth)))) == true))) {
if (level == 1) {
setProperty("kim", _y , kim._y - Number(floorHdiff));
} else {
setProperty("kim", _y , kim._y - Number(hdiff));
}
canLand = true;
currentShelf = i;
i = Number(eval (("lev" + Number(_root.level + Number(1))) + "shelfNum") + Number(1));
level++;
kim.gotoAndPlay("endfall" + dirchecker.newdir);
}
i++;
}
if ((canLand == false) && (1 < level)) {
stayOnLevel = false;
i = 1;
while (i < Number(eval (("lev" + _root.level) + "shelfNum") + Number(1))) {
if (((Number(Number(background._x) + Number(Number(eval (((("background.lev" + _root.level) + "shelf") + i) + "._x")) - Number(halfShelfWidth))) < kim._x) && ((kim._x < Number(Number(background._x) + Number(Number(eval (((("background.lev" + _root.level) + "shelf") + i) + "._x")) + Number(halfShelfWidth)))) == true)) || ((Number(Number(background._x) + Number(Number(eval (((("background.lev" + _root.level) + "shelf") + i) + "a._x")) - Number(halfShelfWidth))) < kim._x) && ((kim._x < Number(Number(background._x) + Number(Number(eval (((("background.lev" + _root.level) + "shelf") + i) + "a._x")) + Number(halfShelfWidth)))) == true))) {
stayOnLevel = true;
kim.gotoAndPlay("endfall" + dirchecker.newdir);
currentShelf = i;
i = Number(eval (("lev" + _root.level) + "shelfNum") + Number(1));
}
i++;
}
if (stayOnLevel == true) {
} else if (stayOnLevel == false) {
if (level == 2) {
setProperty("kim", _y , kim._y + Number(floorHdiff));
} else {
setProperty("kim", _y , kim._y + Number(hdiff));
}
kim.gotoAndPlay("fall" + dirchecker.newdir);
level--;
}
} else if ((canLand == false) && (level == 1)) {
kim.gotoAndPlay("endfall" + dirchecker.newdir);
}
} else if (level == 4) {
stayOnLevel = false;
i = 1;
while (i < Number(eval (("lev" + _root.level) + "shelfNum") + Number(1))) {
if (((Number(Number(background._x) + Number(Number(eval (((("background.lev" + _root.level) + "shelf") + i) + "._x")) - Number(halfShelfWidth))) < kim._x) && ((kim._x < Number(Number(background._x) + Number(Number(eval (((("background.lev" + _root.level) + "shelf") + i) + "._x")) + Number(halfShelfWidth)))) == true)) || ((Number(Number(background._x) + Number(Number(eval (((("background.lev" + _root.level) + "shelf") + i) + "a._x")) - Number(halfShelfWidth))) < kim._x) && ((kim._x < Number(Number(background._x) + Number(Number(eval (((("background.lev" + _root.level) + "shelf") + i) + "a._x")) + Number(halfShelfWidth)))) == true))) {
stayOnLevel = true;
kim.gotoAndPlay("endfall" + dirchecker.newdir);
currentShelf = i;
i = Number(eval (("lev" + _root.level) + "shelfNum") + Number(1));
}
i++;
}
if (stayOnLevel == true) {
} else if (stayOnLevel == false) {
if (level == 2) {
setProperty("kim", _y , kim._y + Number(floorHdiff));
} else {
setProperty("kim", _y , kim._y + Number(hdiff));
}
kim.gotoAndPlay("fall" + dirchecker.newdir);
level--;
}
}
}
function updateBasket(grNum, itemNum) {
eval ("itemType" + grNum).gotoAndStop((("set" + String(gLevelNum)) + "item") + itemNum);
if (itemNum == eval (("gr" + grNum) + "targetItem")) {
eval (("pda.type" + grNum) + "hilite").gotoAndStop(("set" + String(gLevelNum)) + "have");
} else {
eval (("pda.type" + grNum) + "hilite").gotoAndStop("need");
}
if (eval (("currentType" + grNum) + "item") != "blank") {
i = 1;
while (i < 13) {
if ((String(eval (("item" + i) + "ID")).substr(-1) == String(eval (("currentType" + grNum) + "item"))) && (String(eval (("item" + i) + "ID")).substr(6, 1) == String(grNum))) {
eval ("background.item" + i).gotoAndStop(eval (("item" + i) + "ID"));
if (i < 3) {
eval (("background.item" + i) + "a").gotoAndStop(eval (("item" + i) + "ID"));
}
i = 13;
}
i++;
}
}
Set(("currentType" + grNum) + "item", itemNum);
}
function fnEndGame() {
gGameplay = false;
dirchecker.gotoAndStop("base");
timer.gotoAndStop("base");
doneButton.gotoAndStop("inactive");
fader.gotoAndPlay("fade");
kim.gotoAndStop("stillright");
gCorrect = true;
i = 3;
while (0 < i) {
if (eval (("currentType" + i) + "item") != eval (("gr" + i) + "targetItem")) {
gCorrect = false;
}
i--;
}
finalTime = Number(90 - Number(timer.currentTime));
}
function fnPlayEnding() {
eval ("_level" + gLevelNum).gotoAndPlay("endscene");
gotoAndStop (26);
}
Instance of Symbol 316 MovieClip "dirchecker" in Frame 23
onClipEvent (mouseDown) {
if (_root.gGameplay == true) {
if ((_root.jumping == false) && (_root.falling != true)) {
_root.jumping = true;
_root.kim.gotoAndPlay(("jump" + newdir) + Math.ceil(Math.random() * 3));
if (this.still == true) {
this.stilloverride = true;
} else {
this.stilloverride = false;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.gGameplay == true) {
if ((_root._xmouse < _root.centerX) && (_root.falling == false)) {
newdirection = "left";
} else {
newdirection = "right";
}
if ((newdirection != direction) && (_root.falling == false)) {
_root.mySound.attachSound("changedir");
_root.mySound.start();
}
direction = newdirection;
if (((direction != _root.dirchecker.newdir) && (_root.dirchecker.stilloverride != true)) && (_root.falling == false)) {
_root.mySound.attachSound("changedir");
_root.mySound.start();
}
if (1 < _root.level) {
clearToFall = true;
i = 1;
while (i < Number(eval (("_root.lev" + _root.level) + "shelfNum") + Number(1))) {
if ((((Number(Number(eval (((("_root.background.lev" + _root.level) + "shelf") + i) + "a._x") - Number(_root.halfShelfWidth)) + Number(_root.background._x)) < _root.kim._x) == true) && ((_root.kim._x < Number(Number(eval (((("_root.background.lev" + _root.level) + "shelf") + i) + "a._x") + Number(_root.halfShelfWidth)) + Number(_root.background._x))) == true)) || (((Number(Number(eval (((("_root.background.lev" + _root.level) + "shelf") + i) + "._x") - Number(_root.halfShelfWidth)) + Number(_root.background._x)) < _root.kim._x) == true) && ((_root.kim._x < Number(Number(eval (((("_root.background.lev" + _root.level) + "shelf") + i) + "._x") + Number(_root.halfShelfWidth)) + Number(_root.background._x))) == true))) {
clearToFall = false;
i = Number(eval (("_root.lev" + _root.level) + "shelfNum") + Number(1));
}
i++;
}
if ((clearToFall == true) && (_root.jumping == false)) {
if (2 < _root.level) {
setProperty("_root.kim", _y , Number(Number(_root.kim._y + Number(_root.hdiff))));
} else {
setProperty("_root.kim", _y , Number(Number(_root.kim._y + Number(_root.floorHdiff))));
}
goToFall = true;
_root.kim.gotoAndPlay("fall" + _root.dir);
_root.level--;
}
} else {
goToFall = false;
clearToFall = false;
}
}
}
Frame 26
stop();
function fnDirectEnding() {
if (gCorrect == true) {
eval ("_level" + gLevelNum).gotoAndPlay("correct");
} else if (gCorrect == false) {
eval ("_level" + gLevelNum).gotoAndPlay("incorrect");
}
}
function fnGenerateOutfit() {
i = 1;
while (i < 4) {
eval ((("_level" + gLevelNum) + ".finalType") + i).gotoAndStop("item" + eval (("currentType" + i) + "item"));
i++;
}
gCorrect = true;
i = 3;
while (0 < i) {
if (eval (("currentType" + i) + "item") != eval (("gr" + i) + "targetItem")) {
gCorrect = false;
}
i--;
}
eval (("_level" + gLevelNum) + ".kimhair").gotoAndStop("item" + String(currentType2item));
}
function fnPlayDrakkenAudio() {
if (gReplay == false) {
i = 3;
while (0 < i) {
if (eval (("currentType" + i) + "item") != eval (("gr" + i) + "targetItem")) {
gTeaseAudio = ((((("set" + String(gLevelNum)) + "gr") + i) + "item") + eval (("currentType" + i) + "item")) + "wrong";
if (eval (("currentType" + i) + "item") == "blank") {
gTeaseAudio = "missing";
} else {
possibleEndings.push(gTeaseAudio);
}
}
i--;
}
vToExtract = Number(Math.round(Math.random() * possibleEndings.length));
if (0 < possibleEndings.length) {
if (vToExtract == possibleEndings.length) {
vToExtract--;
}
gTeaseAudio = possibleEndings[vToExtract];
}
}
eval (("_level" + gLevelNum) + ".incorrectAudio").gotoAndPlay(gTeaseAudio);
gReplay = true;
}
function fnEndAudio() {
eval (("_level" + gLevelNum) + ".incorrectAudio").gotoAndStop("base");
eval ("_level" + gLevelNum).gotoAndPlay("laugh");
}
function fnBeginSend() {
eval (("_level" + gLevelNum) + ".sendClip").gotoAndPlay("drop");
}
function fnSubmit(towhom, userName, friendName, friendEmail) {
trace("submitting name");
trace((((((("fnSubmit1: " + towhom) + ", ") + userName) + ", ") + friendName) + ", ") + friendEmail);
this.results = comm.newSubmit("http://dolutils.disney.go.com/dolutils/disneychannel/email/api", "POST");
comm.setVar("api", "testSuppression");
comm.setVar("emails", friendEmail);
comm.setVar("requestorID", "friendlytemplate");
comm.setVar("list", "20019");
comm.setVar("format", "flash");
comm.setCommActionOkFunction(this, "fNameOK");
comm.setCommActionFailFunction(this, "fNetworkError");
comm.submit();
towhom2 = towhom;
userName2 = userName;
friendName2 = friendName;
friendEmail2 = friendEmail;
}
function fNameOK() {
var failed = null;
resultArray = this.results.result.split(newline);
var i = 0;
while (i < resultArray.length) {
if ((resultArray[i].indexOf("EmailAddressesSuppressed") != -1) and (resultArray[i].indexOf(friendEmail2) != -1)) {
var failed = true;
} else if ((resultArray[i].indexOf("Error Code") != -1) and (resultArray[i].indexOf("IO_ERROR") != -1)) {
trace("Timed out -- Could not contact server");
eval (("_level" + _root.gLevelNum) + ".sendClip").gotoAndPlay("errorSever");
}
i++;
}
if (failed != null) {
trace("Suppression - Failed email");
eval (("_level" + _root.gLevelNum) + ".sendClip").gotoAndPlay("errorSuppressed");
} else {
trace("Suppression Passed OK");
trace("should go to submit 2");
this.gotoAndPlay("sub_name");
}
}
function fnSubmit2() {
trace("Doing fnSubmit2....");
trace((((((("fnSubmit2: " + towhom2) + ", ") + userName2) + ", ") + friendName2) + ", ") + friendEmail2);
this.results = comm.newSubmit("http://studio.disney.go.com/cgi-bin/gmail/generic_mail.cgi", "POST");
if (towhom2 == "tofriend") {
comm.setVar("email1", friendEmail2);
comm.setVar("toname", friendName2);
} else if (towhom2 == "todisney") {
}
comm.setVar("BCC_code", "");
comm.setVar("site", "ZoogDisney");
comm.setVar("required", "message");
comm.setVar("message", "none");
comm.setVar("EMail", "dc@disneychannel.com");
comm.setVar("subject", "Your friend has sent you a mission from Kim Possible: Shopping Avenger!");
comm.setVar("mail_format_template", "disneychannel/kimpossible/games/shoppingavenger/email.tpl");
comm.setVar("error", "disneychannel/error.tpl");
comm.setVar("redirect", "http://tv.disney.go.com/global/email_success.html");
comm.setVar("content_type", "text/html");
comm.setVar("page_url", _level0.location);
comm.setVar("pass", "1");
comm.setVar("Name", userName2);
comm.setVar("checkdw", "toname,Name,email1");
comm.setCommActionOkFunction(this, "fCallOk");
comm.setCommActionFailFunction(this, "fNetworkError");
comm.submit();
trace("submitting...");
}
function fCallOk() {
if (this.results.oopspage == "true") {
trace("dirty word found");
eval (("_level" + _root.gLevelNum) + ".sendClip").gotoAndPlay("errorName");
} else {
eval (("_level" + _root.gLevelNum) + ".sendClip").gotoAndPlay("sent");
trace("submitted");
}
}
function fNetworkError() {
trace("Error: could not establish connection with server.");
eval (("_level" + _root.gLevelNum) + ".sendClip").gotoAndPlay("errorSever");
}
function fnPlayAfterReceive() {
gMode = "send";
eval ("_level" + gLevelNum).gotoAndStop("hidden");
gotoAndPlay (7);
}
Frame 30
play();
Frame 32
this.fnSubmit2();
stop();
Symbol 14 MovieClip Frame 1
play();
Symbol 14 MovieClip Frame 5
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 3
stop();
Symbol 15 MovieClip Frame 5
stop();
Symbol 15 MovieClip Frame 7
stop();
Symbol 15 MovieClip Frame 9
stop();
Symbol 15 MovieClip Frame 11
stop();
Symbol 15 MovieClip Frame 13
stop();
Symbol 15 MovieClip Frame 15
stop();
Symbol 21 MovieClip Frame 1
function setVar(name, value) {
varsToSend[name] = value;
}
function cancelSubmit() {
trace("canceling submit...");
gotoAndStop (7);
pStatus = "ready";
}
function submit() {
if (pStatus == "ready") {
pStatus = "busy";
pCurrAttempt = 1;
comm_doSubmit();
} else {
trace((this + " - submit not started. status = ") + pStatus);
}
}
function newSubmit(theUrl, theMethod) {
var theResult = false;
if (arguments.length < 2) {
trace(this + " - newSubmit error: wrong number of parametes. Need to supply url and submit method.\n --For example: comm.newSubmit(\"your url here\", \"GET\")");
} else if ((theMethod != "GET") && (theMethod != "POST")) {
trace(this + " - newSubmit error: incorrect submit method specified. Must be GET or POST.");
} else {
pUrl = theUrl;
pMethod = theMethod;
comm_clearAllVars();
theResult = vars;
pStatus = "ready";
}
return(theResult);
}
function setMaxAttempts(theMaxAttempts) {
if ((theMaxAttempts < kMIN_ATTEMPTS) || (kMAX_ATTEMPTS < theMaxAttempts)) {
trace((((this + " - warning: max attempts out of range - ") + kMIN_ATTEMPT_DURATION) + "...") + kMAX_ATTEMPTS);
trace((" using default: " + kDEFAULT_ATTEMPTS) + " attempts.");
pMaxAttempts = kDEFAULT_ATTEMPTS;
} else {
pMaxAttempts = theMaxAttempts;
}
}
function setAttemptDuration(theAttemptDuration) {
if ((theAttemptDuration < kMIN_ATTEMPT_DURATION) || (kMAX_ATTEMPT_DURATION < theAttemptDuration)) {
trace((((this + "- warning: attempt duration out of range - ") + kMIN_ATTEMPTS) + "...") + kMAX_ATTEMPT_DURATION);
trace((" using default: " + kDEFAULT_ATTEMPT_DURATION) + " duration.");
pAttemptDuration = theAttemptDuration;
} else {
pAttemptDuration = kDEFAULT_ATTEMPT_DURATION;
}
}
function setCommActionOkFunction(theTarget, theFunction) {
pCommActionOk = theFunction;
pCommActionOkTarget = theTarget;
}
function setCommActionFailFunction(theTarget, theFunction) {
pCommActionFail = theFunction;
pCommActionFailTarget = theTarget;
}
function setCommActionTimeoutFunction(theTarget, theFunction) {
pCommActionTimeout = theFunction;
pCommActionTimeoutTarget = theTarget;
}
function comm_setDefaults() {
comm_ClearAllVars();
pMaxAttempts = kDEFAULT_ATTEMPTS;
pAttemptDuration = kDEFAULT_ATTEMPT_DURATION;
pMethod = kDEFAULT_METHOD;
setCommActionOkFunction(this, "comm_defaultActionOk");
setCommActionFailFunction(this, "comm_defaultActionFail");
setCommActionTimeoutFunction(this, "comm_defaultActionTimeout");
pStatus = "new";
}
function comm_doSubmit() {
comm_ClearVars();
comm_CopyVarsToSend();
if (pMethod == "GET") {
tellTarget ("vars") {
loadVariables (_parent.pUrl, "", "GET");
};
} else if (pMethod == "POST") {
tellTarget ("vars") {
loadVariables (_parent.pUrl, "", "POST");
};
} else {
trace(this + " - comm_doSubmit error: invalid submit method");
}
pCurrAttemptTime = new Date().getTime();
pCurrAttemptExpire = pCurrAttemptTime + pAttemptDuration;
gotoAndPlay (2);
}
function comm_checkTimer() {
pCurrAttemptTime = new Date().getTime();
if (pCurrAttemptExpire < pCurrAttemptTime) {
if (pMaxAttempts < (++pCurrAttempt)) {
comm_actionFail();
} else {
pCommActionTimeoutTarget[pCommActionTimeout]();
comm_doSubmit();
}
}
}
function comm_ClearVars() {
removeMovieClip("vars");
duplicateMovieClip ("vars_empty", "vars", 1);
}
function comm_ClearAllVars() {
removeMovieClip("vars");
removeMovieClip("varsToSend");
duplicateMovieClip ("vars_empty", "vars", 1);
duplicateMovieClip ("vars_empty", "varsToSend", 2);
}
function comm_CopyVarsToSend() {
for (theVar in varsToSend) {
vars[theVar] = varsToSend[theVar];
}
}
function comm_actionOk() {
if (pStatus == "busy") {
pStatus = "ready";
gotoAndStop (7);
pCommActionOkTarget[pCommActionOk]();
} else {
trace((this + " - ok action not performed. status = ") + pStatus);
}
}
function comm_actionFail() {
if (pStatus == "busy") {
pStatus = "ready";
gotoAndStop (7);
pCommActionFailTarget[pCommActionFail]();
} else {
trace((this + " - fail action not performed. status = ") + pStatus);
}
}
function comm_defaultActionOk() {
trace(this + " - the comm action completed successfully (default)");
}
function comm_defaultActionFail() {
trace(this + " the comm action failed (default)");
}
function comm_defaultActionTimeout() {
trace(((this + "attempt ") + (pCurrAttempt - 1)) + " timed out. (default)");
}
var pUrl;
var pMethod;
var pMaxAttempts;
var pCurrAttempt;
var pAttemptDuration;
var pCurrAttemptTime;
var pCurrAttemptExpire;
var pStatus;
var pCommActionOk;
var pCommActionOkTarget;
var pCommActionFail;
var pCommActionFailTarget;
var pCommActionTimeout;
var pCommActionTimeoutTarget;
var kMIN_ATTEMPTS = 1;
var kMAX_ATTEMPTS = 3;
var kDEFAULT_ATTEMPTS = 3;
var kMIN_ATTEMPT_DURATION = 10000;
var kMAX_ATTEMPT_DURATION = 60000;
var kDEFAULT_ATTEMPT_DURATION = 90000;
var kDEFAULT_METHOD = "GET";
comm_setDefaults();
stop();
Instance of Symbol 20 MovieClip "vars_empty" in Symbol 21 MovieClip Frame 1
onClipEvent (data) {
_parent.comm_actionOk();
}
Symbol 21 MovieClip Frame 2
comm_checkTimer();
Symbol 21 MovieClip Frame 3
comm_checkTimer();
gotoAndPlay(_currentframe - 1);
Symbol 21 MovieClip Frame 7
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 3
stop();
Symbol 29 MovieClip Frame 5
stop();
Symbol 29 MovieClip Frame 7
stop();
Symbol 29 MovieClip Frame 9
stop();
Symbol 29 MovieClip Frame 11
stop();
Symbol 29 MovieClip Frame 13
stop();
Symbol 29 MovieClip Frame 15
stop();
Symbol 35 Button
on (release) {
_root.fnViewEnding();
}
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 2
stop();
Symbol 56 Button
on (release) {
_root.fnSelectMission("arctic");
}
Symbol 82 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 83 MovieClip Frame 1
stop();
Instance of Symbol 32 MovieClip in Symbol 83 MovieClip Frame 1
onClipEvent (enterFrame) {
var percentageLoaded = Number(100 * (eval ("_level" + _root.gLevelNum).getBytesLoaded() / eval ("_level" + _root.gLevelNum).getBytesTotal()));
if (percentageLoaded != undefined) {
if (percentageLoaded < 14.2857142857143) {
bar.gotoAndStop("base");
} else if ((percentageLoaded >= Number(14.2857142857143)) && (percentageLoaded < (Number(14.2857142857143) * 2))) {
bar.gotoAndStop("step1");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 2)) && (percentageLoaded < (Number(14.2857142857143) * 3))) {
bar.gotoAndStop("step2");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 3)) && (percentageLoaded < (Number(14.2857142857143) * 4))) {
bar.gotoAndStop("step3");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 4)) && (percentageLoaded < (Number(14.2857142857143) * 5))) {
bar.gotoAndStop("step4");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 5)) && (percentageLoaded < (Number(14.2857142857143) * 6))) {
bar.gotoAndStop("step5");
} else if ((percentageLoaded >= (Number(14.2857142857143) * 6)) && (percentageLoaded < Number(100))) {
bar.gotoAndStop("step6");
} else if (percentageLoaded == 100) {
bar.gotoAndStop("step7");
}
}
}
Symbol 83 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 87 Button
on (release) {
_root.fnSelectMission("desert");
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 94 Button
on (release) {
_root.fnSelectMission("space");
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 101 Button
on (release) {
_root.fnSelectMission("jungle");
}
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 108 Button
on (release) {
_root.fnSelectMission("water");
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 5
if ((eval ("_level" + _root.gLevelNum).getBytesLoaded() != undefined) && (eval ("_level" + _root.gLevelNum).getBytesLoaded() == eval ("_level" + _root.gLevelNum).getBytesTotal())) {
i = 0;
while (i < 5) {
if (_root.toLoadLevels[i] == _root.gLevelNum) {
_root.toLoad.splice(i, 1);
_root.toLoadLevels.splice(i, 1);
i = 5;
}
i++;
}
_root.fnInitialize();
} else {
play();
}
Symbol 115 MovieClip Frame 7
gotoAndPlay (5);
Symbol 115 MovieClip Frame 10
play();
Symbol 115 MovieClip Frame 13
if ((eval ("_level" + _root.toLoadLevels[0]).getBytesLoaded() != undefined) && (eval ("_level" + _root.toLoadLevels[0]).getBytesLoaded() == eval ("_level" + _root.toLoadLevels[0]).getBytesTotal())) {
_root.toLoad.splice(0, 1);
_root.toLoadLevels.splice(0, 1);
if (0 < _root.toLoad.length) {
loadMovieNum (_root.toLoad[0] + ".swf", _root.toLoadLevels[0]);
gotoAndPlay (10);
} else {
gotoAndStop (1);
}
} else {
gotoAndPlay (10);
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
_parent.gotoAndStop("hide");
play();
Symbol 140 MovieClip Frame 6
if (String(_parent._name).substr(-1) != "a") {
_root.updateBasket(_parent.groupID, _parent.itemID);
}
_parent.flashing = false;
gotoAndStop (1);
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
groupID = 1;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 3
groupID = 1;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 4
groupID = 3;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 5
groupID = 3;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 6
groupID = 1;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 7
groupID = 2;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 8
groupID = 2;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 9
groupID = 3;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 10
groupID = 3;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 11
groupID = 1;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 12
groupID = 2;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 13
groupID = 2;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 14
groupID = 2;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 15
groupID = 2;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 16
groupID = 2;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 17
groupID = 2;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 18
groupID = 1;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 19
groupID = 1;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 20
groupID = 1;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 21
groupID = 1;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 22
groupID = 3;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 23
groupID = 3;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 24
groupID = 3;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 25
groupID = 3;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 26
groupID = 2;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 27
groupID = 2;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 28
groupID = 2;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 29
groupID = 2;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 30
groupID = 1;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 31
groupID = 1;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 32
groupID = 1;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 33
groupID = 1;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 34
groupID = 3;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 35
groupID = 3;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 36
groupID = 3;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 37
groupID = 3;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 38
groupID = 2;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 39
groupID = 2;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 40
groupID = 2;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 41
groupID = 2;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 42
groupID = 1;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 43
groupID = 1;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 44
groupID = 1;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 45
groupID = 1;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 46
groupID = 3;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 47
groupID = 3;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 48
groupID = 3;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 49
groupID = 3;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 50
groupID = 2;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 51
groupID = 2;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 52
groupID = 2;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 53
groupID = 2;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 54
groupID = 1;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 55
groupID = 1;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 56
groupID = 1;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 57
groupID = 1;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 58
groupID = 3;
itemID = 1;
stop();
Symbol 218 MovieClip Frame 59
groupID = 3;
itemID = 2;
stop();
Symbol 218 MovieClip Frame 60
groupID = 3;
itemID = 3;
stop();
Symbol 218 MovieClip Frame 61
groupID = 3;
itemID = 4;
stop();
Symbol 218 MovieClip Frame 62
stop();
Instance of Symbol 219 MovieClip "hit4" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((this.hitTest("_root.kim") == true) && (_parent.item4.flashing != true)) && (_parent.item4.newhit != false)) && (_root.level == 1)) && (_parent.item4._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) && (_root.falling != true)) {
_parent.item4.newhit = false;
_parent.item4.flashing = true;
_parent.item4a.flashing = true;
_parent.item4.burst.gotoAndPlay("burst");
_parent.item4a.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item4.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit2" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((this.hitTest("_root.kim") == true) && (_parent.item2.flashing != true)) && (_parent.item2.newhit != false)) && (_root.level == 1)) && (_parent.item2._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) && (_root.falling != true)) {
_parent.item2.newhit = false;
_parent.item2.flashing = true;
_parent.item2a.flashing = true;
_parent.item2.burst.gotoAndPlay("burst");
_parent.item2a.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item2.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit1" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item1.flashing != true)) && (_parent.item1.newhit != false)) && (_root.level == 4)) && (_parent.item1._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) {
_parent.item1.newhit = false;
_parent.item1.flashing = true;
_parent.item1a.flashing = true;
_parent.item1.burst.gotoAndPlay("burst");
_parent.item1a.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item1.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit3" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item3.flashing != true)) && (_parent.item3.newhit != false)) && (_root.level == 4)) && (_parent.item3._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) {
_parent.item3.newhit = false;
_parent.item3.flashing = true;
_parent.item3a.flashing = true;
_parent.item3.burst.gotoAndPlay("burst");
_parent.item3a.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item3.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit6" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((this.hitTest("_root.kim") == true) && (_parent.item6.flashing != true)) && (_parent.item6.newhit != false)) && (_root.level == 1)) && (_parent.item6._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) && (_root.falling != true)) {
_parent.item6.newhit = false;
_parent.item6.flashing = true;
_parent.item6.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item6.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit5" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item5.flashing != true)) && (_parent.item5.newhit != false)) && (_root.level == 4)) && (_parent.item5._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) {
_parent.item5.newhit = false;
_parent.item5.flashing = true;
_parent.item5.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item5.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit7" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item7.flashing != true)) && (_parent.item7.newhit != false)) && (_root.level == 1)) && (_parent.item7._currentframe != _root.lastClipFrame)) && (_root.falling != true)) {
_parent.item7.newhit = false;
_parent.item7.flashing = true;
_parent.item7.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item7.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit8" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item8.flashing != true)) && (_parent.item8.newhit != false)) && (_root.level == 4)) && (_parent.item8._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) {
_parent.item8.newhit = false;
_parent.item8.flashing = true;
_parent.item8.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item8.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit9" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((this.hitTest("_root.kim") == true) && (_parent.item9.flashing != true)) && (_parent.item9.newhit != false)) && (_root.level == 1)) && (_parent.item9._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) && (_root.falling != true)) {
_parent.item9.newhit = false;
_parent.item9.flashing = true;
_parent.item9.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item9.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit10" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item10.flashing != true)) && (_parent.item10.newhit != false)) && (_root.level == 1)) && (_parent.item10._currentframe != _root.lastClipFrame)) && (_root.falling != true)) {
_parent.item10.newhit = false;
_parent.item10.flashing = true;
_parent.item10.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item10.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit12" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((this.hitTest("_root.kim") == true) && (_parent.item12.flashing != true)) && (_parent.item12.newhit != false)) && (_root.level == 1)) && (_parent.item12._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) && (_root.falling != true)) {
_parent.item12.newhit = false;
_parent.item12.flashing = true;
_parent.item12.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item12.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit11" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item11.flashing != true)) && (_parent.item11.newhit != false)) && (_root.level == 4)) && (_parent.item11._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) {
_parent.item11.newhit = false;
_parent.item11.flashing = true;
_parent.item11.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item11.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit2a" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((this.hitTest("_root.kim") == true) && (_parent.item2a.flashing != true)) && (_parent.item2a.newhit != false)) && (_root.level == 1)) && (_parent.item2a._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) && (_root.falling != true)) {
_parent.item2a.newhit = false;
_parent.item2.flashing = true;
_parent.item2a.flashing = true;
_parent.item2.burst.gotoAndPlay("burst");
_parent.item2a.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item2a.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit1a" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item1a.flashing != true)) && (_parent.item1a.newhit != false)) && (_root.level == 4)) && (_parent.item1a._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) {
_parent.item1a.newhit = false;
_parent.item1.flashing = true;
_parent.item1a.flashing = true;
_parent.item1.burst.gotoAndPlay("burst");
_parent.item1a.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item1a.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit4a" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((this.hitTest("_root.kim") == true) && (_parent.item4a.flashing != true)) && (_parent.item4a.newhit != false)) && (_root.level == 1)) && (_parent.item4a._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) && (_root.falling != true)) {
_parent.item4a.newhit = false;
_parent.item4.flashing = true;
_parent.item4a.flashing = true;
_parent.item4.burst.gotoAndPlay("burst");
_parent.item4a.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item4a.newhit = true;
}
}
Instance of Symbol 219 MovieClip "hit3a" in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((this.hitTest("_root.kim") == true) && (_parent.item3a.flashing != true)) && (_parent.item3a.newhit != false)) && (_root.level == 4)) && (_parent.item3a._currentframe != _root.lastClipFrame)) && (_root.jumping == false)) {
_parent.item3a.newhit = false;
_parent.item3.flashing = true;
_parent.item3a.flashing = true;
_parent.item3.burst.gotoAndPlay("burst");
_parent.item3a.burst.gotoAndPlay("burst");
} else if (this.hitTest("_root.kim") == false) {
_parent.item3a.newhit = true;
}
}
Symbol 258 MovieClip Frame 1
_root.jumping = false;
stop();
Symbol 258 MovieClip Frame 3
_root.jumping = false;
stop();
Symbol 258 MovieClip Frame 5
_root.jumping = false;
if (_root.dirchecker.clearToFall != true) {
gotoAndPlay(_root.dir + "run2");
}
Symbol 258 MovieClip Frame 6
play();
Symbol 258 MovieClip Frame 13
if (_root.dirchecker.clearToFall != true) {
gotoAndPlay("run" + _root.dir);
}
Symbol 258 MovieClip Frame 15
_root.jumping = false;
if (_root.dirchecker.clearToFall != true) {
gotoAndPlay(_root.dir + "run2");
}
Symbol 258 MovieClip Frame 16
play();
Symbol 258 MovieClip Frame 23
if (_root.dirchecker.clearToFall != true) {
gotoAndPlay("run" + _root.dir);
}
Symbol 258 MovieClip Frame 25
_root.dirchecker.gotoAndStop("base");
play();
Symbol 258 MovieClip Frame 27
_root.dirchecker.gotoAndPlay("checkdir");
play();
Symbol 258 MovieClip Frame 28
_root.dirchecker.gotoAndPlay("checkdir");
Symbol 258 MovieClip Frame 32
_root.checkLanding();
Symbol 258 MovieClip Frame 35
_root.dirchecker.gotoAndStop("base");
play();
Symbol 258 MovieClip Frame 37
_root.dirchecker.gotoAndPlay("checkdir");
play();
Symbol 258 MovieClip Frame 38
_root.dirchecker.gotoAndPlay("checkdir");
Symbol 258 MovieClip Frame 42
_root.checkLanding();
Symbol 258 MovieClip Frame 45
_root.dirchecker.gotoAndStop("base");
play();
Symbol 258 MovieClip Frame 47
_root.dirchecker.gotoAndPlay("checkdir");
play();
Symbol 258 MovieClip Frame 48
_root.dirchecker.gotoAndPlay("checkdir");
Symbol 258 MovieClip Frame 52
_root.checkLanding();
Symbol 258 MovieClip Frame 55
_root.dirchecker.gotoAndStop("base");
play();
Symbol 258 MovieClip Frame 57
_root.dirchecker.gotoAndPlay("checkdir");
play();
Symbol 258 MovieClip Frame 58
_root.dirchecker.gotoAndPlay("checkdir");
Symbol 258 MovieClip Frame 62
_root.checkLanding();
Symbol 258 MovieClip Frame 65
_root.dirchecker.gotoAndStop("base");
play();
Symbol 258 MovieClip Frame 69
_root.dirchecker.gotoAndPlay("checkdir");
play();
Symbol 258 MovieClip Frame 70
_root.dirchecker.gotoAndPlay("checkdir");
Symbol 258 MovieClip Frame 74
_root.checkLanding();
Symbol 258 MovieClip Frame 79
_root.dirchecker.gotoAndStop("base");
play();
Symbol 258 MovieClip Frame 83
_root.dirchecker.gotoAndPlay("checkdir");
play();
Symbol 258 MovieClip Frame 84
_root.dirchecker.gotoAndPlay("checkdir");
Symbol 258 MovieClip Frame 88
_root.checkLanding();
Symbol 258 MovieClip Frame 93
_root.dirchecker.gotoAndStop("base");
_root.jumping = true;
_root.falling = true;
play();
Symbol 258 MovieClip Frame 95
_root.checkLanding();
Symbol 258 MovieClip Frame 96
_root.dirchecker.gotoAndStop("base");
_root.jumping = false;
_root.dirchecker.stilloverride = true;
_root.falling = true;
Symbol 258 MovieClip Frame 98
_root.falling = false;
_root.mySound.attachSound("kimlanding");
_root.mySound.start();
Symbol 258 MovieClip Frame 101
if (_root.dirchecker.still == true) {
gotoAndStop("still" + _root.dirchecker.newdir);
} else {
gotoAndPlay("run" + _root.dirchecker.newdir);
}
_root.dirchecker.stilloverride = false;
_root.dirchecker.gotoAndPlay("checkdir");
Symbol 258 MovieClip Frame 103
_root.dirchecker.gotoAndStop("base");
_root.jumping = true;
_root.falling = true;
play();
Symbol 258 MovieClip Frame 105
_root.checkLanding();
Symbol 258 MovieClip Frame 106
_root.dirchecker.gotoAndStop("base");
_root.jumping = false;
_root.dirchecker.stilloverride = true;
_root.falling = true;
Symbol 258 MovieClip Frame 108
_root.mySound.attachSound("kimlanding");
_root.mySound.start();
_root.falling = false;
Symbol 258 MovieClip Frame 111
if (_root.dirchecker.still == true) {
gotoAndStop("still" + _root.dirchecker.newdir);
} else {
gotoAndPlay("run" + _root.dirchecker.newdir);
}
_root.dirchecker.stilloverride = false;
_root.dirchecker.gotoAndPlay("checkdir");
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 2
stop();
Symbol 267 MovieClip Frame 3
stop();
Symbol 267 MovieClip Frame 4
stop();
Symbol 267 MovieClip Frame 5
stop();
Symbol 267 MovieClip Frame 6
stop();
Symbol 267 MovieClip Frame 7
stop();
Symbol 267 MovieClip Frame 8
stop();
Symbol 267 MovieClip Frame 9
stop();
Symbol 267 MovieClip Frame 10
stop();
Symbol 267 MovieClip Frame 11
stop();
Symbol 267 MovieClip Frame 12
stop();
Symbol 267 MovieClip Frame 13
stop();
Symbol 267 MovieClip Frame 14
stop();
Symbol 267 MovieClip Frame 15
stop();
Symbol 267 MovieClip Frame 16
stop();
Symbol 267 MovieClip Frame 17
stop();
Symbol 267 MovieClip Frame 18
stop();
Symbol 267 MovieClip Frame 19
stop();
Symbol 267 MovieClip Frame 20
stop();
Symbol 267 MovieClip Frame 21
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 3
stop();
Symbol 269 MovieClip Frame 4
stop();
Symbol 269 MovieClip Frame 5
stop();
Symbol 269 MovieClip Frame 6
stop();
Symbol 269 MovieClip Frame 7
stop();
Symbol 269 MovieClip Frame 8
stop();
Symbol 269 MovieClip Frame 9
stop();
Symbol 269 MovieClip Frame 10
stop();
Symbol 269 MovieClip Frame 11
stop();
Symbol 269 MovieClip Frame 12
stop();
Symbol 269 MovieClip Frame 13
stop();
Symbol 269 MovieClip Frame 14
stop();
Symbol 269 MovieClip Frame 15
stop();
Symbol 269 MovieClip Frame 16
stop();
Symbol 269 MovieClip Frame 17
stop();
Symbol 269 MovieClip Frame 18
stop();
Symbol 269 MovieClip Frame 19
stop();
Symbol 269 MovieClip Frame 20
stop();
Symbol 269 MovieClip Frame 21
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
stop();
Symbol 272 MovieClip Frame 3
stop();
Symbol 272 MovieClip Frame 4
stop();
Symbol 272 MovieClip Frame 5
stop();
Symbol 272 MovieClip Frame 6
stop();
Symbol 272 MovieClip Frame 7
stop();
Symbol 272 MovieClip Frame 8
stop();
Symbol 272 MovieClip Frame 9
stop();
Symbol 272 MovieClip Frame 10
stop();
Symbol 272 MovieClip Frame 11
stop();
Symbol 272 MovieClip Frame 12
stop();
Symbol 272 MovieClip Frame 13
stop();
Symbol 272 MovieClip Frame 14
stop();
Symbol 272 MovieClip Frame 15
stop();
Symbol 272 MovieClip Frame 16
stop();
Symbol 272 MovieClip Frame 17
stop();
Symbol 272 MovieClip Frame 18
stop();
Symbol 272 MovieClip Frame 19
stop();
Symbol 272 MovieClip Frame 20
stop();
Symbol 272 MovieClip Frame 21
stop();
Symbol 279 Button
on (release) {
_root.fnEndGame();
}
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 3
stop();
Symbol 286 MovieClip Frame 4
stop();
Symbol 286 MovieClip Frame 5
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 2
stop();
Symbol 292 MovieClip Frame 3
stop();
Symbol 292 MovieClip Frame 4
stop();
Symbol 292 MovieClip Frame 5
stop();
Symbol 292 MovieClip Frame 6
stop();
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 2
stop();
Symbol 298 MovieClip Frame 3
stop();
Symbol 298 MovieClip Frame 4
stop();
Symbol 298 MovieClip Frame 5
stop();
Symbol 298 MovieClip Frame 6
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
stop();
Symbol 304 MovieClip Frame 3
stop();
Symbol 304 MovieClip Frame 4
stop();
Symbol 304 MovieClip Frame 5
stop();
Symbol 304 MovieClip Frame 6
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 309 Button
on (release) {
gotoAndStop (23);
}
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 2
play();
Symbol 314 MovieClip Frame 18
_root.fnPlayEnding();
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 3
if (goToFall == false) {
if ((Number(_root.centerX + Number(_root.kimWidth)) < _root._xmouse) && (_root.falling != true)) {
newdir = "right";
if (still == true) {
newrun = true;
} else {
newrun = false;
}
still = false;
} else if ((Number(_root.centerX - Number(_root.kimWidth)) >= _root._xmouse) && (_root.falling != true)) {
newdir = "left";
if (still == true) {
newrun = true;
} else {
newrun = false;
}
still = false;
} else {
if (_root._xmouse >= _root.centerX) {
newdir = "right";
if ((_root.jumping == false) && (_root.falling != true)) {
_root.kim.gotoAndStop("stillright");
}
} else {
newdir = "left";
if ((_root.jumping == false) && (_root.falling != true)) {
_root.kim.gotoAndStop("stillleft");
}
}
still = true;
}
if (still == false) {
if ((newdir != _root.dir) || (newrun == true)) {
_root.dir = newdir;
if ((_root.jumping == false) && (_root.falling != true)) {
_root.kim.gotoAndPlay("run" + _root.dir);
}
}
}
if (((still == false) || (stilloverride == true)) && (_root.falling != true)) {
if (newdir == "right") {
if ((_root.background._x - Number(_root.moveIncr)) >= _root.endBgX) {
if (_root.jumping == true) {
if (1 < _root.level) {
setProperty("_root.background", _x , Number(_root.background._x - Number(_root.moveIncr)));
} else {
setProperty("_root.background", _x , Number(_root.background._x - Number(_root.moveIncr / 2.2)));
}
} else {
setProperty("_root.background", _x , Number(_root.background._x - Number(_root.moveIncr / 2.5)));
}
} else if (_root.jumping == true) {
if (1 < _root.level) {
setProperty("_root.background", _x , _root.beginBgX - Number(_root.endBgX - Number(_root.background._x - Number(_root.moveIncr))));
} else {
setProperty("_root.background", _x , _root.beginBgX - Number(_root.endBgX - Number(_root.background._x - (Number(_root.moveIncr) / 2.2))));
}
} else {
setProperty("_root.background", _x , _root.beginBgX - Number(_root.endBgX - Number(_root.background._x - (Number(_root.moveIncr) / 2.5))));
}
} else if (newdir == "left") {
if (_root.beginBgX >= (_root.background._x + Number(_root.moveIncr))) {
if (_root.jumping == true) {
if (1 < _root.level) {
setProperty("_root.background", _x , Number(_root.background._x) + Number(_root.moveIncr));
} else {
setProperty("_root.background", _x , Number(_root.background._x) + Number(_root.moveIncr / 2.2));
}
} else {
setProperty("_root.background", _x , _root.background._x + Number(_root.moveIncr / 2.5));
}
} else if (_root.jumping == true) {
if (1 < _root.level) {
setProperty("_root.background", _x , _root.endBgX + Number(Number(_root.background._x + Number(_root.moveIncr)) - Number(_root.beginBgX)));
} else {
setProperty("_root.background", _x , _root.endBgX + Number(Number(_root.background._x + (Number(_root.moveIncr) / 2)) - Number(_root.beginBgX)));
}
} else {
setProperty("_root.background", _x , _root.endBgX + Number(Number(_root.background._x + (Number(_root.moveIncr) / 2.2)) - Number(_root.beginBgX)));
}
}
}
}
play();
Symbol 316 MovieClip Frame 4
if (goToFall == false) {
if ((Number(_root.centerX + Number(_root.kimWidth)) < _root._xmouse) && (_root.falling != true)) {
newdir = "right";
if (still == true) {
newrun = true;
} else {
newrun = false;
}
still = false;
} else if ((Number(_root.centerX - Number(_root.kimWidth)) >= _root._xmouse) && (_root.falling != true)) {
newdir = "left";
if (still == true) {
newrun = true;
} else {
newrun = false;
}
still = false;
} else {
if (_root._xmouse >= _root.centerX) {
newdir = "right";
if ((_root.jumping == false) && (_root.falling != true)) {
_root.kim.gotoAndStop("stillright");
}
} else {
newdir = "left";
if ((_root.jumping == false) && (_root.falling != true)) {
_root.kim.gotoAndStop("stillleft");
}
}
still = true;
}
if (still == false) {
if ((newdir != _root.dir) || (newrun == true)) {
_root.dir = newdir;
if ((_root.jumping == false) && (_root.falling != true)) {
_root.kim.gotoAndPlay("run" + _root.dir);
}
}
}
if (((still == false) || (stilloverride == true)) && (_root.falling != true)) {
if (newdir == "right") {
if ((_root.background._x - Number(_root.moveIncr)) >= _root.endBgX) {
if (_root.jumping == true) {
if (1 < _root.level) {
setProperty("_root.background", _x , Number(_root.background._x - Number(_root.moveIncr)));
} else {
setProperty("_root.background", _x , Number(_root.background._x - Number(_root.moveIncr / 2.2)));
}
} else {
setProperty("_root.background", _x , Number(_root.background._x - Number(_root.moveIncr / 2.5)));
}
} else if (_root.jumping == true) {
if (1 < _root.level) {
setProperty("_root.background", _x , _root.beginBgX - Number(_root.endBgX - Number(_root.background._x - Number(_root.moveIncr))));
} else {
setProperty("_root.background", _x , _root.beginBgX - Number(_root.endBgX - Number(_root.background._x - (Number(_root.moveIncr) / 2.2))));
}
} else {
setProperty("_root.background", _x , _root.beginBgX - Number(_root.endBgX - Number(_root.background._x - (Number(_root.moveIncr) / 2.5))));
}
} else if (newdir == "left") {
if (_root.beginBgX >= (_root.background._x + Number(_root.moveIncr))) {
if (_root.jumping == true) {
if (1 < _root.level) {
setProperty("_root.background", _x , Number(_root.background._x) + Number(_root.moveIncr));
} else {
setProperty("_root.background", _x , Number(_root.background._x) + Number(_root.moveIncr / 2.2));
}
} else {
setProperty("_root.background", _x , _root.background._x + Number(_root.moveIncr / 2.5));
}
} else if (_root.jumping == true) {
if (1 < _root.level) {
setProperty("_root.background", _x , _root.endBgX + Number(Number(_root.background._x + Number(_root.moveIncr)) - Number(_root.beginBgX)));
} else {
setProperty("_root.background", _x , _root.endBgX + Number(Number(_root.background._x + (Number(_root.moveIncr) / 2)) - Number(_root.beginBgX)));
}
} else {
setProperty("_root.background", _x , _root.endBgX + Number(Number(_root.background._x + (Number(_root.moveIncr) / 2.2)) - Number(_root.beginBgX)));
}
}
}
}
if (_root.gGameplay == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 318 MovieClip Frame 1
vFired60 = false;
vFired30 = false;
vFired10 = false;
stop();
Symbol 318 MovieClip Frame 3
startTime = getTimer();
play();
Symbol 318 MovieClip Frame 4
currentTime = Number(90 - Number(Math.round(((getTimer() - Number(startTime)) / 1000) * 2)));
if (currentTime < 10) {
_root.time = ":0" + currentTime;
} else {
_root.time = ":" + currentTime;
}
if ((((60 < currentTime) && (63 >= currentTime)) && (vFired60 == false)) && (_root.RonAudio._currentframe == 1)) {
vFired60 = true;
_root.RonAudio.gotoAndPlay("secs60togo");
} else if ((((30 < currentTime) && (33 >= currentTime)) && (vFired30 == false)) && (_root.RonAudio._currentframe == 1)) {
vFired30 = true;
_root.RonAudio.gotoAndPlay("secs30togo");
} else if ((((10 < currentTime) && (13 >= currentTime)) && (vFired10 == false)) && (_root.RonAudio._currentframe == 1)) {
vFired10 = true;
_root.RonAudio.gotoAndPlay("secs10togo");
}
if ((compareTime != currentTime) && (currentTime < 90)) {
_root.mySound.attachSound("bloop");
_root.mySound.start();
}
compareTime = currentTime;
play();
Symbol 318 MovieClip Frame 5
if (0 >= currentTime) {
_root.fnEndGame();
gotoAndStop (1);
} else {
gotoAndPlay (4);
}