Frame 1
function func_gameInit() {
_root.gamePlaying = false;
levelCoinNum = 0;
levelCurrent_txt.text = levelNum + 1;
var _local2;
_local2 = dinoPerlevelArray[levelNum];
func_placeDinoBox(_local2);
func_coinAssign();
func_printPowerUps();
if (supplyGold) {
supplyMissingArray = ["food", "drink", "mobile", "gold"];
} else {
supplyMissingArray = ["food", "drink", "mobile"];
}
func_levelStart();
_root.func_playSoundLoop("loop2");
}
function func_placeDinoBox(boxNum) {
var _local8 = boxNum;
i = 0;
while (i < _local8) {
var _local1 = dinoBoxOrderArray[i];
var _local4 = 75;
var _local3 = 77;
var _local2 = 45;
var _local7 = "dinoBox" + i;
if (_local1 < 6) {
var _local6 = _local4 + (_local1 * _local3);
var _local5 = _local2;
} else if ((_local1 > 5) and (_local1 < 12)) {
var _local6 = _local4 + ((_local1 - 6) * _local3);
var _local5 = _local2 + 112;
} else {
var _local6 = _local4 + ((_local1 - 12) * _local3);
var _local5 = _local2 + 224;
}
func_attachDinoBox("dinoBox", _local7, _local6, _local5, _local1);
i++;
}
depth = 1000;
}
function func_coinAssign() {
var _local7 = coinsPerLevelArray[levelNum];
var _local3 = [];
var _local6 = dinoBoxArray.length;
i = 0;
while (i < _local6) {
_local3.push(dinoBoxArray[i]);
i++;
}
_local6 = _local7;
i = 0;
while (i < _local6) {
var _local5 = _local3.length;
var _local4 = Math.floor(Math.random() * _local5);
var _local2 = _local3[_local4];
_root[_local2 + "Obj"].coin = true;
_root[_local2].coinClip.gotoAndStop("coin");
coinArray.push(_local2);
_local3.splice(_local4, 1);
i++;
}
}
function func_levelStart() {
func_attachAnything("drop1", "drop1", 197, 10);
var _local2 = coinsNeededPerLevelArray[levelNum];
_root.drop1.startLevelAnn.level_txt.text = "Level " + (levelNum + 1);
_root.drop1.startLevelAnn.coinsReq_mc.gotoAndStop(_local2 + 1);
_root.drop1.startLevelAnn.coinsReq_mc.flip.gotoAndStop("end");
_root.drop1.startLevelAnn.coinsReq_txt.text = _local2;
if (_local2 == 1) {
_root.drop1.startLevelAnn.coinsTextReq_txt.text = "COIN";
} else {
_root.drop1.startLevelAnn.coinsTextReq_txt.text = "COINS";
}
drop1.play();
}
function func_playSound(sound, loops) {
if (loops == undefined) {
loops = 1;
}
if (soundOn) {
_root[sound] = new Sound();
_root[sound].attachSound(sound);
_root[sound].setVolume(100);
_root[sound].start(0, loops);
} else {
_root[sound].setVolume(0);
}
}
function func_playSoundLoop(loop) {
currentLoop = loop;
if ((soundLoop = undefined)) {
} else if ((_root.soundLoop = "loop1")) {
_root.loop1.stop();
} else if ((_root.soundLoop = "loop2")) {
_root.loop2.stop();
}
_root.soundBgLoop = loop;
_root.func_playSound(loop, 999);
}
function func_attachAnything(linkage, instanceName, xPos, yPos) {
_root.attachMovie(linkage, instanceName, depth);
_root[instanceName]._x = xPos;
_root[instanceName]._y = yPos;
depth = depth + 1;
}
function func_attachAnythingDepth(linkage, instanceName, xPos, yPos, boxDepth) {
_root.attachMovie(linkage, instanceName, boxDepth);
_root[instanceName]._x = xPos;
_root[instanceName]._y = yPos;
}
function func_clearScreen() {
var _local2 = dinoBoxArray.length;
i = 0;
while (i < _local2) {
d = dinoBoxArray[i];
dObj = d + "Obj";
removeMovieClip(_root[d]);
_root[dObj] = null;
i++;
}
dinoBoxArray = [];
dinoArray = [];
_local2 = supplyArray.length;
i = 0;
while (i < _local2) {
s = supplyArray[i];
sObj = s + "Obj";
removeMovieClip(_root[s]);
_root[sObj] = null;
i++;
}
supplyArray = [];
}
function func_checkLevelWin() {
if (_root.dinoCompleteNum == dinoPerlevelArray[levelNum]) {
func_clearScreen();
dinoCompleteNum = 0;
func_checkGameWin();
}
}
function func_levelEndPrintResults() {
var _local3 = levelCoinNum;
var _local2 = coinsNeededPerLevelArray[levelNum];
func_attachAnything("drop1", "req", 27, 10);
func_attachAnything("drop2", "reslt", 197, 10);
func_attachAnything("drop3", "verdict", 365, 10);
_root.req.startLevelAnn.level_txt.text = "Level " + (levelNum + 1);
_root.req.startLevelAnn.coinsReq_mc.gotoAndStop(_local2 + 1);
_root.req.startLevelAnn.coinsReq_mc.flip.gotoAndStop("end");
_root.req.startLevelAnn.coinsReq_txt.text = _local2;
if (_local2 == 1) {
_root.req.startLevelAnn.coinsTextReq_txt.text = "COIN";
} else {
_root.req.startLevelAnn.coinsTextReq_txt.text = "COINS";
}
_root.req.startLevelAnn.btStartLevel._visible = false;
_root.reslt.startLevelAnn.level_txt.text = "Level " + (levelNum + 1);
if (_local3 == 1) {
_root.reslt.startLevelAnn.coinsTextFound_txt.text = "COIN";
} else {
_root.reslt.startLevelAnn.coinsTextFound_txt.text = "COINS";
}
if (_local3 >= _local2) {
_root.levelPassed = true;
_root.verdict.startLevelAnn.gotoAndStop("passed");
} else {
_root.levelPassed = false;
_root.verdict.startLevelAnn.gotoAndStop("failed");
_root.verdict.startLevelAnn.announceBT.announce_txt.text = ("Level " + (levelNum + 1)) + " Failed!";
}
var _local4 = levelNum + 1;
_root.verdict.startLevelAnn.levelNum_txt.text = _local4;
_root.verdict.startLevelAnn.level_txt.text = "Level " + _local4;
_root.req.play();
_root.reslt.stop();
_root.verdict.stop();
}
function func_checkGameWin() {
if ((levelNum + 1) >= dinoPerlevelArray.length) {
levelNum = 0;
_root.gameWin = true;
}
_root.gotoAndPlay("levelEnd");
}
function func_printPowerUps() {
var _local2 = _root.powerUpArray.length;
if (_local2 == 0) {
_root.activeCodes_txt._visible = false;
} else {
_root.activeCodes_txt._visible = true;
_root.activeCodes_txt.text = "ACTIVE CODES: ";
if (_local2 == 1) {
_root.activeCodes_txt.text = _root.activeCodes_txt.text + powerUpArray[0];
} else if (_local2 == 2) {
_root.activeCodes_txt.text = _root.activeCodes_txt.text + ((powerUpArray[0] + ", ") + powerUpArray[1]);
} else if (_local2 == 3) {
_root.activeCodes_txt.text = _root.activeCodes_txt.text + ((((powerUpArray[0] + ", ") + powerUpArray[1]) + ", ") + powerUpArray[2]);
}
}
}
function func_attachSupply(sType, xPos, sRow) {
var _local3 = "supply" + supplyNum;
var _local7 = 50 + (sRow * 110);
if (sType == "food") {
func_attachAnything("supplyFood", _local3, xPos, _local7);
} else if (sType == "drink") {
func_attachAnything("supplyDrink", _local3, xPos, _local7);
} else if (sType == "mobile") {
func_attachAnything("supplyMobile", _local3, xPos, _local7);
} else if (sType == "gold") {
func_attachAnything("supplyGold", _local3, xPos, _local7);
}
var _local6 = _local3 + "Obj";
_root[_local6] = new Object();
_root[_local6].sType = sType;
_root[_local6].dir = 1;
_root[_local6].xOrg = _root[_local3]._x;
_root[_local6].yOrg = _root[_local3]._y;
_root[_local6].carry = false;
supplyArray.push(_local3);
supplyNum++;
var _local5 = supplyMissingArray.length;
i = 0;
while (i < _local5) {
if (supplyMissingArray[i] == sType) {
supplyMissingArray.splice(i, 1);
}
i++;
}
_root[_local3].onPress = function () {
_root.func_playSound("grabSupply");
_root[this._name + "Obj"].carry = true;
};
_root[_local3].onRelease = (_root[_local3].onReleaseOutside = function () {
_root[this._name + "Obj"].carry = false;
_root.func_dinoFeedCheck(this._name);
});
}
function func_suppliesMoveBack(inst) {
_root[inst]._x = _root[inst + "Obj"].xOrg;
_root[inst]._y = _root[inst + "Obj"].yOrg;
}
function func_suppliesDrag(s) {
var _local2 = s + "Obj";
if (_root[_local2].carry) {
_root[s]._x = _root._xmouse;
_root[s]._y = _root._ymouse;
}
}
function func_suppliesMove(s) {
var _local2 = s + "Obj";
if (!_root[_local2].carry) {
var _local4 = _root[_local2].dir;
var _local6 = 15;
var _local5 = 535;
_root[s]._x = _root[s]._x + (supplySpeed * _local4);
if ((_root[s]._x > _local5) or (_root[s]._x < _local6)) {
_root[_local2].dir = -1 * _local4;
}
}
}
function func_supplyAddNew() {
var _local2 = supplyMissingArray.length;
if (_root.supplyGold) {
if ((supplyAddTimer == _root.supplyAddLapse) and (_local2 <= 4)) {
var _local3 = supplyMissingArray[Math.floor(Math.random() * _local2)];
var _local4 = Math.floor(Math.random() * 3);
func_attachSupply(_local3, 30, _local4);
supplyAddTimer = 0;
} else {
supplyAddTimer = supplyAddTimer + 1;
}
} else if ((supplyAddTimer == _root.supplyAddLapse) and (_local2 <= 3)) {
var _local3 = supplyMissingArray[Math.floor(Math.random() * _local2)];
var _local4 = Math.floor(Math.random() * 3);
func_attachSupply(_local3, 30, _local4);
supplyAddTimer = 0;
} else {
supplyAddTimer = supplyAddTimer + 1;
}
}
function func_supplyRemove(s) {
var _local3 = _root.supplyArray.length;
i = 0;
while (i < _local3) {
if (_root.supplyArray[i] == s) {
_root.supplyArray.splice(i, 1);
}
i++;
}
_root.supplyMissingArray.push(_root[s + "Obj"].sType);
_root[s + "Obj"] = null;
removeMovieClip(_root[s]);
}
function func_supplies() {
func_supplyAddNew();
var _local2 = supplyArray.length;
i = 0;
while (i < _local2) {
var _local1 = supplyArray[i];
func_suppliesMove(_local1);
func_suppliesDrag(_local1);
i++;
}
}
function func_attachDinoBox(linkage, instanceName, xPos, yPos, dinoDepth) {
var _local3 = instanceName;
var _local2 = instanceName + "Obj";
_root[_local2] = new Object();
_root[_local2].timer = 0;
_root[_local2].busy = true;
_root[_local2].wantFood = true;
_root[_local2].wantDrink = true;
_root[_local2].wantSleep = undefined;
_root[_local2].isComplete = undefined;
_root[_local2].coin = undefined;
func_attachAnythingDepth(linkage, instanceName, xPos, yPos, dinoDepth);
_root[_local3].gotoAndStop("default");
dinoBoxArray.push(_local3);
dinoBoxEmptyArray.push(_local3);
}
function func_dinoFeedCheck(s) {
var _local7 = dinoArray.length;
i = 0;
while (i < _local7) {
var _local2 = dinoArray[i];
if (!_root[_local2 + "Obj"].busy) {
if (_root[_local2].hitTest(_xmouse, _ymouse)) {
var _local3 = _root[s + "Obj"].sType;
var _local4 = _root[_local2 + "Obj"].wantFood;
var _local5 = _root[_local2 + "Obj"].wantDrink;
var _local6 = _root[_local2 + "Obj"].wantSleep;
if ((_local3 == "gold") and (_local4 or _local5)) {
_root[_local2].wantFood._visible = false;
_root[_local2].wantDrink._visible = false;
_root[_local2].gotoAndPlay("eatingGold");
_root[_local2 + "Obj"].busy = true;
_root[_local2 + "Obj"].wantFood = false;
_root[_local2 + "Obj"].wantDrink = false;
func_playSound("useSupply");
}
if ((_local3 == "food") and _local4) {
_root[_local2].wantFood._visible = false;
_root[_local2].gotoAndPlay("eating");
_root[_local2 + "Obj"].busy = true;
_root[_local2 + "Obj"].wantFood = false;
func_playSound("useSupply");
} else if ((_local3 == "drink") and _local5) {
_root[_local2].wantDrink._visible = false;
_root[_local2].gotoAndPlay("drinking");
_root[_local2 + "Obj"].busy = true;
_root[_local2 + "Obj"].wantDrink = false;
func_playSound("useSupply");
} else if ((_local3 == "mobile") and _local6) {
_root[_local2].wantSleep._visible = false;
_root[_local2].countdown.gotoAndStop(1);
_root[_local2].countDown._visible = false;
_root[_local2].gotoAndPlay("mobile");
_root[_local2 + "Obj"].busy = true;
_root[_local2 + "Obj"].wantSleep = false;
func_playSound("addSupply");
} else {
func_playSound("dinoError");
}
if (((_local3 == "food") or (_local3 == "drink")) and ((_root[_local2 + "Obj"].wantFood == false) and (_root[_local2 + "Obj"].wantDrink == false))) {
_root[_local2].countdown.gotoAndStop(1);
_root[_local2].countDown._visible = false;
}
}
}
i++;
}
_root[s].play();
}
function func_dinoAdvanceStory(d) {
var _local3 = _root[d + "Obj"].timer;
var _local7 = Math.floor(_local3 / 12);
var _local5 = _root[d + "Obj"].wantFood;
var _local6 = _root[d + "Obj"].wantDrink;
var _local4 = _root[d + "Obj"].wantSleep;
if (_local3 == "24") {
_root[d].countDown._visible = true;
_root[d].countDown.play();
} else if (_local3 == "84") {
_root[d].gotoAndPlay("hatching");
} else if (_local3 == "96") {
func_playSound("eggOpen");
_root[d].gotoAndPlay("wantFeed");
_root[d + "Obj"].busy = false;
_root[d].wantFood._visible = true;
_root[d].wantDrink._visible = true;
} else if ((_local3 == "240") and (_local5 or _local6)) {
_root[d].countDown._visible = true;
_root[d].countDown.play();
} else if ((_local3 == "300") and (_local5 or _local6)) {
_root[d + "Obj"].busy = true;
_root[d].dinoRemove._visible = true;
_root[d].dinoRemove.play();
_root[d].wantFood._visible = false;
_root[d].wantDrink._visible = false;
} else if ((_local3 == "360") and _local4) {
_root[d].countDown._visible = true;
_root[d].countDown.play();
} else if ((_local3 == "420") and _local4) {
_root[d + "Obj"].busy = true;
_root[d].dinoRemove._visible = true;
_root[d].dinoRemove.play();
_root[d].wantSleep._visible = false;
} else if (_local3 == "468") {
func_playSound("dinoComplete");
_root[d].gotoAndStop("complete");
} else if (_local3 == "488") {
if (_root[d + "Obj"].coin) {
_root[d].coinClip.shine.play();
levelCoinNum++;
coinsCurrent.gotoAndStop(levelCoinNum + 1);
coinsCurrent.flip.play();
coinsCurrent_txt.text = levelCoinNum;
if (levelCoinNum == 1) {
coinsTextCurrent_txt.text = "COIN";
} else {
coinsTextCurrent_txt.text = "COINS";
}
gameCoinNum++;
}
}
_root[d + "Obj"].timer = _root[d + "Obj"].timer + 1;
}
function func_dinoAdvanceStage(d) {
var _local3 = _root[d + "Obj"].wantFood;
var _local4 = _root[d + "Obj"].wantDrink;
var _local5 = _root[d + "Obj"].wantSleep;
if (_local5 == false) {
_root[d].gotoAndPlay("sleeping");
_root[d + "Obj"].timer = 421;
} else if ((_local3 == false) and (_local4 == false)) {
_root[d].gotoAndPlay("wantSleep");
_root[d].wantSleep._visible = true;
_root[d + "Obj"].wantSleep = true;
_root[d + "Obj"].busy = false;
} else if ((_local3 == false) or (_local4 == false)) {
_root[d].gotoAndPlay("wantFeed");
_root[d + "Obj"].busy = false;
}
}
function func_dinosAddNew() {
if ((dinoAddTimer == 0) and (dinoBoxEmptyArray.length > 0)) {
var _local3 = dinoBoxEmptyArray.length;
var _local5 = _local3;
var _local6;
_local6 = Math.floor(Math.random() * _local5);
var _local2 = dinoBoxEmptyArray[_local6];
_root[_local2].gotoAndPlay("egg");
dinoArray.push(_local2);
var _local4 = _local2 + "Obj";
_root[_local4].timer = 0;
_root[_local4].busy = true;
_root[_local4].wantFood = true;
_root[_local4].wantDrink = true;
_root[_local4].wantSleep = undefined;
i = 0;
while (i < _local3) {
if (_local2 == dinoBoxEmptyArray[i]) {
dinoBoxEmptyArray.splice(i, 1);
}
i++;
}
}
dinoAddTimer = dinoAddTimer + 1;
if (dinoAddTimer > dinoAddLapse) {
dinoAddTimer = 0;
}
}
function func_dinoRemove(d) {
var _local3 = dinoArray.length;
i = 0;
while (i < _local3) {
if (d == dinoArray[i]) {
dinoArray.splice(i, 1);
}
i++;
}
_root.dinoBoxEmptyArray.push(d);
if (_root[d + "Obj"].coin) {
_root[d].coinClip.gotoAndStop("coinLost");
_root[d + "Obj"].coin = false;
}
_root[d].gotoAndStop("default");
}
function func_dinoBoxRemove(d) {
var _local2 = _root.dinoArray.length;
i = 0;
while (i < _local2) {
if (_root.dinoArray[i] == d) {
_root.dinoArray.splice(i, 1);
}
i++;
}
_root.dinoCompleteNum++;
_root[d + "Obj"] = null;
_root.func_checkLevelWin();
}
function func_dinos() {
func_dinosAddNew();
var _local2 = dinoArray.length;
i = 0;
while (i < _local2) {
var _local1 = dinoArray[i];
func_dinoAdvanceStory(_local1);
i++;
}
}
function func_game() {
_root.onEnterFrame = function () {
if (gamePlaying) {
func_supplies();
func_dinos();
}
};
}
var gamePlaying = false;
var gameWin = false;
var soundOn = true;
var soundLoop = undefined;
var currentLoop;
var gameCoinNum = 0;
var depth = 0;
var carrying = "nothing";
var supplyNum = 0;
var supplySpeed = 3;
var supplyAddTimer = 0;
var supplyAddLapse = 25;
var levelNum = 0;
var levelCoinNum = 0;
var levelPassed = undefined;
var dinoAddTimer = 0;
var dinoAddLapse = 55;
var dinoCompleteNum = 0;
var powerUpArray = [];
var supplyGold = false;
var dinoArray = [];
var dinoBoxEmptyArray = [];
var dinoBoxArray = [];
var supplyArray = [];
var supplyMissingArray = [];
var coinArray = [];
var coin2Array = [];
var dinoBoxOrderArray = [8, 9, 10, 7, 14, 15, 2, 3, 16, 13, 4, 1, 11, 17, 12, 6, 5, 0];
var dinoPerlevelArray = [2, 4, 6, 6, 8, 8, 10, 12, 14, 18];
var coinsPerLevelArray = [2, 4, 4, 2, 5, 8, 5, 12, 12, 12];
var coinsNeededPerLevelArray = [1, 2, 3, 1, 3, 6, 4, 8, 10, 12];
function funcHITBOX(arEvent, arAction) {
arEvent = arEvent.toLowerCase();
arAction = arAction.toLowerCase();
lString = ((("javascript: _hbLink ('/flash/" + arEvent) + "/") + arAction) + "','left','0,0,0,0')";
getURL (lString);
}
btPlayGame.onRelease = function () {
_root.func_playSound("btDown");
_root.funcHITBOX("play_activity", "play_bttn");
gotoAndStop ("game");
};
btPlayGame.onRollOver = function () {
_root.func_playSound("btRollOver");
};
btInstructions.onRelease = function () {
_root.func_playSound("btDown");
_root.funcHITBOX("instructions", "instructions_bttn");
gotoAndStop ("instructions");
};
btInstructions.onRollOver = function () {
_root.func_playSound("btRollOver");
};
btCodes.onRelease = function () {
_root.func_playSound("btDown");
_root.funcHITBOX("misc", "misc_codes");
gotoAndStop ("codes");
};
btCodes.onRollOver = function () {
_root.func_playSound("btRollOver");
};
_root.func_playSoundLoop("loop1");
stop();
Frame 10
btPlayGame.onRelease = function () {
_root.func_playSound("btDown");
_root.funcHITBOX("play_activity", "play_from_instructions");
gotoAndStop ("game");
};
btPlayGame.onRollOver = function () {
_root.func_playSound("btRollOver");
};
btBack.onRelease = function () {
_root.func_playSound("btDown");
_root.funcHITBOX("misc", "back_from_instructions");
gotoAndStop ("start");
};
btBack.onRollOver = function () {
_root.func_playSound("btRollOver");
};
_root.func_playSoundLoop("loop2");
stop();
Frame 20
btPlayGame.onRelease = function () {
_root.func_playSound("btDown");
_root.funcHITBOX("play_activity", "play_from_codes");
gotoAndStop ("game");
};
btPlayGame.onRollOver = function () {
_root.func_playSound("btRollOver");
};
btBack.onRelease = function () {
_root.func_playSound("btDown");
_root.funcHITBOX("misc", "back_from_codes");
gotoAndStop ("start");
};
btBack.onRollOver = function () {
_root.func_playSound("btRollOver");
};
btSubmitCode.onRelease = function () {
var _local3 = _root.codeInput_txt.text;
var _local2 = _local3.toLowerCase();
if (((_local2 == powerUpArray[0]) or (_local2 == powerUpArray[1])) or (_local2 == powerUpArray[2])) {
_root.codeInput_txt.text = "";
_root.inUse.play();
} else if (_local2 == "slowdino") {
_root.powerUpArray.push(_local2);
_root.func_printPowerUps();
_root.codeInput_txt.text = "";
_root.accepted.play();
_root.dinoAddLapse = 90;
} else if (_local2 == "fastfood") {
_root.powerUpArray.push(_local2);
_root.func_printPowerUps();
_root.codeInput_txt.text = "";
_root.accepted.play();
_root.supplyAddLapse = 10;
} else if (_local2 == "goldfood") {
_root.powerUpArray.push(_local2);
_root.func_printPowerUps();
_root.supplyGold = true;
_root.codeInput_txt.text = "";
_root.accepted.play();
} else {
_root.codeInput_txt.text = "";
_root.invalid.play();
}
};
btSubmitCode.onRollOver = function () {
_root.func_playSound("btRollOver");
};
_root.func_playSoundLoop("loop2");
stop();
Frame 30
btPlay.onRelease = function () {
_root.func_playSound("btDown");
_root.gamePlaying = true;
};
btPlay.onRollOver = function () {
_root.func_playSound("btRollOver");
};
btPause.onRelease = function () {
_root.func_playSound("btDown");
_root.gamePlaying = false;
};
btPause.onRollOver = function () {
_root.func_playSound("btRollOver");
};
func_gameInit();
func_game();
Frame 40
_root.gamePlaying = false;
func_levelEndPrintResults();
_root.func_playSoundLoop("loop2");
stop();
Frame 50
btRestartGame.onRelease = function () {
_root.func_playSound("btDown");
gotoAndStop ("start");
};
btRestartGame.onRollOver = function () {
_root.func_playSound("btRollOver");
};
_root.func_playSoundLoop("loop2");
_root.funcHITBOX("misc", "misc_game_won");
func_game().onEnterFrame = null;
req.removeMovieClip();
reslt.removeMovieClip();
verdict.removeMovieClip();
stop();
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 1
/* no clip actions */
Symbol 50 MovieClip [supplyGold] Frame 1
_root.func_playSound("armDown");
Symbol 50 MovieClip [supplyGold] Frame 10
stop();
Symbol 50 MovieClip [supplyGold] Frame 19
_root.func_supplyRemove(this._name);
Symbol 75 MovieClip Frame 1
btNextLevel.onRelease = function () {
_root.func_playSound("btDown");
this._parent._parent.play();
};
btNextLevel.onRollOver = function () {
_root.func_playSound("btRollOver");
};
stop();
Symbol 75 MovieClip Frame 10
btRestartLevel.onRelease = function () {
_root.func_playSound("btDown");
this._parent._parent.play();
};
btRestartLevel.onRollOver = function () {
_root.func_playSound("btRollOver");
};
stop();
Symbol 76 MovieClip [drop3] Frame 7
_root.func_playSound("dropDown");
Symbol 76 MovieClip [drop3] Frame 11
_root.func_playSound("dropBottom");
Symbol 76 MovieClip [drop3] Frame 13
stop();
Symbol 76 MovieClip [drop3] Frame 14
_root.func_playSound("dropUp");
Symbol 76 MovieClip [drop3] Frame 16
_root.reslt.play();
Symbol 76 MovieClip [drop3] Frame 19
stop();
if (_root.levelPassed) {
_root.levelNum++;
}
this.removeMovieClip();
Symbol 88 MovieClip Frame 15
stop();
Symbol 89 MovieClip Frame 1
if (_root.levelCoinNum > 0) {
play();
} else if (_root.levelCoinNum == 0) {
_root.verdict.play();
}
stop();
Symbol 89 MovieClip Frame 2
var coinNum = 1;
this.onEnterFrame = function () {
if (_root.levelCoinNum > coinNum) {
this._parent.coinsFound_txt.text = coinNum;
play();
} else if (_root.gameWin) {
this._parent.coinsFound_txt.text = coinNum;
stop();
this.onEnterFrame = null;
_root.gameWin = false;
_root.gotoAndStop("gameWin");
} else {
this._parent.coinsFound_txt.text = coinNum;
stop();
this.onEnterFrame = null;
_root.verdict.play();
}
};
Symbol 89 MovieClip Frame 11
coinNum = 2;
Symbol 89 MovieClip Frame 21
coinNum = 3;
Symbol 89 MovieClip Frame 31
coinNum = 4;
Symbol 89 MovieClip Frame 41
coinNum = 5;
Symbol 89 MovieClip Frame 51
coinNum = 6;
Symbol 89 MovieClip Frame 61
coinNum = 7;
Symbol 89 MovieClip Frame 71
coinNum = 8;
Symbol 89 MovieClip Frame 81
coinNum = 9;
Symbol 89 MovieClip Frame 91
coinNum = 10;
Symbol 89 MovieClip Frame 101
coinNum = 11;
Symbol 89 MovieClip Frame 111
coinNum = 12;
Symbol 89 MovieClip Frame 121
stop();
Symbol 90 MovieClip Frame 1
btStartLevel.onRelease = function () {
this._parent._parent.play();
};
Symbol 91 MovieClip [drop2] Frame 2
_root.func_playSound("dropDown");
Symbol 91 MovieClip [drop2] Frame 9
stop();
_root.func_playSound("dropBottom");
if (_root.levelCoinNum > 0) {
startLevelAnn.coinsFound_mc.play();
}
startLevelAnn.coinReq_mc.flip.gotoAndPlay(1);
Symbol 91 MovieClip [drop2] Frame 10
_root.func_playSound("dropUp");
Symbol 91 MovieClip [drop2] Frame 12
_root.req.play();
Symbol 91 MovieClip [drop2] Frame 15
stop();
this.removeMovieClip();
Symbol 93 MovieClip Frame 1
stop();
Symbol 100 MovieClip [levelStartAnn] Frame 1
btStartLevel.onRelease = function () {
_root.func_playSound("btDown");
_root.func_playSoundLoop("loop1");
this._parent._parent.play();
_root.gamePlaying = true;
};
btStartLevel.onRollOver = function () {
_root.func_playSound("btRollOver");
};
Symbol 101 MovieClip [drop1] Frame 2
_root.func_playSound("dropDown");
Symbol 101 MovieClip [drop1] Frame 4
_root.reslt.play();
Symbol 101 MovieClip [drop1] Frame 9
stop();
_root.func_playSound("dropBottom");
startLevelAnn.coinReq_mc.flip.gotoAndPlay(1);
Symbol 101 MovieClip [drop1] Frame 10
_root.func_playSound("dropUp");
Symbol 101 MovieClip [drop1] Frame 15
_root.gotoAndStop("game");
this.removeMovieClip();
stop();
Symbol 111 MovieClip Frame 20
gotoAndPlay (1);
Symbol 116 MovieClip [supplyMobile] Frame 1
_root.func_playSound("armDown");
Symbol 116 MovieClip [supplyMobile] Frame 10
stop();
Symbol 116 MovieClip [supplyMobile] Frame 19
_root.func_supplyRemove(this._name);
Symbol 119 MovieClip [supplyDrink] Frame 1
_root.func_playSound("armDown");
Symbol 119 MovieClip [supplyDrink] Frame 10
stop();
Symbol 119 MovieClip [supplyDrink] Frame 19
_root.func_supplyRemove(this._name);
Symbol 123 MovieClip [supplyFood] Frame 1
_root.func_playSound("armDown");
Symbol 123 MovieClip [supplyFood] Frame 10
stop();
Symbol 123 MovieClip [supplyFood] Frame 19
_root.func_supplyRemove(this._name);
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 79
gotoAndPlay (2);
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 11
stop();
Instance of Symbol 124 MovieClip "shine" in Symbol 126 MovieClip Frame 11
/* no clip actions */
Symbol 126 MovieClip Frame 21
stop();
Symbol 155 MovieClip Frame 4
_root.func_playSound("dinoFeed");
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 18
_parent.dino._visible = false;
Symbol 165 MovieClip Frame 40
_root.func_dinoRemove(this._parent._name);
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
_root.func_playSound("countBeep");
Symbol 174 MovieClip Frame 13
_root.func_playSound("countBeep");
Symbol 174 MovieClip Frame 26
_root.func_playSound("countBeep");
Symbol 174 MovieClip Frame 38
_root.func_playSound("countBeep");
Symbol 174 MovieClip Frame 50
_root.func_playSound("countBeep");
Symbol 192 MovieClip Frame 2
_root.func_playSound("dinoDrink2");
Symbol 192 MovieClip Frame 8
_root.func_playSound("dinoDrink2");
Symbol 192 MovieClip Frame 15
_root.func_playSound("dinoDrink2");
Symbol 192 MovieClip Frame 23
_root.func_playSound("dinoDrink2");
Symbol 192 MovieClip Frame 30
_root.func_playSound("dinoDrink2");
Symbol 192 MovieClip Frame 35
_root.func_dinoAdvanceStage(this._parent._parent._name);
Symbol 194 MovieClip Frame 3
_root.func_playSound("dinoChomp2");
Symbol 194 MovieClip Frame 7
_root.func_playSound("dinoChomp5");
Symbol 194 MovieClip Frame 10
_root.func_playSound("dinoChomp2");
Symbol 194 MovieClip Frame 12
_root.func_dinoAdvanceStage(this._parent._name);
Symbol 195 MovieClip Frame 3
_root.func_playSound("dinoChomp2");
Symbol 195 MovieClip Frame 7
_root.func_playSound("dinoChomp5");
Symbol 195 MovieClip Frame 10
_root.func_playSound("dinoChomp2");
Symbol 195 MovieClip Frame 12
_root.func_dinoAdvanceStage(this._parent._name);
Symbol 200 MovieClip Frame 50
_root.func_dinoAdvanceStage(this._parent._name);
Symbol 205 MovieClip Frame 1
Symbol 213 MovieClip Frame 1
play();
Symbol 213 MovieClip Frame 12
_root.func_playSound("armDinoUp");
Symbol 213 MovieClip Frame 45
_root.func_dinoBoxRemove(this._parent._name);
stop();
Symbol 214 MovieClip [dinoBox] Frame 1
countDown._visible = false;
wantFood._visible = false;
wantDrink._visible = false;
wantSleep._visible = false;
dinoRemove._visible = false;
stop();
Symbol 214 MovieClip [dinoBox] Frame 10
_root.func_playSound("eggFall");
Symbol 214 MovieClip [dinoBox] Frame 18
_root.func_playSound("eggLand");
Symbol 214 MovieClip [dinoBox] Frame 19
stop();
Symbol 214 MovieClip [dinoBox] Frame 25
_root.func_playSound("eggCrack5");
Symbol 214 MovieClip [dinoBox] Frame 28
_root.func_playSound("eggCrack1");
Symbol 214 MovieClip [dinoBox] Frame 31
_root.func_playSound("eggCrack4");
Symbol 214 MovieClip [dinoBox] Frame 33
stop();
Symbol 214 MovieClip [dinoBox] Frame 35
stop();
Symbol 214 MovieClip [dinoBox] Frame 44
stop();
Symbol 214 MovieClip [dinoBox] Frame 55
stop();
Symbol 214 MovieClip [dinoBox] Frame 65
stop();
Symbol 214 MovieClip [dinoBox] Frame 75
stop();
Symbol 214 MovieClip [dinoBox] Frame 84
stop();
_root.func_playSound("mobile");
Symbol 214 MovieClip [dinoBox] Frame 93
stop();
_root.func_playSound("dinoSnore1");
Symbol 214 MovieClip [dinoBox] Frame 103
stop();
Symbol 265 MovieClip Frame 219
gotoAndPlay (10);
Symbol 274 MovieClip Frame 1
stop();
btOff.onRelease = function () {
_root.soundOn = false;
_root[_root.currentLoop].stop();
_root[sound].setVolume(0);
play();
};
Symbol 274 MovieClip Frame 2
stop();
btOn.onRelease = function () {
_root.soundOn = true;
_root.func_playSoundLoop(_root.currentLoop);
_root[sound].setVolume(100);
play();
};
Symbol 298 MovieClip Frame 2
dinoBox.gotoAndPlay("egg");
dinoBox.wantFood._visible = false;
dinoBox.wantDrink._visible = false;
dinoBox.wantSleep._visible = false;
food.stop();
drink.stop();
sleep.stop();
Symbol 298 MovieClip Frame 24
dinoBox.gotoAndPlay("hatching");
Symbol 298 MovieClip Frame 46
dinoBox.gotoAndPlay("wantFeed");
Symbol 298 MovieClip Frame 56
dinoBox.wantFood._visible = true;
Symbol 298 MovieClip Frame 84
dinoBox.wantDrink._visible = true;
Symbol 298 MovieClip Frame 176
food.play();
dinoBox.gotoAndPlay("eating");
dinoBox.wantFood._visible = false;
Symbol 298 MovieClip Frame 188
dinoBox.gotoAndPlay("wantFeed");
Symbol 298 MovieClip Frame 215
drink.play();
dinoBox.wantDrink._visible = false;
dinoBox.gotoAndPlay("drinking");
Symbol 298 MovieClip Frame 250
dinoBox.gotoAndPlay("wantSleep");
Symbol 298 MovieClip Frame 270
dinoBox.wantSleep._visible = true;
Symbol 298 MovieClip Frame 280
sleep.play();
Symbol 298 MovieClip Frame 329
sleep.play();
dinoBox.wantSleep._visible = false;
dinoBox.gotoAndPlay("sleeping");
Symbol 298 MovieClip Frame 378
dinoBox.gotoAndPlay("complete");
dinoBox.coinClip.gotoAndStop("coin");
Symbol 298 MovieClip Frame 432
dinoBox.gotoAndStop(1);
dinoBox.wantSleep._visible = false;
dinoBox.wantFood._visible = false;
dinoBox.wantDrink._visible = false;
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
_root.func_playSound("error1");
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
_root.func_playSound("dinoComplete");
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 2
_root.func_playSound("error1");