Frame 1
var iTotal = getBytesTotal();
var iLoaded = getBytesLoaded();
var iPercent = int((iLoaded / iTotal) * 100);
Instance of Symbol 116 MovieClip "bar" in Frame 1
onClipEvent (enterFrame) {
gotoAndStop(Math.ceil(_parent.iPercent / 10));
}
Frame 2
if (iPercent == 100) {
gotoAndStop ("Title");
} else {
gotoAndPlay ("Load");
}
Frame 3
function SQ_EnqueueSound(sSoundHandle) {
var _local1 = sSoundHandle;
if (SQ_Debug) {
}
if (SQ_enqueued_items >= SQ_max_items) {
} else {
SQ_queue[SQ_head_counter].Action = 0;
SQ_queue[SQ_head_counter].Arg1 = _local1;
SQ_head_counter = (SQ_head_counter + 1) % SQ_max_items;
SQ_enqueued_items++;
if (!SQ_currently_playing) {
_SQ_handle_queue();
}
}
}
function SQ_EnqueueGotoPlay(obj, target, wait) {
if (SQ_Debug) {
}
if (SQ_enqueued_items >= SQ_max_items) {
} else {
SQ_queue[SQ_head_counter].Action = 1;
SQ_queue[SQ_head_counter].Arg1 = obj;
SQ_queue[SQ_head_counter].Arg2 = target;
SQ_queue[SQ_head_counter].Arg3 = wait;
SQ_head_counter = (SQ_head_counter + 1) % SQ_max_items;
SQ_enqueued_items++;
if (!SQ_currently_playing) {
_SQ_handle_queue();
}
}
}
function SQ_EnqueueGotoStop(obj, target) {
if (SQ_Debug) {
}
if (SQ_enqueued_items >= SQ_max_items) {
} else {
SQ_queue[SQ_head_counter].Action = 2;
SQ_queue[SQ_head_counter].Arg1 = obj;
SQ_queue[SQ_head_counter].Arg2 = target;
SQ_head_counter = (SQ_head_counter + 1) % SQ_max_items;
SQ_enqueued_items++;
if (!SQ_currently_playing) {
_SQ_handle_queue();
}
}
}
function SQ_EnqueueFunction(func, oParams, delt) {
if (SQ_Debug) {
}
if (SQ_enqueued_items >= SQ_max_items) {
} else {
SQ_queue[SQ_head_counter].Action = 3;
SQ_queue[SQ_head_counter].Arg1 = func;
SQ_queue[SQ_head_counter].Arg2 = oParams;
SQ_queue[SQ_head_counter].Arg3 = delt;
SQ_head_counter = (SQ_head_counter + 1) % SQ_max_items;
SQ_enqueued_items++;
if (!SQ_currently_playing) {
_SQ_handle_queue();
}
}
}
function SQ_EnqueueFunctionWithScope(func, scope, oParams) {
var _local1 = func;
var _local2 = scope;
if (SQ_Debug) {
}
if (SQ_enqueued_items >= SQ_max_items) {
} else {
SQ_queue[SQ_head_counter].Action = 4;
SQ_queue[SQ_head_counter].Arg1 = _local1;
SQ_queue[SQ_head_counter].Arg2 = _local2;
SQ_queue[SQ_head_counter].Arg3 = oParams;
SQ_head_counter = (SQ_head_counter + 1) % SQ_max_items;
SQ_enqueued_items++;
if (!SQ_currently_playing) {
_SQ_handle_queue();
}
}
}
function SQ_AnimDone() {
_SQ_SoundCallback();
}
function SQ_StopSound() {
oSoundPlayer.stop(SQ_current_sound);
SQ_current_sound = "";
}
function SQ_ClearQueue() {
SQ_currently_playing = false;
SQ_head_counter = 0;
SQ_tail_counter = 0;
SQ_enqueued_items = 0;
var _local1 = 0;
while (_local1 < SQ_max_items) {
SQ_queue[_local1].Action = -1;
SQ_queue[_local1].Arg1 = -1;
SQ_queue[_local1].Arg2 = -1;
SQ_queue[_local1].Arg3 = -1;
_local1++;
}
SQ_StopSound();
}
function _SQ_handle_queue() {
if (SQ_Debug) {
}
var temp = new Object();
temp.Action = SQ_queue[SQ_tail_counter].Action;
temp.Arg1 = SQ_queue[SQ_tail_counter].Arg1;
temp.Arg2 = SQ_queue[SQ_tail_counter].Arg2;
temp.Arg3 = SQ_queue[SQ_tail_counter].Arg3;
SQ_queue[SQ_tail_counter].Action = -1;
SQ_queue[SQ_tail_counter].Arg1 = -1;
SQ_queue[SQ_tail_counter].Arg2 = -1;
SQ_queue[SQ_tail_counter].Arg3 = -1;
SQ_tail_counter = (SQ_tail_counter + 1) % SQ_max_items;
SQ_enqueued_items--;
SQ_currently_playing = true;
SQ_current_sound = "";
var repeat = false;
switch (temp.Action) {
case 0 :
SQ_current_sound = temp.Arg1;
oSoundPlayer.attachSound(temp.Arg1);
oSoundPlayer.start();
break;
case 1 :
eval (temp.Arg1).gotoAndPlay(temp.Arg2);
if (!temp.Arg3) {
SQ_currently_playing = false;
repeat = true;
}
break;
case 2 :
temp.Arg1.gotoAndStop(temp.Arg2);
SQ_currently_playing = false;
repeat = true;
break;
case 3 :
if (temp.Arg2) {
if (temp.Arg2.length == 1) {
temp.Arg1(temp.Arg2[0]);
} else if (temp.Arg2.length == 2) {
temp.Arg1(temp.Arg2[0], temp.Arg2[1]);
}
} else {
temp.Arg1();
}
if (temp.Arg3) {
delete temp.Arg1;
}
SQ_currently_playing = false;
repeat = true;
break;
case 4 :
if (temp.Arg3) {
if (temp.Arg3.length == 1) {
temp.Arg2[temp.Arg1](temp.Arg3[0]);
} else if (temp.Arg3.length == 2) {
temp.Arg2[temp.Arg1](temp.Arg3[0], temp.Arg3[1]);
}
} else {
temp.Arg2[temp.Arg1]();
}
delete temp.Arg2[temp.Arg1];
SQ_currently_playing = false;
repeat = true;
break;
default :
repeat = true;
}
return(repeat);
}
function _SQ_SoundCallback() {
if (SQ_Debug) {
var _local1 = 0;
while (_local1 < SQ_Max_items) {
_local1++;
}
}
SQ_currently_playing = false;
if (SQ_enqueued_items != 0) {
var _local2 = _SQ_handle_queue();
while (_local2 && (SQ_enqueued_items != 0)) {
_local2 = _SQ_handle_queue();
}
}
}
var oSoundPlayer = new Sound();
oSoundPlayer.setVolume(100);
SQ_max_items = 25;
SQ_enqueued_items = 0;
SQ_head_counter = 0;
SQ_tail_counter = 0;
SQ_currently_playing = false;
SQ_current_sound = "";
SQ_debug = false;
SQ_queue = new Array(max_items);
var i = 0;
while (i < SQ_max_items) {
SQ_queue[i] = new Object();
SQ_queue[i].Action = -1;
SQ_queue[i].Arg1 = -1;
SQ_queue[i].Arg2 = -1;
SQ_queue[i].Arg3 = -1;
i++;
}
oSoundPlayer.onSoundComplete = _SQ_SoundCallback;
SQ_enqueueSound("FF_TitleMix");
Frame 6
function initLevel(iLevel) {
resetRound();
if (iLevel == 1) {
iMaxAnimOnScreenNum = 6;
oCurLevelData = aLevel1Data;
oCurLevelData.aTotalAnimals = new Array();
oCurLevelData.aObstacles = new Array();
var _local3 = 0;
while (_local3 < 6) {
oCurLevelData.aTotalAnimals.push(aTotalAnimalTypes[random(5)]);
_local3++;
}
oCurLevelData.aObstacles = aTotalMaps[random(10)];
} else if (iLevel == 2) {
iMaxAnimOnScreenNum = 8;
oCurLevelData = aLevel2Data;
oCurLevelData.aTotalAnimals = new Array();
oCurLevelData.aObstacles = new Array();
oCurLevelData.sCAAnimal = aTotalAnimalTypes[random(5)];
oCurLevelData.sAttribute = oCurLevelData.sCAAnimal;
var _local3 = 0;
while (_local3 < 6) {
oCurLevelData.aTotalAnimals.push(oCurLevelData.sCAAnimal);
_local3++;
}
var _local2;
var _local1 = 0;
while (_local1 < 2) {
_local2 = oCurLevelData.sCAAnimal;
while (_local2 == oCurLevelData.sCAAnimal) {
_local2 = aTotalAnimalTypes[random(5)];
}
oCurLevelData.aTotalAnimals.push(_local2);
_local1++;
}
oCurLevelData.aObstacles = aTotalMaps[random(10)];
oCurLevelData.aInstructions = new Array();
oCurLevelData.aInstructions.push("FF_Narrator06");
oCurLevelData.aInstructions.push("FF_Narrator_" + oCurLevelData.sCAAnimal);
} else if (iLevel == 3) {
iMaxAnimOnScreenNum = 10;
oCurLevelData = aLevel3Data[random(aLevel3Data.length)];
oCurLevelData.aTotalAnimals = new Array();
oCurLevelData.aObstacles = new Array();
var _local3 = 0;
while (_local3 < oCurLevelData.aAnimals.length) {
var _local1 = 0;
while (_local1 < oCurLevelData.aAnimals[_local3][1]) {
oCurLevelData.aTotalAnimals.push(oCurLevelData.aAnimals[_local3][0]);
_local1++;
}
_local3++;
}
oCurLevelData.aObstacles = aTotalMaps[random(10)];
}
initJoJo();
var _local3 = 0;
while (_local3 < 10) {
initAnimals(oCurLevelData.aTotalAnimals.splice(random(oCurLevelData.aTotalAnimals.length), 1), 1);
_local3++;
}
_local3 = 0;
while (_local3 < oCurLevelData.aObstacles.length) {
initObstacle(oCurLevelData.aObstacles[_local3].sName, oCurLevelData.aObstacles[_local3].iX, oCurLevelData.aObstacles[_local3].iY);
_local3++;
}
corral.gotoAndPlay("arrow");
aTrain.push(jojo);
aAllStuff = aTrain.concat(aAnimals).concat(aObjects);
aAllStuff.push(corral);
timer_mc.startTimer();
if (bMusicOn == true) {
oMusic.start();
}
SQ_enqueueSound("Blank");
if (iCurrentLevel != 1) {
SQ_enqueueFunction(triggerAnimalHint_on, [oCurLevelData.sCAAnimal]);
}
_local3 = 0;
while (_local3 < oCurLevelData.aInstructions.length) {
SQ_enqueueSound(oCurLevelData.aInstructions[_local3]);
_local3++;
}
if (iCurrentLevel != 1) {
SQ_enqueueFunction(triggerAnimalHint_off);
}
bEnterframe = true;
debugGame();
}
function initJoJo() {
attachMovie("JoJo", "jojo", 300);
jojo._x = 225;
jojo._y = 100;
}
function initAnimals(sName, iNum) {
var i = 0;
while (i < iNum) {
iAnimalNum++;
attachMovie(sName, "Animal" + iAnimalNum, 200 + iAnimalNum);
aAnimals.push(eval ("Animal" + iAnimalNum));
iCurAnimOnScreenNum++;
i++;
}
}
function initExtraAnimals() {
var _local1 = iCurAnimOnScreenNum;
while (_local1 < iMaxAnimOnScreenNum) {
initAnimals(oCurLevelData.aTotalAnimals.splice(random(oCurLevelData.aTotalAnimals.length), 1), 1);
_local1++;
}
aAllStuff = [];
aAllStuff = aTrain.concat(aAnimals).concat(aCorralAnimals).concat(aObjects);
aAllStuff.push(corral);
}
function initObstacle(sName, x, y) {
iObstacleNum++;
attachMovie(sName, "Obstacle" + iObstacleNum, iObstacleNum + 100);
eval ("Obstacle" + iObstacleNum)._x = x;
eval ("Obstacle" + iObstacleNum)._y = y;
aObjects.push(eval ("Obstacle" + iObstacleNum));
}
function checkCA(mc) {
if ((mc.sName == oCurLevelData.sCAAnimal) || (oCurLevelData.sCAAnimal == "All")) {
return(true);
}
}
function updateScore() {
var _local1 = 1;
while (_local1 < aTrain.length) {
if ((aTrain[_local1].sName == oCurLevelData.sCAAnimal) || (oCurLevelData.sCAAnimal == "All")) {
iCurCANum++;
}
_local1++;
}
iScore = iCurCANum * 1;
_local1 = 1;
while (_local1 < aTrain.length) {
iLineBonus = iLineBonus + _local1;
_local1++;
}
}
function recordTimeBonus() {
var _local1 = timer_mc._currentframe;
iTimeBonus = (60 - _local1) * 2;
}
function isRoundEnd() {
if (iCurCANum == oCurLevelData.iCANum) {
return(true);
}
}
function roundEnd() {
bEnterframe = false;
jojo.onEnterFrame = null;
recordTimeBonus();
SQ_enqueueSound(RoundCongratz[random(RoundCongratz.length)]);
SQ_enqueueFunction(triggerPopUp, ["score"]);
oMusic.stop("FF_GameLoop");
}
function triggerPopUp(sString) {
var _local1 = sString;
bLevelLock = true;
if (_local1 == "level1") {
iCurrentLevel = 1;
} else if (_local1 == "level2") {
iCurrentLevel = 2;
} else if (_local1 == "level3") {
iCurrentLevel = 3;
}
popup_mc.gotoAndPlay(_local1);
level_mc.gotoAndStop("level" + _root.iCurrentLevel);
cleanUp();
}
function resetRound() {
bLevelLock = false;
aObjects = [];
aAnimals = [];
aAllStuff = [];
aTrain = [];
aCorralAnimals = [];
iAnimalNum = 0;
iCurAnimOnScreenNum = 0;
iObstacleNum = 0;
iCurCANum = 0;
iScore = 0;
iLineBonus = 0;
iTimeBonus = 0;
iTotalScore = 0;
oCurLevelData = null;
}
function triggerHelp(sState) {
if (sState == "on") {
attachMovie("help_pop", "help_mc", 10000);
if (iCurrentLevel != 1) {
triggerAnimalHint_on(oCurLevelData.sCAAnimal);
help_mc.gotoAndPlay("pop_animal");
} else {
help_mc.gotoAndPlay("pop");
}
timer_mc.pauseTimer();
var _local1 = 0;
while (_local1 < aAllStuff.length) {
aAllStuff[_local1].bPause = true;
_local1++;
}
jojo.lockJojo();
} else if (sState == "off") {
removeMovieClip("help_mc");
triggerAnimalHint_off();
timer_mc.startTimer();
var _local1 = 0;
while (_local1 < aAllStuff.length) {
aAllStuff[_local1].bPause = false;
_local1++;
}
jojo.unlockJojo();
}
}
function triggerAnimalHint_on(sAnimal) {
attachMovie("AnimalHint_pop", "AnimalHint_mc", 10001);
AnimalHint_mc._x = 250;
AnimalHint_mc._y = 200;
AnimalHint_mc.gotoAndPlay(sAnimal);
bLevelLock = true;
jojo.lockJojo();
}
function triggerAnimalHint_off() {
AnimalHint_mc._xscale = 35;
AnimalHint_mc._yscale = 35;
AnimalHint_mc._x = 25;
AnimalHint_mc._y = 335;
bLevelLock = false;
jojo.unlockJojo();
}
function cleanUp() {
bEnterframe = false;
jojo.onEnterFrame = null;
triggerAnimalHint_off();
bLevelLock = true;
arrows_mc.gotoAndStop("idle");
oMusic.stop("FF_GameLoop");
SQ_clearQueue();
timer_mc.resetTimer();
corral.swapDepths(iCorralDepth);
var i = 0;
while (i < 30) {
removeMovieClip(eval ("_root.Animal" + i));
removeMovieClip(eval ("_root.Obstacle" + i));
i++;
}
removeMovieClip(_root.jojo);
removeMovieClip("AnimalHint_mc");
aObjects = [];
aAnimals = [];
aAllStuff = [];
aTrain = [];
aCorralAnimals = [];
}
function depthSwap() {
var _local2 = 0;
while (_local2 < aAllStuff.length) {
aAllStuff[_local2].sDepth = aAllStuff[_local2].getDepth();
var _local1 = 0;
while (_local1 < aAllStuff.length) {
if (aAllStuff[_local2]._y > aAllStuff[_local1]._y) {
if (aAllStuff[_local2].getDepth() < aAllStuff[_local1].getDepth()) {
aAllStuff[_local2].swapDepths(aAllStuff[_local1]);
}
}
_local1++;
}
_local2++;
}
}
function debugGame(sID) {
var _local1 = sID;
if (bDebug) {
if (_local1 == "aAnimals") {
} else if (_local1 == "aObjects") {
} else if (_local1 == "aTrain") {
} else if (_local1 == "aCorralAnimals") {
} else if (_local1 == "aAllStuff") {
}
}
}
aTotalAnimalTypes = ["Chicken", "Duck", "Flamingo", "Monkey", "Penguin"];
aTotalMaps = [[{sName:"Obstacle2", iX:125, iY:150}, {sName:"Obstacle3", iX:300, iY:225}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle4", iX:300, iY:250}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle2", iX:125, iY:300}, {sName:"Obstacle4", iX:325, iY:225}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle1", iX:325, iY:250}, {sName:"Obstacle3", iX:125, iY:200}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle2", iX:325, iY:150}, {sName:"Obstacle3", iX:75, iY:175}, {sName:"Obstacle3", iX:200, iY:250}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle3", iX:325, iY:200}, {sName:"Obstacle4", iX:100, iY:250}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle3", iX:75, iY:150}, {sName:"Obstacle2", iX:150, iY:275}, {sName:"Obstacle4", iX:325, iY:200}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle1", iX:300, iY:300}, {sName:"Obstacle3", iX:150, iY:250}, {sName:"Obstacle2", iX:100, iY:150}, {sName:"Obstacle3", iX:375, iY:175}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle3", iX:75, iY:175}, {sName:"Obstacle4", iX:125, iY:300}, {sName:"Obstacle1", iX:300, iY:300}, {sName:"Obstacle3", iX:400, iY:150}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}], [{sName:"Obstacle4", iX:100, iY:225}, {sName:"Obstacle1", iX:300, iY:300}, {sName:"Obstacle2", iX:400, iY:175}, {sName:"Obstacle5", iX:480, iY:325}, {sName:"Obstacle6", iX:-15, iY:375}]];
aLevel1Data = {aInstructions:["FF_Narrator04", "FF_Narrator05"], sAttribute:"None", sCAAnimal:"All", iCANum:6};
aLevel2Data = {iCANum:6};
aLevel3Data = new Array();
aLevel3Data.push({aAnimals:[["Chicken", 2], ["Duck", 1], ["Flamingo", 4], ["Monkey", 1], ["Penguin", 2]], aInstructions:["FF_Narrator07", "FF_Narrator18"], sAttribute:"Pink", sCAAnimal:"Flamingo", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 4], ["Duck", 2], ["Flamingo", 1], ["Monkey", 1], ["Penguin", 2]], aInstructions:["FF_Narrator07", "FF_Narrator22"], sAttribute:"Yellow", sCAAnimal:"Chicken", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 1], ["Duck", 2], ["Flamingo", 2], ["Monkey", 4], ["Penguin", 1]], aInstructions:["FF_Narrator07", "FF_Narrator19"], sAttribute:"Brown", sCAAnimal:"Monkey", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 2], ["Duck", 4], ["Flamingo", 2], ["Monkey", 2], ["Penguin", 0]], aInstructions:["FF_Narrator07", "FF_Narrator21"], sAttribute:"White", sCAAnimal:"Duck", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 1], ["Duck", 2], ["Flamingo", 1], ["Monkey", 4], ["Penguin", 2]], aInstructions:["FF_Narrator07", "FF_Narrator15"], sAttribute:"Banana", sCAAnimal:"Monkey", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 2], ["Duck", 0], ["Flamingo", 2], ["Monkey", 2], ["Penguin", 4]], aInstructions:["FF_Narrator07", "FF_Narrator20"], sAttribute:"BlackWhite", sCAAnimal:"Penguin", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 4], ["Duck", 2], ["Flamingo", 1], ["Monkey", 0], ["Penguin", 2]], aInstructions:["FF_Narrator07", "FF_Narrator17"], sAttribute:"Bounce", sCAAnimal:"Chicken", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 2], ["Duck", 2], ["Flamingo", 4], ["Monkey", 0], ["Penguin", 2]], aInstructions:["FF_Nrrator07", "FF_Narrator12"], sAttribute:"LongLegs", sCAAnimal:"Flamingo", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 1], ["Duck", 4], ["Flamingo", 2], ["Monkey", 1], ["Penguin", 2]], aInstructions:["FF_Nrrator07", "FF_Narrator16"], sAttribute:"Quack", sCAAnimal:"Duck", iCANum:4});
aLevel3Data.push({aAnimals:[["Chicken", 2], ["Duck", 2], ["Flamingo", 2], ["Monkey", 4], ["Penguin", 0]], aInstructions:["FF_Nrrator07", "FF_Narrator11"], sAttribute:"Fur", sCAAnimal:"Monkey", iCANum:4});
CAResponse = new Array(3);
CAResponse[0] = "FF_Narrator30";
CAResponse[1] = "FF_Narrator31";
CAResponse[2] = "FF_Narrator32";
WAResponse = new Array(2);
WAResponse[0] = "FF_Narrator34";
WAResponse[1] = "FF_Narrator35";
EncourageLines = new Array(3);
EncourageLines[0] = "FF_Narrator37";
EncourageLines[1] = "FF_Narrator31";
EncourageLines[2] = "FF_Narrator38";
CorralCongratz = new Array(3);
CorralCongratz[0] = "FF_Narrator39";
CorralCongratz[1] = "FF_Narrator40";
CorralCongratz[2] = "FF_Narrator41";
RoundCongratz = new Array(3);
RoundCongratz[0] = "FF_Narrator42";
RoundCongratz[1] = "FF_Narrator43";
RoundCongratz[2] = "FF_Narrator44";
ScoreCongratz = new Array(2);
ScoreCongratz[0] = "FF_Narrator46";
ScoreCongratz[1] = "FF_Narrator47";
TimerPrompts = new Array(2);
TimerPrompts[0] = "FF_Narrator28";
TimerPrompts[1] = "FF_Narrator29";
TrainBreakResponse = new Array(2);
TrainBreakResponse[0] = "FF_Narrator05";
TrainBreakResponse[1] = "FF_Narrator36";
var iWidth = 480;
var iHeight = 360;
var iCorralWidth = 285;
var iCorralHeight = 65;
var iEntireCorralWidth = 250;
var iEntireCorralHeight = 100;
var iCorralX = 260;
var iCorralY = 65;
var iCorralDepth = corral.getDepth();
var iCurrentLevel = 1;
var aObjects = new Array();
var aAnimals = new Array();
var aAllStuff = new Array();
var aTrain = new Array();
var aCorralAnimals = new Array();
var iAnimalNum = 0;
var iMaxAnimOnScreenNum = 6;
var iCurAnimOnScreenNum = 0;
var iObstacleNum = 0;
var iTrainSpeed = 7;
var iFrameRate = 10;
var iFrameDelay = 8;
var iCurCANum = 0;
var iScore = 0;
var iLineBonus = 0;
var iTimeBonus = 0;
var iTotalScore = 0;
var bDebug = true;
var bMusicOn = true;
var bLevelLock = false;
var bEnterframe = true;
var oMusic = new Sound(_root.popup_mc);
oMusic.setVolume(40);
oMusic.attachSound("FF_GameLoop");
oMusic.onSoundComplete = function () {
oMusic.start();
};
var oCurLevelData;
var bDepthSwap = true;
triggerPopUp("instruction");
Instance of Symbol 555 MovieClip in Frame 6
on (keyPress "<Left>") {
if (!_root.jojo.bLockLeft) {
_root.jojo.bLockUp = false;
_root.jojo.bLockDown = false;
_root.jojo.bLockRight = false;
_root.jojo.dx = -_root.iTrainSpeed;
_root.jojo.dy = 0;
_root.jojo.iDir = 2;
_root.arrows_mc.gotoAndStop("left");
}
}
on (keyPress "<Right>") {
if (!_root.jojo.bLockRight) {
_root.jojo.bLockUp = false;
_root.jojo.bLockDown = false;
_root.jojo.bLockLeft = false;
_root.jojo.dx = _root.iTrainSpeed;
_root.jojo.dy = 0;
_root.jojo.iDir = 0;
_root.arrows_mc.gotoAndStop("right");
}
}
on (keyPress "<Up>") {
if (!_root.jojo.bLockUp) {
_root.jojo.bLockLeft = false;
_root.jojo.bLockRight = false;
_root.jojo.bLockDown = false;
_root.jojo.dx = 0;
_root.jojo.dy = -_root.iTrainSpeed;
_root.jojo.iDir = 3;
_root.arrows_mc.gotoAndStop("up");
}
}
on (keyPress "<Down>") {
if (!_root.jojo.bLockDown) {
_root.jojo.bLockLeft = false;
_root.jojo.bLockRight = false;
_root.jojo.bLockUp = false;
_root.jojo.dx = 0;
_root.jojo.dy = _root.iTrainSpeed;
_root.jojo.iDir = 1;
_root.arrows_mc.gotoAndStop("down");
}
}
Instance of Symbol 582 MovieClip "music_mc" in Frame 6
onClipEvent (load) {
this.swapDepths(9999);
help_btn.swapDepths(9998);
if (_root.bMusicOn == true) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
}
Instance of Symbol 587 MovieClip in Frame 6
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 12
onEnterFrame = function () {
if (bEnterframe && (bDepthSwap)) {
depthSwap();
}
};
stop();
Frame 17
bEnterframe = false;
jojo.onEnterFrame = null;
triggerAnimalHint_off();
oMusic.stop("FF_GameLoop");
SQ_clearQueue();
timer_mc.resetTimer();
corral.swapDepths(iCorralDepth);
var i = 0;
while (i < 30) {
removeMovieClip(eval ("_root.Animal" + i));
removeMovieClip(eval ("_root.Obstacle" + i));
i++;
}
removeMovieClip(_root.jojo);
aObjects = [];
aAnimals = [];
aAllStuff = [];
aTrain = [];
aCorralAnimals = [];
stop();
Symbol 3 Button
on (press) {
_root.triggerHelp("off");
}
Symbol 5 MovieClip [help_pop] Frame 2
stop();
Symbol 5 MovieClip [help_pop] Frame 10
stop();
Symbol 5 MovieClip [help_pop] Frame 15
stop();
Symbol 52 MovieClip [AnimalHint_pop] Frame 2
stop();
Symbol 52 MovieClip [AnimalHint_pop] Frame 7
stop();
Symbol 52 MovieClip [AnimalHint_pop] Frame 10
stop();
Symbol 52 MovieClip [AnimalHint_pop] Frame 13
stop();
Symbol 52 MovieClip [AnimalHint_pop] Frame 16
stop();
Symbol 52 MovieClip [AnimalHint_pop] Frame 19
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 5
IntroPlaying = true;
Symbol 56 MovieClip Frame 97
IntroPlaying = false;
gotoAndStop (1);
Symbol 56 MovieClip Frame 99
IntroPlaying = false;
Symbol 56 MovieClip Frame 102
gotoAndStop (1);
Symbol 116 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 5
stop();
Symbol 170 MovieClip Frame 5
stop();
Symbol 172 MovieClip Frame 1
this._visible = false;
Symbol 173 MovieClip Frame 1
this._visible = false;
Symbol 179 MovieClip Frame 2
stop();
Symbol 179 MovieClip Frame 10
gotoAndPlay ("idle");
Symbol 186 MovieClip [Chicken] Frame 1
sName = "Chicken";
iSpeed = 3;
iPauseTime = 5000;
iPauseInterval = 10000 + random(10000);
function initAnimalBehavior() {
var _local1 = this;
var _local2 = _parent;
var _local3;
if (bInCorral) {
_local3 = random(2);
if (_local3 == 0) {
dx = -iSpeed;
dy = 0;
_local1._x = (_local2.iCorralX + _local2.iEntireCorralWidth) + random(50);
_local1._y = (_local2.iCorralY - _local1._height) - random(_local2.iEntireCorralHeight - _local1._height);
} else if (_local3 == 1) {
dy = iSpeed;
dx = 0;
_local1._x = (_local2.iCorralX + _local1._width) + (_local2.iEntireCorralWidth - _local1._width);
_local1._y = (_local2.iCorralY - _local2.iEntireCorralHeight) - random(50);
}
} else if (!bInTrain) {
_local3 = random(3);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
_local1._x = -random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
_local1._x = _local2.iWidth + random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
_local1._x = _local1._width + random(_local2.iWidth - (2 * _local1._width));
_local1._y = _local2.iHeight + random(50);
}
} else if (bInTrain) {
_local3 = random(4);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
} else if (_local3 == 3) {
dy = iSpeed;
dx = 0;
}
}
}
function animalPause() {
bPause = true;
clearInterval(iPauseStartID);
iPauseID = setInterval(animalUnpause, iPauseTime);
}
function animalUnpause() {
bPause = false;
clearInterval(iPauseID);
animalTurn();
iPauseStartID = setInterval(animalPause, iPauseInterval);
}
function animalTurn() {
iTurn = 90 * (random(3) + 1);
if (iTurn == 90) {
if (dy != 0) {
dx = dy;
dy = 0;
} else {
dy = -dx;
dx = 0;
}
} else if (iTurn == 180) {
dx = -dx;
dy = -dy;
} else if (iTurn == 270) {
if (dx != 0) {
dy = dx;
dx = 0;
} else {
dx = -dy;
dy = 0;
}
}
}
function checkEdgeX() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dx > 0) && ((_local2._x + blindstick._x) >= _local1.iWidth)) || ((dx < 0) && ((_local2._x + blindstick._x) <= 0))) {
return(true);
}
return(false);
}
if (((dx > 0) && ((_local2._x + blindstick._x) >= (_local1.iCorralX + _local1.iEntireCorralWidth))) || ((dx < 0) && ((_local2._x + blindstick._x) <= _local1.iCorralX))) {
return(true);
}
return(false);
}
function checkEdgeY() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iHeight)) || ((dy < 0) && ((_local2._y + blindstick._y) <= _local1.iCorralHeight))) {
return(true);
}
return(false);
}
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iCorralY)) || ((dy < 0) && ((_local2._y + blindstick._y) <= (_local1.iCorralY - _local1.iEntireCorralHeight)))) {
return(true);
}
return(false);
}
function checkObjects() {
var _local2 = _parent;
var _local1 = 0;
while (_local1 < _local2.aObjects.length) {
if (blindstick.hitTest(_local2.aObjects[_local1].hotspot)) {
return(true);
}
_local1++;
}
return(undefined);
}
iPauseID = null;
iPauseStartID = null;
bReady = true;
bPause = false;
bInTrain = false;
bInCorral = false;
aWayPoints_x = new Array();
aWayPoints_y = new Array();
initAnimalBehavior();
onEnterFrame = function () {
if ((!bInTrain) && (!bPause)) {
if (dx > 0) {
gotoAndStop ("Right");
} else if (dx < 0) {
gotoAndStop ("Left");
} else if (dy > 0) {
gotoAndStop ("Front");
} else if (dy < 0) {
gotoAndStop ("Back");
}
if ((dx != 0) && (checkEdgeX())) {
animalTurn();
} else if ((dy != 0) && (checkEdgeY())) {
animalTurn();
}
if (checkObjects()) {
animalTurn();
}
this._x = this._x + dx;
this._y = this._y + dy;
}
};
Symbol 186 MovieClip [Chicken] Frame 2
stop();
Symbol 191 MovieClip [Duck] Frame 1
sName = "Duck";
iSpeed = 2;
iPauseTime = 3000;
iPauseInterval = 10000 + random(10000);
function initAnimalBehavior() {
var _local1 = this;
var _local2 = _parent;
var _local3;
if (bInCorral) {
_local3 = random(2);
if (_local3 == 0) {
dx = -iSpeed;
dy = 0;
_local1._x = (_local2.iCorralX + _local2.iEntireCorralWidth) + random(50);
_local1._y = (_local2.iCorralY - _local1._height) - random(_local2.iEntireCorralHeight - _local1._height);
} else if (_local3 == 1) {
dy = iSpeed;
dx = 0;
_local1._x = (_local2.iCorralX + _local1._width) + (_local2.iEntireCorralWidth - _local1._width);
_local1._y = (_local2.iCorralY - _local2.iEntireCorralHeight) - random(50);
}
} else if (!bInTrain) {
_local3 = random(3);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
_local1._x = -random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
_local1._x = _local2.iWidth + random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
_local1._x = _local1._width + random(_local2.iWidth - (2 * _local1._width));
_local1._y = _local2.iHeight + random(50);
}
} else if (bInTrain) {
_local3 = random(4);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
} else if (_local3 == 3) {
dy = iSpeed;
dx = 0;
}
}
}
function animalPause() {
bPause = true;
clearInterval(iPauseStartID);
iPauseID = setInterval(animalUnpause, iPauseTime);
}
function animalUnpause() {
bPause = false;
clearInterval(iPauseID);
animalTurn();
iPauseStartID = setInterval(animalPause, iPauseInterval);
}
function animalTurn() {
iTurn = 90 * (random(3) + 1);
if (iTurn == 90) {
if (dy != 0) {
dx = dy;
dy = 0;
} else {
dy = -dx;
dx = 0;
}
} else if (iTurn == 180) {
dx = -dx;
dy = -dy;
} else if (iTurn == 270) {
if (dx != 0) {
dy = dx;
dx = 0;
} else {
dx = -dy;
dy = 0;
}
}
}
function checkEdgeX() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dx > 0) && ((_local2._x + blindstick._x) >= _local1.iWidth)) || ((dx < 0) && ((_local2._x + blindstick._x) <= 0))) {
return(true);
}
return(false);
}
if (((dx > 0) && ((_local2._x + blindstick._x) >= (_local1.iCorralX + _local1.iEntireCorralWidth))) || ((dx < 0) && ((_local2._x + blindstick._x) <= _local1.iCorralX))) {
return(true);
}
return(false);
}
function checkEdgeY() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iHeight)) || ((dy < 0) && ((_local2._y + blindstick._y) <= _local1.iCorralHeight))) {
return(true);
}
return(false);
}
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iCorralY)) || ((dy < 0) && ((_local2._y + blindstick._y) <= (_local1.iCorralY - _local1.iEntireCorralHeight)))) {
return(true);
}
return(false);
}
function checkObjects() {
var _local2 = _parent;
var _local1 = 0;
while (_local1 < _local2.aObjects.length) {
if (blindstick.hitTest(_local2.aObjects[_local1].hotspot)) {
return(true);
}
_local1++;
}
return(undefined);
}
iPauseID = null;
iPauseStartID = null;
bReady = true;
bPause = false;
bInTrain = false;
bInCorral = false;
aWayPoints_x = new Array();
aWayPoints_y = new Array();
initAnimalBehavior();
onEnterFrame = function () {
if ((!bInTrain) && (!bPause)) {
if (dx > 0) {
gotoAndStop ("Right");
} else if (dx < 0) {
gotoAndStop ("Left");
} else if (dy > 0) {
gotoAndStop ("Front");
} else if (dy < 0) {
gotoAndStop ("Back");
}
if ((dx != 0) && (checkEdgeX())) {
animalTurn();
} else if ((dy != 0) && (checkEdgeY())) {
animalTurn();
}
if (checkObjects()) {
animalTurn();
}
this._x = this._x + dx;
this._y = this._y + dy;
}
};
Symbol 191 MovieClip [Duck] Frame 2
stop();
Symbol 245 MovieClip [Flamingo] Frame 1
sName = "Flamingo";
iSpeed = 4;
iPauseTime = 7000;
iPauseInterval = 10000 + random(10000);
function initAnimalBehavior() {
var _local1 = this;
var _local2 = _parent;
var _local3;
if (bInCorral) {
_local3 = random(2);
if (_local3 == 0) {
dx = -iSpeed;
dy = 0;
_local1._x = (_local2.iCorralX + _local2.iEntireCorralWidth) + random(50);
_local1._y = (_local2.iCorralY - _local1._height) - random(_local2.iEntireCorralHeight - _local1._height);
} else if (_local3 == 1) {
dy = iSpeed;
dx = 0;
_local1._x = (_local2.iCorralX + _local1._width) + (_local2.iEntireCorralWidth - _local1._width);
_local1._y = (_local2.iCorralY - _local2.iEntireCorralHeight) - random(50);
}
} else if (!bInTrain) {
_local3 = random(3);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
_local1._x = -random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
_local1._x = _local2.iWidth + random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
_local1._x = _local1._width + random(_local2.iWidth - (2 * _local1._width));
_local1._y = _local2.iHeight + random(50);
}
} else if (bInTrain) {
_local3 = random(4);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
} else if (_local3 == 3) {
dy = iSpeed;
dx = 0;
}
}
}
function animalPause() {
bPause = true;
clearInterval(iPauseStartID);
iPauseID = setInterval(animalUnpause, iPauseTime);
}
function animalUnpause() {
bPause = false;
clearInterval(iPauseID);
animalTurn();
iPauseStartID = setInterval(animalPause, iPauseInterval);
}
function animalTurn() {
iTurn = 90 * (random(3) + 1);
if (iTurn == 90) {
if (dy != 0) {
dx = dy;
dy = 0;
} else {
dy = -dx;
dx = 0;
}
} else if (iTurn == 180) {
dx = -dx;
dy = -dy;
} else if (iTurn == 270) {
if (dx != 0) {
dy = dx;
dx = 0;
} else {
dx = -dy;
dy = 0;
}
}
}
function checkEdgeX() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dx > 0) && ((_local2._x + blindstick._x) >= _local1.iWidth)) || ((dx < 0) && ((_local2._x + blindstick._x) <= 0))) {
return(true);
}
return(false);
}
if (((dx > 0) && ((_local2._x + blindstick._x) >= (_local1.iCorralX + _local1.iEntireCorralWidth))) || ((dx < 0) && ((_local2._x + blindstick._x) <= _local1.iCorralX))) {
return(true);
}
return(false);
}
function checkEdgeY() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iHeight)) || ((dy < 0) && ((_local2._y + blindstick._y) <= _local1.iCorralHeight))) {
return(true);
}
return(false);
}
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iCorralY)) || ((dy < 0) && ((_local2._y + blindstick._y) <= (_local1.iCorralY - _local1.iEntireCorralHeight)))) {
return(true);
}
return(false);
}
function checkObjects() {
var _local2 = _parent;
var _local1 = 0;
while (_local1 < _local2.aObjects.length) {
if (blindstick.hitTest(_local2.aObjects[_local1].hotspot)) {
return(true);
}
_local1++;
}
return(undefined);
}
iPauseID = null;
iPauseStartID = null;
bReady = true;
bPause = false;
bInTrain = false;
bInCorral = false;
aWayPoints_x = new Array();
aWayPoints_y = new Array();
initAnimalBehavior();
onEnterFrame = function () {
if ((!bInTrain) && (!bPause)) {
if (dx > 0) {
gotoAndStop ("Right");
} else if (dx < 0) {
gotoAndStop ("Left");
} else if (dy > 0) {
gotoAndStop ("Front");
} else if (dy < 0) {
gotoAndStop ("Back");
}
if ((dx != 0) && (checkEdgeX())) {
animalTurn();
} else if ((dy != 0) && (checkEdgeY())) {
animalTurn();
}
if (checkObjects()) {
animalTurn();
}
this._x = this._x + dx;
this._y = this._y + dy;
}
};
Symbol 245 MovieClip [Flamingo] Frame 2
stop();
Symbol 303 MovieClip [Generic] Frame 1
iSpeed = 5;
iPauseTime = 3000;
iPauseInterval = 10000 + random(10000);
function initAnimalBehavior() {
var _local1 = this;
var _local2 = _parent;
var _local3;
if (bInCorral) {
_local3 = random(2);
if (_local3 == 0) {
dx = -iSpeed;
dy = 0;
_local1._x = (_local2.iCorralX + _local2.iEntireCorralWidth) + random(50);
_local1._y = (_local2.iCorralY - _local1._height) - random(_local2.iEntireCorralHeight - _local1._height);
} else if (_local3 == 1) {
dy = iSpeed;
dx = 0;
_local1._x = (_local2.iCorralX + _local1._width) + (_local2.iEntireCorralWidth - _local1._width);
_local1._y = (_local2.iCorralY - _local2.iEntireCorralHeight) - random(50);
}
} else if (!bInTrain) {
_local3 = random(3);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
_local1._x = -random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
_local1._x = _local2.iWidth + random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
_local1._x = _local1._width + random(_local2.iWidth - (2 * _local1._width));
_local1._y = _local2.iHeight + random(50);
}
} else if (bInTrain) {
_local3 = random(4);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
} else if (_local3 == 3) {
dy = iSpeed;
dx = 0;
}
}
}
function animalPause() {
bPause = true;
clearInterval(iPauseStartID);
iPauseID = setInterval(animalUnpause, iPauseTime);
}
function animalUnpause() {
bPause = false;
clearInterval(iPauseID);
animalTurn();
iPauseStartID = setInterval(animalPause, iPauseInterval);
}
function animalTurn() {
iTurn = 90 * (random(3) + 1);
if (iTurn == 90) {
if (dy != 0) {
dx = dy;
dy = 0;
} else {
dy = -dx;
dx = 0;
}
} else if (iTurn == 180) {
dx = -dx;
dy = -dy;
} else if (iTurn == 270) {
if (dx != 0) {
dy = dx;
dx = 0;
} else {
dx = -dy;
dy = 0;
}
}
}
function checkEdgeX() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dx > 0) && ((_local2._x + blindstick._x) >= _local1.iWidth)) || ((dx < 0) && ((_local2._x + blindstick._x) <= 0))) {
return(true);
}
return(false);
}
if (((dx > 0) && ((_local2._x + blindstick._x) >= (_local1.iCorralX + _local1.iEntireCorralWidth))) || ((dx < 0) && ((_local2._x + blindstick._x) <= _local1.iCorralX))) {
return(true);
}
return(false);
}
function checkEdgeY() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iHeight)) || ((dy < 0) && ((_local2._y + blindstick._y) <= _local1.iCorralHeight))) {
return(true);
}
return(false);
}
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iCorralY)) || ((dy < 0) && ((_local2._y + blindstick._y) <= (_local1.iCorralY - _local1.iEntireCorralHeight)))) {
return(true);
}
return(false);
}
function checkObjects() {
var _local2 = _parent;
var _local1 = 0;
while (_local1 < _local2.aObjects.length) {
if (blindstick.hitTest(_local2.aObjects[_local1].hotspot)) {
return(true);
}
_local1++;
}
return(undefined);
}
iPauseID = null;
iPauseStartID = null;
bReady = true;
bPause = false;
bInTrain = false;
bInCorral = false;
aWayPoints_x = new Array();
aWayPoints_y = new Array();
initAnimalBehavior();
onEnterFrame = function () {
if ((!bInTrain) && (!bPause)) {
if (dx > 0) {
gotoAndStop ("Right");
} else if (dx < 0) {
gotoAndStop ("Left");
} else if (dy > 0) {
gotoAndStop ("Front");
} else if (dy < 0) {
gotoAndStop ("Back");
}
if ((dx != 0) && (checkEdgeX())) {
animalTurn();
} else if ((dy != 0) && (checkEdgeY())) {
animalTurn();
}
if (checkObjects()) {
animalTurn();
}
this._x = this._x + dx;
this._y = this._y + dy;
}
};
Symbol 303 MovieClip [Generic] Frame 2
stop();
Symbol 304 MovieClip [Monkey] Frame 1
sName = "Monkey";
iSpeed = 5;
iPauseTime = 3000;
iPauseInterval = 10000 + random(10000);
function initAnimalBehavior() {
var _local1 = this;
var _local2 = _parent;
var _local3;
if (bInCorral) {
_local3 = random(2);
if (_local3 == 0) {
dx = -iSpeed;
dy = 0;
_local1._x = (_local2.iCorralX + _local2.iEntireCorralWidth) + random(50);
_local1._y = (_local2.iCorralY - _local1._height) - random(_local2.iEntireCorralHeight - _local1._height);
} else if (_local3 == 1) {
dy = iSpeed;
dx = 0;
_local1._x = (_local2.iCorralX + _local1._width) + (_local2.iEntireCorralWidth - _local1._width);
_local1._y = (_local2.iCorralY - _local2.iEntireCorralHeight) - random(50);
}
} else if (!bInTrain) {
_local3 = random(3);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
_local1._x = -random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
_local1._x = _local2.iWidth + random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
_local1._x = _local1._width + random(_local2.iWidth - (2 * _local1._width));
_local1._y = _local2.iHeight + random(50);
}
} else if (bInTrain) {
_local3 = random(4);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
} else if (_local3 == 3) {
dy = iSpeed;
dx = 0;
}
}
}
function animalPause() {
bPause = true;
clearInterval(iPauseStartID);
iPauseID = setInterval(animalUnpause, iPauseTime);
}
function animalUnpause() {
bPause = false;
clearInterval(iPauseID);
animalTurn();
iPauseStartID = setInterval(animalPause, iPauseInterval);
}
function animalTurn() {
iTurn = 90 * (random(3) + 1);
if (iTurn == 90) {
if (dy != 0) {
dx = dy;
dy = 0;
} else {
dy = -dx;
dx = 0;
}
} else if (iTurn == 180) {
dx = -dx;
dy = -dy;
} else if (iTurn == 270) {
if (dx != 0) {
dy = dx;
dx = 0;
} else {
dx = -dy;
dy = 0;
}
}
}
function checkEdgeX() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dx > 0) && ((_local2._x + blindstick._x) >= _local1.iWidth)) || ((dx < 0) && ((_local2._x + blindstick._x) <= 0))) {
return(true);
}
return(false);
}
if (((dx > 0) && ((_local2._x + blindstick._x) >= (_local1.iCorralX + _local1.iEntireCorralWidth))) || ((dx < 0) && ((_local2._x + blindstick._x) <= _local1.iCorralX))) {
return(true);
}
return(false);
}
function checkEdgeY() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iHeight)) || ((dy < 0) && ((_local2._y + blindstick._y) <= _local1.iCorralHeight))) {
return(true);
}
return(false);
}
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iCorralY)) || ((dy < 0) && ((_local2._y + blindstick._y) <= (_local1.iCorralY - _local1.iEntireCorralHeight)))) {
return(true);
}
return(false);
}
function checkObjects() {
var _local2 = _parent;
var _local1 = 0;
while (_local1 < _local2.aObjects.length) {
if (blindstick.hitTest(_local2.aObjects[_local1].hotspot)) {
return(true);
}
_local1++;
}
return(undefined);
}
iPauseID = null;
iPauseStartID = null;
bReady = true;
bPause = false;
bInTrain = false;
bInCorral = false;
aWayPoints_x = new Array();
aWayPoints_y = new Array();
initAnimalBehavior();
onEnterFrame = function () {
if ((!bInTrain) && (!bPause)) {
if (dx > 0) {
gotoAndStop ("Right");
} else if (dx < 0) {
gotoAndStop ("Left");
} else if (dy > 0) {
gotoAndStop ("Front");
} else if (dy < 0) {
gotoAndStop ("Back");
}
if ((dx != 0) && (checkEdgeX())) {
animalTurn();
} else if ((dy != 0) && (checkEdgeY())) {
animalTurn();
}
if (checkObjects()) {
animalTurn();
}
this._x = this._x + dx;
this._y = this._y + dy;
}
};
Symbol 304 MovieClip [Monkey] Frame 2
stop();
Symbol 312 MovieClip [Penguin] Frame 1
sName = "Penguin";
iSpeed = 1;
iPauseTime = 7000;
iPauseInterval = 10000 + random(10000);
function initAnimalBehavior() {
var _local1 = this;
var _local2 = _parent;
var _local3;
if (bInCorral) {
_local3 = random(2);
if (_local3 == 0) {
dx = -iSpeed;
dy = 0;
_local1._x = (_local2.iCorralX + _local2.iEntireCorralWidth) + random(50);
_local1._y = (_local2.iCorralY - _local1._height) - random(_local2.iEntireCorralHeight - _local1._height);
} else if (_local3 == 1) {
dy = iSpeed;
dx = 0;
_local1._x = (_local2.iCorralX + _local1._width) + (_local2.iEntireCorralWidth - _local1._width);
_local1._y = (_local2.iCorralY - _local2.iEntireCorralHeight) - random(50);
}
} else if (!bInTrain) {
_local3 = random(3);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
_local1._x = -random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
_local1._x = _local2.iWidth + random(50);
_local1._y = (_local1._height + _local2.iCorralHeight) + random((_local2.iHeight - _local2.iCorralHeight) - (2 * _local1._height));
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
_local1._x = _local1._width + random(_local2.iWidth - (2 * _local1._width));
_local1._y = _local2.iHeight + random(50);
}
} else if (bInTrain) {
_local3 = random(4);
if (_local3 == 0) {
dx = iSpeed;
dy = 0;
} else if (_local3 == 1) {
dx = -iSpeed;
dy = 0;
} else if (_local3 == 2) {
dy = -iSpeed;
dx = 0;
} else if (_local3 == 3) {
dy = iSpeed;
dx = 0;
}
}
}
function animalPause() {
bPause = true;
clearInterval(iPauseStartID);
iPauseID = setInterval(animalUnpause, iPauseTime);
}
function animalUnpause() {
bPause = false;
clearInterval(iPauseID);
animalTurn();
iPauseStartID = setInterval(animalPause, iPauseInterval);
}
function animalTurn() {
iTurn = 90 * (random(3) + 1);
if (iTurn == 90) {
if (dy != 0) {
dx = dy;
dy = 0;
} else {
dy = -dx;
dx = 0;
}
} else if (iTurn == 180) {
dx = -dx;
dy = -dy;
} else if (iTurn == 270) {
if (dx != 0) {
dy = dx;
dx = 0;
} else {
dx = -dy;
dy = 0;
}
}
}
function checkEdgeX() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dx > 0) && ((_local2._x + blindstick._x) >= _local1.iWidth)) || ((dx < 0) && ((_local2._x + blindstick._x) <= 0))) {
return(true);
}
return(false);
}
if (((dx > 0) && ((_local2._x + blindstick._x) >= (_local1.iCorralX + _local1.iEntireCorralWidth))) || ((dx < 0) && ((_local2._x + blindstick._x) <= _local1.iCorralX))) {
return(true);
}
return(false);
}
function checkEdgeY() {
var _local1 = _parent;
var _local2 = this;
if (!bInCorral) {
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iHeight)) || ((dy < 0) && ((_local2._y + blindstick._y) <= _local1.iCorralHeight))) {
return(true);
}
return(false);
}
if (((dy > 0) && ((_local2._y + blindstick._y) >= _local1.iCorralY)) || ((dy < 0) && ((_local2._y + blindstick._y) <= (_local1.iCorralY - _local1.iEntireCorralHeight)))) {
return(true);
}
return(false);
}
function checkObjects() {
var _local2 = _parent;
var _local1 = 0;
while (_local1 < _local2.aObjects.length) {
if (blindstick.hitTest(_local2.aObjects[_local1].hotspot)) {
return(true);
}
_local1++;
}
return(undefined);
}
iPauseID = null;
iPauseStartID = null;
bReady = true;
bPause = false;
bInTrain = false;
bInCorral = false;
aWayPoints_x = new Array();
aWayPoints_y = new Array();
initAnimalBehavior();
onEnterFrame = function () {
if ((!bInTrain) && (!bPause)) {
if (dx > 0) {
gotoAndStop ("Right");
} else if (dx < 0) {
gotoAndStop ("Left");
} else if (dy > 0) {
gotoAndStop ("Front");
} else if (dy < 0) {
gotoAndStop ("Back");
}
if ((dx != 0) && (checkEdgeX())) {
animalTurn();
} else if ((dy != 0) && (checkEdgeY())) {
animalTurn();
}
if (checkObjects()) {
animalTurn();
}
this._x = this._x + dx;
this._y = this._y + dy;
}
};
Symbol 312 MovieClip [Penguin] Frame 2
stop();
Symbol 357 MovieClip Frame 2
stop();
Symbol 357 MovieClip Frame 33
_parent.unlockJojo();
_root.bLevelLock = false;
gotoAndPlay ("idle");
Symbol 444 MovieClip [JoJo] Frame 1
function pushToParade(mc) {
var _local1 = mc;
_local1.bInTrain = true;
bInTrain = true;
_parent.aTrain.splice(1, 0, _local1);
_local1._x = this._x;
_local1._y = this._y;
}
function updateTrain() {
var _local2 = _parent;
var _local1 = 0;
while (_local1 < _local2.aTrain.length) {
followPath(_local2.aTrain[_local1 + 1], _local2.aTrain[_local1]);
_local1++;
}
}
function followPath(mcA, mcB) {
var _local1 = mcA;
var _local2 = _parent;
if (!((_local2.jojo.dx == 0) && (_local2.jojo.dy == 0))) {
_local1.aWayPoints_x.push(mcB._x);
_local1.aWayPoints_y.push(mcB._y);
if (_local1.aWayPoints_x.length > _local2.iFrameDelay) {
checkDirection(_local1, _local1.aWayPoints_x[0], _local1.aWayPoints_y[0]);
_local1._x = _local1.aWayPoints_x.shift();
_local1._y = _local1.aWayPoints_y.shift();
}
}
}
function checkDirection(mc, new_x, new_y) {
var _local1 = mc;
if (new_x > _local1._x) {
_local1.gotoAndStop("Right");
} else if (new_x < _local1._x) {
_local1.gotoAndStop("Left");
} else if (new_y > _local1._y) {
_local1.gotoAndStop("Front");
} else if (new_y < _local1._y) {
_local1.gotoAndStop("Back");
}
}
function breakTrain(iWhichAnimal) {
var _local2 = _parent;
var _local3 = iWhichAnimal;
var _local1 = _local3;
while (_local1 < _local2.aTrain.length) {
_local2.aTrain[_local1].initAnimalBehavior();
_local2.aTrain[_local1].bInTrain = false;
_local2.aTrain[_local1].aWayPoints_x = [];
_local2.aTrain[_local1].aWayPoints_y = [];
_local2.aAnimals.push(_local2.aTrain[_local1]);
_local1++;
}
_local2.aTrain.splice(_local3, _local2.aTrain.length - 1);
}
function initCorralAnimals() {
var _local2 = _root;
var _local1 = 0;
while (_local1 < _local2.aCorralAnimals.length) {
_local2.aCorralAnimals[_local1].bInCorral = true;
_local2.aCorralAnimals[_local1].initAnimalBehavior();
_local2.aCorralAnimals[_local1].bInTrain = false;
_local1++;
}
}
function lockJojo() {
bLock = true;
bLockLeft = true;
bLockRight = true;
bLockUp = true;
bLockDown = true;
dx = 0;
dy = 0;
}
function unlockJojo() {
bLock = false;
bLockLeft = false;
bLockRight = false;
bLockUp = false;
bLockDown = false;
}
function walkInCarrol() {
var _local1 = _parent;
_local1.jojo._x = _local1.fakejojo._x;
_local1.jojo._y = _local1.fakejojo._y;
_root.bDepthSwap = true;
dy = -6;
}
function walkOutCarrol() {
var _local1 = _parent;
var _local2 = _root;
_local1.jojo._x = _local1.fakejojo._x;
_local1.jojo._y = _local1.fakejojo._y;
gotoAndStop ("Front");
unlockJojo();
dy = _local1.iTrainSpeed;
_local2.arrows_mc.gotoAndStop("down");
_local2.bLevelLock = false;
_local2.aCorralAnimals = _local2.aTrain.splice(1);
}
iFrameCount = 0;
bLock = false;
bLockLeft = false;
bLockRight = false;
bLockUp = false;
bLockDown = false;
bInTrain = false;
bInCorral = false;
bPause = false;
iDir = -1;
onEnterFrame = function () {
var _local1 = _root;
var _local2 = _parent;
if (dx > 0) {
gotoAndStop ("Right");
} else if (dx < 0) {
gotoAndStop ("Left");
} else if (dy > 0) {
gotoAndStop ("Front");
} else if (dy < 0) {
gotoAndStop ("Back");
}
updateTrain();
if (((!bPause) && (!bLock)) && (!InCorral)) {
if ((dx < 0) && ((this._x + blindstick._x) <= 0)) {
dx = 0;
bLockLeft = true;
} else if ((dx > 0) && ((this._x + blindstick._x) >= _local2.iWidth)) {
dx = 0;
bLockRight = true;
} else if ((dy < 0) && ((this._y + blindstick._y) <= _local2.iCorralHeight)) {
dy = 0;
bLockUp = true;
} else if ((dy > 0) && ((this._y + blindstick._y) >= _local2.iHeight)) {
dy = 0;
bLockDown = true;
}
var _local3 = 0;
while (_local3 < _local2.aObjects.length) {
if (blindstick.hitTest(_local2.aObjects[_local3].hotspot)) {
if (dx != 0) {
((dx < 0) ? ((bLockLeft = true)) : ((bLockRight = true)));
dx = 0;
} else if (dy != 0) {
((dy < 0) ? ((bLockUp = true)) : ((bLockDown = true)));
dy = 0;
}
}
_local3++;
}
_local3 = 0;
while (_local3 < _local2.aAnimals.length) {
if (hotspot.hitTest(_local2.aAnimals[_local3].hotspot)) {
if (_local2.checkCA(_local2.aAnimals[_local3])) {
_local1.SQ_clearQueue();
_local1.SQ_enqueueSound("FF_PickupAnimalCA");
if ((_local1.aTrain.length == 2) || (_local1.aTrain.length == 4)) {
_local1.SQ_enqueueSound(_local1.CAResponse[random(_local1.CAResponse.length)]);
} else if ((_local1.aTrain.length == 3) || (_local1.aTrain.length == 6)) {
_local1.SQ_enqueueGotoPlay(_local1.goliath, "cheer0");
}
_local2.aAnimals[_local3].hilight_mc.gotoAndPlay("flash");
pushToParade(_local2.aAnimals[_local3]);
_local2.aAnimals.splice(_local3, 1);
} else {
if (_local1.SQ_currently_playing == false) {
_local1.SQ_enqueueSound("FF_PickupAnimalWA");
if (random(3) == 0) {
_local1.SQ_enqueueSound(_local1.WAResponse[random(_local1.WAResponse.length)]);
}
}
_local2.aAnimals[_local3].hilight_mc.gotoAndPlay("flash");
if (_local2.aAnimals[_local3].dx != 0) {
_local2.aAnimals[_local3]._x = _local2.aAnimals[_local3]._x + ((_local2.aAnimals[_local3].dx > 0) ? 15 : -15);
} else if (aAnimals[_local3].dy != 0) {
_local2.aAnimals[_local3]._y = _local2.aAnimals[_local3]._y + ((_local2.aAnimals[_local3].dy > 0) ? 15 : -15);
}
}
}
_local3++;
}
_local3 = 4;
while (_local3 < _local2.aTrain.length) {
if (hotspot.hitTest(_local2.aTrain[_local3].hotspot)) {
breakTrain(_local3);
_local1.bLevelLock = true;
_local1.SQ_clearQueue();
_local1.SQ_enqueueGotoPlay(bump_star, "dizzy");
_local1.SQ_enqueueFunction(lockJojo);
_local1.SQ_enqueueSound("FF_BumpLineBreaks");
_local1.SQ_enqueueSound(_local1.TrainBreakResponse[random(_local1.TrainBreakResponse.length)]);
break;
}
_local3++;
}
}
if ((hotspot.hitTest(_local1.corral.corralhotspot) && (iDir == 3)) && (bInTrain)) {
iDir = -1;
_local1.corral.stop();
_local1.bDepthSwap = false;
_local2.SQ_clearQueue();
_local2.updateScore();
_local2.iCurAnimOnScreenNum = _local2.iCurAnimOnScreenNum - (_local2.aTrain.length - 1);
_local2.goliath.gotoAndPlay("open");
_local1.SQ_enqueueGotoPlay(_local2.corral, "open", true);
_local1.SQ_enqueueGotoPlay(_local2.goliath, "cheer" + random(3), true);
_local1.SQ_enqueueSound(_local1.CorralCongratz[random(_local1.CorralCongratz.length)]);
}
if (bInCorral && (_local2.aTrain[_local2.aTrain.length - 1]._y < 0)) {
if (_local2.isRoundEnd()) {
_local2.roundEnd();
this.onEnterFrame = null;
} else {
bInCorral = false;
_local1.SQ_enqueueGotoPlay(_local2.fakejojo, "Out", true);
_local1.SQ_enqueueFunction(walkOutCarrol);
_local1.SQ_enqueueFunction(initCorralAnimals);
_local1.SQ_enqueueGotoPlay(_local2.goliath, "close");
_local1.SQ_enqueueGotoPlay(_local2.corral, "close", true);
_local1.SQ_enqueueGotoPlay(_local2.corral, "arrow");
_local1.SQ_enqueueFunction(_local2.debugGame);
}
}
this._x = this._x + dx;
this._y = this._y + dy;
};
Symbol 444 MovieClip [JoJo] Frame 2
stop();
Symbol 477 MovieClip Frame 5
stop();
Symbol 484 Button
on (release) {
gotoAndPlay ("Init");
_root.SQ_clearQueue();
}
Symbol 491 MovieClip Frame 1
this._visible = false;
Symbol 516 MovieClip Frame 2
stop();
Symbol 516 MovieClip Frame 14
stop();
_root.SQ_AnimDone();
Symbol 516 MovieClip Frame 15
gotoAndPlay(_currentframe + 1);
Symbol 516 MovieClip Frame 16
_root.jojo.lockJojo();
_root.jojo.bInTrain = false;
_root.jojo.bInCorral = true;
_root.bLevelLock = true;
Symbol 516 MovieClip Frame 24
stop();
_root.SQ_AnimDone();
_root.jojo.walkInCarrol();
Symbol 516 MovieClip Frame 26
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 12
gotoAndStop ("idle");
_root.SQ_AnimDone();
Symbol 553 MovieClip Frame 24
gotoAndStop ("idle");
_root.SQ_AnimDone();
Symbol 553 MovieClip Frame 35
gotoAndStop ("idle");
_root.SQ_AnimDone();
Symbol 553 MovieClip Frame 43
gotoAndStop ("idle");
Symbol 553 MovieClip Frame 53
gotoAndStop ("idle");
Symbol 553 MovieClip Frame 75
gotoAndStop ("idle");
Symbol 553 MovieClip Frame 112
gotoAndStop ("idle");
Symbol 554 MovieClip Frame 2
stop();
Symbol 554 MovieClip Frame 20
gotoAndPlay ("idle");
_root.SQ_AnimDone();
Symbol 565 MovieClip Frame 1
function startTimer() {
bPause = false;
}
function pauseTimer() {
bPause = true;
}
function resetTimer() {
bPause = true;
gotoAndStop (1);
iFrameCount = 0;
}
stop();
iFrameCount = 0;
bPause = true;
onEnterFrame = function () {
if (!bPause) {
iFrameCount++;
if (iFrameCount == (_parent.iFrameRate * 1.5)) {
iFrameCount = 0;
gotoAndStop(_currentframe + 1);
}
}
};
Symbol 565 MovieClip Frame 6
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 12
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 18
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 24
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 30
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 36
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 42
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 48
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 54
if (_root.goliath._currentframe == 1) {
_root.goliath.gotoAndPlay("ambient" + random(2));
}
Symbol 565 MovieClip Frame 60
stop();
_root.SQ_clearQueue();
_root.roundEnd();
Symbol 570 Button
on (release) {
if (!_root.bLevelLock) {
_parent.triggerPopUp("level3");
}
}
Symbol 571 Button
on (release) {
if (!_root.bLevelLock) {
_parent.triggerPopUp("level2");
}
}
Symbol 575 Button
on (release) {
if (!_root.bLevelLock) {
_parent.triggerPopUp("level1");
}
}
Symbol 576 MovieClip Frame 2
stop();
Symbol 576 MovieClip Frame 4
stop();
Symbol 576 MovieClip Frame 6
stop();
Symbol 579 Button
on (release) {
if (!_root.bLevelLock) {
_root.bMusicOn = false;
_root.oMusic.stop();
gotoAndStop ("off");
}
}
Symbol 581 Button
on (release) {
if (!_root.bLevelLock) {
_root.bMusicOn = true;
_root.oMusic.start();
gotoAndStop ("on");
}
}
Symbol 582 MovieClip Frame 2
stop();
Symbol 582 MovieClip Frame 4
stop();
Symbol 586 Button
on (release) {
if (!_root.bLevelLock) {
_root.triggerHelp("on");
}
}
Symbol 593 Button
on (release) {
_root.SQ_clearQueue();
gotoAndPlay ("idle");
_root.gotoAndPlay("Main");
_root.initLevel(_root.iCurrentLevel);
}
Symbol 731 Button
on (release) {
_root.SQ_clearQueue();
_root.gotoAndPlay("Main");
_root.triggerPopUp("level" + _root.iCurrentLevel);
}
Symbol 743 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 2
play();
Symbol 777 MovieClip Frame 8
stop();
Symbol 777 MovieClip Frame 9
play();
Symbol 777 MovieClip Frame 15
stop();
Symbol 777 MovieClip Frame 16
play();
Symbol 777 MovieClip Frame 22
stop();
Symbol 777 MovieClip Frame 23
play();
Symbol 777 MovieClip Frame 29
stop();
Symbol 777 MovieClip Frame 30
play();
Symbol 777 MovieClip Frame 36
stop();
Symbol 777 MovieClip Frame 37
play();
Symbol 777 MovieClip Frame 43
stop();
Symbol 777 MovieClip Frame 44
play();
Symbol 777 MovieClip Frame 50
stop();
Symbol 777 MovieClip Frame 51
play();
Symbol 777 MovieClip Frame 57
stop();
Symbol 777 MovieClip Frame 58
play();
Symbol 777 MovieClip Frame 64
stop();
Symbol 777 MovieClip Frame 65
play();
Symbol 777 MovieClip Frame 71
stop();
Symbol 791 MovieClip Frame 5
stop();
Symbol 791 MovieClip Frame 7
_root.SQ_enqueueSound("FF_Narrator02a");
_root.SQ_enqueueSound("FF_Narrator03b");
_root.SQ_enqueueSound("FF_Narrator03");
Symbol 791 MovieClip Frame 200
stop();
Symbol 791 MovieClip Frame 205
stop();
Symbol 791 MovieClip Frame 210
stop();
Symbol 791 MovieClip Frame 215
stop();
Symbol 791 MovieClip Frame 217
animalTxt_mc.gotoAndStop("score" + _root.iScore);
Symbol 791 MovieClip Frame 231
if (_root.iScore < 10) {
score0_mc.gotoAndPlay("score" + _root.iScore);
} else {
score0_mc.gotoAndPlay("score" + String(_root.iScore).charAt(1));
score1_mc.gotoAndPlay("score" + String(_root.iScore).charAt(0));
}
Symbol 791 MovieClip Frame 255
stop();
if (_root.iScore == 0) {
_root.SQ_enqueueSound("FF_Narrator54");
_root.SQ_enqueueSound("FF_Narrator34");
} else {
_root.SQ_enqueueSound(_root.ScoreCongratz[random(_root.ScoreCongratz.length)]);
}
_root.SQ_enqueueSound("FF_Narrator48");