Frame 1
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Instance of Symbol 144 MovieClip in Frame 1
onClipEvent (load) {
var vPress = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
vPress = true;
} else if (vPress) {
vPress = false;
if (_root.playMusic) {
_root.playMusic = false;
} else {
_root.playMusic = true;
}
}
}
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
function increaseVolume(vMusic, vAmount, vLimit) {
if (playMusic) {
switch (vMusic) {
case "menu" :
if ((sndMusicMenu.getVolume() + vAmount) > vLimit) {
sndMusicMenu.setVolume(vLimit);
} else {
sndMusicMenu.setVolume(sndMusicMenu.getVolume() + vAmount);
}
break;
case "game" :
if ((sndMusicPlay.getVolume() + vAmount) > vLimit) {
sndMusicPlay.setVolume(vLimit);
} else {
sndMusicPlay.setVolume(sndMusicPlay.getVolume() + vAmount);
}
break;
case "summ" :
if ((sndMusicSummary.getVolume() + vAmount) > vLimit) {
sndMusicSummary.setVolume(vLimit);
} else {
sndMusicSummary.setVolume(sndMusicSummary.getVolume() + vAmount);
}
break;
case "boss" :
if ((sndMusicEnd.getVolume() + vAmount) > vLimit) {
sndMusicEnd.setVolume(vLimit);
} else {
sndMusicEnd.setVolume(sndMusicEnd.getVolume() + vAmount);
}
break;
case "buzz" :
if ((sndElectric.getVolume() + vAmount) > vLimit) {
sndElectric.setVolume(vLimit);
} else {
sndElectric.setVolume(sndElectric.getVolume() + vAmount);
}
break;
case "bubb" :
if ((sndBubbles.getVolume() + vAmount) > vLimit) {
sndBubbles.setVolume(vLimit);
} else {
sndBubbles.setVolume(sndBubbles.getVolume() + vAmount);
}
}
} else {
sndMusicMenu.setVolume(0);
sndMusicPlay.setVolume(0);
sndMusicSummary.setVolume(0);
sndMusicEnd.setVolume(0);
sndBubbles.setVolume(0);
sndElectric.setVolume(0);
}
}
function decreaseVolume(vMusic, vAmount, vLimit) {
if (playMusic) {
switch (vMusic) {
case "menu" :
if ((sndMusicMenu.getVolume() - vAmount) < vLimit) {
sndMusicMenu.setVolume(vLimit);
} else {
sndMusicMenu.setVolume(sndMusicMenu.getVolume() - vAmount);
}
break;
case "game" :
if ((sndMusicPlay.getVolume() - vAmount) < vLimit) {
sndMusicPlay.setVolume(vLimit);
} else {
sndMusicPlay.setVolume(sndMusicPlay.getVolume() - vAmount);
}
break;
case "summ" :
if ((sndMusicSummary.getVolume() - vAmount) < vLimit) {
sndMusicSummary.setVolume(vLimit);
} else {
sndMusicSummary.setVolume(sndMusicSummary.getVolume() - vAmount);
}
break;
case "boss" :
if ((sndMusicEnd.getVolume() - vAmount) < vLimit) {
sndMusicEnd.setVolume(vLimit);
} else {
sndMusicEnd.setVolume(sndMusicEnd.getVolume() - vAmount);
}
break;
case "buzz" :
if ((sndElectric.getVolume() - vAmount) < vLimit) {
sndElectric.setVolume(vLimit);
} else {
sndElectric.setVolume(sndElectric.getVolume() - vAmount);
}
break;
case "bubb" :
if ((sndBubbles.getVolume() - vAmount) < vLimit) {
sndBubbles.setVolume(vLimit);
} else {
sndBubbles.setVolume(sndBubbles.getVolume() - vAmount);
}
}
} else {
sndMusicMenu.setVolume(0);
sndMusicPlay.setVolume(0);
sndMusicSummary.setVolume(0);
sndMusicEnd.setVolume(0);
sndBubbles.setVolume(0);
sndElectric.setVolume(0);
}
}
function shoutOut(vWhat) {
switch (vWhat) {
case "whoa" :
sndWhoa.start(0, 1);
break;
case "oof" :
sndOof.start(0, 1);
break;
case "bonus" :
sndBonus.start(0, 1);
}
}
function addPod(vX, vY, vC) {
switch (vC) {
case 1 :
noOfPurplePods++;
if ((noOfGreenPods > 0) && (noOfYellowPods > 0)) {
createParticleR(vX, vY, 0, -5, 10 + (Math.random() * 5), 23, 0);
scBonus = scBonus + 4;
shoutOut("bonus");
} else if ((noOfGreenPods > 0) || (noOfYellowPods > 0)) {
createParticleR(vX, vY, 0, -5, 10 + (Math.random() * 5), 22, 0);
scBonus = scBonus + 2;
shoutOut("bonus");
}
break;
case 2 :
noOfYellowPods++;
if ((noOfGreenPods > 0) && (noOfPurplePods > 0)) {
createParticleR(vX, vY, 0, -5, 10 + (Math.random() * 5), 23, 0);
scBonus = scBonus + 4;
shoutOut("bonus");
} else if ((noOfGreenPods > 0) || (noOfPurplePods > 0)) {
createParticleR(vX, vY, 0, -5, 10 + (Math.random() * 5), 22, 0);
scBonus = scBonus + 2;
shoutOut("bonus");
}
break;
default :
noOfGreenPods++;
if ((noOfPurplePods > 0) && (noOfYellowPods > 0)) {
createParticleR(vX, vY, 0, -5, 10 + (Math.random() * 5), 23, 0);
scBonus = scBonus + 4;
shoutOut("bonus");
} else {
if (!((noOfPurplePods > 0) || (noOfYellowPods > 0))) {
break;
}
createParticleR(vX, vY, 0, -5, 10 + (Math.random() * 5), 22, 0);
scBonus = scBonus + 2;
shoutOut("bonus");
}
}
}
var playMusic = true;
var cookieIsPresent = false;
var lsoGameData = SharedObject.getLocal("soupData");
for (var i in lsoGameData.data) {
cookieIsPresent = true;
break;
}
var isInPlay = false;
var heroIsVisible = false;
var tutMode = false;
var noOfYellowPods = 0;
var noOfGreenPods = 0;
var noOfPurplePods = 0;
var scBonus = 0;
var minReturns = new Array(50, 75, 150, 300, 400, 250, 70, 70, 70, 70);
var areaNumber = 0;
var minXLab = 0;
var minYLab = 0;
var maxXLab = 0;
var maxYLab = 0;
var heroMinX = 0;
var heroMaxX = 0;
var heroMinY = 0;
var heroMaxY = 0;
var sClip0 = createEmptyMovieClip("sClip0", 1000);
var sndBubbles = new Sound("sClip0");
sndBubbles.attachSound("mp3Bubbles");
sndBubbles.onSoundComplete = function () {
sndBubbles.start();
};
sndBubbles.setVolume(0);
sndBubbles.start();
var sClip1 = createEmptyMovieClip("sClip1", 1001);
var sndShot = new Sound("sClip1");
sndShot.attachSound("mp3Shot");
sndShot.setVolume(40);
var sClip2 = createEmptyMovieClip("sClip2", 1002);
var sndPop = new Sound("sClip2");
sndPop.attachSound("mp3Pop");
var sClip3 = createEmptyMovieClip("sClip3", 1003);
var sndBite = new Sound("sClip3");
sndBite.attachSound("mp3Bite");
sndBite.onSoundComplete = function () {
sndBite.start();
};
sndBite.setVolume(0);
sndBite.start();
var biteGetLouder = new Boolean(false);
var sClip4 = createEmptyMovieClip("sClip4", 1004);
var sndSnarl = new Sound("sClip4");
sndSnarl.attachSound("mp3Snarl");
sndSnarl.setVolume(40);
var sClip5 = createEmptyMovieClip("sClip5", 1005);
var sndSqueal = new Sound("sClip5");
sndSqueal.attachSound("mp3Squeal");
sndSqueal.setVolume(40);
var sClip6 = createEmptyMovieClip("sClip6", 1006);
var sndWhoa = new Sound("sClip6");
sndWhoa.attachSound("mp3Whoa");
sndWhoa.setVolume(25);
var sClip7 = createEmptyMovieClip("sClip7", 1007);
var sndScream = new Sound("sClip7");
sndScream.attachSound("mp3Scream");
sndScream.setVolume(25);
var sClip8 = createEmptyMovieClip("sClip8", 1008);
var sndSlurp = new Sound("sClip8");
sndSlurp.attachSound("mp3Slurp");
sndSlurp.setVolume(40);
var sClip9 = createEmptyMovieClip("sClip9", 1009);
var sndGrunt = new Sound("sClip9");
sndGrunt.attachSound("mp3Grunt");
sndGrunt.setVolume(40);
var sClip10 = createEmptyMovieClip("sClip10", 1010);
var sndGruntHurt = new Sound("sClip10");
sndGruntHurt.attachSound("mp3GruntHurt");
sndGruntHurt.setVolume(50);
var sClip11 = createEmptyMovieClip("sClip11", 1011);
var sndHiss = new Sound("sClip11");
sndHiss.attachSound("mp3Hiss");
sndHiss.setVolume(50);
var sClip12 = createEmptyMovieClip("sClip12", 1012);
var sndChCh = new Sound("sClip12");
sndChCh.attachSound("mp3ChCh");
sndChCh.setVolume(50);
var sClip13 = createEmptyMovieClip("sClip13", 1013);
var sndMusicMenu = new Sound("sClip13");
sndMusicMenu.attachSound("musicMenu");
sndMusicMenu.onSoundComplete = function () {
sndMusicMenu.start(0, 1);
};
sndMusicMenu.setVolume(0);
sndMusicMenu.start();
var sClip14 = createEmptyMovieClip("sClip14", 1014);
var sndMusicPlay = new Sound("sClip14");
sndMusicPlay.attachSound("musicPlay");
sndMusicPlay.onSoundComplete = function () {
sndMusicPlay.start(0, 1);
};
sndMusicPlay.setVolume(0);
sndMusicPlay.start();
var sClip15 = createEmptyMovieClip("sClip15", 1015);
var sndMusicSummary = new Sound("sClip15");
sndMusicSummary.attachSound("musicSummary");
sndMusicSummary.onSoundComplete = function () {
sndMusicSummary.start(0, 1);
};
sndMusicSummary.setVolume(0);
sndMusicSummary.start();
var sClip16 = createEmptyMovieClip("sClip16", 1016);
var sndMusicEnd = new Sound("sClip16");
sndMusicEnd.attachSound("musicBoss");
sndMusicEnd.onSoundComplete = function () {
sndMusicEnd.start(0.05, 1);
};
sndMusicEnd.setVolume(0);
sndMusicEnd.start();
var sClip17 = createEmptyMovieClip("sClip17", 1017);
var sndElectric = new Sound("sClip17");
sndElectric.attachSound("sfxElectric");
sndElectric.onSoundComplete = function () {
sndElectric.start(0, 1);
};
sndElectric.setVolume(0);
sndElectric.start();
var sClip18 = createEmptyMovieClip("sClip18", 1018);
var sndReward = new Sound("sClip18");
sndReward.attachSound("mp3Reward");
sndReward.setVolume(20);
var sClip19 = createEmptyMovieClip("sClip19", 1019);
var sndOof = new Sound("sClip19");
sndOof.attachSound("mp3Oof");
sndOof.setVolume(20);
var sClip20 = createEmptyMovieClip("sClip20", 1020);
var sndBonus = new Sound("sClip20");
sndBonus.attachSound("mp3Bonus");
sndBonus.setVolume(40);
Frame 5
function addScore(vAmount, vX, vY) {
if (_root.tutMode) {
return(true);
}
var _local6 = true;
if (vAmount < 0) {
var _local3 = -vAmount;
if (_local3 > scInvestment) {
_local3 = _local3 - scInvestment;
scInvestment = 0;
scReturns = scReturns - _local3;
if (scReturns < 0) {
scReturns = 0;
_local6 = false;
}
} else {
scInvestment = scInvestment - _local3;
}
switch (vAmount) {
case -2 :
createParticleR(vX, vY, 0, -3, 24, 10, 0);
break;
case -3 :
createParticleR(vX, vY, 0, -3, 24, 11, 0);
break;
case -5 :
createParticleR(vX, vY, 0, -3, 24, 12, 0);
break;
default :
createParticleR(vX, vY, 0, -3, 24, 13, 0);
}
} else {
if (vAmount >= 10) {
scInvestment = scInvestment + vAmount;
} else {
scReturns = scReturns + vAmount;
}
vAmount = Math.floor(vAmount / 5);
createParticleR(vX, vY, 0, -3, 24, 5 + vAmount, 0);
}
displayScore();
return(_local6);
}
function displayScore() {
txtScoreLab.text = "Score: " + scScore;
txtScoreLab.setTextFormat(tf2);
txtInvestLab.text = "Investment: " + scInvestment;
txtInvestLab.setTextFormat(tf2);
txtReturnLab.text = "Returns: " + scReturns;
txtReturnLab.setTextFormat(tf2);
}
var gsBabyLifeSpan = 300;
var gsVenomDamage = 20;
var scScore = 0;
var scInvestment = 0;
var scReturns = 0;
Frame 6
function shiftPlatform(dx, dy) {
mcPlatform._x = mcPlatform._x + dx;
mcPlatform._y = mcPlatform._y + dy;
}
function setPlatformPosition(vX, vY) {
mcPlatform._x = vX;
mcPlatform._y = vY;
}
function shiftWorld(dx, dy) {
var _local1 = 0;
while (_local1 < mcWorld.length) {
mcWorld[_local1]._x = mcWorld[_local1]._x + dx;
mcWorld[_local1]._y = mcWorld[_local1]._y + dy;
_local1++;
}
}
function setWorldPosition(vX, vY) {
var _local1 = 0;
while (_local1 < mcWorld.length) {
mcWorld[_local1]._x = vX;
mcWorld[_local1]._y = vY;
_local1++;
}
}
var mcPlatform = createEmptyMovieClip("mcPlatform", 5);
var mcWorld = new Array();
var worldColor = new Array();
var i = 0;
while (i < 3) {
mcWorld.push(_root.createEmptyMovieClip("mcWorld" + i, 12 - i));
switch (i) {
case 0 :
worldColor.push(new Number(12277179));
break;
case 1 :
worldColor.push(new Number(12303189));
break;
case 2 :
worldColor.push(new Number(5618619));
break;
default :
worldColor.push(new Number(16777215));
}
i++;
}
Frame 7
function shiftWorldBeds(dx, dy) {
var _local1 = 0;
while (_local1 < mcWorldBed.length) {
mcWorldBed[_local1]._x = mcWorldBed[_local1]._x + dx;
mcWorldBed[_local1]._y = mcWorldBed[_local1]._y + dy;
_local1++;
}
}
function setWorldBeds(vX, vY) {
var _local1 = 0;
while (_local1 < mcWorldBed.length) {
mcWorldBed[_local1]._x = vX;
mcWorldBed[_local1]._y = vY;
_local1++;
}
}
var mcWorldBed = new Array();
var i = 0;
while (i < 3) {
mcWorldBed.push(_root.createEmptyMovieClip("mcWorldBed" + i, 17 - i));
i++;
}
Frame 8
function shiftAxes(dx, dy) {
var _local2 = true;
if ((dx < 0) && (maxXLab >= heroMaxX)) {
_local2 = false;
}
if ((dx > 0) && (minXLab <= heroMinX)) {
_local2 = false;
}
if ((dy < 0) && (maxYLab >= heroMaxY)) {
_local2 = false;
}
if ((dy > 0) && (minYLab <= heroMinY)) {
_local2 = false;
}
if (_local2) {
var _local1 = 0;
while (_local1 < 9) {
xAxis[_local1]._x = xAxis[_local1]._x + dx;
if (xAxis[_local1]._x > 700) {
xAxis[_local1]._x = xAxis[_local1]._x - 800;
xValues[_local1] = xValues[_local1] - 8;
}
if (xAxis[_local1]._x < -100) {
xAxis[_local1]._x = xAxis[_local1]._x + 800;
xValues[_local1] = xValues[_local1] + 8;
}
xAxis[_local1].text = new String(xValues[_local1]);
xAxis[_local1].setTextFormat(tf1);
if (_local1 == 0) {
minXLab = xValues[_local1];
maxXLab = xValues[_local1];
} else {
if (xValues[_local1] < minXLab) {
minXLab = xValues[_local1];
}
if (xValues[_local1] > maxXLab) {
maxXLab = xValues[_local1];
}
}
if (_local1 != 8) {
yAxis[_local1]._y = yAxis[_local1]._y + dy;
if (yAxis[_local1]._y > 600) {
yAxis[_local1]._y = yAxis[_local1]._y - 700;
yValues[_local1] = yValues[_local1] - 7;
}
if (yAxis[_local1]._y < -100) {
yAxis[_local1]._y = yAxis[_local1]._y + 700;
yValues[_local1] = yValues[_local1] + 7;
}
yAxis[_local1].text = new String(yValues[_local1]);
yAxis[_local1].setTextFormat(tf1);
if (_local1 == 0) {
minYLab = yValues[_local1];
maxYLab = yValues[_local1];
} else {
if (yValues[_local1] < minYLab) {
minYLab = yValues[_local1];
}
if (yValues[_local1] > maxYLab) {
maxYLab = yValues[_local1];
}
}
}
_local1++;
}
return(_local2);
}
}
function resetAxes() {
var _local1 = -1;
while (_local1 < 8) {
xAxis[_local1 + 1]._x = _local1 * 100;
xAxis[_local1 + 1].text = new String(_local1);
xAxis[_local1 + 1].setTextFormat(tf1);
xValues[_local1 + 1] = _local1;
_local1++;
}
_local1 = -1;
while (_local1 < 7) {
yAxis[_local1 + 1]._y = _local1 * 100;
yAxis[_local1 + 1].text = new String(_local1);
yAxis[_local1 + 1].setTextFormat(tf1);
yAxis[_local1 + 1].selectable = false;
yValues[_local1 + 1] = _local1;
_local1++;
}
minXLab = -1;
maxXLab = 7;
minYLab = -1;
maxYLab = 6;
theHero.dx = (theHero.dy = 0);
}
function setAxisVisibility(vVisible) {
mcAxes._visible = vVisible;
mcOver._visible = vVisible;
}
var mcAxes = createEmptyMovieClip("mcAxes", 800);
var mcOver = createEmptyMovieClip("mcOver", 500);
var xAxis = new Array();
var xValues = new Array();
var yAxis = new Array();
var yValues = new Array();
mcOver.attachMovie("obESCMessage", "inESCMessage", 50);
mcOver.inESCMessage._x = 550;
mcOver.inESCMessage._y = 460;
mcOver._visible = false;
var tf1 = new TextFormat();
tf1.font = "Verdana";
tf1.color = 16777215 /* 0xFFFFFF */;
tf1.size = 14;
var tf2 = new TextFormat();
tf2.font = "Verdana";
tf2.color = 4474060 /* 0x4444CC */;
tf2.size = 20;
var tf3 = new TextFormat();
tf3.font = "Verdana";
tf3.color = 16777215 /* 0xFFFFFF */;
tf3.size = 40;
var txtScoreLab = mcAxes.createTextField("txtScoreLab", 102, 85, 20, 200, 40);
txtScoreLab.selectable = false;
var txtInvestLab = mcAxes.createTextField("txtInvestLab", 100, 245, 20, 200, 40);
txtInvestLab.selectable = false;
var txtReturnLab = mcAxes.createTextField("txtReturnLab", 101, 445, 20, 200, 40);
txtReturnLab.selectable = false;
var i = -1;
while (i < 8) {
xAxis.push(mcAxes.createTextField("x_" + (i + 1), i, i * 100, 50, 80, 20));
xValues.push(i);
xAxis[i + 1].text = new String(i);
xAxis[i + 1].setTextFormat(tf1);
xAxis[i + 1].selectable = false;
i++;
}
var i = -1;
while (i < 7) {
yAxis.push(mcAxes.createTextField("y_" + (i + 1), i + 20, 50, i * 100, 80, 20));
yValues.push(i);
yAxis[i + 1].text = new String(i);
yAxis[i + 1].setTextFormat(tf1);
yAxis[i + 1].selectable = false;
i++;
}
mcAxes._alpha = 30;
mcAxes.lineStyle(2, 0);
mcAxes.moveTo(47, -10);
mcAxes.beginFill(11184878, 100);
mcAxes.lineTo(47, -10);
mcAxes.lineTo(80, -10);
mcAxes.lineTo(80, 50);
mcAxes.lineTo(610, 50);
mcAxes.lineTo(610, 72);
mcAxes.lineTo(80, 72);
mcAxes.lineTo(80, 510);
mcAxes.lineTo(47, 510);
mcAxes.lineTo(47, 72);
mcAxes.lineTo(-10, 72);
mcAxes.lineTo(-10, 50);
mcAxes.lineTo(47, 50);
mcAxes.endFill();
mcAxes.moveTo(81, 20);
mcAxes.lineStyle(0, 0, 0);
mcAxes.beginFill(16777215);
mcAxes.lineTo(600, 20);
mcAxes.lineTo(600, 49);
mcAxes.lineTo(81, 49);
mcAxes.endFill();
mcAxes.moveTo(0, 20);
mcAxes.lineStyle(0, 0, 0);
mcAxes.beginFill(16777215);
mcAxes.lineTo(46, 20);
mcAxes.lineTo(46, 49);
mcAxes.lineTo(0, 49);
mcAxes.endFill();
setAxisVisibility(false);
Frame 9
function createParticle(X, Y, dx, dy, LT, FN) {
var _local1 = peParticleNumber;
peParticle[peParticleNumber].setVariables(X, Y, dx, dy, LT);
peParticle[peParticleNumber].gotoAndStop(FN);
peParticle[peParticleNumber].setDamageStatus(new Array(0, 0, 0));
peParticleNumber++;
if (peParticleNumber == peTotalParticles) {
peParticleNumber = 0;
}
return(_local1);
}
function createParticleR(X, Y, dx, dy, LT, FN, R) {
peParticle[peParticleNumber].setVariables(X, Y, dx, dy, LT);
peParticle[peParticleNumber].gotoAndStop(FN);
peParticle[peParticleNumber]._rotation = (R * 180) / Math.PI;
peParticle[peParticleNumber].setDamageStatus(new Array(0, 0, 0));
peParticleNumber++;
if (peParticleNumber == peTotalParticles) {
peParticleNumber = 0;
}
}
function createBullet(X, Y, dx, dy, LT, FN, DS) {
peParticle[peParticleNumber].setVariables(X, Y, dx, dy, LT);
peParticle[peParticleNumber].gotoAndStop(FN);
peParticle[peParticleNumber].setDamageStatus(DS);
peParticleNumber++;
if (peParticleNumber == peTotalParticles) {
peParticleNumber = 0;
}
}
function adjustParticles(dx, dy) {
var _local1 = 0;
while (_local1 < peTotalParticles) {
peParticle[_local1]._x = peParticle[_local1]._x + dx;
peParticle[_local1]._y = peParticle[_local1]._y + dy;
_local1++;
}
}
function clearParticles() {
var _local1 = 0;
while (_local1 < peTotalParticles) {
peParticle[_local1].clearParticle();
_local1++;
}
}
var peParticleNumber = new Number(0);
var peTotalParticles = new Number(100);
var peParticle = new Array();
var mcParticles = _root.createEmptyMovieClip("mcParticles", 35);
var i = 0;
while (i < peTotalParticles) {
peParticle.push(mcParticles.attachMovie("obParticle", "inParticle" + i, i));
i++;
}
Frame 10
function createIndividual(X, Y, dx, dy, LT, FN) {
var _local1 = feFlockNumber;
feIndividual[feFlockNumber].setVariables(X, Y, dx, dy, LT);
feIndividual[feFlockNumber].gotoAndStop(FN);
feFlockNumber++;
if (feFlockNumber == feTotalIndividuals) {
feFlockNumber = 0;
}
return(_local1);
}
function adjustFlock(dx, dy) {
var _local1 = 0;
while (_local1 < feTotalIndividuals) {
feIndividual[_local1]._x = feIndividual[_local1]._x + dx;
feIndividual[_local1]._y = feIndividual[_local1]._y + dy;
_local1++;
}
}
function directFlock() {
var _local3 = 0;
var _local4 = 0;
var _local2 = 0;
var _local9 = 0;
var _local8 = 0;
var _local11 = 0;
var _local10 = 0;
var _local7 = 0;
var _local6 = 0;
var _local16 = 4;
var _local5 = 1.5;
var _local15 = 1.5;
var _local14 = 0.1;
var _local12 = 5;
var _local13 = 0;
while (_local13 < _local16) {
_local6 = (count = 0);
_local7 = _local6;
_local10 = _local7;
_local11 = _local10;
_local8 = _local11;
_local9 = _local8;
var _local1 = 0;
while (_local1 < feTotalIndividuals) {
if (feIndividual[_local1].vActive && (_local1 != feResponding)) {
_local9 = _local9 + feIndividual[_local1]._x;
_local8 = _local8 + feIndividual[_local1]._y;
_local11 = _local11 + feIndividual[_local1].dx;
_local10 = _local10 + feIndividual[_local1].dy;
count++;
_local3 = 25;
_local4 = Math.sqrt(Math.pow(feIndividual[_local1]._x - feIndividual[feResponding]._x, 2) + Math.pow(feIndividual[_local1]._y - feIndividual[feResponding]._y, 2));
_local2 = Math.atan2(feIndividual[_local1]._y - feIndividual[feResponding]._y, feIndividual[_local1]._x - feIndividual[feResponding]._x);
if (Key.isDown(16)) {
_local5 = 0.5;
} else {
_local5 = 1.5;
}
if (_local4 < _local3) {
_local7 = _local7 + (_local5 * Math.cos(_local2 + Math.PI));
_local6 = _local6 + (_local5 * Math.sin(_local2 + Math.PI));
}
}
_local1++;
}
if (count != 0) {
_local9 = _local9 / count;
_local8 = _local8 / count;
_local11 = _local11 / count;
_local10 = _local10 / count;
_local3 = 70;
_local4 = Math.sqrt(Math.pow(_local9 - feIndividual[feResponding]._x, 2) + Math.pow(_local8 - feIndividual[feResponding]._y, 2));
_local2 = Math.atan2(_local8 - feIndividual[feResponding]._y, _local9 - feIndividual[feResponding]._x);
if ((_local4 > _local3) && (!Key.isDown(16))) {
_local7 = _local7 + (_local15 * Math.cos(_local2));
_local6 = _local6 + (_local15 * Math.sin(_local2));
}
if (!Key.isDown(16)) {
_local7 = _local7 + (_local14 * _local11);
_local6 = _local6 + (_local14 * _local10);
}
}
_local3 = 50;
if (Key.isDown(16)) {
_local3 = 25;
_local12 = 8;
_local4 = Math.sqrt(Math.pow(_xmouse - feIndividual[feResponding]._x, 2) + Math.pow(_ymouse - feIndividual[feResponding]._y, 2));
_local2 = Math.atan2(_ymouse - feIndividual[feResponding]._y, _xmouse - feIndividual[feResponding]._x);
} else {
_local3 = 50;
_local12 = 4;
_local4 = Math.sqrt(Math.pow(theHero._x - feIndividual[feResponding]._x, 2) + Math.pow(theHero._y - feIndividual[feResponding]._y, 2));
_local2 = Math.atan2(theHero._y - feIndividual[feResponding]._y, theHero._x - feIndividual[feResponding]._x);
}
if (_local4 > _local3) {
_local7 = _local7 + (_local12 * Math.cos(_local2));
_local6 = _local6 + (_local12 * Math.sin(_local2));
}
feIndividual[feResponding].influence(_local7, _local6);
feResponding++;
if (feResponding >= feTotalIndividuals) {
feResponding = 0;
}
_local13++;
}
}
function clearFlock() {
var _local1 = 0;
while (_local1 < feTotalIndividuals) {
feIndividual[_local1].clearIndividual();
_local1++;
}
}
var feResponding = new Number(0);
var feFlockNumber = new Number(0);
var feTotalIndividuals = new Number(50);
var feIndividual = new Array();
var mcFlock = _root.createEmptyMovieClip("mcFlock", 40);
var i = 0;
while (i < feTotalIndividuals) {
feIndividual.push(mcFlock.attachMovie("obFlock", "inFlock" + i, i));
i++;
}
Frame 11
function bitersRepel() {
var _local1 = 0;
while (_local1 < beNoOfBiters) {
if (_local1 == beResponding) {
} else if (!beBiter[beResponding].vActive) {
} else if (!beBiter[_local1].vActive) {
} else {
var _local4 = Math.sqrt(Math.pow(beBiter[_local1]._x - beBiter[beResponding]._x, 2) + Math.pow(beBiter[_local1]._y - beBiter[beResponding]._y, 2));
var _local2 = Math.atan2(beBiter[_local1]._y - beBiter[beResponding]._y, beBiter[_local1]._x - beBiter[beResponding]._x);
if (_local4 < 50) {
var _local3 = 8;
beBiter[_local1].influence(_local3 * Math.cos(_local2), _local3 * Math.sin(_local2));
beBiter[beResponding].influence(_local3 * Math.cos(_local2 + Math.PI), _local3 * Math.sin(_local2 + Math.PI));
}
}
_local1++;
}
beResponding++;
if (beResponding == beNoOfBiters) {
beResponding = 0;
}
}
function createBiter(vX, vY, vC) {
var _local1 = beBiterNumber;
beBiter[beBiterNumber].setVariables(vX, vY, vC);
beBiterNumber++;
if (beBiterNumber == beNoOfBiters) {
beBiterNumber = 0;
}
createPointer(2, _local1);
return(_local1);
}
function hurtBiterAt(vC, vX, vY, vDamage) {
var _local5 = false;
var _local1 = 0;
while (_local1 < beNoOfBiters) {
if (!beBiter[_local1].vActive) {
} else {
var _local3 = Math.sqrt(Math.pow(vX - beBiter[_local1]._x, 2) + Math.pow(vY - beBiter[_local1]._y, 2));
if (_local3 <= 20) {
if (vDamage != 0) {
if (vC == 0) {
beBiter[_local1].damage(vDamage);
} else if (beBiter[_local1].vColour == vC) {
beBiter[_local1].damage(vDamage);
}
} else if (vC == 0) {
beBiter[_local1].vState = 3;
beBiter[_local1].vWait = 72;
} else if (beBiter[_local1].vColour == vC) {
beBiter[_local1].vState = 3;
beBiter[_local1].vWait = 72;
}
if (vC == 0) {
_local5 = true;
} else if (beBiter[_local1].vColour == vC) {
_local5 = true;
}
break;
}
}
_local1++;
}
return(_local5);
}
function shiftBiters(dx, dy) {
var _local1 = 0;
while (_local1 < beNoOfBiters) {
beBiter[_local1]._x = beBiter[_local1]._x + dx;
beBiter[_local1]._y = beBiter[_local1]._y + dy;
_local1++;
}
}
function clearBiters() {
var _local1 = 0;
while (_local1 < beNoOfBiters) {
beBiter[_local1].clearBiter();
_local1++;
}
}
var beBiter = new Array();
var mcBiter = _root.createEmptyMovieClip("mcBiter", 45);
var beResponding = 0;
var beBiterNumber = 0;
var beNoOfBiters = 10;
var i = 0;
while (i < beNoOfBiters) {
beBiter.push(mcBiter.attachMovie("obPincher", "inPincher_" + i, i));
i++;
}
Frame 12
function createEgg(vC, vX, vY, vR) {
var _local1 = -1;
if (mcWorldBed[vC - 1].hitTest(vX, vY, true)) {
_local1 = eeEggNumber;
eeEgg[eeEggNumber].setVariables(vC, vX, vY, vR);
}
eeEggNumber++;
if (eeEggNumber == eeTotalEggs) {
eeEggNumber = 0;
}
return(_local1);
}
function shiftEggs(dx, dy) {
var _local1 = 0;
while (_local1 < eeTotalEggs) {
eeEgg[_local1]._x = eeEgg[_local1]._x + dx;
eeEgg[_local1]._y = eeEgg[_local1]._y + dy;
_local1++;
}
}
function clearEggs() {
var _local1 = 0;
while (_local1 < eeEggNumber) {
eeEgg[_local1].clearEgg();
_local1++;
}
}
var eeEggNumber = 0;
var eeTotalEggs = 100;
var eeEgg = new Array();
var mcEgg = createEmptyMovieClip("mcEgg", 22);
var i = 0;
while (i < eeTotalEggs) {
eeEgg.push(mcEgg.attachMovie("obEgg", "inEgg_" + i, i));
i++;
}
Frame 13
function createReward(vC, vX, vY) {
var _local1 = reRewardNumber;
reReward[reRewardNumber].setVariables(vC, vX, vY);
reRewardNumber++;
if (reRewardNumber == reTotalRewards) {
reRewardNumber = 0;
}
return(_local1);
}
function shiftRewards(dx, dy) {
var _local1 = 0;
while (_local1 < reTotalRewards) {
reReward[_local1]._x = reReward[_local1]._x + dx;
reReward[_local1]._y = reReward[_local1]._y + dy;
_local1++;
}
}
function clearRewards() {
var _local1 = 0;
while (_local1 < reTotalRewards) {
reReward[_local1].clearReward();
_local1++;
}
}
var reRewardNumber = 0;
var reTotalRewards = 100;
var reReward = new Array();
var mcReward = createEmptyMovieClip("mcReward", 25);
var i = 0;
while (i < reTotalRewards) {
reReward.push(mcReward.attachMovie("obReward", "inReward_" + i, i));
i++;
}
Frame 14
function createBabyEater(vX, vY, vC) {
var _local1 = beeBabyEaterNumber;
beeBabyEater[beeBabyEaterNumber].setVariables(vX, vY, vC);
beeBabyEaterNumber++;
if (beeBabyEaterNumber == beeNoOfBabyEaters) {
beeBabyEaterNumber = 0;
}
createPointer(0, _local1);
return(_local1);
}
function hurtBabyEaterAt(vX, vY, vDamage) {
var _local3 = false;
var _local1 = 0;
while (_local1 < beeNoOfBabyEaters) {
if (!beeBabyEater[_local1].vActive) {
} else {
var _local2 = Math.sqrt(Math.pow(vX - beeBabyEater[_local1]._x, 2) + Math.pow(vY - beeBabyEater[_local1]._y, 2));
if (_local2 <= 20) {
beeBabyEater[_local1].damage(vDamage);
_local3 = true;
break;
}
}
_local1++;
}
return(_local3);
}
function shiftBabyEaters(dx, dy) {
var _local1 = 0;
while (_local1 < beeNoOfBabyEaters) {
beeBabyEater[_local1]._x = beeBabyEater[_local1]._x + dx;
beeBabyEater[_local1]._y = beeBabyEater[_local1]._y + dy;
_local1++;
}
}
function clearBabyEaters() {
var _local1 = 0;
while (_local1 < beeNoOfBabyEaters) {
beeBabyEater[_local1].clearBabyEater();
_local1++;
}
}
var beeBabyEater = new Array();
var mcBabyEater = _root.createEmptyMovieClip("mcBabyEater", 55);
var beeRespondingBE = 0;
var beeBabyEaterNumber = 0;
var beeNoOfBabyEaters = 10;
var i = 0;
while (i < beeNoOfBabyEaters) {
beeBabyEater.push(mcBabyEater.attachMovie("obBabyEater", "inBabyEater_" + i, i));
i++;
}
Frame 15
function createEggStealer(vX, vY, vC) {
var _local1 = eseEggStealerNumber;
eseEggStealer[eseEggStealerNumber].setVariables(vX, vY, vC);
eseEggStealerNumber++;
if (eseEggStealerNumber == eseNoOfEggStealers) {
eseEggStealerNumber = 0;
}
createPointer(1, _local1);
return(_local1);
}
function hurtEggStealerAt(vX, vY, vDamage) {
var _local3 = false;
var _local1 = 0;
while (_local1 < eseNoOfEggStealers) {
if (!eseEggStealer[_local1].vActive) {
} else {
var _local2 = Math.sqrt(Math.pow(vX - eseEggStealer[_local1]._x, 2) + Math.pow(vY - eseEggStealer[_local1]._y, 2));
if (_local2 <= 20) {
eseEggStealer[_local1].damage(vDamage);
_local3 = true;
break;
}
}
_local1++;
}
return(_local3);
}
function shiftEggStealers(dx, dy) {
var _local1 = 0;
while (_local1 < eseNoOfEggStealers) {
eseEggStealer[_local1]._x = eseEggStealer[_local1]._x + dx;
eseEggStealer[_local1]._y = eseEggStealer[_local1]._y + dy;
_local1++;
}
}
function clearEggStealers() {
var _local1 = 0;
while (_local1 < eseNoOfEggStealers) {
eseEggStealer[_local1].clearEggStealer();
_local1++;
}
}
var eseEggStealer = new Array();
var mcEggStealer = _root.createEmptyMovieClip("mcEggStealer", 50);
var eseEggStealerNumber = 0;
var eseNoOfEggStealers = 10;
var i = 0;
while (i < eseNoOfEggStealers) {
eseEggStealer.push(mcEggStealer.attachMovie("obEggStealer", "inEggStealer_" + i, i));
i++;
}
Frame 16
function createSpitter(vX, vY) {
var _local1 = seSpitterNumber;
seSpitter[seSpitterNumber].setVariables(vX, vY);
seSpitterNumber++;
if (seSpitterNumber == seNoOfSpitters) {
seSpitterNumber = 0;
}
createPointer(3, _local1);
return(_local1);
}
function hurtSpitterAt(vX, vY, vDamage) {
var _local3 = false;
var _local1 = 0;
while (_local1 < seNoOfSpitters) {
if (!seSpitter[_local1].vActive) {
} else {
var _local2 = Math.sqrt(Math.pow(vX - seSpitter[_local1]._x, 2) + Math.pow(vY - seSpitter[_local1]._y, 2));
if (_local2 <= 20) {
seSpitter[_local1].damage(vDamage);
_local3 = true;
break;
}
}
_local1++;
}
return(_local3);
}
function shiftSpitters(dx, dy) {
var _local1 = 0;
while (_local1 < seNoOfSpitters) {
seSpitter[_local1]._x = seSpitter[_local1]._x + dx;
seSpitter[_local1]._y = seSpitter[_local1]._y + dy;
_local1++;
}
}
function clearSpitters() {
var _local1 = 0;
while (_local1 < seNoOfSpitters) {
seSpitter[_local1].clearSpitter();
_local1++;
}
}
var seSpitter = new Array();
var mcSpitter = _root.createEmptyMovieClip("mcSpitter", 60);
var seSpitterNumber = 0;
var seNoOfSpitters = 10;
var i = 0;
while (i < seNoOfSpitters) {
seSpitter.push(mcSpitter.attachMovie("obSpitter", "inSpitter_" + i, i));
i++;
}
Frame 17
function createTortoise(vX, vY) {
var _local1 = teTortoiseNumber;
teTortoise[teTortoiseNumber].setVariables(vX, vY);
teTortoiseNumber++;
if (teTortoiseNumber == teNoOfTortoises) {
teTortoiseNumber = 0;
}
theTimer.setTimer(2400);
return(_local1);
}
function shiftTortoises(dx, dy) {
var _local1 = 0;
while (_local1 < teNoOfTortoises) {
teTortoise[_local1]._x = teTortoise[_local1]._x + dx;
teTortoise[_local1]._y = teTortoise[_local1]._y + dy;
_local1++;
}
}
function clearTortoises() {
var _local1 = 0;
while (_local1 < teNoOfTortoises) {
teTortoise[_local1]._visible = false;
_local1++;
}
}
var teTortoise = new Array();
var mcTortoise = _root.createEmptyMovieClip("mcTortoise", 57);
var teTortoiseNumber = 0;
var teNoOfTortoises = 3;
var i = 0;
while (i < teNoOfTortoises) {
teTortoise.push(mcTortoise.attachMovie("obTortoise", "inTortoise_" + i, i));
i++;
}
Frame 18
function createPointer(vType, vNumber) {
var _local1 = pntePointerNumber;
pntePointer[pntePointerNumber].setVariables(vType, vNumber);
pntePointer[pntePointerNumber].enemyName.gotoAndStop(vType + 1);
pntePointerNumber++;
if (pntePointerNumber == pnteNoOfPointers) {
pntePointerNumber = 0;
}
return(_local1);
}
function clearPointers() {
var _local1 = 0;
while (_local1 < pnteNoOfPointers) {
pntePointer[_local1]._visible = false;
_local1++;
}
}
var pntePointer = new Array();
var mcPointer = _root.createEmptyMovieClip("mcPointer", 70);
var pntePointerNumber = 0;
var pnteNoOfPointers = 50;
var i = 0;
while (i < pnteNoOfPointers) {
pntePointer.push(mcPointer.attachMovie("obPointer", "inPointer_" + i, i));
i++;
}
Frame 19
Frame 20
var theHero = _root.attachMovie("obHero", "theHero", 65);
var theAura = _root.attachMovie("obAura", "theAura", 66);
Frame 21
function clearAllSystems() {
clearParticles();
clearFlock();
clearBiters();
clearEggs();
clearRewards();
clearBabyEaters();
clearEggStealers();
clearSpitters();
clearTortoises();
}
function clearWorld() {
mcPlatform.clear();
mcPlatform._alpha = 100;
var _local1 = 0;
while (_local1 < 3) {
mcWorld[_local1].clear();
mcWorld[_local1]._alpha = 100;
_local1++;
}
_local1 = 0;
while (_local1 < 3) {
mcWorldBed[_local1].clear();
mcWorldBed[_local1]._alpha = 100;
_local1++;
}
}
function setHeroPosition(vX, vY) {
vX = vX - (Stage.width / 2);
vY = vY - (Stage.height / 2);
setPlatformPosition(-vX, -vY);
setWorldPosition(-vX, -vY);
setWorldBeds(-vX, -vY);
}
function setAlpha(vAmount) {
mcParticles._alpha = vAmount;
mcFlock._alpha = vAmount;
mcBiter._alpha = vAmount;
mcEgg._alpha = vAmount;
mcReward._alpha = vAmount;
mcBabyEater._alpha = vAmount;
mcEggStealer._alpha = vAmount;
mcSpitter._alpha = vAmount;
mcPointer._alpha = vAmount;
mcTortoise._alpha = vAmount;
theHero._alpha = vAmount;
theHero.mcSegment._alpha = vAmount;
mcPlatform._alpha = vAmount;
if (vAmount < 30) {
mcAxes._alpha = vAmount;
} else {
mcAxes._alpha = 30;
}
var _local2 = 0;
while (_local2 < 3) {
mcWorld[_local2]._alpha = vAmount;
mcWorldBed[_local2]._alpha = vAmount;
_local2++;
}
theRipple._alpha = vAmount;
if (vAmount > 0) {
if (theTimer.vTime != 0) {
theTimer._alpha = vAmount;
}
} else {
theTimer._alpha = vAmount;
}
switch (areaNumber) {
case 1 :
gEF._alpha = vAmount;
gDF._alpha = vAmount;
break;
case 2 :
level2Key._alpha = vAmount;
treasureSign._alpha = vAmount;
break;
case 3 :
level3Fields._alpha = vAmount;
bugSign._alpha = vAmount;
break;
case 4 :
level4BigFields._alpha = vAmount;
level4Key._alpha = vAmount;
level4Tort._alpha = vAmount;
theBarrier._alpha = vAmount;
nannySign._alpha = vAmount;
break;
case 5 :
teleport1._alpha = vAmount;
teleport2._alpha = vAmount;
level5Tort._alpha = vAmount;
break;
case 6 :
platform1._alpha = vAmount;
platform2._alpha = vAmount;
platform3._alpha = vAmount;
platform4._alpha = vAmount;
platform5._alpha = vAmount;
platform6._alpha = vAmount;
l6teleport1._alpha = vAmount;
l6teleport2._alpha = vAmount;
l6teleport3._alpha = vAmount;
l6teleport4._alpha = vAmount;
l6teleport5._alpha = vAmount;
l6teleport6._alpha = vAmount;
level6Tort._alpha = vAmount;
}
}
function shiftEverything(dx, dy) {
if (shiftAxes(-dx, -dy)) {
shiftPlatform(-dx, -dy);
shiftWorld(-dx, -dy);
shiftWorldBeds(-dx, -dy);
shiftEggs(-dx, -dy);
shiftRewards(-dx, -dy);
shiftBabyEaters(-dx, -dy);
shiftEggStealers(-dx, -dy);
adjustFlock(-dx, -dy);
adjustParticles(-dx, -dy);
shiftBiters(-dx, -dy);
shiftSpitters(-dx, -dy);
shiftTortoises(-dx, -dy);
switch (areaNumber) {
case 1 :
gEF.shiftKey(-dx, -dy);
gDF.shiftKey(-dx, -dy);
break;
case 2 :
treasureSign.shiftKey(-dx, -dy);
level2Key.shiftKey(-dx, -dy);
break;
case 3 :
level3Fields.shiftKey(-dx, -dy);
bugSign.shiftKey(-dx, -dy);
break;
case 4 :
level4BigFields.shiftKey(-dx, -dy);
level4Key.shiftKey(-dx, -dy);
theBarrier.shiftKey(-dx, -dy);
level4Tort.shiftKey(-dx, -dy);
nannySign.shiftKey(-dx, -dy);
break;
case 5 :
teleport1.shiftKey(-dx, -dy);
teleport2.shiftKey(-dx, -dy);
level5Tort.shiftKey(-dx, -dy);
break;
case 6 :
platform1.shiftKey(-dx, -dy);
platform2.shiftKey(-dx, -dy);
platform3.shiftKey(-dx, -dy);
platform4.shiftKey(-dx, -dy);
platform5.shiftKey(-dx, -dy);
platform6.shiftKey(-dx, -dy);
l6teleport1.shiftKey(-dx, -dy);
l6teleport2.shiftKey(-dx, -dy);
l6teleport3.shiftKey(-dx, -dy);
l6teleport4.shiftKey(-dx, -dy);
l6teleport5.shiftKey(-dx, -dy);
l6teleport6.shiftKey(-dx, -dy);
movingHarvest.shiftKey(-dx, -dy);
level6Tort.shiftKey(-dx, -dy);
}
}
}
Frame 22
function exitLevel(vForced) {
trace("Exit: " + vForced);
isInPlay = false;
}
Frame 24
heroIsVisible = false;
theAura.vActive = false;
isInPlay = false;
tutMode = false;
clearAllSystems();
clearWorld();
setAxisVisibility(false);
setAlpha(100);
theHero._x = Stage.width / 2;
theHero._y = Stage.height / 2;
resetAxes();
gotoAndStop (25);
Frame 25
sndMusicPlay.setVolume(0);
Instance of Symbol 241 MovieClip "theMover" in Frame 25
onClipEvent (load) {
function setTarget(vX, vY) {
xTarget = vX;
yTarget = vY;
}
var xTarget = -930;
var yTarget = -150;
txtCookie.selectable = false;
txtCookie.wordWrap = true;
if (_root.cookieIsPresent) {
txtCookie.text = "Cookie detected! Continue playing where you left off!";
} else {
txtCookie.text = "No cookie detected! Save your progress during game play and continue playing where you leave off!";
}
}
onClipEvent (enterFrame) {
var dx = ((_x - xTarget) * 0.2);
if (Math.abs(dx) < 3) {
if (dx < 0) {
dx = -3;
}
if (dx > 0) {
dx = 3;
}
}
if (Math.abs(dx) > 80) {
if (dx < 0) {
dx = -80;
}
if (dx > 0) {
dx = 80;
}
}
var dy = ((_y - yTarget) * 0.2);
if (Math.abs(dy) < 3) {
if (dy < 0) {
dy = -3;
}
if (dy > 0) {
dy = 3;
}
}
if (Math.abs(dy) > 80) {
if (dy < 0) {
dy = -80;
}
if (dy > 0) {
dy = 80;
}
}
_x = (_x - dx);
if (Math.abs(_x - xTarget) <= 2) {
_x = xTarget;
}
_y = (_y - dy);
if (Math.abs(_y - yTarget) <= 2) {
_y = yTarget;
}
dx = dx / 2;
dy = dy / 2;
_root.tSA.shiftKey(-dx, -dy);
_root.tSB.shiftKey(-dx, -dy);
_root.tSC.shiftKey(-dx, -dy);
_root.tSD.shiftKey(-dx, -dy);
_root.tSE.shiftKey(-dx, -dy);
_root.tSF.shiftKey(-dx, -dy);
_root.tSG.shiftKey(-dx, -dy);
_root.tSH.shiftKey(-dx, -dy);
_root.tSI.shiftKey(-dx, -dy);
_root.tSJ.shiftKey(-dx, -dy);
_root.tSK.shiftKey(-dx, -dy);
_root.tSL.shiftKey(-dx, -dy);
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSA._y - _root._ymouse, _root.tSA._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSA._x - _root._xmouse, 2) + Math.pow(_root.tSA._y - _root._ymouse, 2));
_rotation = _root.tSA._rotation;
_x = (_root.tSA._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSA._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSB._y - _root._ymouse, _root.tSB._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSB._x - _root._xmouse, 2) + Math.pow(_root.tSB._y - _root._ymouse, 2));
_rotation = _root.tSB._rotation;
_x = (_root.tSB._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSB._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSC._y - _root._ymouse, _root.tSC._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSC._x - _root._xmouse, 2) + Math.pow(_root.tSC._y - _root._ymouse, 2));
_rotation = _root.tSC._rotation;
_x = (_root.tSC._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSC._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSD._y - _root._ymouse, _root.tSD._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSD._x - _root._xmouse, 2) + Math.pow(_root.tSD._y - _root._ymouse, 2));
_rotation = _root.tSD._rotation;
_x = (_root.tSD._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSD._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSE._y - _root._ymouse, _root.tSE._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSE._x - _root._xmouse, 2) + Math.pow(_root.tSE._y - _root._ymouse, 2));
_rotation = _root.tSE._rotation;
_x = (_root.tSE._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSE._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSF._y - _root._ymouse, _root.tSF._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSF._x - _root._xmouse, 2) + Math.pow(_root.tSF._y - _root._ymouse, 2));
_rotation = _root.tSF._rotation;
_x = (_root.tSF._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSF._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSG._y - _root._ymouse, _root.tSG._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSG._x - _root._xmouse, 2) + Math.pow(_root.tSG._y - _root._ymouse, 2));
_rotation = _root.tSG._rotation;
_x = (_root.tSG._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSG._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSH._y - _root._ymouse, _root.tSH._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSH._x - _root._xmouse, 2) + Math.pow(_root.tSH._y - _root._ymouse, 2));
_rotation = _root.tSH._rotation;
_x = (_root.tSH._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSH._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSI._y - _root._ymouse, _root.tSI._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSI._x - _root._xmouse, 2) + Math.pow(_root.tSI._y - _root._ymouse, 2));
_rotation = _root.tSI._rotation;
_x = (_root.tSI._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSI._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSJ._y - _root._ymouse, _root.tSJ._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSJ._x - _root._xmouse, 2) + Math.pow(_root.tSJ._y - _root._ymouse, 2));
_rotation = _root.tSJ._rotation;
_x = (_root.tSJ._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSJ._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSK._y - _root._ymouse, _root.tSK._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSK._x - _root._xmouse, 2) + Math.pow(_root.tSK._y - _root._ymouse, 2));
_rotation = _root.tSK._rotation;
_x = (_root.tSK._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSK._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 25
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSL._y - _root._ymouse, _root.tSL._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSL._x - _root._xmouse, 2) + Math.pow(_root.tSL._y - _root._ymouse, 2));
_rotation = _root.tSL._rotation;
_x = (_root.tSL._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSL._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip "tSD" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSA" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = ((((((((((dx + _root.tSB.dx) + _root.tSC.dx) + _root.tSD.dx) + _root.tSE.dx) + _root.tSF.dx) + _root.tSG.dx) + _root.tSH.dx) + _root.tSI.dx) + _root.tSJ.dx) + _root.tSK.dx) + _root.tSL.dx;
meanDx = meanDx / 12;
meanDy = ((((((((((dy + _root.tSB.dy) + _root.tSC.dy) + _root.tSD.dy) + _root.tSE.dy) + _root.tSF.dy) + _root.tSG.dy) + _root.tSH.dy) + _root.tSI.dy) + _root.tSJ.dy) + _root.tSK.dy) + _root.tSL.dy;
meanDy = meanDy / 12;
meanX = ((((((((((_x + _root.tSB._x) + _root.tSC._x) + _root.tSD._x) + _root.tSE._x) + _root.tSF._x) + _root.tSG._x) + _root.tSH._x) + _root.tSI._x) + _root.tSJ._x) + _root.tSK._x) + _root.tSL._x;
meanX = meanX / 12;
meanY = ((((((((((_y + _root.tSB._y) + _root.tSC._y) + _root.tSD._y) + _root.tSE._y) + _root.tSF._y) + _root.tSG._y) + _root.tSH._y) + _root.tSI._y) + _root.tSJ._y) + _root.tSK._y) + _root.tSL._y;
meanY = meanY / 12;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
vDir = Math.atan2((Stage.height / 2) - _y, (Stage.width / 2) - _x);
if (vDis > 50) {
ddx = ddx + (0.8 * Math.cos(vDir));
ddy = ddy + (0.8 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 5) {
dx = 5;
}
if (dx < -5) {
dx = -5;
}
if (dy > 5) {
dy = 5;
}
if (dy < -5) {
dy = -5;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSB" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.8 * Math.cos(vDir));
ddy = ddy + (0.8 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSE" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.02 * meanDx);
ddy = ddy + (0.02 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 14) {
dx = 14;
}
if (dx < -14) {
dx = -14;
}
if (dy > 14) {
dy = 14;
}
if (dy < -14) {
dy = -14;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSC" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSF" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.8 * Math.cos(vDir));
ddy = ddy + (0.8 * Math.sin(vDir));
}
ddx = ddx + (0.02 * meanDx);
ddy = ddy + (0.02 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 14) {
dx = 14;
}
if (dx < -14) {
dx = -14;
}
if (dy > 14) {
dy = 14;
}
if (dy < -14) {
dy = -14;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSJ" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
vDir = Math.atan2((Stage.height / 2) - _y, (Stage.width / 2) - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.02 * meanDx);
ddy = ddy + (0.02 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSG" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + Math.cos(vDir);
ddy = ddy + Math.sin(vDir);
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 12) {
dx = 12;
}
if (dx < -12) {
dx = -12;
}
if (dy > 12) {
dy = 12;
}
if (dy < -12) {
dy = -12;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSH" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSK" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
vDir = Math.atan2((Stage.height / 2) - _y, (Stage.width / 2) - _x);
if (vDis > 50) {
ddx = ddx + (0.6 * Math.cos(vDir));
ddy = ddy + (0.6 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSI" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSL" in Frame 25
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
vDir = Math.atan2((Stage.height / 2) - _y, (Stage.width / 2) - _x);
if (vDis > 50) {
ddx = ddx + (0.8 * Math.cos(vDir));
ddy = ddy + (0.8 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 16) {
dx = 16;
}
if (dx < -16) {
dx = -16;
}
if (dy > 16) {
dy = 16;
}
if (dy < -16) {
dy = -16;
}
shiftKey(dx, dy);
}
Instance of Symbol 245 MovieClip in Frame 25
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 264 MovieClip in Frame 25
onClipEvent (load) {
var vWait = 20;
}
onClipEvent (enterFrame) {
if (vWait > 0) {
vWait--;
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Instance of Symbol 144 MovieClip in Frame 25
onClipEvent (enterFrame) {
_root.increaseVolume("menu", 2, 100);
_root.decreaseVolume("boss", 5, 0);
}
Frame 30
clearAllSystems();
clearWorld();
setAxisVisibility(false);
setAlpha(100);
theHero._x = Stage.width / 2;
theHero._y = Stage.height / 2;
resetAxes();
scReturns = 0;
scBonus = 0;
noOfPurplePods = 0;
noOfYellowPods = 0;
noOfGreenPods = 0;
scInvestment = 20;
if (areaNumber == 0) {
gotoAndStop (60);
} else {
theHero.scramble();
gotoAndStop(30 + areaNumber);
}
Frame 31
scInvestment = 15;
mcPlatform.beginFill(10066329, 60);
mcPlatform.moveTo(0, 250);
mcPlatform.lineTo(50, 150);
mcPlatform.lineTo(100, 100);
mcPlatform.lineTo(200, 100);
mcPlatform.lineTo(250, 150);
mcPlatform.lineTo(300, 250);
mcPlatform.lineTo(450, 100);
mcPlatform.lineTo(650, 100);
mcPlatform.lineTo(850, 300);
mcPlatform.lineTo(850, 450);
mcPlatform.lineTo(800, 500);
mcPlatform.lineTo(650, 500);
mcPlatform.lineTo(600, 600);
mcPlatform.lineTo(450, 600);
mcPlatform.lineTo(400, 500);
mcPlatform.lineTo(400, 400);
mcPlatform.lineTo(450, 300);
mcPlatform.lineTo(600, 300);
mcPlatform.lineTo(650, 400);
mcPlatform.lineTo(700, 400);
mcPlatform.lineTo(700, 350);
mcPlatform.lineTo(600, 250);
mcPlatform.lineTo(450, 250);
mcPlatform.lineTo(350, 350);
mcPlatform.lineTo(300, 350);
mcPlatform.lineTo(250, 450);
mcPlatform.lineTo(200, 500);
mcPlatform.lineTo(100, 500);
mcPlatform.lineTo(50, 450);
mcPlatform.lineTo(0, 350);
mcPlatform.endFill();
mcWorld[0].beginFill(worldColor[0], 70);
mcWorld[0].moveTo(50, 200);
mcWorld[0].lineTo(100, 150);
mcWorld[0].lineTo(200, 150);
mcWorld[0].lineTo(250, 200);
mcWorld[0].lineTo(250, 400);
mcWorld[0].lineTo(200, 450);
mcWorld[0].lineTo(100, 450);
mcWorld[0].lineTo(50, 400);
mcWorld[0].endFill();
mcWorldBed[0].lineStyle(3, worldColor[0]);
mcWorldBed[0].beginFill(15654382, 40);
mcWorldBed[0].moveTo(450, 350);
mcWorldBed[0].lineTo(600, 350);
mcWorldBed[0].lineTo(600, 550);
mcWorldBed[0].lineTo(450, 550);
mcWorldBed[0].endFill();
heroMinX = -8;
heroMaxX = 16;
heroMinY = -8;
heroMaxY = 16;
mcPlatform.beginFill(1991453, 30);
mcPlatform.moveTo(-550, -600);
mcPlatform.lineTo(-750, -600);
mcPlatform.lineTo(-750, 1500);
mcPlatform.lineTo(1250, 1500);
mcPlatform.lineTo(1250, -600);
mcPlatform.lineTo(-550, -600);
mcPlatform.lineTo(-550, -400);
mcPlatform.lineTo(1050, -400);
mcPlatform.lineTo(1050, 1300);
mcPlatform.lineTo(-550, 1300);
mcPlatform.lineTo(-550, -600);
mcPlatform.endFill();
setHeroPosition(150, 300);
gotoAndStop (50);
Frame 32
scInvestment = 3;
with (mcPlatform) {
lineStyle(2, 0);
moveTo(600, 28);
beginFill(11189179);
lineTo(600, 372);
lineTo(300, 200);
endFill();
moveTo(-50, 1000);
beginFill(14535901);
lineTo(750, 1000);
lineTo(750, 1400);
lineTo(-50, 1400);
endFill();
lineStyle(1, 0, 0);
moveTo(-1100, -800);
beginFill(1991453, 30);
lineTo(-1100, 900);
lineTo(1700, 900);
lineTo(1700, -800);
lineTo(-900, -800);
lineTo(-900, -600);
lineTo(1500, -600);
lineTo(1500, 700);
lineTo(-900, 700);
lineTo(-900, -800);
lineTo(-1100, -800);
endFill();
lineStyle(2, 0, 100);
moveTo(-40, 1010);
beginFill(14540253);
lineTo(100, 1010);
lineTo(100, 1390);
lineTo(-40, 1390);
endFill();
moveTo(600, 1010);
beginFill(14540253);
lineTo(740, 1010);
lineTo(740, 1390);
lineTo(600, 1390);
endFill();
lineStyle(3, 0, 50);
moveTo(600, 372);
lineTo(600, 390);
lineTo(670, 390);
lineTo(670, 1000);
moveTo(300, 200);
lineTo(280, 200);
lineTo(280, 400);
lineTo(660, 400);
lineTo(660, 1000);
moveTo(600, 28);
lineTo(600, 10);
lineTo(270, 10);
lineTo(270, 410);
lineTo(650, 410);
lineTo(650, 1000);
}
mcWorld[0].beginFill(worldColor[0], 40);
with (mcWorld[0]) {
moveTo(600, 200);
curveTo(600, 28, 450, 113);
lineTo(500, 200);
endFill();
}
mcWorld[1].beginFill(worldColor[1], 40);
with (mcWorld[1]) {
moveTo(500, 200);
lineTo(450, 113);
curveTo(300, 200, 450, 287);
endFill();
}
mcWorld[2].beginFill(worldColor[2], 40);
with (mcWorld[2]) {
moveTo(500, 200);
lineTo(450, 287);
curveTo(600, 372, 600, 200);
endFill();
}
mcWorldBed[0].lineStyle(2, worldColor[0], 100);
with (mcWorldBed[0]) {
moveTo(120, 1010);
beginFill(14540253);
lineTo(120, 1390);
lineTo(260, 1390);
lineTo(260, 1010);
endFill();
}
mcWorldBed[1].lineStyle(2, worldColor[1], 100);
with (mcWorldBed[1]) {
moveTo(280, 1010);
beginFill(14540253);
lineTo(420, 1010);
lineTo(420, 1390);
lineTo(280, 1390);
endFill();
}
mcWorldBed[2].lineStyle(2, worldColor[2], 100);
with (mcWorldBed[2]) {
moveTo(440, 1010);
beginFill(14540253);
lineTo(440, 1390);
lineTo(580, 1390);
lineTo(580, 1010);
endFill();
}
heroMinX = -12;
heroMaxX = 20;
heroMinY = -12;
heroMaxY = 8;
setHeroPosition(200, 500);
gotoAndStop (50);
Frame 33
scInvestment = 9;
with (mcPlatform) {
lineStyle(2, 0);
beginFill(11189179);
moveTo(1400, 128);
lineTo(1400, 472);
lineTo(1100, 300);
endFill();
beginFill(6723976);
moveTo(190, 100);
lineTo(390, 100);
lineTo(390, 350);
lineTo(0, 350);
lineTo(0, 220);
lineTo(190, 220);
endFill();
lineStyle(4, 0, 50);
moveTo(1100, 300);
lineTo(380, 300);
moveTo(1400, 128);
lineTo(1400, 100);
lineTo(1090, 100);
lineTo(1090, 290);
lineTo(400, 290);
lineTo(400, 160);
lineTo(380, 160);
moveTo(1400, 472);
lineTo(1400, 490);
lineTo(1090, 490);
lineTo(1090, 310);
lineTo(400, 310);
lineTo(400, 360);
lineTo(130, 360);
lineTo(130, 340);
lineStyle(1, 0, 0);
moveTo(-1000, -1000);
beginFill(1991453, 50);
lineTo(-1200, -1000);
lineTo(-1200, 1400);
lineTo(2300, 1400);
lineTo(2300, -1000);
lineTo(-1000, -1000);
lineTo(-1000, -800);
lineTo(2100, -800);
lineTo(2100, 1200);
lineTo(-1000, 1200);
lineTo(-1000, -1000);
endFill();
}
mcWorld[0].beginFill(worldColor[0], 40);
with (mcWorld[0]) {
moveTo(1400, 300);
curveTo(1400, 128, 1250, 213);
lineTo(1300, 300);
endFill();
}
mcWorld[1].beginFill(worldColor[1], 40);
with (mcWorld[1]) {
moveTo(1300, 300);
lineTo(1250, 213);
curveTo(1100, 300, 1250, 387);
endFill();
}
mcWorld[2].beginFill(worldColor[2], 40);
with (mcWorld[2]) {
moveTo(1300, 300);
lineTo(1250, 387);
curveTo(1400, 472, 1400, 300);
endFill();
}
heroMinX = -15;
heroMaxX = 24;
heroMinY = -12;
heroMaxY = 15;
setHeroPosition(400, 300);
createBabyEater(200, -1000, Math.floor(3 * Math.random()) + 1);
gotoAndStop (50);
Frame 34
scInvestment = 30;
with (mcPlatform) {
beginFill(1991453, 50);
moveTo(-200, -400);
lineTo(-400, -400);
lineTo(-400, 2300);
lineTo(2300, 2300);
lineTo(2300, -400);
lineTo(-200, -400);
lineTo(-200, -200);
lineTo(2100, -200);
lineTo(2100, 2100);
lineTo(-200, 2100);
lineTo(-200, -400);
endFill();
lineStyle(1, 0, 100);
beginFill(15654331, 60);
moveTo(100, 20);
lineTo(170, 20);
lineTo(170, 70);
lineTo(195, 70);
lineTo(195, 140);
lineTo(75, 140);
lineTo(75, 70);
lineTo(100, 70);
endFill();
beginFill(10066363, 30);
lineStyle(3, 0, 100);
moveTo(-50, 1000);
lineTo(650, 1000);
lineTo(650, 1700);
lineTo(-50, 1700);
endFill();
lineStyle(3, 0, 50);
moveTo(140, 130);
lineTo(140, 1010);
lineTo(520, 1010);
lineTo(520, 1030);
moveTo(130, 130);
lineTo(130, 150);
lineTo(135, 150);
lineTo(135, 1020);
lineTo(300, 1020);
lineTo(300, 1030);
moveTo(110, 75);
lineTo(80, 75);
lineTo(80, 160);
lineTo(130, 160);
lineTo(130, 1030);
}
mcWorld[0].beginFill(worldColor[0], 60);
with (mcWorld[0]) {
moveTo(110, 30);
lineTo(160, 30);
lineTo(160, 80);
lineTo(110, 80);
endFill();
}
mcWorld[1].beginFill(worldColor[1], 60);
with (mcWorld[1]) {
moveTo(85, 80);
lineTo(135, 80);
lineTo(135, 130);
lineTo(85, 130);
endFill();
}
mcWorld[2].beginFill(worldColor[2], 60);
with (mcWorld[2]) {
moveTo(135, 80);
lineTo(185, 80);
lineTo(185, 130);
lineTo(135, 130);
endFill();
}
with (mcWorldBed[0]) {
lineStyle(2, 0, 50);
beginFill(10066329);
moveTo(-20, 1030);
lineTo(180, 1030);
lineTo(180, 1670);
lineTo(-20, 1670);
endFill();
}
with (mcWorldBed[1]) {
lineStyle(2, 0, 50);
beginFill(10066329);
moveTo(200, 1030);
lineTo(400, 1030);
lineTo(400, 1670);
lineTo(200, 1670);
endFill();
}
with (mcWorldBed[2]) {
lineStyle(2, 0, 50);
beginFill(10066329);
moveTo(420, 1030);
lineTo(620, 1030);
lineTo(620, 1670);
lineTo(420, 1670);
endFill();
}
heroMinX = -6;
heroMaxX = 25;
heroMinY = -6;
heroMaxY = 8;
setHeroPosition(300, 300);
gotoAndStop (50);
Frame 35
scInvestment = 18;
with (mcPlatform) {
moveTo(0, -200);
beginFill(1991453, 30);
lineTo(-200, -200);
lineTo(-200, 1300);
lineTo(800, 1300);
lineTo(800, -200);
lineTo(0, -200);
lineTo(0, 0);
lineTo(600, 0);
lineTo(600, 1100);
lineTo(0, 1100);
endFill();
moveTo(800, -200);
beginFill(1991453, 30);
lineTo(2300, -200);
lineTo(2300, 1300);
lineTo(800, 1300);
lineTo(800, 1100);
lineTo(2100, 1100);
lineTo(2100, 0);
lineTo(800, 0);
endFill();
lineStyle(2, 0);
moveTo(100, 50);
beginFill(11176106);
lineTo(200, 50);
lineTo(200, 150);
lineTo(100, 150);
endFill();
moveTo(1840, 50);
beginFill(11176106);
lineTo(1940, 50);
lineTo(1940, 150);
lineTo(1840, 150);
endFill();
moveTo(150, 500);
beginFill(14540253);
lineTo(440, 210);
lineTo(540, 450);
lineTo(250, 740);
endFill();
}
mcWorldBed[0].lineStyle(2, worldColor[0], 100);
with (mcWorldBed[0]) {
moveTo(170, 500);
beginFill(15658734);
lineTo(240, 430);
lineTo(340, 630);
lineTo(270, 700);
endFill();
}
mcWorldBed[1].lineStyle(2, worldColor[1], 100);
with (mcWorldBed[1]) {
moveTo(260, 410);
beginFill(15658734);
lineTo(330, 340);
lineTo(430, 540);
lineTo(360, 610);
endFill();
}
mcWorldBed[2].lineStyle(2, worldColor[2], 100);
with (mcWorldBed[2]) {
moveTo(350, 320);
beginFill(15658734);
lineTo(420, 250);
lineTo(520, 450);
lineTo(450, 520);
endFill();
}
mcWorld[0].moveTo(1720, 50);
mcWorld[0].beginFill(worldColor[0], 40);
with (mcWorld[0]) {
lineTo(1820, 50);
lineTo(1820, 170);
lineTo(1940, 170);
lineTo(1940, 270);
lineTo(1720, 270);
endFill();
}
mcWorld[1].moveTo(1600, 50);
mcWorld[1].beginFill(worldColor[1], 40);
with (mcWorld[1]) {
lineTo(1700, 50);
lineTo(1700, 270);
lineTo(1600, 270);
endFill();
}
mcWorld[2].moveTo(1720, 290);
mcWorld[2].beginFill(worldColor[2], 40);
with (mcWorld[2]) {
lineTo(1940, 290);
lineTo(1940, 390);
lineTo(1720, 390);
endFill();
}
heroMinX = -4;
heroMaxX = 10;
heroMinY = -4;
heroMaxY = 14;
setHeroPosition(300, 300);
var i = 0;
while (i < 3) {
createEggStealer(100 + (i * 150), -700, i + 1);
createEggStealer(100 + (i * 150), 1400, i + 1);
createEggStealer(-700, 150 + (i * 150), i + 1);
i++;
}
createBiter(1300, 100, 1);
createBiter(1250, 200, 2);
createBiter(1200, 300, 3);
var i = 0;
while (i < 3) {
createBiter(1300 + (150 * i), 800, i + 1);
i++;
}
gotoAndStop (50);
Frame 36
scInvestment = 40;
mcWorldBed[0].lineStyle(2, worldColor[0], 100);
with (mcWorldBed[0]) {
moveTo(1100, 750);
beginFill(15658734);
lineTo(1300, 750);
lineTo(1300, 950);
lineTo(1100, 950);
endFill();
}
mcWorldBed[1].lineStyle(2, worldColor[1], 100);
with (mcWorldBed[1]) {
moveTo(500, 750);
beginFill(15658734);
lineTo(700, 750);
lineTo(700, 950);
lineTo(500, 950);
endFill();
}
mcWorldBed[2].lineStyle(2, worldColor[2], 100);
with (mcWorldBed[2]) {
moveTo(-100, 750);
beginFill(15658734);
lineTo(100, 750);
lineTo(100, 950);
lineTo(-100, 950);
endFill();
}
with (mcPlatform) {
moveTo(-400, -500);
beginFill(1991453, 30);
lineTo(-400, 1200);
lineTo(400, 1200);
lineTo(400, -500);
lineTo(-200, -500);
lineTo(-200, -300);
lineTo(200, -300);
lineTo(200, 1000);
lineTo(-200, 1000);
lineTo(-200, -500);
endFill();
moveTo(400, -500);
beginFill(1991453, 30);
lineTo(1000, -500);
lineTo(1000, 1200);
lineTo(400, 1200);
lineTo(400, 1000);
lineTo(800, 1000);
lineTo(800, -300);
lineTo(400, -300);
endFill();
moveTo(1000, -500);
beginFill(1991453, 30);
lineTo(1600, -500);
lineTo(1600, 1200);
lineTo(1000, 1200);
lineTo(1000, 1000);
lineTo(1400, 1000);
lineTo(1400, -300);
lineTo(1000, -300);
endFill();
moveTo(-400, 1200);
beginFill(1991453, 30);
lineTo(-400, 3100);
lineTo(1600, 3100);
lineTo(1600, 1200);
lineTo(1400, 1200);
lineTo(1400, 2900);
lineTo(-200, 2900);
lineTo(-200, 1200);
endFill();
}
createBiter(750, 1700, 1);
createBiter(850, 1800, 2);
createBiter(950, 1700, 3);
createBabyEater(-1150, 1800, 1);
createBabyEater(-1150, 1900, 2);
createBabyEater(-1150, 2000, 3);
createBabyEater(2850, 1800, 1);
createBabyEater(2850, 1900, 2);
createBabyEater(2850, 2000, 3);
var i = 1;
while (i < 4) {
createEggStealer(i * 200, -500, i);
createEggStealer((i * 200) + 100, -700, i);
i++;
}
heroMinX = -3;
heroMaxX = 9;
heroMinY = -4;
heroMaxY = 16;
setHeroPosition(0, 0);
gotoAndStop (50);
Frame 37
gotoAndStop (24);
Frame 45
heroIsVisible = false;
theAura.vActive = false;
isInPlay = false;
tutMode = false;
clearAllSystems();
clearWorld();
setAxisVisibility(false);
setAlpha(100);
Instance of Symbol 344 MovieClip in Frame 45
onClipEvent (load) {
gotoAndStop(_root.areaNumber);
}
Instance of Symbol 144 MovieClip in Frame 45
onClipEvent (enterFrame) {
_root.decreaseVolume("summ", 5, 0);
_root.increaseVolume("menu", 2, 100);
}
Instance of Symbol 264 MovieClip in Frame 45
onClipEvent (load) {
var vWait = 20;
}
onClipEvent (enterFrame) {
if (vWait > 0) {
vWait--;
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Instance of Symbol 245 MovieClip in Frame 45
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 50
setAlpha(100);
theHero.addArm();
while (theHero.noOfArms > 1) {
theHero.removeArm();
}
theHero._x = Stage.width / 2;
theHero._y = Stage.height / 2;
resetAxes();
setAxisVisibility(true);
heroIsVisible = true;
theAura.vActive = true;
isInPlay = true;
tutMode = false;
displayScore();
gotoAndStop(99 + areaNumber);
Instance of Symbol 373 MovieClip "gameMenu" in Frame 51
onClipEvent (load) {
var vESC = false;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
vESC = true;
} else if (vESC) {
vESC = false;
switch (_currentframe) {
case 1 :
_root.isInPlay = false;
_root.theAura.vActive = false;
_root.setAlpha(0);
_root.setAxisVisibility(false);
gotoAndStop (2);
break;
case 2 :
_root.isInPlay = true;
_root.theAura.vActive = true;
_root.setAlpha(100);
_root.setAxisVisibility(true);
gotoAndStop (1);
}
}
}
Frame 60
Instance of Symbol 377 MovieClip in Frame 60
onClipEvent (load) {
function fDim() {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
function fBright() {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
gotoAndStop (1);
_alpha = 0;
var vWait = 0;
}
onClipEvent (enterFrame) {
vWait++;
if (vWait > 160) {
_root.gotoAndStop(61);
} else if (vWait > 140) {
fDim();
} else if (vWait > 100) {
fBright();
} else if (vWait > 80) {
gotoAndStop (2);
} else if (vWait > 60) {
fDim();
} else if (vWait > 20) {
fBright();
}
}
Instance of Symbol 144 MovieClip in Frame 60
onClipEvent (enterFrame) {
_root.decreaseVolume("menu", 5, 0);
}
Instance of Symbol 380 MovieClip in Frame 60
onClipEvent (load) {
var vESC = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
vESC = true;
} else if (vESC) {
vESC = false;
_root.gotoAndPlay(24);
}
}
Frame 61
heroMinX = -3;
heroMaxX = 9;
heroMinY = -3;
heroMaxY = 8;
setHeroPosition(300, 250);
resetAxes();
scInvestment = 50;
mcWorld[0]._alpha = 20;
mcPlatform._alpha = 20;
mcWorldBed[0]._alpha = 20;
mcPlatform.lineStyle(2, 0);
mcPlatform.moveTo(100, 100);
mcPlatform.lineTo(500, 100);
mcPlatform.lineTo(500, 400);
mcPlatform.lineTo(100, 400);
mcPlatform.lineTo(100, 100);
while (theHero.noOfArms > 1) {
theHero.removeArm();
}
theHero.scramble();
heroIsVisible = true;
isInPlay = true;
tutMode = true;
sndBubbles.setVolume(100);
Instance of Symbol 387 MovieClip in Frame 61
onClipEvent (load) {
var vWait = 40;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(62);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Instance of Symbol 394 MovieClip in Frame 62
onClipEvent (load) {
gotoAndStop (1);
var vWait = 40;
var FN = 1;
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
vWait = 120;
FN++;
if (FN == 2) {
vWait = 80;
}
if (FN >= 4) {
_root.gotoAndStop(63);
} else {
gotoAndStop(FN);
}
}
}
Instance of Symbol 401 MovieClip in Frame 63
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 3) {
vWait = 140;
} else if (FN > 3) {
_root.gotoAndStop(64);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Instance of Symbol 408 MovieClip in Frame 64
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(65);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Instance of Symbol 415 MovieClip in Frame 65
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(66);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Frame 66
mcWorld[0].beginFill(worldColor[0]);
mcWorld[0].moveTo(110, 110);
mcWorld[0].lineTo(210, 110);
mcWorld[0].lineTo(210, 390);
mcWorld[0].lineTo(110, 390);
mcWorld[0].endFill();
Instance of Symbol 423 MovieClip in Frame 66
onClipEvent (load) {
var vWait = 80;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 2) {
vWait = 20;
gotoAndStop(FN);
} else if (FN == 3) {
vWait = 200;
gotoAndStop(FN);
} else {
_root.gotoAndStop(67);
}
}
}
Instance of Symbol 428 MovieClip in Frame 67
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(68);
} else {
vWait = 40;
}
gotoAndStop(FN);
}
}
Instance of Symbol 435 MovieClip in Frame 68
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(69);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Instance of Symbol 442 MovieClip in Frame 69
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(70);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Frame 70
mcWorldBed[0].lineStyle(3, worldColor[0]);
mcWorldBed[0].beginFill(15654382);
mcWorldBed[0].moveTo(490, 110);
mcWorldBed[0].lineTo(290, 110);
mcWorldBed[0].lineTo(290, 390);
mcWorldBed[0].lineTo(490, 390);
mcWorldBed[0].endFill();
Instance of Symbol 448 MovieClip in Frame 70
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 400;
} else if (FN > 4) {
_root.gotoAndStop(71);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Instance of Symbol 454 MovieClip in Frame 71
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 160;
} else if (FN > 4) {
_root.gotoAndStop(72);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Instance of Symbol 461 MovieClip in Frame 72
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(73);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Frame 73
theAura.vActive = true;
Instance of Symbol 468 MovieClip in Frame 73
onClipEvent (load) {
var vWait = 20;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(74);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Instance of Symbol 478 MovieClip in Frame 74
onClipEvent (load) {
var vWait = 120;
var FN = 1;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
FN++;
if (FN == 4) {
vWait = 120;
} else if (FN > 4) {
_root.gotoAndStop(75);
} else {
vWait = 20;
}
gotoAndStop(FN);
}
}
Instance of Symbol 484 MovieClip in Frame 75
onClipEvent (load) {
var vWait = 600;
}
onClipEvent (enterFrame) {
vWait--;
if (vWait <= 0) {
_root.gotoAndStop(24);
}
}
Frame 80
setAlpha(0);
mcSummary._visible = true;
Instance of Symbol 266 MovieClip in Frame 80
onClipEvent (load) {
_x = (Stage.width / 2);
_y = -800;
_alpha = 0;
var vTheta = 0;
}
onClipEvent (enterFrame) {
if (_y < -40) {
_y = (_y + 20);
} else {
_y = -38;
_x = ((Stage.width / 2) + ((Stage.width / 2) * Math.sin(vTheta)));
vTheta = vTheta + 0.0122718463030851;
if (vTheta > (Math.PI*2)) {
vTheta = vTheta - (Math.PI*2);
}
}
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 485 MovieClip in Frame 80
onClipEvent (load) {
_x = (Stage.width + 100);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_x > -5) {
_x = (_x - 20);
} else {
_x = -5;
}
if (_alpha < 100) {
_alpha = (_alpha + 4);
}
}
Instance of Symbol 494 MovieClip in Frame 80
onClipEvent (load) {
var vOver = false;
var vCanCont = true;
if (_root.scReturns < _root.minReturns[_root.areaNumber - 1]) {
vCanCont = false;
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (vCanCont) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.areaNumber++;
_root.scScore = _root.scScore + (_root.scReturns + _root.scBonus);
_root.setAlpha(100);
if (_root.areaNumber == 7) {
_root.gotoAndStop(90);
} else {
_root.gotoAndStop(45);
}
}
}
Instance of Symbol 503 MovieClip in Frame 80
onClipEvent (load) {
var vOver = false;
var vWait = 150;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_currentframe == 4) {
vWait--;
if (vWait == 0) {
vWait = 150;
gotoAndStop (1);
}
} else if (_currentframe != 3) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
onClipEvent (mouseUp) {
if (_currentframe != 3) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.lsoGameData.data.scScore = (_root.scScore + _root.scReturns) + _root.scBonus;
_root.lsoGameData.data.areaNumber = _root.areaNumber + 1;
_root.cookieIsPresent = true;
if (_root.lsoGameData.flush()) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
}
}
Instance of Symbol 508 MovieClip in Frame 80
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.setAlpha(100);
_root.gotoAndStop(30);
}
}
Instance of Symbol 515 MovieClip "obSumData" in Frame 80
onClipEvent (load) {
var vTargetWidth = _width;
_width = 10;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_width < vTargetWidth) {
_width = (_width + 20);
}
if (Math.abs(_width - vTargetWidth) < 20) {
_width = vTargetWidth;
}
if (_alpha < 100) {
_alpha = (_alpha + 4);
}
}
Instance of Symbol 144 MovieClip in Frame 80
onClipEvent (enterFrame) {
_root.increaseVolume("summ", 2, 100);
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSA._y - _root._ymouse, _root.tSA._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSA._x - _root._xmouse, 2) + Math.pow(_root.tSA._y - _root._ymouse, 2));
_rotation = _root.tSA._rotation;
_x = (_root.tSA._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSA._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSB._y - _root._ymouse, _root.tSB._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSB._x - _root._xmouse, 2) + Math.pow(_root.tSB._y - _root._ymouse, 2));
_rotation = _root.tSB._rotation;
_x = (_root.tSB._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSB._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSC._y - _root._ymouse, _root.tSC._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSC._x - _root._xmouse, 2) + Math.pow(_root.tSC._y - _root._ymouse, 2));
_rotation = _root.tSC._rotation;
_x = (_root.tSC._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSC._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSD._y - _root._ymouse, _root.tSD._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSD._x - _root._xmouse, 2) + Math.pow(_root.tSD._y - _root._ymouse, 2));
_rotation = _root.tSD._rotation;
_x = (_root.tSD._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSD._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSE._y - _root._ymouse, _root.tSE._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSE._x - _root._xmouse, 2) + Math.pow(_root.tSE._y - _root._ymouse, 2));
_rotation = _root.tSE._rotation;
_x = (_root.tSE._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSE._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSF._y - _root._ymouse, _root.tSF._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSF._x - _root._xmouse, 2) + Math.pow(_root.tSF._y - _root._ymouse, 2));
_rotation = _root.tSF._rotation;
_x = (_root.tSF._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSF._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSG._y - _root._ymouse, _root.tSG._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSG._x - _root._xmouse, 2) + Math.pow(_root.tSG._y - _root._ymouse, 2));
_rotation = _root.tSG._rotation;
_x = (_root.tSG._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSG._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSH._y - _root._ymouse, _root.tSH._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSH._x - _root._xmouse, 2) + Math.pow(_root.tSH._y - _root._ymouse, 2));
_rotation = _root.tSH._rotation;
_x = (_root.tSH._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSH._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSI._y - _root._ymouse, _root.tSI._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSI._x - _root._xmouse, 2) + Math.pow(_root.tSI._y - _root._ymouse, 2));
_rotation = _root.tSI._rotation;
_x = (_root.tSI._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSI._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSJ._y - _root._ymouse, _root.tSJ._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSJ._x - _root._xmouse, 2) + Math.pow(_root.tSJ._y - _root._ymouse, 2));
_rotation = _root.tSJ._rotation;
_x = (_root.tSJ._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSJ._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSK._y - _root._ymouse, _root.tSK._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSK._x - _root._xmouse, 2) + Math.pow(_root.tSK._y - _root._ymouse, 2));
_rotation = _root.tSK._rotation;
_x = (_root.tSK._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSK._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip in Frame 80
onClipEvent (enterFrame) {
var vDir = Math.atan2(_root.tSL._y - _root._ymouse, _root.tSL._x - _root._xmouse);
var vDis = Math.sqrt(Math.pow(_root.tSL._x - _root._xmouse, 2) + Math.pow(_root.tSL._y - _root._ymouse, 2));
_rotation = _root.tSL._rotation;
_x = (_root.tSL._x + ((0.2 * vDis) * Math.cos(vDir)));
_y = (_root.tSL._y + ((0.2 * vDis) * Math.sin(vDir)));
}
Instance of Symbol 242 MovieClip "tSD" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSA" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = ((((((((((dx + _root.tSB.dx) + _root.tSC.dx) + _root.tSD.dx) + _root.tSE.dx) + _root.tSF.dx) + _root.tSG.dx) + _root.tSH.dx) + _root.tSI.dx) + _root.tSJ.dx) + _root.tSK.dx) + _root.tSL.dx;
meanDx = meanDx / 12;
meanDy = ((((((((((dy + _root.tSB.dy) + _root.tSC.dy) + _root.tSD.dy) + _root.tSE.dy) + _root.tSF.dy) + _root.tSG.dy) + _root.tSH.dy) + _root.tSI.dy) + _root.tSJ.dy) + _root.tSK.dy) + _root.tSL.dy;
meanDy = meanDy / 12;
meanX = ((((((((((_x + _root.tSB._x) + _root.tSC._x) + _root.tSD._x) + _root.tSE._x) + _root.tSF._x) + _root.tSG._x) + _root.tSH._x) + _root.tSI._x) + _root.tSJ._x) + _root.tSK._x) + _root.tSL._x;
meanX = meanX / 12;
meanY = ((((((((((_y + _root.tSB._y) + _root.tSC._y) + _root.tSD._y) + _root.tSE._y) + _root.tSF._y) + _root.tSG._y) + _root.tSH._y) + _root.tSI._y) + _root.tSJ._y) + _root.tSK._y) + _root.tSL._y;
meanY = meanY / 12;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
vDir = Math.atan2((Stage.height / 2) - _y, (Stage.width / 2) - _x);
if (vDis > 50) {
ddx = ddx + (0.8 * Math.cos(vDir));
ddy = ddy + (0.8 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 5) {
dx = 5;
}
if (dx < -5) {
dx = -5;
}
if (dy > 5) {
dy = 5;
}
if (dy < -5) {
dy = -5;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSB" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.8 * Math.cos(vDir));
ddy = ddy + (0.8 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSE" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.02 * meanDx);
ddy = ddy + (0.02 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 14) {
dx = 14;
}
if (dx < -14) {
dx = -14;
}
if (dy > 14) {
dy = 14;
}
if (dy < -14) {
dy = -14;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSC" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSF" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.8 * Math.cos(vDir));
ddy = ddy + (0.8 * Math.sin(vDir));
}
ddx = ddx + (0.02 * meanDx);
ddy = ddy + (0.02 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 14) {
dx = 14;
}
if (dx < -14) {
dx = -14;
}
if (dy > 14) {
dy = 14;
}
if (dy < -14) {
dy = -14;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSJ" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
vDir = Math.atan2((Stage.height / 2) - _y, (Stage.width / 2) - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.02 * meanDx);
ddy = ddy + (0.02 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSG" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + Math.cos(vDir);
ddy = ddy + Math.sin(vDir);
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 12) {
dx = 12;
}
if (dx < -12) {
dx = -12;
}
if (dy > 12) {
dy = 12;
}
if (dy < -12) {
dy = -12;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSH" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSK" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
vDir = Math.atan2((Stage.height / 2) - _y, (Stage.width / 2) - _x);
if (vDis > 50) {
ddx = ddx + (0.6 * Math.cos(vDir));
ddy = ddy + (0.6 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSI" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - _root.tSA._x, 2) + Math.pow(_y - _root.tSA._y, 2));
vDir = Math.atan2(_root.tSA._y - _y, _root.tSA._x - _x);
if (vDis > 50) {
ddx = ddx + (0.4 * Math.cos(vDir));
ddy = ddy + (0.4 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 10) {
dx = 10;
}
if (dx < -10) {
dx = -10;
}
if (dy > 10) {
dy = 10;
}
if (dy < -10) {
dy = -10;
}
shiftKey(dx, dy);
}
Instance of Symbol 242 MovieClip "tSL" in Frame 80
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop(Math.ceil(Math.random() * 3));
var dx = 0;
var dy = 0;
var meanDx = 0;
var meanDy = 0;
var meanX = 0;
var meanY = 0;
}
onClipEvent (enterFrame) {
meanDx = _root.tSA.meanDx;
meanDy = _root.tSA.meanDy;
meanX = _root.tSA.meanX;
meanY = _root.tSA.meanY;
var ddx = 0;
var ddy = 0;
var vDis = 0;
var vDir = 0;
vDis = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
vDir = Math.atan2((Stage.height / 2) - _y, (Stage.width / 2) - _x);
if (vDis > 50) {
ddx = ddx + (0.8 * Math.cos(vDir));
ddy = ddy + (0.8 * Math.sin(vDir));
}
ddx = ddx + (0.01 * meanDx);
ddy = ddy + (0.01 * meanDy);
vDis = Math.sqrt(Math.pow(_x - meanX, 2) + Math.pow(_y - meanY, 2));
vDir = Math.atan2(_y - meanY, _x - meanX);
if (vDis > 100) {
ddx = ddx - (0.15 * Math.cos(vDir));
ddy = ddy - (0.15 * Math.sin(vDir));
}
if (vDis < 20) {
ddx = ddx + (0.3 * Math.cos(vDir));
ddy = ddy + (0.3 * Math.sin(vDir));
}
dx = dx + ddx;
dy = dy + ddy;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (dx > 16) {
dx = 16;
}
if (dx < -16) {
dx = -16;
}
if (dy > 16) {
dy = 16;
}
if (dy < -16) {
dy = -16;
}
shiftKey(dx, dy);
}
Instance of Symbol 245 MovieClip in Frame 80
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 90
txtFinalScore.selectable = false;
txtFinalScore.text = "Final score: " + scScore;
Instance of Symbol 266 MovieClip in Frame 90
onClipEvent (load) {
_x = (Stage.width / 2);
_y = -800;
_alpha = 0;
var vTheta = 0;
}
onClipEvent (enterFrame) {
if (_y < -40) {
_y = (_y + 20);
} else {
_y = -38;
_x = ((Stage.width / 2) + ((Stage.width / 2) * Math.sin(vTheta)));
vTheta = vTheta + 0.0122718463030851;
if (vTheta > (Math.PI*2)) {
vTheta = vTheta - (Math.PI*2);
}
}
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 517 MovieClip in Frame 90
onClipEvent (enterFrame) {
_x = (_x - 20);
if (_x < (-_width)) {
_x = Stage.width;
_y = (Math.random() * (Stage.height - (2 * _height)));
}
}
Instance of Symbol 144 MovieClip in Frame 90
onClipEvent (load) {
_root.setAlpha(0);
var vWait = 12;
}
onClipEvent (enterFrame) {
_root.decreaseVolume("summ", 2, 0);
_root.decreaseVolume("menu", 2, 0);
if (vWait > 0) {
vWait--;
} else {
_root.increaseVolume("boss", 1, 50);
vWait = 2;
}
}
Instance of Symbol 522 MovieClip in Frame 90
onClipEvent (load) {
var targetWidth = _width;
var targetHeight = _height;
var deltaW = (_width / 30);
var deltaH = (_height / 30);
_alpha = 0;
_width = deltaW;
_height = deltaH;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width < targetWidth) {
_width = (_width + deltaW);
}
if (_height < targetHeight) {
_height = (_height + deltaH);
}
}
Instance of Symbol 525 MovieClip in Frame 90
onClipEvent (load) {
var vESC = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
vESC = true;
} else if (vESC) {
vESC = false;
_root.gotoAndPlay(24);
}
}
Instance of Symbol 372 MovieClip in Frame 90
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, false);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
getURL ("http://www.armorgames.com", "_blank");
}
}
Instance of Symbol 264 MovieClip in Frame 90
onClipEvent (load) {
var vWait = 20;
}
onClipEvent (enterFrame) {
if (vWait > 0) {
vWait--;
} else if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Frame 100
Instance of Symbol 530 MovieClip "gDF" in Frame 100
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + (1.5 * dx));
_y = (_y + (1.5 * dy));
}
swapDepths(21);
_x = 850;
_y = 450;
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
var vDis = Math.sqrt(Math.pow((Stage.width / 2) - _x, 2) + Math.pow((Stage.height / 2) - _y, 2));
vDis = Math.round(((200 - vDis) / 2) - 10);
if (vDis < 0) {
vDis = 0;
}
_alpha = vDis;
}
if (_root._currentframe != 100) {
this.removeMovieClip();
}
}
Instance of Symbol 532 MovieClip "gEF" in Frame 100
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + (1.5 * dx));
_y = (_y + (1.5 * dy));
}
swapDepths(20);
_x = 300;
_y = 250;
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
var vDis = Math.sqrt(Math.pow((Stage.width / 2) - _x, 2) + Math.pow((Stage.height / 2) - _y, 2));
vDis = Math.round(((200 - vDis) / 2) - 10);
if (vDis < 0) {
vDis = 0;
}
_alpha = vDis;
}
if (_root._currentframe != 100) {
this.removeMovieClip();
}
}
Instance of Symbol 535 MovieClip "theFlash" in Frame 100
onClipEvent (load) {
function flashAt(vX, vY) {
_x = vX;
_y = vY;
_visible = true;
gotoAndPlay (1);
}
_visible = false;
}
Instance of Symbol 538 MovieClip "theTimer" in Frame 100
onClipEvent (load) {
function setTimer(FN) {
vTime = FN;
}
swapDepths(150);
txtTimer.selectable = false;
txtTimer.text = "0";
var vTime = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if ((_root._currentframe < 100) || (_root._currentframe > 105)) {
this.removeMovieClip();
}
if (_root.isInPlay) {
_x = _root.theHero._x;
_y = (_root.theHero._y - 40);
if (vTime > 0) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
vTime = vTime - 1;
txtTimer.text = Math.ceil(vTime / 24);
} else {
txtTimer.text = "0";
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
}
}
Instance of Symbol 373 MovieClip "gameMenu" in Frame 100
onClipEvent (load) {
var vSensitive = true;
var vESC = false;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (vSensitive) {
if (Key.isDown(27)) {
vESC = true;
} else if (vESC) {
vESC = false;
switch (_currentframe) {
case 1 :
_root.decreaseVolume("game", 100, 0);
_root.decreaseVolume("menu", 100, 0);
_root.isInPlay = false;
_root.theAura.vActive = false;
_root.setAlpha(0);
_root.setAxisVisibility(false);
gotoAndStop (2);
break;
case 2 :
_root.isInPlay = true;
_root.theAura.vActive = true;
_root.setAlpha(100);
_root.setAxisVisibility(true);
gotoAndStop (1);
}
}
}
}
Instance of Symbol 144 MovieClip in Frame 100
onClipEvent (load) {
var vWait = 12;
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
_root.decreaseVolume("menu", 2, 0);
_root.decreaseVolume("summ", 5, 0);
if (vWait > 0) {
vWait--;
} else {
_root.increaseVolume("game", 1, 20);
vWait = 2;
}
}
}
Instance of Symbol 144 MovieClip "theElectric" in Frame 100
onClipEvent (load) {
function setShock() {
vWait = 12;
vShock = true;
}
var vShock = false;
var vWait = 0;
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (vWait > 0) {
vWait--;
if (vWait == 0) {
vShock = false;
}
}
if (vShock) {
_root.increaseVolume("buzz", 5, 60);
} else {
_root.decreaseVolume("buzz", 5, 0);
}
} else {
_root.decreaseVolume("buzz", 100, 0);
}
}
Frame 101
Instance of Symbol 551 MovieClip "level2Key" in Frame 101
onClipEvent (load) {
function addBaby(vC) {
if (vWait == 0) {
vWait = 140;
vP = 0;
vG = 0;
vY = 0;
gotoAndStop (2);
}
switch (vC) {
case 1 :
vP++;
break;
case 2 :
vY++;
break;
case 3 :
vG++;
}
txtP.text = (vTP - vP) + "x";
txtY.text = (vTY - vY) + "x";
txtG.text = (vTG - vG) + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
}
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
_x = 800;
_y = 300;
var vTP = 0;
var vTG = 0;
var vTY = 0;
var vP = 0;
var vG = 0;
var vY = 0;
var vWait = 0;
while ((((vTP + vTY) + vTG) >= 5) || (((vTP + vTY) + vTG) < 3)) {
vTP = 1 + Math.floor(Math.random() * 3);
vTY = 1 + Math.floor(Math.random() * 3);
vTG = 1 + Math.floor(Math.random() * 3);
}
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtCountdown.text = " ";
var tf = new TextFormat();
tf.font = "Verdana";
tf.bold = true;
tf.color = 16777215 /* 0xFFFFFF */;
tf.size = 14;
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (_currentframe != 3) {
if (vWait > 0) {
vWait--;
if (vWait == 0) {
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
txtCountdown.text = " ";
if (((vP == vTP) && (vG == vTG)) && (vY == vTY)) {
var i = 0;
while (i < 10) {
_root.createParticle(_x + (_width * Math.random()), _y + (_height * Math.random()), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
i++;
}
_root.increaseVolume("bubb", 100, 100);
with (_root.mcPlatform) {
clear();
lineStyle(2, 0);
moveTo(600, 28);
beginFill(11189179);
lineTo(600, 372);
lineTo(300, 200);
endFill();
moveTo(-50, 1000);
beginFill(14535901);
lineTo(750, 1000);
lineTo(750, 1400);
lineTo(-50, 1400);
endFill();
lineStyle(1, 0, 0);
moveTo(-1100, -800);
beginFill(1991453, 30);
lineTo(-1100, 2100);
lineTo(1700, 2100);
lineTo(1700, -800);
lineTo(-900, -800);
lineTo(-900, -600);
lineTo(1500, -600);
lineTo(1500, 1900);
lineTo(-900, 1900);
lineTo(-900, -800);
lineTo(-1100, -800);
endFill();
lineStyle(2, 0, 100);
moveTo(-40, 1010);
beginFill(14540253);
lineTo(100, 1010);
lineTo(100, 1390);
lineTo(-40, 1390);
endFill();
moveTo(600, 1010);
beginFill(14540253);
lineTo(740, 1010);
lineTo(740, 1390);
lineTo(600, 1390);
endFill();
lineStyle(3, 0, 50);
moveTo(600, 372);
lineTo(600, 390);
lineTo(670, 390);
lineTo(670, 1000);
moveTo(300, 200);
lineTo(280, 200);
lineTo(280, 400);
lineTo(660, 400);
lineTo(660, 1000);
moveTo(600, 28);
lineTo(600, 10);
lineTo(270, 10);
lineTo(270, 410);
lineTo(650, 410);
lineTo(650, 1000);
}
var i = 0;
while (i < 10) {
_root.createParticle(_x + (_width * Math.random()), _y + (_height * Math.random()), (6 * Math.random()) - 3, (6 * Math.random()) - 3, 15 + Math.floor(Math.random() * 15), 1);
i++;
}
_root.createReward(4, _x + (_width / 2), _y + (_height / 2));
_root.treasureSign._visible = false;
_root.heroMaxY = 20;
gotoAndStop (3);
} else {
gotoAndStop (1);
}
} else {
txtCountdown.text = ((Math.floor(vWait / 24) + ":") + Math.floor(((vWait % 24) / 24) * 10)) + Math.floor(Math.random() * 10);
}
}
}
}
}
Instance of Symbol 554 MovieClip "treasureSign" in Frame 101
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
}
Frame 102
Instance of Symbol 561 MovieClip "level3Fields" in Frame 102
onClipEvent (load) {
function addBaby(vC) {
if (vWait == 0) {
vWait = 140;
vP = 0;
vG = 0;
vY = 0;
gotoAndStop (2);
}
switch (vC) {
case 1 :
vP++;
break;
case 2 :
vY++;
break;
case 3 :
vG++;
}
txtP.text = (vTP - vP) + "x";
txtY.text = (vTY - vY) + "x";
txtG.text = (vTG - vG) + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
}
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
_x = -180;
_y = -40;
var vTP = 0;
var vTG = 0;
var vTY = 0;
var vP = 0;
var vG = 0;
var vY = 0;
var vWait = 0;
while (((vTP + vTY) + vTG) != 5) {
vTP = 1 + Math.floor(Math.random() * 3);
vTY = 1 + Math.floor(Math.random() * 3);
vTG = 1 + Math.floor(Math.random() * 3);
}
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtCountdown.text = " ";
var tf = new TextFormat();
tf.font = "Verdana";
tf.bold = true;
tf.color = 16777215 /* 0xFFFFFF */;
tf.size = 14;
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (_currentframe != 3) {
if (vWait > 0) {
vWait--;
if (vWait == 0) {
txtCountdown.text = " ";
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
if (((vP == vTP) && (vG == vTG)) && (vY == vTY)) {
_root.bugSign._visible = false;
var i = 0;
while (i < 10) {
_root.createParticle(_x + (_width * Math.random()), _y + (_height * Math.random()), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
i++;
}
_root.increaseVolume("bubb", 100, 100);
with (_root.mcWorldBed[0]) {
lineStyle(2, 0, 100);
beginFill(13421772);
moveTo(200, 110);
lineTo(380, 110);
lineTo(380, 210);
lineTo(200, 210);
endFill();
}
with (_root.mcWorldBed[1]) {
lineStyle(2, 0, 100);
beginFill(13421772);
moveTo(200, 230);
lineTo(380, 230);
lineTo(380, 340);
lineTo(200, 340);
endFill();
}
with (_root.mcWorldBed[2]) {
lineStyle(2, 0, 100);
beginFill(13421772);
moveTo(10, 230);
lineTo(180, 230);
lineTo(180, 340);
lineTo(10, 340);
endFill();
}
var i = 1;
while (i < 4) {
_root.createEggStealer((_x + ((2 * _width) * Math.random())) - _width, (_y + ((2 * _height) * Math.random())) - _height, i);
var j = 0;
while (j < 2) {
_root.createBabyEater((_x + ((2 * _width) * Math.random())) - _width, (_y + ((2 * _height) * Math.random())) - _height, i);
j++;
}
i++;
}
gotoAndStop (3);
} else {
gotoAndStop (1);
}
} else {
txtCountdown.text = ((Math.floor(vWait / 24) + ":") + Math.floor(((vWait % 24) / 24) * 10)) + Math.floor(Math.random() * 10);
}
}
}
}
}
Instance of Symbol 564 MovieClip "bugSign" in Frame 102
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
}
Frame 103
Instance of Symbol 572 MovieClip "level4BigFields" in Frame 103
onClipEvent (load) {
function addBaby(vC) {
if (vWait == 0) {
vWait = 240;
vP = 0;
vG = 0;
vY = 0;
gotoAndStop (2);
}
switch (vC) {
case 1 :
vP++;
break;
case 2 :
vY++;
break;
case 3 :
vG++;
}
txtP.text = (vTP - vP) + "x";
txtY.text = (vTY - vY) + "x";
txtG.text = (vTG - vG) + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
}
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
_x = 400;
_y = 40;
var vTP = 0;
var vTG = 0;
var vTY = 0;
var vP = 0;
var vG = 0;
var vY = 0;
var vWait = 0;
while (((vTP + vTY) + vTG) != 5) {
vTP = 1 + Math.floor(Math.random() * 3);
vTY = 1 + Math.floor(Math.random() * 3);
vTG = 1 + Math.floor(Math.random() * 3);
}
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtCountdown.text = " ";
var tf = new TextFormat();
tf.font = "Verdana";
tf.bold = true;
tf.color = 16777215 /* 0xFFFFFF */;
tf.size = 14;
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (_currentframe != 3) {
if (vWait > 0) {
vWait--;
if (vWait == 0) {
txtCountdown.text = " ";
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
if (((vP == vTP) && (vG == vTG)) && (vY == vTY)) {
var i = 0;
while (i < 10) {
_root.createParticle((_x + (_width * Math.random())) - (_width / 2), (_y + (_height * Math.random())) - (_height / 2), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
i++;
}
_root.increaseVolume("bubb", 100, 100);
with (_root.mcPlatform) {
lineStyle(2, 0);
moveTo(900, 128);
beginFill(11189179);
lineTo(900, 472);
lineTo(600, 300);
endFill();
lineStyle(3, 0, 50);
moveTo(900, 128);
lineTo(900, 70);
lineTo(195, 70);
}
_root.mcWorld[0].beginFill(_root.worldColor[0], 40);
with (_root.mcWorld[0]) {
moveTo(900, 300);
curveTo(900, 128, 750, 213);
lineTo(800, 300);
endFill();
}
_root.mcWorld[1].beginFill(_root.worldColor[1], 40);
with (_root.mcWorld[1]) {
moveTo(800, 300);
lineTo(750, 213);
curveTo(600, 300, 750, 387);
endFill();
}
_root.mcWorld[2].beginFill(_root.worldColor[2], 40);
with (_root.mcWorld[2]) {
moveTo(800, 300);
lineTo(750, 387);
curveTo(900, 472, 900, 300);
endFill();
}
var i = 1;
while (i < 4) {
var j = 0;
while (j < 3) {
_root.createEggStealer((j * 6000) - 3000, 5000 * Math.random(), i);
j++;
}
_root.createBabyEater((j * 6000) - 3000, 5000 * Math.random(), i);
i++;
}
gotoAndStop (3);
} else {
gotoAndStop (1);
}
} else {
txtCountdown.text = ((Math.floor(vWait / 24) + ":") + Math.floor(((vWait % 24) / 24) * 10)) + Math.floor(Math.random() * 10);
}
}
}
}
}
Instance of Symbol 578 MovieClip "level4Key" in Frame 103
onClipEvent (load) {
function addBaby(vC) {
if (vWait == 0) {
vWait = 400;
vP = 0;
vG = 0;
vY = 0;
gotoAndStop (2);
}
switch (vC) {
case 1 :
vP++;
break;
case 2 :
vY++;
break;
case 3 :
vG++;
}
txtP.text = (vTP - vP) + "x";
txtY.text = (vTY - vY) + "x";
txtG.text = (vTG - vG) + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
}
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
_x = 1500;
_y = 400;
var vTP = 0;
var vTG = 0;
var vTY = 0;
var vP = 0;
var vG = 0;
var vY = 0;
var vWait = 0;
while ((((vTP + vTY) + vTG) < 7) || (((vTP + vTY) + vTG) > 9)) {
vTP = 1 + Math.floor(Math.random() * 4);
vTY = 1 + Math.floor(Math.random() * 4);
vTG = 1 + Math.floor(Math.random() * 4);
}
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtCountdown.text = " ";
var tf = new TextFormat();
tf.font = "Verdana";
tf.bold = true;
tf.color = 16777215 /* 0xFFFFFF */;
tf.size = 14;
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (_currentframe != 3) {
if (vWait > 0) {
vWait--;
if (vWait == 0) {
txtCountdown.text = " ";
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
if (((vP == vTP) && (vG == vTG)) && (vY == vTY)) {
var i = 0;
while (i < 10) {
_root.createParticle((_x + (_width * Math.random())) - (_width / 2), (_y + (_height * Math.random())) - (_height / 2), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
i++;
}
_root.increaseVolume("bubb", 100, 100);
_root.theBarrier._visible = false;
_root.heroMaxY = 24;
gotoAndStop (3);
} else {
gotoAndStop (1);
}
} else {
txtCountdown.text = ((Math.floor(vWait / 24) + ":") + Math.floor(((vWait % 24) / 24) * 10)) + Math.floor(Math.random() * 10);
}
}
}
}
}
Instance of Symbol 581 MovieClip "theBarrier" in Frame 103
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
_width = 3500;
_x = -800;
_y = 550;
}
Instance of Symbol 586 MovieClip "level4Tort" in Frame 103
onClipEvent (load) {
function resetTortoise() {
gotoAndStop (1);
vTG = (vTY = (vTP = 0));
vP = (vY = (vG = 0));
vWait = 0;
while ((((vTP + vTY) + vTG) < 7) || (((vTP + vTY) + vTG) > 9)) {
vTP = 1 + Math.floor(Math.random() * 4);
vTY = 1 + Math.floor(Math.random() * 4);
vTG = 1 + Math.floor(Math.random() * 4);
}
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtCountdown.text = " ";
var _local2 = new TextFormat();
_local2.font = "Verdana";
_local2.bold = true;
_local2.color = 16777215 /* 0xFFFFFF */;
_local2.size = 14;
txtP.setTextFormat(_local2);
txtY.setTextFormat(_local2);
txtG.setTextFormat(_local2);
_root.nannySign._visible = true;
}
function addBaby(vC) {
if (vWait == 0) {
vWait = 400;
vP = 0;
vG = 0;
vY = 0;
gotoAndStop (2);
}
switch (vC) {
case 1 :
vP++;
break;
case 2 :
vY++;
break;
case 3 :
vG++;
}
txtP.text = (vTP - vP) + "x";
txtY.text = (vTY - vY) + "x";
txtG.text = (vTG - vG) + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
}
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
_x = 1500;
_y = 800;
var vTP = 0;
var vTG = 0;
var vTY = 0;
var vP = 0;
var vG = 0;
var vY = 0;
var vWait = 0;
resetTortoise();
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (_currentframe != 3) {
if (vWait > 0) {
vWait--;
if (vWait == 0) {
txtCountdown.text = " ";
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
if (((vP == vTP) && (vG == vTG)) && (vY == vTY)) {
var i = 0;
while (i < 10) {
_root.createParticle((_x + (_width * Math.random())) - (_width / 2), (_y + (_height * Math.random())) - (_height / 2), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
i++;
}
_root.increaseVolume("bubb", 100, 100);
_root.createTortoise(_x, _y);
_root.nannySign._visible = false;
gotoAndStop (3);
} else {
gotoAndStop (1);
}
} else {
txtCountdown.text = ((Math.floor(vWait / 24) + ":") + Math.floor(((vWait % 24) / 24) * 10)) + Math.floor(Math.random() * 10);
}
}
}
}
}
Instance of Symbol 590 MovieClip "nannySign" in Frame 103
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
}
Frame 104
Instance of Symbol 596 MovieClip "teleport1" in Frame 104
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop (1);
_x = 400;
_y = 800;
var dx = 1490;
var dy = -700;
var vDir = Math.atan2(dy, dx);
var vDis = Math.sqrt((dx * dx) + (dy * dy));
var vRate = 50;
var vWait = 0;
var vState = 0;
}
onClipEvent (enterFrame) {
switch (vState) {
case 0 :
var vD = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
if (vD < 80) {
if (_currentframe != 2) {
gotoAndStop (2);
}
_root.theElectric.setShock();
if (vD < 15) {
vState = 1;
vWait = vDis;
_root.theFlash.flashAt(_root.theHero._x, _root.theHero._y);
_root.gameMenu.vSensitive = false;
_root.heroIsVisible = false;
_root.theAura.vActive = false;
_root.isInPlay = false;
_root.heroMinX = -100;
_root.heroMaxX = 100;
_root.heroMinY = -100;
_root.heroMaxY = 100;
_root.shoutOut("whoa");
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
break;
case 1 :
_root.shiftEverything(vRate * Math.cos(vDir), vRate * Math.sin(vDir));
vWait = vWait - vRate;
if (vWait >= 0) {
break;
}
vState = 0;
_root.gameMenu.vSensitive = true;
_root.heroIsVisible = true;
_root.theAura.vActive = true;
_root.isInPlay = true;
_root.heroMinX = 4;
_root.heroMaxX = 25;
_root.heroMinY = -4;
_root.heroMaxY = 14;
}
}
Instance of Symbol 586 MovieClip "level5Tort" in Frame 104
onClipEvent (load) {
function resetTortoise() {
gotoAndStop (1);
vTG = (vTY = (vTP = 0));
vP = (vY = (vG = 0));
vWait = 0;
while ((((vTP + vTY) + vTG) < 7) || (((vTP + vTY) + vTG) > 9)) {
vTP = 1 + Math.floor(Math.random() * 4);
vTY = 1 + Math.floor(Math.random() * 4);
vTG = 1 + Math.floor(Math.random() * 4);
}
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtCountdown.text = " ";
var _local1 = new TextFormat();
_local1.font = "Verdana";
_local1.bold = true;
_local1.color = 16777215 /* 0xFFFFFF */;
_local1.size = 14;
txtP.setTextFormat(_local1);
txtY.setTextFormat(_local1);
txtG.setTextFormat(_local1);
}
function addBaby(vC) {
if (vWait == 0) {
vWait = 400;
vP = 0;
vG = 0;
vY = 0;
gotoAndStop (2);
}
switch (vC) {
case 1 :
vP++;
break;
case 2 :
vY++;
break;
case 3 :
vG++;
}
txtP.text = (vTP - vP) + "x";
txtY.text = (vTY - vY) + "x";
txtG.text = (vTG - vG) + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
}
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
_x = 1500;
_y = 700;
var vTP = 0;
var vTG = 0;
var vTY = 0;
var vP = 0;
var vG = 0;
var vY = 0;
var vWait = 0;
resetTortoise();
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (_currentframe != 3) {
if (vWait > 0) {
vWait--;
if (vWait == 0) {
txtCountdown.text = " ";
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
if (((vP == vTP) && (vG == vTG)) && (vY == vTY)) {
_root.createBabyEater(-1000, -1000, Math.ceil(Math.random() * 3));
var i = 0;
while (i < 10) {
_root.createParticle((_x + (_width * Math.random())) - (_width / 2), (_y + (_height * Math.random())) - (_height / 2), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
i++;
}
_root.increaseVolume("bubb", 100, 100);
_root.createTortoise(_x, _y);
gotoAndStop (3);
} else {
gotoAndStop (1);
}
} else {
txtCountdown.text = ((Math.floor(vWait / 24) + ":") + Math.floor(((vWait % 24) / 24) * 10)) + Math.floor(Math.random() * 10);
}
}
}
}
}
Instance of Symbol 596 MovieClip "teleport2" in Frame 104
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop (1);
_x = 1100;
_y = 100;
var dx = -970;
var dy = -40;
var vDir = Math.atan2(dy, dx);
var vDis = Math.sqrt((dx * dx) + (dy * dy));
var vRate = 50;
var vWait = 0;
var vState = 0;
}
onClipEvent (enterFrame) {
switch (vState) {
case 0 :
var vD = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
if (vD < 80) {
if (_currentframe != 2) {
gotoAndStop (2);
}
_root.theElectric.setShock();
if (vD < 15) {
vState = 1;
vWait = vDis;
_root.theFlash.flashAt(_root.theHero._x, _root.theHero._y);
_root.heroIsVisible = false;
_root.isInPlay = false;
_root.heroMinX = -100;
_root.heroMaxX = 100;
_root.heroMinY = -100;
_root.heroMaxY = 100;
_root.shoutOut("whoa");
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
break;
case 1 :
_root.shiftEverything(vRate * Math.cos(vDir), vRate * Math.sin(vDir));
vWait = vWait - vRate;
if (vWait >= 0) {
break;
}
vState = 0;
_root.heroIsVisible = true;
_root.isInPlay = true;
_root.heroMinX = -4;
_root.heroMaxX = 10;
_root.heroMinY = -4;
_root.heroMaxY = 14;
}
}
Frame 105
Instance of Symbol 596 MovieClip "l6teleport1" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop (1);
_x = 300;
_y = 600;
var dx = 1200;
var dy = 2200;
var vDir = Math.atan2(dy, dx);
var vDis = Math.sqrt((dx * dx) + (dy * dy));
var vRate = 50;
var vWait = 0;
var vState = 0;
}
onClipEvent (enterFrame) {
switch (vState) {
case 0 :
var vD = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
if (vD < 80) {
if (_currentframe != 2) {
gotoAndStop (2);
}
_root.theElectric.setShock();
if (vD < 15) {
vState = 1;
vWait = vDis;
_root.theFlash.flashAt(_root.theHero._x, _root.theHero._y);
_root.gameMenu.vSensitive = false;
_root.heroIsVisible = false;
_root.theAura.vActive = false;
_root.isInPlay = false;
_root.heroMinX = -100;
_root.heroMaxX = 100;
_root.heroMinY = -100;
_root.heroMaxY = 100;
_root.shoutOut("whoa");
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
break;
case 1 :
_root.shiftEverything(vRate * Math.cos(vDir), vRate * Math.sin(vDir));
vWait = vWait - vRate;
if (vWait >= 0) {
break;
}
vState = 0;
_root.gameMenu.vSensitive = true;
_root.heroIsVisible = true;
_root.theAura.vActive = true;
_root.isInPlay = true;
_root.heroMinX = -3;
_root.heroMaxX = 21;
_root.heroMinY = 11;
_root.heroMaxY = 35;
}
}
Instance of Symbol 599 MovieClip "platform1" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
txtNo.selectable = false;
txtNo.text = "1";
_x = 300;
_y = 100;
}
Instance of Symbol 599 MovieClip "platform2" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
txtNo.selectable = false;
txtNo.text = "2";
_x = 900;
_y = 100;
}
Instance of Symbol 599 MovieClip "platform3" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
txtNo.selectable = false;
txtNo.text = "3";
_x = 1500;
_y = 100;
}
Instance of Symbol 596 MovieClip "l6teleport2" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop (1);
_x = 900;
_y = 600;
var dx = -600;
var dy = 2200;
var vDir = Math.atan2(dy, dx);
var vDis = Math.sqrt((dx * dx) + (dy * dy));
var vRate = 50;
var vWait = 900;
var vState = 0;
}
onClipEvent (enterFrame) {
switch (vState) {
case 0 :
var vD = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
if (vD < 80) {
if (_currentframe != 2) {
gotoAndStop (2);
}
_root.theElectric.setShock();
if (vD < 15) {
vState = 1;
vWait = vDis;
_root.theFlash.flashAt(_root.theHero._x, _root.theHero._y);
_root.gameMenu.vSensitive = false;
_root.heroIsVisible = false;
_root.theAura.vActive = false;
_root.isInPlay = false;
_root.heroMinX = -100;
_root.heroMaxX = 100;
_root.heroMinY = -100;
_root.heroMaxY = 100;
_root.shoutOut("whoa");
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
break;
case 1 :
_root.shiftEverything(vRate * Math.cos(vDir), vRate * Math.sin(vDir));
vWait = vWait - vRate;
if (vWait >= 0) {
break;
}
vState = 0;
_root.gameMenu.vSensitive = true;
_root.heroIsVisible = true;
_root.theAura.vActive = true;
_root.isInPlay = true;
_root.heroMinX = -3;
_root.heroMaxX = 21;
_root.heroMinY = 11;
_root.heroMaxY = 35;
}
}
Instance of Symbol 596 MovieClip "l6teleport3" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop (1);
_x = 1500;
_y = 600;
var dx = -600;
var dy = 2400;
var vDir = Math.atan2(dy, dx);
var vDis = Math.sqrt((dx * dx) + (dy * dy));
var vRate = 50;
var vWait = 900;
var vState = 0;
}
onClipEvent (enterFrame) {
switch (vState) {
case 0 :
var vD = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
if (vD < 80) {
if (_currentframe != 2) {
gotoAndStop (2);
}
_root.theElectric.setShock();
if (vD < 15) {
vState = 1;
vWait = vDis;
_root.theFlash.flashAt(_root.theHero._x, _root.theHero._y);
_root.gameMenu.vSensitive = false;
_root.heroIsVisible = false;
_root.theAura.vActive = false;
_root.isInPlay = false;
_root.heroMinX = -100;
_root.heroMaxX = 100;
_root.heroMinY = -100;
_root.heroMaxY = 100;
_root.shoutOut("whoa");
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
break;
case 1 :
_root.shiftEverything(vRate * Math.cos(vDir), vRate * Math.sin(vDir));
vWait = vWait - vRate;
if (vWait >= 0) {
break;
}
vState = 0;
_root.gameMenu.vSensitive = true;
_root.heroIsVisible = true;
_root.theAura.vActive = true;
_root.isInPlay = true;
_root.heroMinX = -3;
_root.heroMaxX = 21;
_root.heroMinY = 11;
_root.heroMaxY = 35;
}
}
Instance of Symbol 599 MovieClip "platform4" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
txtNo.selectable = false;
txtNo.text = "A";
_x = 300;
_y = 2800;
}
Instance of Symbol 599 MovieClip "platform5" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
txtNo.selectable = false;
txtNo.text = "B";
_x = 900;
_y = 3000;
}
Instance of Symbol 599 MovieClip "platform6" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
txtNo.selectable = false;
txtNo.text = "C";
_x = 1500;
_y = 2800;
}
Instance of Symbol 596 MovieClip "l6teleport4" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop (1);
_x = 300;
_y = 2400;
var dx = 1200;
var dy = -2300;
var vDir = Math.atan2(dy, dx);
var vDis = Math.sqrt((dx * dx) + (dy * dy));
var vRate = 50;
var vWait = 0;
var vState = 0;
}
onClipEvent (enterFrame) {
switch (vState) {
case 0 :
var vD = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
if (vD < 80) {
if (_currentframe != 2) {
gotoAndStop (2);
}
_root.theElectric.setShock();
if (vD < 15) {
vState = 1;
vWait = vDis;
_root.theFlash.flashAt(_root.theHero._x, _root.theHero._y);
_root.gameMenu.vSensitive = false;
_root.heroIsVisible = false;
_root.theAura.vActive = false;
_root.isInPlay = false;
_root.heroMinX = -100;
_root.heroMaxX = 100;
_root.heroMinY = -100;
_root.heroMaxY = 100;
_root.shoutOut("whoa");
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
break;
case 1 :
_root.shiftEverything(vRate * Math.cos(vDir), vRate * Math.sin(vDir));
vWait = vWait - vRate;
if (vWait >= 0) {
break;
}
vState = 0;
_root.gameMenu.vSensitive = true;
_root.heroIsVisible = true;
_root.theAura.vActive = true;
_root.isInPlay = true;
_root.heroMinX = 9;
_root.heroMaxX = 21;
_root.heroMinY = -4;
_root.heroMaxY = 16;
}
}
Instance of Symbol 596 MovieClip "l6teleport5" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop (1);
_x = 900;
_y = 2600;
var dx = -600;
var dy = -2500;
var vDir = Math.atan2(dy, dx);
var vDis = Math.sqrt((dx * dx) + (dy * dy));
var vRate = 50;
var vWait = 900;
var vState = 0;
}
onClipEvent (enterFrame) {
switch (vState) {
case 0 :
var vD = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
if (vD < 80) {
if (_currentframe != 2) {
gotoAndStop (2);
}
_root.theElectric.setShock();
if (vD < 15) {
vState = 1;
vWait = vDis;
_root.theFlash.flashAt(_root.theHero._x, _root.theHero._y);
_root.gameMenu.vSensitive = false;
_root.heroIsVisible = false;
_root.theAura.vActive = false;
_root.isInPlay = false;
_root.heroMinX = -100;
_root.heroMaxX = 100;
_root.heroMinY = -100;
_root.heroMaxY = 100;
_root.shoutOut("whoa");
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
break;
case 1 :
_root.shiftEverything(vRate * Math.cos(vDir), vRate * Math.sin(vDir));
vWait = vWait - vRate;
if (vWait >= 0) {
break;
}
vState = 0;
_root.gameMenu.vSensitive = true;
_root.heroIsVisible = true;
_root.theAura.vActive = true;
_root.isInPlay = true;
_root.heroMinX = -3;
_root.heroMaxX = 9;
_root.heroMinY = -4;
_root.heroMaxY = 16;
}
}
Instance of Symbol 596 MovieClip "l6teleport6" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
gotoAndStop (1);
_x = 1500;
_y = 2400;
var dx = -600;
var dy = -2300;
var vDir = Math.atan2(dy, dx);
var vDis = Math.sqrt((dx * dx) + (dy * dy));
var vRate = 50;
var vWait = 900;
var vState = 0;
}
onClipEvent (enterFrame) {
switch (vState) {
case 0 :
var vD = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
if (vD < 80) {
if (_currentframe != 2) {
gotoAndStop (2);
}
_root.theElectric.setShock();
if (vD < 15) {
vState = 1;
vWait = vDis;
_root.theFlash.flashAt(_root.theHero._x, _root.theHero._y);
_root.gameMenu.vSensitive = false;
_root.heroIsVisible = false;
_root.theAura.vActive = false;
_root.isInPlay = false;
_root.heroMinX = -100;
_root.heroMaxX = 100;
_root.heroMinY = -100;
_root.heroMaxY = 100;
_root.shoutOut("whoa");
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
break;
case 1 :
_root.shiftEverything(vRate * Math.cos(vDir), vRate * Math.sin(vDir));
vWait = vWait - vRate;
if (vWait >= 0) {
break;
}
vState = 0;
_root.gameMenu.vSensitive = true;
_root.heroIsVisible = true;
_root.theAura.vActive = true;
_root.isInPlay = true;
_root.heroMinX = 3;
_root.heroMaxX = 15;
_root.heroMinY = -4;
_root.heroMaxY = 16;
}
}
Instance of Symbol 144 MovieClip "movingHarvest" in Frame 105
onClipEvent (load) {
function shiftKey(dx, dy) {
}
var vDir = 0;
var vPeriod = 2;
var vWait = vPeriod;
var deltaDir = 0.0490873852123405;
var pinX = 550;
var pinY = 1400;
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
vWait--;
if (vWait == 0) {
vWait = vPeriod;
vDir = vDir + deltaDir;
if (vDir > (Math.PI*2)) {
vDir = vDir - (Math.PI*2);
}
var i = 0;
while (i < 3) {
_root.mcWorld[i].clear();
_root.mcWorld[i].moveTo(pinX, pinY);
_root.mcWorld[i].beginFill(_root.worldColor[i], 40);
_root.mcWorld[i].lineTo(pinX + (100 * Math.cos(vDir + (((i * 2) * Math.PI) / 3))), pinY + (100 * Math.sin(vDir + (((i * 2) * Math.PI) / 3))));
_root.mcWorld[i].curveTo(pinX + (200 * Math.cos(vDir + ((((i + 0.5) * 2) * Math.PI) / 3))), pinY + (200 * Math.sin(vDir + ((((i + 0.5) * 2) * Math.PI) / 3))), pinX + (100 * Math.cos(vDir + ((((i + 1) * 2) * Math.PI) / 3))), pinY + (100 * Math.sin(vDir + ((((i + 1) * 2) * Math.PI) / 3))));
_root.mcWorld[i].endFill();
i++;
}
}
}
}
Instance of Symbol 586 MovieClip "level6Tort" in Frame 105
onClipEvent (load) {
function resetTortoise() {
gotoAndStop (1);
vTG = (vTY = (vTP = 0));
vP = (vY = (vG = 0));
vWait = 0;
while ((((vTP + vTY) + vTG) < 7) || (((vTP + vTY) + vTG) > 9)) {
vTP = 1 + Math.floor(Math.random() * 4);
vTY = 1 + Math.floor(Math.random() * 4);
vTG = 1 + Math.floor(Math.random() * 4);
}
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtCountdown.text = " ";
var _local1 = new TextFormat();
_local1.font = "Verdana";
_local1.bold = true;
_local1.color = 16777215 /* 0xFFFFFF */;
_local1.size = 14;
txtP.setTextFormat(_local1);
txtY.setTextFormat(_local1);
txtG.setTextFormat(_local1);
}
function addBaby(vC) {
if (vWait == 0) {
vWait = 400;
vP = 0;
vG = 0;
vY = 0;
gotoAndStop (2);
}
switch (vC) {
case 1 :
vP++;
break;
case 2 :
vY++;
break;
case 3 :
vG++;
}
txtP.text = (vTP - vP) + "x";
txtY.text = (vTY - vY) + "x";
txtG.text = (vTG - vG) + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
}
function shiftKey(dx, dy) {
_x = (_x + dx);
_y = (_y + dy);
}
_x = 850;
_y = 2000;
var vTP = 0;
var vTG = 0;
var vTY = 0;
var vP = 0;
var vG = 0;
var vY = 0;
var vWait = 0;
resetTortoise();
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (_currentframe != 3) {
if (vWait > 0) {
vWait--;
if (vWait == 0) {
txtCountdown.text = " ";
txtP.text = vTP + "x";
txtY.text = vTY + "x";
txtG.text = vTG + "x";
txtP.setTextFormat(tf);
txtY.setTextFormat(tf);
txtG.setTextFormat(tf);
if (((vP == vTP) && (vG == vTG)) && (vY == vTY)) {
_root.createBabyEater(-1000, -1000, Math.ceil(Math.random() * 3));
var i = 0;
while (i < 10) {
_root.createParticle((_x + (_width * Math.random())) - (_width / 2), (_y + (_height * Math.random())) - (_height / 2), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
i++;
}
_root.increaseVolume("bubb", 100, 100);
_root.createTortoise(_x, _y);
gotoAndStop (3);
} else {
gotoAndStop (1);
}
} else {
txtCountdown.text = ((Math.floor(vWait / 24) + ":") + Math.floor(((vWait % 24) / 24) * 10)) + Math.floor(Math.random() * 10);
}
}
}
}
}
Instance of Symbol 144 MovieClip in Frame 105
onClipEvent (load) {
var vStock = 6;
var vPeriod = 1200;
var vWait = vPeriod;
}
onClipEvent (enterFrame) {
if (_root.isInPlay) {
if (vStock > 0) {
vWait--;
if (vWait == 0) {
vWait = vPeriod;
vStock--;
var vDir = Math.floor(Math.random() * 3);
switch (vDir) {
case 0 :
_root.createSpitter((-Stage.width) + ((Math.random() * 3) * Stage.width), -500);
break;
case 1 :
_root.createSpitter(-500, (-Stage.height) + ((Math.random() * 3) * Stage.height));
break;
case 2 :
_root.createSpitter((-Stage.width) + ((Math.random() * 3) * Stage.width), 1100);
break;
default :
_root.createSpitter(1500, (-Stage.height) + ((Math.random() * 3) * Stage.height));
}
}
}
}
}
Symbol 54 MovieClip [obParticle] Frame 1
#initclip 26
Object.registerClass("obParticle", clParticle);
#endinitclip
stop();
Instance of Symbol 51 MovieClip in Symbol 54 MovieClip [obParticle] Frame 22
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
_rotation = (_rotation + (5 * (Math.floor(Math.random() * 3) - 1)));
}
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip [obParticle] Frame 23
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
_rotation = (_rotation + (5 * (Math.floor(Math.random() * 3) - 1)));
}
Symbol 60 MovieClip [obJoint] Frame 1
#initclip 14
Object.registerClass("obJoint", clJoint);
#endinitclip
stop();
Symbol 66 MovieClip Frame 9
_root.theHero.finishedBlinking();
Symbol 67 MovieClip [obHero] Frame 1
#initclip 15
Object.registerClass("obHero", clHero);
#endinitclip
stop();
Symbol 83 MovieClip [obPincher] Frame 1
#initclip 16
Object.registerClass("obPincher", clPincher);
#endinitclip
stop();
Symbol 83 MovieClip [obPincher] Frame 2
Symbol 83 MovieClip [obPincher] Frame 3
Symbol 83 MovieClip [obPincher] Frame 4
Symbol 83 MovieClip [obPincher] Frame 5
Symbol 83 MovieClip [obPincher] Frame 6
Symbol 83 MovieClip [obPincher] Frame 7
Symbol 83 MovieClip [obPincher] Frame 8
Symbol 83 MovieClip [obPincher] Frame 9
Symbol 83 MovieClip [obPincher] Frame 10
Symbol 83 MovieClip [obPincher] Frame 11
Symbol 83 MovieClip [obPincher] Frame 12
Symbol 83 MovieClip [obPincher] Frame 13
Symbol 83 MovieClip [obPincher] Frame 14
Symbol 83 MovieClip [obPincher] Frame 15
Symbol 84 MovieClip [obFlock] Frame 1
#initclip 17
Object.registerClass("obFlock", clFlock);
#endinitclip
stop();
Symbol 87 MovieClip [obEgg] Frame 1
#initclip 18
Object.registerClass("obEgg", clEgg);
#endinitclip
stop();
Symbol 90 MovieClip [obReward] Frame 1
#initclip 19
Object.registerClass("obReward", clReward);
#endinitclip
stop();
Symbol 91 MovieClip [obBabyEater] Frame 1
#initclip 20
Object.registerClass("obBabyEater", clBabyEater);
#endinitclip
stop();
Symbol 92 MovieClip [obEggStealer] Frame 1
#initclip 21
Object.registerClass("obEggStealer", clEggStealer);
#endinitclip
stop();
Symbol 93 MovieClip [obSpitter] Frame 1
#initclip 22
Object.registerClass("obSpitter", clSpitter);
#endinitclip
Instance of Symbol 104 MovieClip in Symbol 105 MovieClip Frame 2
onClipEvent (enterFrame) {
_rotation = ((6 * Math.random()) - 3);
}
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip [obESCMessage] Frame 1
onClipEvent (enterFrame) {
if ((_root._xmouse > 400) && (_root._ymouse > 400)) {
if (_alpha > 0) {
_alpha = (_alpha - 2);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_root.scReturns >= _root.minReturns[_root.areaNumber - 1]) {
if (_currentframe != 2) {
gotoAndStop (2);
}
} else if (_currentframe != 1) {
gotoAndStop (1);
}
}
Symbol 109 MovieClip [obAura] Frame 1
#initclip 23
Object.registerClass("obAura", clAura);
#endinitclip
Instance of Symbol 117 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
var vDelay = 3;
var vWait = vDelay;
var vPause = false;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait == 0) {
vWait = vDelay;
if (vPause) {
vPause = false;
vWait = 1 * vDelay;
} else if (_currentframe == 5) {
gotoAndStop (1);
vPause = true;
} else {
gotoAndStop(_currentframe + 1);
}
}
}
Instance of Symbol 117 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
var vDelay = 3;
var vWait = vDelay;
var vPause = false;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait == 0) {
vWait = vDelay;
if (vPause) {
vPause = false;
vWait = 1 * vDelay;
} else if (_currentframe == 5) {
gotoAndStop (1);
vPause = true;
} else {
gotoAndStop(_currentframe + 1);
}
}
}
Instance of Symbol 117 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
var vDelay = 3;
var vWait = vDelay;
var vPause = false;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait == 0) {
vWait = vDelay;
if (vPause) {
vPause = false;
vWait = 1 * vDelay;
} else if (_currentframe == 5) {
gotoAndStop (1);
vPause = true;
} else {
gotoAndStop(_currentframe + 1);
}
}
}
Instance of Symbol 117 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
var vDelay = 3;
var vWait = vDelay;
var vPause = false;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
vWait--;
if (vWait == 0) {
vWait = vDelay;
if (vPause) {
vPause = false;
vWait = 1 * vDelay;
} else if (_currentframe == 5) {
gotoAndStop (1);
vPause = true;
} else {
gotoAndStop(_currentframe + 1);
}
}
}
Instance of Symbol 117 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 124 MovieClip Frame 9
stop();
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 125 MovieClip Frame 9
stop();
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip Frame 9
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip Frame 9
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip Frame 9
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip Frame 9
onClipEvent (load) {
stop();
}
Symbol 126 MovieClip [obTortoise] Frame 1
#initclip 24
Object.registerClass("obTortoise", clTortoise);
#endinitclip
Instance of Symbol 123 MovieClip in Symbol 126 MovieClip [obTortoise] Frame 2
onClipEvent (load) {
var vWriggle = 0;
var vDelta = 10;
var vWait = 2;
}
onClipEvent (enterFrame) {
vWait--;
vWriggle = vWriggle + vDelta;
_rotation = vWriggle;
if (vWait == 0) {
if (vDelta == -10) {
vDelta = 10;
} else {
vDelta = -10;
}
vWait = 4;
}
}
Instance of Symbol 40 MovieClip in Symbol 126 MovieClip [obTortoise] Frame 5
onClipEvent (load) {
var vWriggle = 0;
var vDelta = 10;
var vWait = 2;
}
onClipEvent (enterFrame) {
vWait--;
vWriggle = vWriggle + vDelta;
_rotation = vWriggle;
if (vWait == 0) {
if (vDelta == -10) {
vDelta = 10;
} else {
vDelta = -10;
}
vWait = 4;
}
}
Symbol 132 MovieClip Frame 1
gotoAndStop (5);
Symbol 135 MovieClip Frame 1
gotoAndStop (5);
Symbol 138 MovieClip Frame 1
gotoAndStop (5);
Symbol 141 MovieClip Frame 1
gotoAndStop (5);
Symbol 142 MovieClip [obPointer] Frame 1
#initclip 25
Object.registerClass("obPointer", clPointer);
#endinitclip
Symbol 602 MovieClip [__Packages.clJoint] Frame 0
class clJoint extends MovieClip
{
var dx, dy, _visible, _x, _y;
function clJoint () {
super();
}
function onLoad() {
dx = new Number();
dy = new Number();
_visible = false;
}
function onEnterFrame() {
if (_root.heroIsVisible) {
_visible = true;
} else {
_visible = false;
}
if (_root.isInPlay) {
moveAndCollide(dx, dy);
}
}
function moveAndCollide(dx, dy) {
_x = _x + dx;
_y = _y + dy;
}
function influence(ddx, ddy) {
dx = dx + ddx;
dy = dy + ddy;
}
}
Symbol 603 MovieClip [__Packages.clHero] Frame 0
class clHero extends MovieClip
{
var macSwim, releaseBubble, maxSpeed, test, test2, _visible, dx, dy, vGravity, vThrust, vDrag, vInnerCircle, mcSegment, vDirection, bShoot, _x, _y, maxNoOfArms, noOfJoints, noOfArms, footStance, pJoint, _rotation, gotoAndStop;
function clHero () {
super();
}
function onLoad() {
macSwim = false;
releaseBubble = 2;
maxSpeed = 12;
test = false;
test2 = false;
_visible = false;
dx = new Number();
dy = new Number();
vGravity = 0.4;
vThrust = 0.8;
vDrag = 0.9;
vInnerCircle = 80;
mcSegment = _root.createEmptyMovieClip("mcSegment", 30);
vDirection = new Number(0);
bShoot = false;
_x = Stage.width / 2;
_y = Stage.height / 2;
maxNoOfArms = 5;
noOfJoints = 3;
noOfArms = 0;
footStance = new Array(0, 0, 0);
pJoint = new Array();
addArm();
}
function onMouseDown() {
macSwim = true;
}
function onMouseUp() {
macSwim = false;
}
function onEnterFrame() {
if (_root.heroIsVisible) {
_visible = true;
mcSegment._visible = true;
} else {
_visible = false;
mcSegment._visible = false;
_x = Stage.width / 2;
_y = Stage.height / 2;
}
if (_root.isInPlay) {
instantInfluence();
controls();
moveScreen();
gameCycle();
moveAndCollide(dx, dy);
if (Math.floor(Math.random() * 70) == 0) {
blink();
}
} else if (_root.sndBubbles.getVolume() > 0) {
_root.sndBubbles.setVolume(_root.sndBubbles.getVolume() - 2);
}
}
function gameCycle() {
_root.directFlock();
_root.bitersRepel();
if (_root.biteGetLouder) {
_root.biteGetLouder = false;
if (_root.sndBite.getVolume() < 50) {
_root.sndBite.setVolume(50);
}
} else if (_root.sndBite.getVolume() > 0) {
_root.sndBite.setVolume(0);
}
}
function moveScreen() {
function shiftWorld(xShift, yShift) {
if (_root.shiftAxes(-xShift, -yShift)) {
_root.shiftPlatform(-xShift, -yShift);
_root.shiftWorld(-xShift, -yShift);
_root.shiftWorldBeds(-xShift, -yShift);
_root.shiftEggs(-xShift, -yShift);
_root.shiftRewards(-xShift, -yShift);
_root.shiftBabyEaters(-xShift, -yShift);
_root.shiftEggStealers(-xShift, -yShift);
_root.adjustFlock(-xShift, -yShift);
_root.adjustParticles(-xShift, -yShift);
_root.shiftBiters(-xShift, -yShift);
_root.shiftSpitters(-xShift, -yShift);
_root.shiftTortoises(-xShift, -yShift);
switch (_root.areaNumber) {
case 1 :
_root.gEF.shiftKey(-xShift, -yShift);
_root.gDF.shiftKey(-xShift, -yShift);
break;
case 2 :
_root.level2Key.shiftKey(-xShift, -yShift);
_root.treasureSign.shiftKey(-xShift, -yShift);
break;
case 3 :
_root.level3Fields.shiftKey(-xShift, -yShift);
_root.bugSign.shiftKey(-xShift, -yShift);
break;
case 4 :
_root.level4BigFields.shiftKey(-xShift, -yShift);
_root.level4Key.shiftKey(-xShift, -yShift);
_root.theBarrier.shiftKey(-xShift, -yShift);
_root.level4Tort.shiftKey(-xShift, -yShift);
_root.nannySign.shiftKey(-xShift, -yShift);
break;
case 5 :
_root.teleport1.shiftKey(-xShift, -yShift);
_root.teleport2.shiftKey(-xShift, -yShift);
_root.level5Tort.shiftKey(-xShift, -yShift);
break;
case 6 :
_root.platform1.shiftKey(-xShift, -yShift);
_root.platform2.shiftKey(-xShift, -yShift);
_root.platform3.shiftKey(-xShift, -yShift);
_root.platform4.shiftKey(-xShift, -yShift);
_root.platform5.shiftKey(-xShift, -yShift);
_root.platform6.shiftKey(-xShift, -yShift);
_root.l6teleport1.shiftKey(-xShift, -yShift);
_root.l6teleport2.shiftKey(-xShift, -yShift);
_root.l6teleport3.shiftKey(-xShift, -yShift);
_root.l6teleport4.shiftKey(-xShift, -yShift);
_root.l6teleport5.shiftKey(-xShift, -yShift);
_root.l6teleport6.shiftKey(-xShift, -yShift);
_root.movingHarvest.shiftKey(-xShift, -yShift);
_root.level6Tort.shiftKey(-xShift, -yShift);
}
} else {
this.dx = 0;
this.dy = 0;
}
}
var _local8 = Math.sqrt(Math.pow(_x - (Stage.width / 2), 2) + Math.pow(_y - (Stage.height / 2), 2));
var _local7 = Math.atan2(_y - (Stage.height / 2), _x - (Stage.width / 2));
var _local5 = 0;
var _local4 = 0;
if (_local8 > vInnerCircle) {
_local5 = Math.round(_x - ((Stage.width / 2) + (vInnerCircle * Math.cos(_local7))));
_local4 = Math.round(_y - ((Stage.height / 2) + (vInnerCircle * Math.sin(_local7))));
_x = _x - _local5;
_y = _y - _local4;
var _local6 = 0;
while (_local6 < noOfArms) {
var _local3 = 0;
while (_local3 < noOfJoints) {
pJoint[_local6][_local3]._x = pJoint[_local6][_local3]._x - _local5;
pJoint[_local6][_local3]._y = pJoint[_local6][_local3]._y - _local4;
_local3++;
}
_local6++;
}
shiftWorld(_local5, _local4);
}
}
function controls() {
vDirection = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = (vDirection * 180) / Math.PI;
if (macSwim && (!Key.isDown(16))) {
bShoot = false;
influence(vThrust * Math.cos(vDirection), vThrust * Math.sin(vDirection));
var _local5 = (Math.random() * 6) + 3;
var _local6 = 0.261799387799149 - ((Math.random() * Math.PI) / 6);
}
if (_root.sndBubbles.getVolume() > 0) {
_root.sndBubbles.setVolume(_root.sndBubbles.getVolume() - 2);
}
if (macSwim && (Key.isDown(16))) {
var _local3;
_local3 = 0;
while (_local3 < noOfArms) {
if (pJoint[_local3][noOfJoints - 1]._currentframe < 3) {
break;
}
_local3++;
}
if (_local3 == noOfArms) {
bShoot = true;
}
}
if (!macSwim) {
if (bShoot) {
bShoot = false;
if (noOfArms > 0) {
if (_root.scInvestment > 0) {
_root.createBullet(_x, _y, 12 * Math.cos(vDirection), 12 * Math.sin(vDirection), 20, 2, footStance);
_root.sndShot.start(0.05, 1);
_root.sndBubbles.setVolume(50);
var _local4 = 0;
while (_local4 < 5) {
_root.createParticle(_x, _y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), 15, 1);
_local4++;
}
influence((noOfArms * 2) * Math.cos(vDirection + Math.PI), (noOfArms * 2) * Math.sin(vDirection + Math.PI));
blink();
}
}
}
}
}
function instantInfluence() {
var _local8 = 0.12;
var _local11 = 0.2;
var _local5 = 4;
var _local3;
var _local4;
var _local7;
var _local6;
mcSegment.clear();
mcSegment.lineStyle(2, 0, 90);
var _local9 = 0;
while (_local9 < noOfArms) {
var _local10 = 0;
while (_local10 < noOfJoints) {
if (noOfArms > 1) {
pJoint[_local9][_local10].influence(vGravity * Math.cos((vDirection + Math.PI) + (((_local9 * 2) * Math.PI) / noOfArms)), vGravity * Math.sin((vDirection + Math.PI) + (((_local9 * 2) * Math.PI) / noOfArms)));
}
switch (_local10) {
case 0 :
mcSegment.moveTo(_x, _y);
mcSegment.lineTo(pJoint[_local9][_local10]._x, pJoint[_local9][_local10]._y);
mcSegment.lineTo(pJoint[_local9][_local10 + 1]._x, pJoint[_local9][_local10 + 1]._y);
_local3 = Math.sqrt(Math.pow(_x - pJoint[_local9][_local10]._x, 2) + Math.pow(_y - pJoint[_local9][_local10]._y, 2));
_local4 = Math.atan2(_y - pJoint[_local9][_local10]._y, _x - pJoint[_local9][_local10]._x);
_local7 = ((_local3 - _local5) * _local8) * Math.cos(_local4);
_local6 = ((_local3 - _local5) * _local8) * Math.sin(_local4);
pJoint[_local9][_local10].influence(_local7, _local6);
influence((-_local7) * _local11, (-_local6) * _local11);
_local3 = Math.sqrt(Math.pow(pJoint[_local9][_local10]._x - pJoint[_local9][_local10 + 1]._x, 2) + Math.pow(pJoint[_local9][_local10]._y - pJoint[_local9][_local10 + 1]._y, 2));
_local4 = Math.atan2(pJoint[_local9][_local10]._y - pJoint[_local9][_local10 + 1]._y, pJoint[_local9][_local10]._x - pJoint[_local9][_local10 + 1]._x);
_local7 = ((_local3 - _local5) * _local8) * Math.cos(_local4);
_local6 = ((_local3 - _local5) * _local8) * Math.sin(_local4);
pJoint[_local9][_local10 + 1].influence(_local7, _local6);
break;
case noOfJoints - 1 :
_local3 = Math.sqrt(Math.pow(pJoint[_local9][_local10]._x - pJoint[_local9][_local10 - 1]._x, 2) + Math.pow(pJoint[_local9][_local10]._y - pJoint[_local9][_local10 - 1]._y, 2));
_local4 = Math.atan2(pJoint[_local9][_local10]._y - pJoint[_local9][_local10 - 1]._y, pJoint[_local9][_local10]._x - pJoint[_local9][_local10 - 1]._x);
_local7 = ((_local3 - _local5) * _local8) * Math.cos(_local4);
_local6 = ((_local3 - _local5) * _local8) * Math.sin(_local4);
pJoint[_local9][_local10 - 1].influence(_local7, _local6);
break;
default :
mcSegment.moveTo(pJoint[_local9][_local10]._x, pJoint[_local9][_local10]._y);
mcSegment.lineTo(pJoint[_local9][_local10 + 1]._x, pJoint[_local9][_local10 + 1]._y);
_local3 = Math.sqrt(Math.pow(pJoint[_local9][_local10]._x - pJoint[_local9][_local10 - 1]._x, 2) + Math.pow(pJoint[_local9][_local10]._y - pJoint[_local9][_local10 - 1]._y, 2));
if (_local3 > (_local5 * 5)) {
_local3 = _local5 * 5;
}
_local4 = Math.atan2(pJoint[_local9][_local10]._y - pJoint[_local9][_local10 - 1]._y, pJoint[_local9][_local10]._x - pJoint[_local9][_local10 - 1]._x);
_local7 = ((_local3 - _local5) * _local8) * Math.cos(_local4);
_local6 = ((_local3 - _local5) * _local8) * Math.sin(_local4);
pJoint[_local9][_local10 - 1].influence(_local7, _local6);
_local3 = Math.sqrt(Math.pow(pJoint[_local9][_local10]._x - pJoint[_local9][_local10 + 1]._x, 2) + Math.pow(pJoint[_local9][_local10]._y - pJoint[_local9][_local10 + 1]._y, 2));
_local4 = Math.atan2(pJoint[_local9][_local10]._y - pJoint[_local9][_local10 + 1]._y, pJoint[_local9][_local10]._x - pJoint[_local9][_local10 + 1]._x);
_local7 = ((_local3 - _local5) * _local8) * Math.cos(_local4);
_local6 = ((_local3 - _local5) * _local8) * Math.sin(_local4);
pJoint[_local9][_local10 + 1].influence(_local7, _local6);
}
pJoint[_local9][_local10].dx = pJoint[_local9][_local10].dx * vDrag;
pJoint[_local9][_local10].dy = pJoint[_local9][_local10].dy * vDrag;
_local10++;
}
_local9++;
}
_local9 = 0;
while (_local9 < _root.mcWorld.length) {
footStance[_local9] = 0;
_local9++;
}
_local9 = 0;
while (_local9 < noOfArms) {
if (Math.abs(pJoint[_local9][noOfJoints - 1].dx) < 1) {
pJoint[_local9][noOfJoints - 1].dx = 0;
}
if (Math.abs(pJoint[_local9][noOfJoints - 1].dy) < 1) {
pJoint[_local9][noOfJoints - 1].dy = 0;
}
if ((pJoint[_local9][noOfJoints - 1].dx == 0) && (pJoint[_local9][noOfJoints - 1].dy == 0)) {
var _local10 = 0;
while (_local10 < _root.mcWorld.length) {
if (_root.mcWorld[_local10].hitTest(pJoint[_local9][noOfJoints - 1]._x, pJoint[_local9][noOfJoints - 1]._y, true)) {
pJoint[_local9][noOfJoints - 1].gotoAndStop(4 + _local10);
footStance[_local10]++;
break;
}
_local10++;
}
if (_local10 == _root.mcWorld.length) {
pJoint[_local9][noOfJoints - 1].gotoAndStop(3);
}
} else {
pJoint[_local9][noOfJoints - 1].gotoAndStop(2);
}
_local9++;
}
}
function addArm() {
noOfArms++;
if (noOfArms > maxNoOfArms) {
noOfArms = maxNoOfArms;
} else {
pJoint.push(new Array());
var _local2 = 0;
while (_local2 < noOfJoints) {
pJoint[noOfArms - 1].push(mcSegment.attachMovie("obJoint", (("joint" + (noOfArms - 1)) + "_") + _local2, 1000 - ((10 + ((noOfArms - 1) * noOfJoints)) + _local2)));
pJoint[noOfArms - 1][_local2]._x = _x;
pJoint[noOfArms - 1][_local2]._y = _y;
if (_local2 == (noOfJoints - 1)) {
pJoint[noOfArms - 1][_local2].gotoAndStop(2);
} else {
pJoint[noOfArms - 1][_local2].gotoAndStop(1);
}
_local2++;
}
}
}
function removeArm() {
if (noOfArms > 0) {
noOfArms--;
var _local2 = 0;
while (_local2 < noOfJoints) {
pJoint[noOfArms][_local2].removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < noOfJoints) {
pJoint[noOfArms].pop();
_local2++;
}
}
}
function scramble() {
var _local3 = 0;
while (_local3 < noOfArms) {
var _local2 = 0;
while (_local2 < noOfJoints) {
pJoint[_local3][_local2]._x = Math.round(Math.random() * Stage.width);
pJoint[_local3][_local2]._y = Math.round(Math.random() * Stage.height);
_local2++;
}
_local3++;
}
}
function blink() {
(gotoAndStop(2));// not popped
}
function finishedBlinking() {
(gotoAndStop(1));// not popped
}
function moveAndCollide(dx, dy) {
_x = _x + dx;
_y = _y + dy;
this.dx = this.dx * 0.99;
this.dy = this.dy * 0.99;
}
function influence(ddx, ddy) {
dx = dx + ddx;
dy = dy + ddy;
if (Math.sqrt((dx * dx) + (dy * dy)) > maxSpeed) {
var _local2 = Math.atan2(dy, dx);
dx = maxSpeed * Math.cos(_local2);
dy = maxSpeed * Math.sin(_local2);
}
}
}
Symbol 604 MovieClip [__Packages.clPincher] Frame 0
class clPincher extends MovieClip
{
var _alpha, _visible, vSensitivePoint, vSensitiveRadius, vDirection, vDeltaD, vColour, vAccelerate, vWait, vLife, dx, dy, vActive, vState, _x, _y, _currentframe, gotoAndStop, _rotation, _width, _height;
function clPincher () {
super();
}
function onLoad() {
_alpha = 0;
_visible = false;
vSensitivePoint = 10;
vSensitiveRadius = 160;
vDirection = 0;
vDeltaD = 0.0122718463030851;
vColour = 0;
vAccelerate = 0.5;
vWait = 0;
vLife = 100;
dx = 0;
dy = 0;
vActive = false;
vState = 0;
}
function onEnterFrame() {
if (_root.isInPlay) {
if (vActive) {
_x = _x + dx;
_y = _y + dy;
if (_alpha < 100) {
_alpha = 100;
}
behave();
} else if (_alpha > 0) {
_alpha = _alpha - 4;
}
}
}
function behave() {
var _local5 = 0;
var _local6 = 0;
_local5 = Math.sqrt(Math.pow(_root.theHero._x - _x, 2) + Math.pow(_root.theHero._y - _y, 2));
_local6 = Math.atan2(_root.theHero._y - _y, _root.theHero._x - _x);
var _local4 = (vColour - 1) * 5;
switch (vState) {
case 0 :
if (_currentframe != (_local4 + 1)) {
(gotoAndStop(_local4 + 1));// not popped
}
dx = dx * 0.7;
dy = dy * 0.7;
if (Math.abs(dx) < 0.05) {
dx = 0;
}
if (Math.abs(dy) < 0.05) {
dy = 0;
}
var _local9 = _x + (vSensitivePoint * Math.cos(vDirection));
var _local8 = _y + (vSensitivePoint * Math.sin(vDirection));
if (Math.sqrt(Math.pow(_root.theHero._x - _local9, 2) + Math.pow(_root.theHero._y - _local8, 2)) < vSensitiveRadius) {
vState = 1;
if (_local5 > 50) {
_root.sndSnarl.start(0, 1);
}
}
vDirection = vDirection + vDeltaD;
influence(0, 0);
if (Math.random() > 0.999) {
vDeltaD = vDeltaD * -1;
}
break;
case 1 :
if ((_currentframe != (_local4 + 2)) && (_currentframe != (_local4 + 3))) {
(gotoAndStop(_local4 + 2));// not popped
vWait = 4;
} else {
vWait--;
}
if (vWait < 0) {
vWait = 0;
if (_currentframe != (_local4 + 3)) {
(gotoAndStop(_local4 + 3));// not popped
}
if (_local5 < 40) {
vState = 2;
}
}
if (_local5 > 40) {
influence(vAccelerate * Math.cos(_local6), vAccelerate * Math.sin(_local6));
} else {
influence(0, 0);
}
if (Math.random() < 0.1) {
_root.createParticleR(_x, _y, 3 * Math.cos(vDirection + Math.PI), 3 * Math.sin(vDirection + Math.PI), 5, 19, vDirection);
}
vDirection = _local6;
if (_local5 > 360) {
vState = 0;
}
break;
case 2 :
if (_currentframe != (_local4 + 4)) {
(gotoAndStop(_local4 + 4));// not popped
vWait = 4;
dx = 0;
dy = 0;
var _local3 = 0;
while (_local3 < 3) {
_root.createParticle(_root.theHero._x, _root.theHero._y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), 15, 4);
_local3++;
}
_root.createParticle(_root.theHero._x, _root.theHero._y, 0, 0, 20, 5);
_root.theHero.blink();
_root.sndSqueal.start(0, 1);
_root.shoutOut("oof");
var _local7 = -10;
if (Math.random() > 0.5) {
_local7 = _local7 + 5;
}
if (Math.random() > 0.5) {
_local7 = _local7 + 2;
}
if (!_root.addScore(_local7, _root.theHero._x, _root.theHero._y)) {
}
} else {
vWait--;
if (vWait <= 0) {
vWait = 0;
vState = 0;
}
}
break;
case 3 :
dx = 0;
dy = 0;
if (_currentframe != (_local4 + 5)) {
(gotoAndStop(_local4 + 5));// not popped
vWait = 72;
} else {
vWait--;
if (vWait <= 0) {
vState = 0;
}
}
break;
}
}
function setVariables(vX, vY, C) {
_x = vX;
_y = vY;
vColour = C;
dx = 0;
dy = 0;
vLife = 60;
vActive = true;
_visible = true;
var _local2 = ((Math.random() > 0.5) ? 1 : -1);
vDeltaD = (_local2 * Math.PI) / 256;
vDirection = (Math.random() * Math.PI) * 2;
_rotation = Math.floor((vDirection * 180) / Math.PI);
vState = 0;
vSensitivePoint = 100;
vSensitiveRadius = 150;
vAccelerate = 0.5;
vWait = 0;
}
function influence(ddx, ddy) {
dx = dx + ddx;
if (dx < -8) {
dx = -8;
}
if (dx > 8) {
dx = 8;
}
dy = dy + ddy;
if (dy < -8) {
dy = -8;
}
if (dy > 8) {
dy = 8;
}
_rotation = (vDirection * 180) / Math.PI;
dx = dx * 0.9;
dy = dy * 0.9;
}
function damage(vAmount) {
vLife = vLife - vAmount;
if (vState != 3) {
vState = 1;
}
if (vLife <= 0) {
var _local3 = 0;
while (_local3 < 10) {
_root.createParticle((_x + (_width * Math.random())) - (_width / 2), (_y + (_height * Math.random())) - (_height / 2), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
_local3++;
}
vActive = false;
_root.createReward(2, _x, _y);
}
}
function clearBiter() {
vActive = false;
_visible = false;
}
}
Symbol 605 MovieClip [__Packages.clFlock] Frame 0
class clFlock extends MovieClip
{
var _x, _y, dx, dy, vLifeTime, vActive, _currentframe, _rotation, _visible;
function clFlock () {
super();
}
function setVariables(X, Y, DX, DY, L) {
_x = X;
_y = Y;
dx = DX;
dy = DY;
vLifeTime = L;
vActive = true;
}
function onLoad() {
_x = -100;
_y = -100;
dx = 0;
dy = 0;
vLifeTime = 1;
vActive = false;
}
function onEnterFrame() {
if (_root.isInPlay) {
if (vActive) {
behave();
vLifeTime--;
if (vLifeTime <= 0) {
vActive = false;
var _local3 = 0;
while (_local3 < 3) {
_root.createParticle(_x, _y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), 15, 1);
_local3++;
}
_root.createParticle(_x, _y, 0, 0, 19, 3);
_root.sndPop.start(0, 1);
_root.createEgg(_currentframe, _x, _y, _rotation);
switch (_root.areaNumber) {
case 2 :
if (_root.level2Key.hitTest(_x, _y, false)) {
_root.level2Key.addBaby(_currentframe);
}
break;
case 3 :
if (_root.level3Fields.hitTest(_x, _y, false)) {
_root.level3Fields.addBaby(_currentframe);
}
break;
case 4 :
if (_root.level4BigFields.hitTest(_x, _y, false)) {
_root.level4BigFields.addBaby(_currentframe);
}
if (_root.level4Key.hitTest(_x, _y, false)) {
_root.level4Key.addBaby(_currentframe);
}
if (_root.level4Tort.hitTest(_x, _y, false)) {
_root.level4Tort.addBaby(_currentframe);
}
break;
case 5 :
if (_root.level5Tort.hitTest(_x, _y, false)) {
_root.level5Tort.addBaby(_currentframe);
}
break;
case 6 :
if (!_root.level6Tort.hitTest(_x, _y, false)) {
break;
}
_root.level6Tort.addBaby(_currentframe);
}
}
_x = _x + dx;
_y = _y + dy;
if (!_visible) {
_visible = true;
}
} else if (_visible) {
_visible = false;
}
}
}
function behave() {
if (_root.hurtBiterAt(_currentframe, _x, _y, 1)) {
vLifeTime = vLifeTime + 5;
_root.createParticle(_x, _y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), 10, 4);
_root.biteGetLouder = true;
}
}
function influence(ddx, ddy) {
dx = dx + ddx;
if (dx < -8) {
dx = -8;
}
if (dx > 8) {
dx = 8;
}
dy = dy + ddy;
if (dy < -8) {
dy = -8;
}
if (dy > 8) {
dy = 8;
}
_rotation = (Math.atan2(dy, dx) * 180) / Math.PI;
if (Key.isDown(16)) {
dx = dx * 0.4;
dy = dy * 0.4;
}
}
function clearIndividual() {
vActive = false;
_visible = false;
}
}
Symbol 606 MovieClip [__Packages.clEgg] Frame 0
class clEgg extends MovieClip
{
var _visible, vBroodTime, _currentframe, _x, _y, gotoAndStop, _rotation;
function clEgg () {
super();
}
function onLoad() {
_visible = false;
vBroodTime = 0;
}
function onEnterFrame() {
if (_root.isInPlay) {
if (_visible) {
vBroodTime--;
if (vBroodTime <= 0) {
switch (_currentframe) {
case 1 :
_root.noOfPurplePods--;
break;
case 2 :
_root.noOfYellowPods--;
break;
default :
_root.noOfGreenPods--;
}
var _local3 = 0;
while (_local3 < 3) {
_root.createParticle(_x, _y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), 15, 1);
_local3++;
}
_root.createParticle(_x, _y, 0, 0, 19, 3);
_root.sndPop.start(0, 1);
_root.createReward(1, _x, _y);
_visible = false;
}
}
}
}
function setVariables(vC, vX, vY, vR) {
_x = vX;
_y = vY;
(gotoAndStop(vC));// not popped
_root.addPod(vX, vY, vC);
_rotation = vR;
_visible = true;
vBroodTime = 620;
}
function clearEgg() {
_visible = false;
}
}
Symbol 607 MovieClip [__Packages.clReward] Frame 0
class clReward extends MovieClip
{
var _visible, vBroodTime, _x, _y, _currentframe, gotoAndStop;
function clReward () {
super();
}
function onLoad() {
_visible = false;
vBroodTime = 0;
}
function onEnterFrame() {
if (_root.isInPlay) {
if (_visible) {
if ((Math.abs(_x - _root.theHero._x) < 15) && (Math.abs(_y - _root.theHero._y) < 15)) {
_visible = false;
_root.addScore(_currentframe * 5, _x, _y);
_root.sndReward.start(0, 1);
}
vBroodTime--;
if (vBroodTime <= 0) {
_visible = false;
}
}
}
}
function setVariables(vC, vX, vY) {
_x = vX;
_y = vY;
(gotoAndStop(vC));// not popped
_visible = true;
vBroodTime = 180;
}
function clearReward() {
_visible = false;
}
}
Symbol 608 MovieClip [__Packages.clBabyEater] Frame 0
class clBabyEater extends MovieClip
{
var vActive, vAccelerate, vDirection, _alpha, _visible, vLife, vState, dx, dy, vColour, _x, _y, _currentframe, gotoAndStop, vTarget, vWait, _rotation;
function clBabyEater () {
super();
}
function onLoad() {
vActive = false;
vAccelerate = 0;
vDirection = 0;
_alpha = 0;
_visible = false;
vLife = 100;
vState = 0;
dx = 0;
dy = 0;
vColour = 0;
}
function onEnterFrame() {
if (_root.isInPlay) {
_x = _x + dx;
_y = _y + dy;
if (vActive) {
behave();
} else if (_alpha > 0) {
_alpha = _alpha - 4;
}
}
}
function behave() {
var _local4 = Math.sqrt(Math.pow(_x - _root.theHero._x, 2) + Math.pow(_y - _root.theHero._y, 2));
switch (vState) {
case 0 :
dx = dx * 0.9;
dy = dy * 0.9;
if (_currentframe != 1) {
(gotoAndStop(1));// not popped
}
if (_local4 < 180) {
vState = 1;
} else {
if (Math.abs(dx) < 0.1) {
dx = 0;
}
if (Math.abs(dy) < 0.1) {
dy = 0;
}
vTarget = Math.floor(Math.random() * _root.feTotalIndividuals);
if (_root.feIndividual[vTarget].vActive && (_root.feIndividual[vTarget]._currentframe == vColour)) {
vState = 2;
}
}
break;
case 1 :
var _local5 = Math.atan2(_y - _root.theHero._y, _x - _root.theHero._x);
if (_local4 > 1000) {
vState = 0;
}
if (_local4 < 20) {
}
influence(vAccelerate * Math.cos(_local5), vAccelerate * Math.sin(_local5));
if (Math.random() < 0.1) {
_root.createParticleR(_x, _y, 0, 0, 5, 13 + vColour, vDirection);
}
break;
case 2 :
if (_local4 < 80) {
vState = 1;
} else if (_root.feIndividual[vTarget].vActive) {
_local4 = Math.sqrt(Math.pow(_x - _root.feIndividual[vTarget]._x, 2) + Math.pow(_y - _root.feIndividual[vTarget]._y, 2));
_local5 = Math.atan2(_y - _root.feIndividual[vTarget]._y, _x - _root.feIndividual[vTarget]._x);
if (_local4 < 30) {
_x = _root.feIndividual[vTarget]._x;
_y = _root.feIndividual[vTarget]._y;
var _local3 = 0;
while (_local3 < 3) {
_root.createParticle(_x, _y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), 15, 4);
_local3++;
}
(gotoAndStop(_root.feIndividual[vTarget]._currentframe + 1));// not popped
_root.feIndividual[vTarget].vActive = false;
_root.sndScream.start(0.2, 1);
vWait = 48;
vState = 3;
} else {
influence(vAccelerate * Math.cos(_local5 + Math.PI), vAccelerate * Math.sin(_local5 + Math.PI));
}
} else {
vState = 0;
}
if (Math.random() < 0.1) {
_root.createParticleR(_x, _y, 0, 0, 5, 13 + vColour, vDirection);
}
break;
case 3 :
vWait--;
dx = dx * 0.9;
dy = dy * 0.9;
if (vWait <= 0) {
_root.sndSlurp.start(0.1, 1);
vState = 0;
}
break;
}
}
function influence(ddx, ddy) {
dx = dx + ddx;
if (dx < -12) {
dx = -12;
}
if (dx > 12) {
dx = 12;
}
dy = dy + ddy;
if (dy < -12) {
dy = -12;
}
if (dy > 12) {
dy = 12;
}
vDirection = Math.atan2(dy, dx);
_rotation = (vDirection * 180) / Math.PI;
}
function setVariables(vX, vY, vC) {
_x = vX;
_y = vY;
_alpha = 100;
vAccelerate = 6;
vActive = true;
_visible = true;
vState = 0;
dx = 0;
dy = 0;
vDirection = (Math.random() * Math.PI) * 2;
_rotation = (vDirection * 180) / Math.PI;
vColour = vC;
vLife = 40;
}
function damage(vAmount) {
_root.sndHiss.start(0.1, 1);
vLife = vLife - vAmount;
var _local3 = Math.atan2(_y - _root.theHero._y, _x - _root.theHero._x);
influence((5 * vAccelerate) * Math.cos(_local3), (5 * vAccelerate) * Math.sin(_local3));
if (vLife <= 0) {
dx = 0;
dy = 0;
vActive = false;
_root.createReward(2, _x, _y);
if (_currentframe > 1) {
_root.createIndividual(_x, _y, 3 * Math.cos(vDirection), 3 * Math.sin(vDirection), 300, _currentframe - 1);
}
}
}
function clearBabyEater() {
vActive = false;
_visible = false;
}
}
Symbol 609 MovieClip [__Packages.clEggStealer] Frame 0
class clEggStealer extends MovieClip
{
var vActive, vAccelerate, vDirection, _alpha, _visible, vLife, vState, dx, dy, vColour, _x, _y, _currentframe, gotoAndStop, vTarget, vWait, _rotation;
function clEggStealer () {
super();
}
function onLoad() {
vActive = false;
vAccelerate = 0;
vDirection = 0;
_alpha = 0;
_visible = false;
vLife = 100;
vState = 0;
dx = 0;
dy = 0;
vColour = 0;
}
function onEnterFrame() {
if (_root.isInPlay) {
_x = _x + dx;
_y = _y + dy;
if (vActive) {
behave();
} else if (_alpha > 0) {
_alpha = _alpha - 4;
}
}
}
function behave() {
var _local4 = Math.sqrt(Math.pow(_x - _root.theHero._x, 2) + Math.pow(_y - _root.theHero._y, 2));
switch (vState) {
case 0 :
dx = dx * 0.9;
dy = dy * 0.9;
if (_currentframe != 1) {
(gotoAndStop(1));// not popped
}
if (_local4 < 250) {
vState = 1;
} else {
if (Math.abs(dx) < 0.1) {
dx = 0;
}
if (Math.abs(dy) < 0.1) {
dy = 0;
}
vTarget = Math.floor(Math.random() * _root.eeTotalEggs);
if (_root.eeEgg[vTarget]._visible && (_root.eeEgg[vTarget]._currentframe == vColour)) {
vState = 2;
}
}
break;
case 1 :
var _local5 = Math.atan2(_y - _root.theHero._y, _x - _root.theHero._x);
if (_local4 > 650) {
vState = 0;
}
if (_local4 < 20) {
}
influence(vAccelerate * Math.cos(_local5), vAccelerate * Math.sin(_local5));
_root.createParticleR(_x, _y, 0, 0, 5, 17, vDirection);
break;
case 2 :
if (_local4 < 35) {
vState = 1;
} else if (_root.eeEgg[vTarget]._visible) {
_local4 = Math.sqrt(Math.pow(_x - _root.eeEgg[vTarget]._x, 2) + Math.pow(_y - _root.eeEgg[vTarget]._y, 2));
_local5 = Math.atan2(_y - _root.eeEgg[vTarget]._y, _x - _root.eeEgg[vTarget]._x);
if (_local4 < 20) {
_x = _root.eeEgg[vTarget]._x;
_y = _root.eeEgg[vTarget]._y;
var _local3 = 0;
while (_local3 < 3) {
_root.createParticle(_x, _y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), 15, 4);
_local3++;
}
(gotoAndStop(_root.eeEgg[vTarget]._currentframe + 1));// not popped
_root.eeEgg[vTarget]._visible = false;
_root.sndScream.start(0.2, 1);
switch (vColour) {
case 1 :
_root.noOfPurplePods--;
break;
case 2 :
_root.noOfYellowPods--;
break;
default :
_root.noOfGreenPods--;
}
vWait = 120;
vState = 3;
} else {
influence(vAccelerate * Math.cos(_local5 + Math.PI), vAccelerate * Math.sin(_local5 + Math.PI));
}
} else {
vState = 0;
}
if (Math.random() < 0.1) {
_root.createParticleR(_x, _y, 0, 0, 10, 17, vDirection);
}
break;
case 3 :
vWait--;
dx = dx * 0.9;
dy = dy * 0.9;
if (vWait <= 0) {
_root.sndSlurp.start(0.1, 1);
vState = 0;
}
break;
}
}
function influence(ddx, ddy) {
dx = dx + ddx;
if (dx < -10) {
dx = -10;
}
if (dx > 10) {
dx = 10;
}
dy = dy + ddy;
if (dy < -10) {
dy = -10;
}
if (dy > 10) {
dy = 10;
}
vDirection = Math.atan2(dy, dx);
_rotation = (vDirection * 180) / Math.PI;
}
function setVariables(vX, vY, vC) {
_x = vX;
_y = vY;
_alpha = 100;
_visible = true;
vLife = 80;
vAccelerate = 6;
vActive = true;
_visible = true;
vState = 0;
dx = 0;
dy = 0;
vDirection = (Math.random() * Math.PI) * 2;
_rotation = (vDirection * 180) / Math.PI;
vColour = vC;
}
function damage(vAmount) {
_root.sndChCh.start(0.1, 1);
vLife = vLife - vAmount;
var _local3 = Math.atan2(_y - _root.theHero._y, _x - _root.theHero._x);
influence((5 * vAccelerate) * Math.cos(_local3), (5 * vAccelerate) * Math.sin(_local3));
if (vLife <= 0) {
dx = 0;
dy = 0;
vActive = false;
_root.createReward(2, _x, _y);
if (_currentframe > 1) {
_root.createIndividual(_x, _y, 3 * Math.cos(vDirection), 3 * Math.sin(vDirection), 300, _currentframe - 1);
}
}
}
function clearEggStealer() {
vActive = false;
_visible = false;
}
}
Symbol 610 MovieClip [__Packages.clSpitter] Frame 0
class clSpitter extends MovieClip
{
var vActive, vAccelerate, vDirection, _alpha, _visible, vLife, vState, dx, dy, _x, _y, _rotation;
function clSpitter () {
super();
}
function onLoad() {
vActive = false;
vAccelerate = 0;
vDirection = 0;
_alpha = 0;
_visible = false;
vLife = 100;
vState = 0;
dx = 0;
dy = 0;
}
function onEnterFrame() {
if (_root.isInPlay) {
_x = _x + dx;
_y = _y + dy;
if (vActive) {
behave();
} else if (_alpha > 0) {
_alpha = _alpha - 4;
}
}
}
function behave() {
var _local4 = Math.sqrt(Math.pow(_x - _root.theHero._x, 2) + Math.pow(_y - _root.theHero._y, 2));
var _local3 = Math.atan2(_y - _root.theHero._y, _x - _root.theHero._x);
switch (vState) {
case 0 :
vState = 1;
break;
case 1 :
if (_local4 < 300) {
vState = 3;
} else {
influence(vAccelerate * Math.cos(_local3 + Math.PI), vAccelerate * Math.sin(_local3 + Math.PI));
}
if (Math.random() < 0.1) {
_root.createParticleR(_x, _y, 3 * Math.cos(vDirection + Math.PI), 3 * Math.sin(vDirection + Math.PI), 5, 20, vDirection);
}
break;
case 2 :
if (_local4 > 500) {
vState = 0;
} else {
influence(vAccelerate * Math.cos(_local3), vAccelerate * Math.sin(_local3));
}
if (Math.random() < 0.1) {
_root.createParticleR(_x, _y, 3 * Math.cos(vDirection + Math.PI), 3 * Math.sin(vDirection + Math.PI), 5, 20, vDirection);
}
break;
case 3 :
dx = dx * 0.9;
dy = dy * 0.9;
if (Math.abs(dx) < 0.2) {
dx = 0;
}
if (Math.abs(dy) < 0.2) {
dy = 0;
}
if (_local4 < 150) {
vState = 2;
}
if (_local4 > 600) {
vState = 1;
}
if (Math.floor(Math.random() * 100) == 0) {
_root.createParticle(_x, _y, 8 * Math.cos(_local3 + Math.PI), 8 * Math.sin(_local3 + Math.PI), 70, 18);
_root.sndGrunt.start(0, 1);
}
vDirection = _local3 + Math.PI;
influence(0, 0);
}
}
function influence(ddx, ddy) {
dx = dx + ddx;
if (dx < -5) {
dx = -5;
}
if (dx > 5) {
dx = 5;
}
dy = dy + ddy;
if (dy < -5) {
dy = -5;
}
if (dy > 5) {
dy = 5;
}
if ((dx != 0) && (dy != 0)) {
vDirection = Math.atan2(dy, dx);
}
_rotation = (vDirection * 180) / Math.PI;
}
function setVariables(vX, vY) {
_x = vX;
_y = vY;
_alpha = 100;
_visible = true;
vAccelerate = 3;
vActive = true;
vState = 0;
vLife = 80;
dx = 0;
dy = 0;
vDirection = (Math.random() * Math.PI) * 2;
_rotation = (vDirection * 180) / Math.PI;
}
function damage(vAmount) {
_root.sndGruntHurt.start(0.1, 1);
vLife = vLife - vAmount;
vState = 2;
var _local3 = Math.atan2(_y - _root.theHero._y, _x - _root.theHero._x);
influence((5 * vAccelerate) * Math.cos(_local3), (5 * vAccelerate) * Math.sin(_local3));
if (vLife <= 0) {
dx = 0;
dy = 0;
vActive = false;
_root.createBiter(_x, _y, Math.ceil(Math.random() * 3));
}
}
function clearSpitter() {
vActive = false;
_visible = false;
}
}
Symbol 611 MovieClip [__Packages.clAura] Frame 0
class clAura extends MovieClip
{
var macMouse, vActive, vPress, _x, _y, gotoAndStop;
function clAura () {
super();
}
function onLoad() {
macMouse = false;
vActive = false;
vPress = false;
}
function onMouseDown() {
macMouse = true;
}
function onMouseUp() {
macMouse = false;
}
function onEnterFrame() {
if (vActive) {
_x = _root.theHero._x;
_y = _root.theHero._y;
if ((Math.abs(_x - _root._xmouse) < 25) && (Math.abs(_y - _root._ymouse) < 25)) {
(gotoAndStop(2));// not popped
} else {
(gotoAndStop(1));// not popped
}
if (macMouse) {
vPress = true;
} else if (vPress) {
vPress = false;
if ((Math.abs(_x - _root._xmouse) < 25) && (Math.abs(_y - _root._ymouse) < 25)) {
if (Key.isDown(17)) {
_root.theHero.removeArm();
} else {
_root.theHero.addArm();
}
}
}
} else {
(gotoAndStop(1));// not popped
}
}
}
Symbol 612 MovieClip [__Packages.clTortoise] Frame 0
class clTortoise extends MovieClip
{
var _visible, vLife, vDirection, preyType, vTarget, vWait, vState, gotoAndStop, _x, _y, _currentframe, _rotation, _width, _height;
function clTortoise () {
super();
}
function onLoad() {
_visible = false;
vLife = 0;
vDirection = (Math.PI * Math.random()) * 2;
preyType = 0;
vTarget = 0;
vWait = 0;
vState = 0;
(gotoAndStop(1));// not popped
}
function setVariables(vX, vY) {
_x = vX;
_y = vY;
_visible = true;
vLife = 2400;
}
function onEnterFrame() {
if (_root.isInPlay) {
if (_visible) {
switch (vState) {
case 0 :
var _local6 = Math.sqrt(Math.pow(_x - _root.theHero._x, 2) + Math.pow(_y - _root.theHero._y, 2));
var _local5 = Math.atan2(_root.theHero._y - _y, _root.theHero._x - _x);
if (_local6 > 280) {
vDirection = _local5;
_x = _x + (2 * Math.cos(_local5));
_y = _y + (2 * Math.sin(_local5));
if (_currentframe != 1) {
vWait = 10;
vState = 4;
(gotoAndStop(4));// not popped
}
} else if (_local6 < 100) {
vDirection = _local5;
_x = _x + (2 * Math.cos(_local5 + Math.PI));
_y = _y + (2 * Math.sin(_local5 + Math.PI));
if (_currentframe != 1) {
(gotoAndStop(1));// not popped
}
} else if (_currentframe != 3) {
vWait = 10;
vState = 3;
(gotoAndStop(3));// not popped
}
if (_local6 < 500) {
var _local4 = Math.floor((_root.eseNoOfEggStealers + _root.beeNoOfBabyEaters) * Math.random());
if (_local4 >= _root.eseNoOfEggStealers) {
_local4 = _local4 - _root.eseNoOfEggStealers;
preyType = 1;
} else {
preyType = 0;
}
if (preyType == 0) {
_local6 = Math.sqrt(Math.pow(_x - _root.eseEggStealer[_local4]._x, 2) + Math.pow(_y - _root.eseEggStealer[_local4]._y, 2));
if (_root.eseEggStealer[_local4].vActive && (_local6 < 300)) {
vTarget = _local4;
vState = 1;
}
} else {
_local6 = Math.sqrt(Math.pow(_x - _root.beeBabyEater[_local4]._x, 2) + Math.pow(_y - _root.beeBabyEater[_local4]._y, 2));
if (_root.beeBabyEater[_local4].vActive && (_local6 < 300)) {
vTarget = _local4;
vState = 1;
}
}
}
break;
case 1 :
if (_currentframe != 1) {
(gotoAndStop(1));// not popped
}
if (preyType == 0) {
if (!_root.eseEggStealer[vTarget].vActive) {
vState = 0;
} else {
_local6 = Math.sqrt(Math.pow(_x - _root.eseEggStealer[vTarget]._x, 2) + Math.pow(_y - _root.eseEggStealer[vTarget]._y, 2));
_local5 = Math.atan2(_root.eseEggStealer[vTarget]._y - _y, _root.eseEggStealer[vTarget]._x - _x);
vDirection = _local5;
if (_local6 < 60) {
_root.eseEggStealer[vTarget].damage(1000);
_root.eseEggStealer[vTarget]._alpha = 0;
vState = 2;
} else {
_x = _x + (16 * Math.cos(_local5));
_y = _y + (16 * Math.sin(_local5));
}
}
} else if (!_root.beeBabyEater[vTarget].vActive) {
vState = 0;
} else {
_local6 = Math.sqrt(Math.pow(_x - _root.beeBabyEater[vTarget]._x, 2) + Math.pow(_y - _root.beeBabyEater[vTarget]._y, 2));
_local5 = Math.atan2(_root.beeBabyEater[vTarget]._y - _y, _root.beeBabyEater[vTarget]._x - _x);
vDirection = _local5;
if (_local6 < 60) {
_root.beeBabyEater[vTarget].damage(1000);
_root.beeBabyEater[vTarget]._alpha = 0;
vState = 2;
} else {
_x = _x + (16 * Math.cos(_local5));
_y = _y + (16 * Math.sin(_local5));
}
}
_local6 = Math.sqrt(Math.pow(_x - _root.theHero._x, 2) + Math.pow(_y - _root.theHero._y, 2));
if (_local6 > 700) {
vState = 0;
}
break;
case 2 :
if (preyType == 0) {
if (_currentframe != 2) {
(gotoAndStop(2));// not popped
vWait = 70;
}
} else if (_currentframe != 5) {
(gotoAndStop(5));// not popped
vWait = 70;
}
vWait--;
if (vWait == 0) {
vState = 0;
}
break;
case 3 :
vWait--;
if (vWait == 0) {
vState = 0;
}
break;
case 4 :
vWait--;
if (vWait != 0) {
break;
}
vState = 0;
(gotoAndStop(1));// not popped
}
_rotation = (vDirection * 180) / Math.PI;
vLife--;
if (vLife < 120) {
}
if (vLife == 0) {
_visible = false;
var _local3 = 0;
while (_local3 < 10) {
_root.createParticle((_x + (_width * Math.random())) - (_width / 2), (_y + (_height * Math.random())) - (_height / 2), 3 - (6 * Math.random()), 3 - (6 * Math.random()), 30 + (Math.random() * 15), 1);
_local3++;
}
_root.sndBubbles.setVolume(50);
switch (_root.areaNumber) {
case 4 :
_root.level4Tort.resetTortoise();
break;
case 5 :
_root.level5Tort.resetTortoise();
break;
case 6 :
_root.level6Tort.resetTortoise();
}
}
}
}
}
}
Symbol 613 MovieClip [__Packages.clPointer] Frame 0
class clPointer extends MovieClip
{
var _visible, vPoint, targetType, targetNumber, _x, _y, _rotation, _alpha, _currentframe, gotoAndStop;
function clPointer () {
super();
}
function onLoad() {
_visible = false;
vPoint = false;
targetType = 0;
targetNumber = 0;
_x = Stage.width / 2;
_y = Stage.height / 2;
}
function setVariables(vT, vN) {
targetType = vT;
targetNumber = vN;
_visible = true;
vPoint = false;
}
function onEnterFrame() {
if (_visible) {
var _local6 = true;
var _local4 = 0;
var _local3 = 0;
switch (targetType) {
case 0 :
_local6 = _root.beeBabyEater[targetNumber].vActive;
_local4 = _root.beeBabyEater[targetNumber]._x;
_local3 = _root.beeBabyEater[targetNumber]._y;
break;
case 1 :
_local6 = _root.eseEggStealer[targetNumber].vActive;
_local4 = _root.eseEggStealer[targetNumber]._x;
_local3 = _root.eseEggStealer[targetNumber]._y;
break;
case 2 :
_local6 = _root.beBiter[targetNumber].vActive;
_local4 = _root.beBiter[targetNumber]._x;
_local3 = _root.beBiter[targetNumber]._y;
break;
case 3 :
_local6 = _root.seSpitter[targetNumber].vActive;
_local4 = _root.seSpitter[targetNumber]._x;
_local3 = _root.seSpitter[targetNumber]._y;
}
var _local7 = Math.atan2(_local3 - (Stage.height / 2), _local4 - (Stage.width / 2));
var _local5 = Math.sqrt(Math.pow(_local3 - (Stage.height / 2), 2) + Math.pow(_local4 - (Stage.width / 2), 2));
if (_local6) {
if (_local5 < 500) {
vPoint = true;
}
if (_local5 > 225) {
if (vPoint) {
_rotation = (_local7 * 180) / Math.PI;
_alpha = 100;
if (_local5 > 1000) {
if (_currentframe != ((targetType * 4) + 4)) {
(gotoAndStop((targetType * 4) + 4));// not popped
}
}
if (_local5 > 800) {
if (_currentframe != ((targetType * 4) + 3)) {
(gotoAndStop((targetType * 4) + 3));// not popped
}
} else if (_local5 > 500) {
if (_currentframe != ((targetType * 4) + 2)) {
(gotoAndStop((targetType * 4) + 2));// not popped
}
} else if (_currentframe != ((targetType * 4) + 1)) {
(gotoAndStop((targetType * 4) + 1));// not popped
}
} else if (_currentframe != ((targetType * 4) + 4)) {
(gotoAndStop((targetType * 4) + 4));// not popped
}
} else {
_alpha = 0;
}
} else {
_visible = false;
}
}
}
}
Symbol 614 MovieClip [__Packages.clParticle] Frame 0
class clParticle extends MovieClip
{
var _x, _y, dx, dy, vLifeTime, vActive, footStance, _currentframe, _visible;
function clParticle () {
super();
}
function onLoad() {
_x = -100;
_y = -100;
dx = new Number(0);
dy = new Number(0);
vLifeTime = new Number(0);
vActive = new Boolean(false);
footStance = new Array(0, 0, 0);
}
function onEnterFrame() {
if (_root.isInPlay) {
if (vActive) {
vLifeTime--;
if (vLifeTime <= 0) {
vActive = false;
if (_currentframe == 2) {
_root.sndPop.start(0, 1);
var _local4 = 0;
while (_local4 < 3) {
_root.createParticle(_x, _y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), 15, 1);
_local4++;
}
if (_root.tutMode || (_root.addScore(-3, _x, _y))) {
_local4 = 0;
while (_local4 < footStance.length) {
var _local3 = 0;
while (_local3 < footStance[_local4]) {
_root.createIndividual(_x, _y, 3 - (6 * Math.random()), 3 - (6 * Math.random()), (_root.tutMode ? 120 : 500) + Math.floor(Math.random() * 100), 1 + _local4);
_local3++;
}
_local4++;
}
}
}
}
_x = _x + dx;
_y = _y + dy;
if (!_visible) {
_visible = true;
}
particleBehave();
} else if (_visible) {
_visible = false;
}
}
}
function setVariables(X, Y, DX, DY, L) {
_x = X;
_y = Y;
dx = DX;
dy = DY;
vLifeTime = L;
vActive = true;
}
function setDamageStatus(X) {
var _local2 = 0;
while (_local2 < footStance.length) {
footStance[_local2] = X[_local2];
_local2++;
}
}
function particleBehave() {
if (_currentframe == 2) {
if (_root.hurtBiterAt(0, _x, _y, 0)) {
vActive = false;
} else if (_root.hurtBabyEaterAt(_x, _y, 20)) {
vActive = false;
} else if (_root.hurtEggStealerAt(_x, _y, 20)) {
vActive = false;
} else if (_root.hurtSpitterAt(_x, _y, 20)) {
vActive = false;
}
}
if (_currentframe == 18) {
if ((Math.abs(_x - _root.theHero._x) < 22) && (Math.abs(_y - _root.theHero._y) < 22)) {
vActive = false;
_root.addScore(-5, _x, _y);
_root.shoutOut("oof");
}
}
}
function clearParticle() {
vActive = false;
_visible = false;
}
}
Symbol 204 Button
on (release) {
_root.play();
}
Symbol 205 MovieClip Frame 143
_root.play();
stop();
Instance of Symbol 117 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 117 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 214 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.areaNumber = 0;
_root.gotoAndStop(30);
}
}
Instance of Symbol 219 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.areaNumber = 1;
_root.scScore = 0;
_root.gotoAndStop(45);
}
}
Instance of Symbol 229 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
getURL ("http://www.partnersinrhyme.com", "_blank");
}
}
Instance of Symbol 232 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, false);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
getURL ("http://www.armorgames.com", "_blank");
}
}
Instance of Symbol 237 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
var vOver = false;
if (!_root.cookieIsPresent) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
}
onClipEvent (mouseUp) {
if (_currentframe != 1) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.areaNumber = _root.lsoGameData.data.areaNumber;
_root.scScore = _root.lsoGameData.data.scScore;
_root.gotoAndStop(45);
}
}
}
Instance of Symbol 249 MovieClip in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
var vClick = false;
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
_root.theMover.setTarget(550, 750);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 252 MovieClip in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
var vClick = false;
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
_root.theMover.setTarget(-880, 740);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 255 MovieClip in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
var vClick = false;
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
_root.theMover.setTarget(520, -110);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 258 MovieClip in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
var vClick = false;
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
_root.theMover.setTarget(-930, -160);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 261 MovieClip in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
var vClick = false;
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
_root.theMover.setTarget(-70, 300);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 266 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
_x = (Stage.width / 2);
_y = -800;
_alpha = 0;
var vTheta = 0;
}
onClipEvent (enterFrame) {
if (_y < -5) {
_y = (_y + 20);
} else {
_y = -5;
_x = ((Stage.width / 2) + ((Stage.width / 2) * Math.sin(vTheta)));
vTheta = vTheta + 0.0122718463030851;
if (vTheta > (Math.PI*2)) {
vTheta = vTheta - (Math.PI*2);
}
}
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 270 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
vTargetWidth = _width;
_width = 1000;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width > vTargetWidth) {
_width = (_width - 20);
}
if (_width < vTargetWidth) {
_width = vTargetWidth;
}
}
Instance of Symbol 273 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
var targetWidth = _width;
var targetHeight = _height;
var deltaW = (_width / 30);
var deltaH = (_height / 30);
_alpha = 0;
_width = deltaW;
_height = deltaH;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width < targetWidth) {
_width = (_width + deltaW);
}
if (_height < targetHeight) {
_height = (_height + deltaH);
}
}
Instance of Symbol 278 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha+1);
}
}
Instance of Symbol 282 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
var vWait = 30;
}
onClipEvent (enterFrame) {
if (vWait > 0) {
vWait--;
}
}
onClipEvent (mouseUp) {
if (vWait == 0) {
_root.gotoAndStop(30);
}
}
Instance of Symbol 286 MovieClip in Symbol 344 MovieClip Frame 2
onClipEvent (load) {
vTargetWidth = _width;
_width = 1000;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width > vTargetWidth) {
_width = (_width - 20);
}
if (_width < vTargetWidth) {
_width = vTargetWidth;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 2
onClipEvent (load) {
var targetWidth = _width;
var targetHeight = _height;
var deltaW = (_width / 30);
var deltaH = (_height / 30);
_alpha = 0;
_width = deltaW;
_height = deltaH;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width < targetWidth) {
_width = (_width + deltaW);
}
if (_height < targetHeight) {
_height = (_height + deltaH);
}
}
Instance of Symbol 295 MovieClip in Symbol 344 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha+1);
}
}
Instance of Symbol 299 MovieClip in Symbol 344 MovieClip Frame 3
onClipEvent (load) {
var targetWidth = _width;
var targetHeight = _height;
var deltaW = (_width / 30);
var deltaH = (_height / 30);
_alpha = 0;
_width = deltaW;
_height = deltaH;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width < targetWidth) {
_width = (_width + deltaW);
}
if (_height < targetHeight) {
_height = (_height + deltaH);
}
}
Instance of Symbol 306 MovieClip in Symbol 344 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha+1);
}
}
Instance of Symbol 309 MovieClip in Symbol 344 MovieClip Frame 3
onClipEvent (load) {
vTargetWidth = _width;
_width = 1000;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width > vTargetWidth) {
_width = (_width - 20);
}
if (_width < vTargetWidth) {
_width = vTargetWidth;
}
}
Instance of Symbol 312 MovieClip in Symbol 344 MovieClip Frame 4
onClipEvent (load) {
var targetWidth = _width;
var targetHeight = _height;
var deltaW = (_width / 30);
var deltaH = (_height / 30);
_alpha = 0;
_width = deltaW;
_height = deltaH;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width < targetWidth) {
_width = (_width + deltaW);
}
if (_height < targetHeight) {
_height = (_height + deltaH);
}
}
Instance of Symbol 318 MovieClip in Symbol 344 MovieClip Frame 4
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha+1);
}
}
Instance of Symbol 320 MovieClip in Symbol 344 MovieClip Frame 4
onClipEvent (load) {
vTargetWidth = _width;
_width = 1000;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width > vTargetWidth) {
_width = (_width - 20);
}
if (_width < vTargetWidth) {
_width = vTargetWidth;
}
}
Instance of Symbol 325 MovieClip in Symbol 344 MovieClip Frame 5
onClipEvent (load) {
var targetWidth = _width;
var targetHeight = _height;
var deltaW = (_width / 30);
var deltaH = (_height / 30);
_alpha = 0;
_width = deltaW;
_height = deltaH;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width < targetWidth) {
_width = (_width + deltaW);
}
if (_height < targetHeight) {
_height = (_height + deltaH);
}
}
Instance of Symbol 329 MovieClip in Symbol 344 MovieClip Frame 5
onClipEvent (load) {
vTargetWidth = _width;
_width = 1000;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width > vTargetWidth) {
_width = (_width - 20);
}
if (_width < vTargetWidth) {
_width = vTargetWidth;
}
}
Instance of Symbol 332 MovieClip in Symbol 344 MovieClip Frame 5
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha+1);
}
}
Instance of Symbol 335 MovieClip in Symbol 344 MovieClip Frame 6
onClipEvent (load) {
var targetWidth = _width;
var targetHeight = _height;
var deltaW = (_width / 30);
var deltaH = (_height / 30);
_alpha = 0;
_width = deltaW;
_height = deltaH;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width < targetWidth) {
_width = (_width + deltaW);
}
if (_height < targetHeight) {
_height = (_height + deltaH);
}
}
Instance of Symbol 341 MovieClip in Symbol 344 MovieClip Frame 6
onClipEvent (load) {
vTargetWidth = _width;
_width = 1000;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_width > vTargetWidth) {
_width = (_width - 20);
}
if (_width < vTargetWidth) {
_width = vTargetWidth;
}
}
Instance of Symbol 343 MovieClip in Symbol 344 MovieClip Frame 6
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha+1);
}
}
Symbol 344 MovieClip Frame 7
_root.gotoAndStop(90);
Symbol 354 MovieClip Frame 3
var vMessage = ((("qualify for level " + (_root.areaNumber + 1)) + " is ") + _root.minReturns[_root.areaNumber - 1]);
txtMinMes.text = vMessage;
txtMinMes.selectable = false;
Instance of Symbol 266 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
_x = (Stage.width / 2);
_y = -800;
_alpha = 0;
var vTheta = 0;
}
onClipEvent (enterFrame) {
if (_y < -5) {
_y = (_y + 20);
} else {
_y = -5;
_x = ((Stage.width / 2) + ((Stage.width / 2) * Math.sin(vTheta)));
vTheta = vTheta + 0.0122718463030851;
if (vTheta > (Math.PI*2)) {
vTheta = vTheta - (Math.PI*2);
}
}
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 354 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
var vOver = false;
var vCanCont = true;
if (_root.scReturns < _root.minReturns[_root.areaNumber - 1]) {
vCanCont = false;
}
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
if (vCanCont) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (vCanCont) {
_root.gotoAndStop(80);
}
}
}
Instance of Symbol 358 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndStop(24);
}
}
Instance of Symbol 363 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.isInPlay = true;
_root.setAlpha(100);
_root.theAura.vActive = true;
_root.setAxisVisibility(true);
_root.gameMenu.gotoAndStop(1);
}
}
Instance of Symbol 367 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, true);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndStop(45);
}
}
Instance of Symbol 372 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (load) {
var vOver = false;
}
onClipEvent (enterFrame) {
vOver = hitTest(_root._xmouse, _root._ymouse, false);
if (vOver) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
getURL ("http://www.armorgames.com", "_blank");
}
}
Instance of Symbol 245 MovieClip in Symbol 373 MovieClip Frame 2
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Symbol 377 MovieClip Frame 2
soupMessage.selectable = false;
switch (Math.floor(Math.random() * 5)) {
case 0 :
soupMessage.text = "(No MSG added)";
break;
case 1 :
soupMessage.text = "(Beef and onion flavour)";
break;
case 2 :
soupMessage.text = "(Quite a long time ago)";
break;
case 3 :
soupMessage.text = "(Chicken noodle flavour)";
break;
default :
soupMessage.text = "(With 60 mg of vitamin C)";
}
Instance of Symbol 382 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 384 MovieClip in Symbol 387 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 386 MovieClip in Symbol 387 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 391 MovieClip in Symbol 394 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 396 MovieClip in Symbol 401 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 398 MovieClip in Symbol 401 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 400 MovieClip in Symbol 401 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 403 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 405 MovieClip in Symbol 408 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 407 MovieClip in Symbol 408 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 410 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 412 MovieClip in Symbol 415 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 414 MovieClip in Symbol 415 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 419 MovieClip in Symbol 423 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 422 MovieClip in Symbol 423 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 426 MovieClip in Symbol 428 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 430 MovieClip in Symbol 435 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 432 MovieClip in Symbol 435 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 434 MovieClip in Symbol 435 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 437 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 439 MovieClip in Symbol 442 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 445 MovieClip in Symbol 448 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 447 MovieClip in Symbol 448 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 451 MovieClip in Symbol 454 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 453 MovieClip in Symbol 454 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 456 MovieClip in Symbol 461 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 458 MovieClip in Symbol 461 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 460 MovieClip in Symbol 461 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 463 MovieClip in Symbol 468 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 465 MovieClip in Symbol 468 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 467 MovieClip in Symbol 468 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 472 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 474 MovieClip in Symbol 478 MovieClip Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 477 MovieClip in Symbol 478 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Instance of Symbol 482 MovieClip in Symbol 484 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Symbol 515 MovieClip Frame 1
txtStage.selectable = false;
txtStage.text = ("STAGE " + _root.areaNumber) + " RESULTS";
txtInitScore.selectable = false;
txtInitScore.text = "Initial score: " + _root.scScore;
txtReturns.selectable = false;
txtReturns.text = "Returns: " + _root.scReturns;
txtBonus.selectable = false;
if (_root.scBonus > 0) {
txtBonus.text = "Bonus: " + _root.scBonus;
} else {
txtBonus.text = " ";
}
txtFinalScore.selectable = false;
txtFinalScore.text = "Final score: " + ((_root.scScore + _root.scReturns) + _root.scBonus);
Symbol 535 MovieClip Frame 16
_visible = false;
stop();
Symbol 551 MovieClip Frame 1
txtP.selectable = false;
txtY.selectable = false;
txtG.selectable = false;
txtCountdown.selectable = false;
Symbol 561 MovieClip Frame 1
txtP.selectable = false;
txtY.selectable = false;
txtG.selectable = false;
txtCountdown.selectable = false;
Symbol 572 MovieClip Frame 1
txtP.selectable = false;
txtY.selectable = false;
txtG.selectable = false;
txtCountdown.selectable = false;
Symbol 578 MovieClip Frame 1
txtP.selectable = false;
txtY.selectable = false;
txtG.selectable = false;
txtCountdown.selectable = false;
Symbol 586 MovieClip Frame 1
txtP.selectable = false;
txtY.selectable = false;
txtG.selectable = false;
txtCountdown.selectable = false;
Instance of Symbol 593 MovieClip in Symbol 596 MovieClip Frame 2
onClipEvent (enterFrame) {
_alpha = ((Math.random() * 50) + 50);
_rotation = (Math.random() * 360);
}