Frame 1
function md5(string) {
function RotateLeft(lValue, iShiftBits) {
return((lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)));
}
function AddUnsigned(lX, lY) {
var _local5;
var _local4;
var _local3;
var _local2;
var _local1;
_local3 = lX & 2147483648;
_local2 = lY & 2147483648;
_local5 = lX & 1073741824;
_local4 = lY & 1073741824;
_local1 = (lX & 1073741823) + (lY & 1073741823);
if (_local5 & _local4) {
return(((_local1 ^ 2147483648) ^ _local3) ^ _local2);
}
if (_local5 | _local4) {
if (_local1 & 1073741824) {
return(((_local1 ^ 3221225472) ^ _local3) ^ _local2);
}
return(((_local1 ^ 1073741824) ^ _local3) ^ _local2);
}
return((_local1 ^ _local3) ^ _local2);
}
function F(x, y, z) {
return((x & y) | ((~x) & z));
}
function G(x, y, z) {
return((x & z) | (y & (~z)));
}
function H(x, y, z) {
return((x ^ y) ^ z);
}
function I(x, y, z) {
return(y ^ (x | (~z)));
}
function FF(a, b, c, d, x, s, ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));
return(AddUnsigned(RotateLeft(a, s), b));
}
function GG(a, b, c, d, x, s, ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));
return(AddUnsigned(RotateLeft(a, s), b));
}
function HH(a, b, c, d, x, s, ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));
return(AddUnsigned(RotateLeft(a, s), b));
}
function II(a, b, c, d, x, s, ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));
return(AddUnsigned(RotateLeft(a, s), b));
}
function ConvertToWordArray(string) {
var _local2;
var _local5 = string.length;
var _local8 = _local5 + 8;
var _local9 = (_local8 - (_local8 % 64)) / 64;
var _local7 = (_local9 + 1) * 16;
var _local3 = Array(_local7 - 1);
var _local4 = 0;
var _local1 = 0;
while (_local1 < _local5) {
_local2 = (_local1 - (_local1 % 4)) / 4;
_local4 = (_local1 % 4) * 8;
_local3[_local2] = _local3[_local2] | (string.charCodeAt(_local1) << _local4);
_local1++;
}
_local2 = (_local1 - (_local1 % 4)) / 4;
_local4 = (_local1 % 4) * 8;
_local3[_local2] = _local3[_local2] | (128 << _local4);
_local3[_local7 - 2] = _local5 << 3;
_local3[_local7 - 1] = _local5 >>> 29;
return(_local3);
}
function WordToHex(lValue) {
var _local3 = "";
var _local2 = "";
var _local4;
var _local1;
_local1 = 0;
while (_local1 <= 3) {
_local4 = (lValue >>> (_local1 * 8)) & 255;
_local2 = "0" + _local4.toString(16);
_local3 = _local3 + _local2.substr(_local2.length - 2, 2);
_local1++;
}
return(_local3);
}
function Utf8Encode(string) {
var _local2 = "";
var _local3 = 0;
while (_local3 < string.length) {
var _local1 = string.charCodeAt(_local3);
if (_local1 < 128) {
_local2 = _local2 + String.fromCharCode(_local1);
} else if ((_local1 > 127) && (_local1 < 2048)) {
_local2 = _local2 + String.fromCharCode((_local1 >> 6) | 192);
_local2 = _local2 + String.fromCharCode((_local1 & 63) | 128);
} else {
_local2 = _local2 + String.fromCharCode((_local1 >> 12) | 224);
_local2 = _local2 + String.fromCharCode(((_local1 >> 6) & 63) | 128);
_local2 = _local2 + String.fromCharCode((_local1 & 63) | 128);
}
_local3++;
}
return(_local2);
}
var _local6 = Array();
var _local5;
var _local35;
var _local36;
var _local37;
var _local34;
var _local4;
var _local3;
var _local2;
var _local1;
var _local21 = 7;
var _local19 = 12;
var _local16 = 17;
var _local13 = 22;
var _local20 = 5;
var _local17 = 9;
var _local14 = 14;
var _local11 = 20;
var _local18 = 4;
var _local15 = 11;
var _local12 = 16;
var _local10 = 23;
var _local25 = 6;
var _local24 = 10;
var _local23 = 15;
var _local22 = 21;
string = Utf8Encode(string);
_local6 = ConvertToWordArray(string);
_local4 = 1732584193 /* 0x67452301 */;
_local3 = 4023233417;
_local2 = 2562383102;
_local1 = 271733878 /* 0x10325476 */;
_local5 = 0;
while (_local5 < _local6.length) {
_local35 = _local4;
_local36 = _local3;
_local37 = _local2;
_local34 = _local1;
_local4 = FF(_local4, _local3, _local2, _local1, _local6[_local5 + 0], _local21, 3614090360);
_local1 = FF(_local1, _local4, _local3, _local2, _local6[_local5 + 1], _local19, 3905402710);
_local2 = FF(_local2, _local1, _local4, _local3, _local6[_local5 + 2], _local16, 606105819);
_local3 = FF(_local3, _local2, _local1, _local4, _local6[_local5 + 3], _local13, 3250441966);
_local4 = FF(_local4, _local3, _local2, _local1, _local6[_local5 + 4], _local21, 4118548399);
_local1 = FF(_local1, _local4, _local3, _local2, _local6[_local5 + 5], _local19, 1200080426);
_local2 = FF(_local2, _local1, _local4, _local3, _local6[_local5 + 6], _local16, 2821735955);
_local3 = FF(_local3, _local2, _local1, _local4, _local6[_local5 + 7], _local13, 4249261313);
_local4 = FF(_local4, _local3, _local2, _local1, _local6[_local5 + 8], _local21, 1770035416);
_local1 = FF(_local1, _local4, _local3, _local2, _local6[_local5 + 9], _local19, 2336552879);
_local2 = FF(_local2, _local1, _local4, _local3, _local6[_local5 + 10], _local16, 4294925233);
_local3 = FF(_local3, _local2, _local1, _local4, _local6[_local5 + 11], _local13, 2304563134);
_local4 = FF(_local4, _local3, _local2, _local1, _local6[_local5 + 12], _local21, 1804603682);
_local1 = FF(_local1, _local4, _local3, _local2, _local6[_local5 + 13], _local19, 4254626195);
_local2 = FF(_local2, _local1, _local4, _local3, _local6[_local5 + 14], _local16, 2792965006);
_local3 = FF(_local3, _local2, _local1, _local4, _local6[_local5 + 15], _local13, 1236535329);
_local4 = GG(_local4, _local3, _local2, _local1, _local6[_local5 + 1], _local20, 4129170786);
_local1 = GG(_local1, _local4, _local3, _local2, _local6[_local5 + 6], _local17, 3225465664);
_local2 = GG(_local2, _local1, _local4, _local3, _local6[_local5 + 11], _local14, 643717713);
_local3 = GG(_local3, _local2, _local1, _local4, _local6[_local5 + 0], _local11, 3921069994);
_local4 = GG(_local4, _local3, _local2, _local1, _local6[_local5 + 5], _local20, 3593408605);
_local1 = GG(_local1, _local4, _local3, _local2, _local6[_local5 + 10], _local17, 38016083);
_local2 = GG(_local2, _local1, _local4, _local3, _local6[_local5 + 15], _local14, 3634488961);
_local3 = GG(_local3, _local2, _local1, _local4, _local6[_local5 + 4], _local11, 3889429448);
_local4 = GG(_local4, _local3, _local2, _local1, _local6[_local5 + 9], _local20, 568446438);
_local1 = GG(_local1, _local4, _local3, _local2, _local6[_local5 + 14], _local17, 3275163606);
_local2 = GG(_local2, _local1, _local4, _local3, _local6[_local5 + 3], _local14, 4107603335);
_local3 = GG(_local3, _local2, _local1, _local4, _local6[_local5 + 8], _local11, 1163531501);
_local4 = GG(_local4, _local3, _local2, _local1, _local6[_local5 + 13], _local20, 2850285829);
_local1 = GG(_local1, _local4, _local3, _local2, _local6[_local5 + 2], _local17, 4243563512);
_local2 = GG(_local2, _local1, _local4, _local3, _local6[_local5 + 7], _local14, 1735328473);
_local3 = GG(_local3, _local2, _local1, _local4, _local6[_local5 + 12], _local11, 2368359562);
_local4 = HH(_local4, _local3, _local2, _local1, _local6[_local5 + 5], _local18, 4294588738);
_local1 = HH(_local1, _local4, _local3, _local2, _local6[_local5 + 8], _local15, 2272392833);
_local2 = HH(_local2, _local1, _local4, _local3, _local6[_local5 + 11], _local12, 1839030562);
_local3 = HH(_local3, _local2, _local1, _local4, _local6[_local5 + 14], _local10, 4259657740);
_local4 = HH(_local4, _local3, _local2, _local1, _local6[_local5 + 1], _local18, 2763975236);
_local1 = HH(_local1, _local4, _local3, _local2, _local6[_local5 + 4], _local15, 1272893353);
_local2 = HH(_local2, _local1, _local4, _local3, _local6[_local5 + 7], _local12, 4139469664);
_local3 = HH(_local3, _local2, _local1, _local4, _local6[_local5 + 10], _local10, 3200236656);
_local4 = HH(_local4, _local3, _local2, _local1, _local6[_local5 + 13], _local18, 681279174);
_local1 = HH(_local1, _local4, _local3, _local2, _local6[_local5 + 0], _local15, 3936430074);
_local2 = HH(_local2, _local1, _local4, _local3, _local6[_local5 + 3], _local12, 3572445317);
_local3 = HH(_local3, _local2, _local1, _local4, _local6[_local5 + 6], _local10, 76029189);
_local4 = HH(_local4, _local3, _local2, _local1, _local6[_local5 + 9], _local18, 3654602809);
_local1 = HH(_local1, _local4, _local3, _local2, _local6[_local5 + 12], _local15, 3873151461);
_local2 = HH(_local2, _local1, _local4, _local3, _local6[_local5 + 15], _local12, 530742520);
_local3 = HH(_local3, _local2, _local1, _local4, _local6[_local5 + 2], _local10, 3299628645);
_local4 = II(_local4, _local3, _local2, _local1, _local6[_local5 + 0], _local25, 4096336452);
_local1 = II(_local1, _local4, _local3, _local2, _local6[_local5 + 7], _local24, 1126891415);
_local2 = II(_local2, _local1, _local4, _local3, _local6[_local5 + 14], _local23, 2878612391);
_local3 = II(_local3, _local2, _local1, _local4, _local6[_local5 + 5], _local22, 4237533241);
_local4 = II(_local4, _local3, _local2, _local1, _local6[_local5 + 12], _local25, 1700485571);
_local1 = II(_local1, _local4, _local3, _local2, _local6[_local5 + 3], _local24, 2399980690);
_local2 = II(_local2, _local1, _local4, _local3, _local6[_local5 + 10], _local23, 4293915773);
_local3 = II(_local3, _local2, _local1, _local4, _local6[_local5 + 1], _local22, 2240044497);
_local4 = II(_local4, _local3, _local2, _local1, _local6[_local5 + 8], _local25, 1873313359);
_local1 = II(_local1, _local4, _local3, _local2, _local6[_local5 + 15], _local24, 4264355552);
_local2 = II(_local2, _local1, _local4, _local3, _local6[_local5 + 6], _local23, 2734768916);
_local3 = II(_local3, _local2, _local1, _local4, _local6[_local5 + 13], _local22, 1309151649);
_local4 = II(_local4, _local3, _local2, _local1, _local6[_local5 + 4], _local25, 4149444226);
_local1 = II(_local1, _local4, _local3, _local2, _local6[_local5 + 11], _local24, 3174756917);
_local2 = II(_local2, _local1, _local4, _local3, _local6[_local5 + 2], _local23, 718787259);
_local3 = II(_local3, _local2, _local1, _local4, _local6[_local5 + 9], _local22, 3951481745);
_local4 = AddUnsigned(_local4, _local35);
_local3 = AddUnsigned(_local3, _local36);
_local2 = AddUnsigned(_local2, _local37);
_local1 = AddUnsigned(_local1, _local34);
_local5 = _local5 + 16;
}
var _local46 = ((WordToHex(_local4) + WordToHex(_local3)) + WordToHex(_local2)) + WordToHex(_local1);
return(_local46.toLowerCase());
}
function encrypt(str) {
enc_str = "";
len = length(str);
i = 0;
while (i < len) {
shift = P(charFind(str, i)) + P(charFind(key, i));
pos = modulo(shift, mod);
enc_str = enc_str + A(pos);
i = i + 1;
}
return(enc_str);
}
function P(a) {
return(table.indexOf(a));
}
function modulo(n, mod) {
return(n % mod);
}
function A(p) {
if (p >= 0) {
} else {
p = mod + p;
}
return(table.charAt(p));
}
function charFind(str, i) {
i = i % length(str);
return(str.charAt(i));
}
function winMedal(medalId) {
stageOfSending = 1;
winningMedal = true;
if ((user_key == "loading") || (user_key == 0)) {
requestUserKey();
}
requestMedalKey(medalId);
}
function requestUserKey() {
user_key = "loading";
loadVariables (prefix + "/user/request_key", this, "POST");
stageOfSending = 2;
}
function requestMedalKey(medalId) {
prefix = "";
transaction_key = "loading";
loadVariables ((prefix + "/medals/request_key/") + medalId, this, "POST");
stageOfSending = 3;
}
function watchKeys(medalId) {
if (user_key != "loading") {
if (user_key == 0) {
stageOfSending = "fail";
} else if ((transaction_key != "loading") and (transaction_key != "failed")) {
sendMedal(medalId);
stageOfSending = "complete";
winningMedal = false;
shownMedal = false;
}
}
if (transaction_key == "failed") {
transaction_key = "loading";
winningMedal = false;
}
}
function showMedal() {
if (((message == "success") and (medal_title != undefined)) and (medal_title != "old")) {
_root.jtvSender.send(connectionName, "showMedal", ((((((((medal_title + ",") + medal_points) + ",") + medal_type) + ",") + medal_description) + ",") + user_points).toString());
medal_title = "old";
shownMedal = true;
}
}
function sendMedal(medalId) {
key = user_key;
medal_key = medalId;
part = (transaction_key + user_key) + medal_key;
showThis = _root.md5(part.toString() + "wormhole");
enc = _root.encrypt(part + _root.md5(part.toString() + "wormhole"));
loadVariables ((prefix + "/medals/win/") + enc, this, "POST");
user_key = "loading";
transaction_key = "loading";
medal_key = "loading";
}
function giveTableId(table_id) {
_root.jtvSender.send(connectionName, "loadTableId", table_id);
}
function giveScoresDivide(framesNo) {
_root.jtvSender.send(connectionName, "scoresDivided", framesNo);
}
function giveGameId() {
_root.jtvSender.send(connectionName, "loadGameId", game_id);
}
function giveGameSave() {
_root.jtvSender.send(connectionName, "saveTheGame", dataToSend);
}
function sendScore() {
giveGameId();
_root.jtvSender.send(connectionName, "sendScore", score);
}
stop();
var table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var key = "juyenuwruca4asec*renakuguru37esweyes4uparuxeyerastadekepudruqufab";
var mod = length(table);
jtvSender = new LocalConnection();
showThis = false;
prefix = "";
winningMedal = false;
user_key = "loading";
transaction_key = "loading";
medal_key = "loading";
stageOfSending = 0;
var score = 0;
connectionName = ("jtvConnection" + game_id).toString();
gotUserKey = false;
gotTransactionKey = false;
shownMedal = true;
medalSend = false;
sentScore = false;
MochiAd.showPreGameAd({id:"3aeda44920653579", res:"600x400"});
Frame 3
play();
onEnterFrame = function () {
ball.content._rotation = -ball._rotation;
};
cardId = 0;
bg.onRelease = function () {
getURL ("http://www.johnnytwoshoes.com/", "_blank");
};
bg.useHandCursor = false;
Frame 182
stop();
fader.target = "menu";
fader.play();
Frame 198
function muteGame() {
if (muted == true) {
fubar = new Sound(this);
fubar.setVolume(100);
muted = false;
} else {
fubar = new Sound(this);
fubar.setVolume(0);
muted = true;
}
}
function saveTimes() {
RERUNsaveddata = SharedObject.getLocal("RERUNsave");
RERUNsaveddata.data.levelUnlocked = _root.levelUnlocked;
i = 1;
while (i <= totalLevels) {
if (RERUNsaveddata.data[("level" + i) + "Time"] == null) {
if (_root[("level" + i) + "Time"] != undefined) {
RERUNsaveddata.data[("level" + i) + "Time"] = _root[("level" + i) + "Time"];
}
} else if (_root[("level" + i) + "Time"] < RERUNsaveddata.data[("level" + i) + "Time"]) {
RERUNsaveddata.data[("level" + i) + "Time"] = _root[("level" + i) + "Time"];
}
i = i + 1;
}
}
function loadTimes() {
RERUNsaveddata = SharedObject.getLocal("RERUNsave");
levelUnlocked = RERUNsaveddata.data.levelUnlocked;
i = 1;
while (i <= totalLevels) {
if (RERUNsaveddata.data[("level" + i) + "Time"] == null) {
} else {
_root[("level" + i) + "Time"] = RERUNsaveddata.data[("level" + i) + "Time"];
}
i = i + 1;
}
if (levelUnlocked == undefined) {
levelUnlocked = 1;
}
}
onMouseUp = function () {
};
remove = true;
_x = 0;
_y = 0;
hud._x = 300;
hud._y = 250;
levelSelected = 0;
pressedTimer = 0;
if (totalLevels == undefined) {
stop();
}
onEnterFrame = function () {
};
onMouseDown = function () {
if (doneMenu != true) {
doneMenu = true;
fader.target = "levelSelect";
fader.gotoAndPlay(11);
}
};
if (levelUnlocked == undefined) {
currentLevel = 1;
levelUnlocked = 1;
}
totalLevels = 12;
i = 1;
while (i <= totalLevels) {
_root[("level" + i) + "TimeTarget"] = (20 + (i * 4)) * 25;
i = i + 1;
}
loadTimes();
Frame 221
remove = true;
_x = 0;
_y = 0;
hud._x = 300;
hud._y = 250;
table_id = levelUnlocked;
if (table_id > 12) {
table_id = 12;
}
if (table_id < 10) {
table_id = "0" + table_id;
}
giveTableId(table_id);
m = 1;
while (m <= 12) {
_root.levelHolder["block" + m].myLevel = m;
m = m + 1;
}
levelHolder.startY = levelHolder._y;
levelHolder.cacheAsBitmap = true;
masker.cacheAsBitmap = true;
levelHolder.setMask(masker);
onEnterFrame = function () {
levelHolder._y = levelHolder.startY - ((_ymouse * 2.2) - (levelHolder.startY * 6));
if (levelHolder._y > (levelHolder.startY + 30)) {
levelHolder._y = levelHolder.startY + 30;
}
if (levelHolder._y < (levelHolder.startY - (levelHolder._height / 2))) {
levelHolder._y = levelHolder.startY - (levelHolder._height / 2);
}
};
Frame 227
stop();
levelSelected = 1;
Frame 228
function calcSpeed(target) {
target.speed = Math.sqrt((target.xspeed * target.xspeed) + (target.yspeed * target.yspeed));
}
function checkPenDynamic(target, wall, checks, step, xpadding, ypadding, way) {
var _local8 = target._x + xpadding;
var _local7 = target._y + ypadding;
var _local4 = false;
var _local6 = 0;
i = 1;
while (i <= checks) {
if (way == "hor") {
var _local2 = step * i;
var _local1 = 0;
} else {
var _local1 = step * i;
var _local2 = 0;
}
if (_local4 == false) {
if (wall.hitTest(_local8 - _local2, _local7 - _local1, true)) {
} else {
_local6 = i * step;
_local4 = true;
}
} else {
i = checks + 1;
}
i = i + 1;
}
target.pen = _local6;
}
function moveCam() {
if (attached == true) {
var _local3 = (300 - (_root.player._x + ((_root.cross._x - _root.player._x) / 2))) - (_root.player.xspeed * 7);
var _local2 = (200 - (_root.player._y + ((_root.cross._y - _root.player._y) / 2))) - (_root.player.yspeed * 7);
} else {
var _local3 = (300 - _root.player._x) - (_root.player.xspeed * 7);
var _local2 = (200 - _root.player._y) - (_root.player.yspeed * 7);
}
camXspeed = (_root._x - _local3) / 4;
camYspeed = (_root._y - _local2) / 4;
_root._x = _root._x - camXspeed;
_root._y = _root._y - camYspeed;
hud._x = (-_root._x) + (hud.size._width / 2);
hud._y = (-_root._y) + (hud.size._height / 2);
}
function checkTramps() {
i = 0;
while (i < 20) {
targetTramp = _root["t" + i];
speed = 8;
if (player.yspeed > 0) {
speed = speed + (player.yspeed * 0.8);
}
if (targetTramp.hitTest(player._x + player.xspeed, (player._y + (player._height / 2)) + player.yspeed, true) and (player.yspeed > 0)) {
player.xspeed = player.xspeed + (Math.cos((targetTramp._rotation - 90) * (Math.PI/180)) * (speed * 2));
player.yspeed = player.yspeed + (Math.sin((targetTramp._rotation - 90) * (Math.PI/180)) * (speed * 2));
targetTramp.spring.play();
}
i = i + 1;
}
}
function gameRules() {
if (goal.hitTest(player._x, player._y, true)) {
finished = true;
}
if (finished == true) {
if (flag._currentframe == 1) {
flag.play();
}
finishedTimer = finishedTimer + 1;
} else {
finishedTimer = 0;
if (paused == false) {
timer = timer + 1;
}
}
if (finishedTimer == 60) {
if ((((timer < _root[("level" + currentLevel) + "Time"]) || (_root[("level" + currentLevel) + "Time"] == undefined)) || (_root[("level" + currentLevel) + "Time"] == NaN)) || (_root[("level" + currentLevel) + "Time"] == "NaN")) {
targetTime = _root[("level" + _root.currentLevel) + "TimeTarget"] / 25;
if ((_root[("level" + currentLevel) + "Time"] < targetTime) and (_root[("level" + currentLevel) + "Time"] > 0)) {
_root[("level" + currentLevel) + "TimeBeat"] = true;
}
_root[("level" + currentLevel) + "Time"] = timer;
}
saveTimes();
if (_root.hud.menuD._currentframe == 1) {
_root.hud.menuD.play();
}
paused = true;
}
if (((((_root[("level" + currentLevel) + "Time"] == undefined) || (_root[("level" + currentLevel) + "Time"] == NaN)) || (_root[("level" + currentLevel) + "Time"] == "N/A")) || (_root[("level" + currentLevel) + "Time"] < targetTime)) || (_root[("level" + currentLevel) + "Time"] == "NaN")) {
var _local2 = timer / 25;
if (_local2 == Math.round(_local2)) {
_local2 = _local2 + ".00";
}
targetTime = _root[("level" + _root.currentLevel) + "TimeTarget"] / 25;
if (targetTime == Math.round(targetTime)) {
targetTime = targetTime + ".00";
}
hud.displayThis = _local2;
hud.displayThis2 = targetTime;
hud.timeIcon.gotoAndStop(2);
} else {
var _local2 = timer / 25;
var _local3 = _root[("level" + currentLevel) + "Time"] / 25;
if (_local3 == Math.round(_local3)) {
_local3 = _local3 + ".00";
}
if (_local2 == Math.round(_local2)) {
_local2 = _local2 + ".00";
}
hud.timeIcon.gotoAndStop(1);
hud.displayThis = _local2;
hud.displayThis2 = _local3;
}
}
function restartGame() {
stopAllSounds();
bananTotal = 0;
bananCollected = 0;
table_id = currentLevel;
if (table_id < 10) {
table_id = "0" + table_id;
}
giveTableId(table_id);
startedGame = true;
gotoAndStop ("restartLevel");
finshedTimer = 0;
finished = false;
timer = 0;
paused = false;
if (flag._currentframe > 1) {
flag.gotoAndPlay(26);
}
f = 1;
while (f <= (19 - currentLevel)) {
prevFrame();
f = f + 1;
}
startX = _root[("level" + currentLevel) + "X"];
startY = _root[("level" + currentLevel) + "Y"];
player.xspeed = 0;
player.yspeed = 0;
cross.xspeed = 0;
cross.yspeed = 0;
player._x = startX;
player._y = startY;
moveCam();
}
function handleEffects() {
if (player.fireTimer > 0) {
player.fireTimer = player.fireTimer - 1;
effects.id = effects.id + 1;
duplicateMovieClip (effects.fire, "fire" + effects.id, effects.id + 1);
_root.effects["fire" + effects.id]._x = player._x;
_root.effects["fire" + effects.id]._y = player._y;
effects.id = effects.id + 1;
duplicateMovieClip (effects.fire, "fire" + effects.id, effects.id + 1);
_root.effects["fire" + effects.id]._x = player._x - (player.xspeed / 1.5);
_root.effects["fire" + effects.id]._y = player._y - (player.yspeed / 1.5);
effects.id = effects.id + 1;
duplicateMovieClip (effects.fire, "fire" + effects.id, effects.id + 1);
_root.effects["fire" + effects.id]._x = player._x - (player.xspeed / 2);
_root.effects["fire" + effects.id]._y = player._y - (player.yspeed / 2);
effects.id = effects.id + 1;
duplicateMovieClip (effects.fire, "fire" + effects.id, effects.id + 1);
_root.effects["fire" + effects.id]._x = player._x - (player.xspeed / 3);
_root.effects["fire" + effects.id]._y = player._y - (player.yspeed / 3);
}
if (finishedTimer == 2) {
}
}
function moveBanan() {
var _local5 = player._x - cross._x;
var _local4 = player._y - cross._y;
var _local7 = cross._x - player._x;
var _local6 = -1 * (cross._y - player._y);
var _local2 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
var _local3 = Math.atan2(_local6, _local7);
_local3 = (_local3 / Math.PI) * 180;
cross.rot = -1 * _local3;
ropeLength = 25;
if (_local2 > ropeLength) {
cross.xspeed = cross.xspeed + (Math.cos((cross.rot - 180) * (Math.PI/180)) * ((_local2 - ropeLength) / 20));
cross.yspeed = cross.yspeed + (Math.sin((cross.rot - 180) * (Math.PI/180)) * ((_local2 - ropeLength) / 20));
}
if (_local2 > 50) {
cross._x = player._x - (Math.cos((cross.rot - 180) * (Math.PI/180)) * 50);
cross._y = player._y - (Math.sin((cross.rot - 180) * (Math.PI/180)) * 50);
}
_root.checkPenDynamic(cross, _root.walls, 100, 0.2, 0, cross._height / 2, "vert");
if (cross.pen != 0) {
cross.yspeed = cross.yspeed - (cross.pen / 2);
cross._y = cross._y - cross.pen;
}
if (walls.hitTest(cross._x, (cross._y + cross.yspeed) - 10, true) and (cross.yspeed < 0)) {
cross._y = cross._y - cross.yspeed;
cross.yspeed = -(cross.yspeed * 0.5);
}
cross.yspeed = cross.yspeed + 0.4;
cross.xspeed = cross.xspeed * 0.94;
cross.yspeed = cross.yspeed * 0.94;
cross._x = cross._x + cross.xspeed;
cross._y = cross._y + cross.yspeed;
cross._rotation = cross._rotation + (cross.xspeed * 4);
rope.clear();
rope.lineStyle(1, 0, 40);
rope.moveTo(cross._x, cross._y);
rope.lineTo(player._x, player._y);
}
stop();
level1X = -181.9;
level1Y = -535;
level2X = 92;
level2Y = 305;
level3X = -181.9;
level3Y = -535;
level4X = -169.9;
level4Y = -10;
level5X = -169.9;
level5Y = -10;
level6X = -169.9;
level6Y = -10;
level7X = -2099.8;
level7Y = -517;
level8X = -1269.5;
level8Y = -418;
level9X = -1845.7;
level9Y = -900;
level10X = -2213.7;
level10Y = -628.2;
level11X = -1325.5;
level11Y = -1119;
level12X = -835;
level12Y = -1481.4;
paused = false;
finished = false;
finishedTimer = 0;
timer = 0;
bestTime = 0;
attached = false;
startedGame = false;
bananTotal = 0;
bananCollected = 0;
cross.xspeed = 0;
cross.yspeed = 0;
onEnterFrame = function () {
hud.scoreShower = _root.score;
calcSpeed(player);
if (player.speed > 10) {
windSound.setVolume((player.speed - 10) / 4);
} else {
windSound.setVolume(0);
}
moveCam();
checkTramps();
gameRules();
if (Key.isDown(32) and (hud.menuD._currentframe == 1)) {
restartGame();
}
handleEffects();
if (startedGame == false) {
restartGame();
}
};
Instance of Symbol 121 MovieClip in Frame 229
onClipEvent (enterFrame) {
_x = ((300 - _root._x) / 3);
_y = ((250 - _root._y) / 4);
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 229
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 144 MovieClip "player" in Frame 229
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
grav = 0.4;
pen = 0;
pen1 = 0;
pen2 = 0;
rotSpeed = 0;
safeTimer = 0;
airTimer = 0;
fireTimer = 0;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
if (hitSoundTimer > 0) {
hitSoundTimer = hitSoundTimer - 1;
} else {
hitSoundTimer = 0;
}
pen = 0;
pen1 = 0;
pen2 = 0;
if (_root.walls.hitTest(_x, _y + (_height / 2), true)) {
if ((yspeed > 10) and (hitSoundTimer <= 0)) {
hitSound = new Sound(this);
hitSound.attachSound("hitWall");
hitSound.start(0, 1);
hitSoundTimer = 10;
}
if (yspeed > 0) {
var ycheck = (50 + yspeed);
} else {
var ycheck = 50;
}
_root.checkPenDynamic(this, _root.walls, ycheck, 1, _width / 2, (_height / 2) + 20, "vert");
if (pen == 0) {
var pen1 = 0;
if (xspeed > 0) {
xspeed = -(xspeed * 0.5);
}
_x = (_x - 1);
xspeed = xspeed - 0.5;
} else if (pen == 40) {
} else {
var pen1 = (40 - pen);
}
_root.checkPenDynamic(this, _root.walls, ycheck, 1, -(_width / 2), (_height / 2) + 20, "vert");
if (pen == 0) {
pen1 = 0;
var pen2 = 0;
if (xspeed < 0) {
xspeed = -(xspeed * 0.5);
}
_x = (_x + 1);
xspeed = xspeed + 0.5;
} else if (pen == 40) {
} else if (pen1 == 0) {
var pen2 = 0;
} else {
var pen2 = (40 - pen);
}
if (yspeed > 0) {
var ycheck = yspeed;
} else {
var ycheck = (-yspeed);
}
_root.checkPenDynamic(this, _root.walls, 100, 0.2, 0, _height / 2, "vert");
if ((pen == 0) and (yspeed > 0)) {
yspeed = -yspeed;
}
}
if (pen != 0) {
yspeed = yspeed - (pen / 2);
_y = (_y - pen);
}
var offsetY = 0;
if (xspeed > 0) {
offsetY = offsetY + xspeed;
} else {
offsetY = offsetY - xspeed;
}
if (yspeed < 0) {
ycheck = (_height / 2) + offsetY;
} else {
ycheck = (_height / 2) + offsetY;
}
if ((pen1 == 0) and (pen2 == 0)) {
if (_root.walls.hitTest(_x, (_y + (_height / 2)) + 5, true)) {
if ((_root.walls.hitTest((_x + (_width / 2)) + xspeed, _y - ycheck, true) and (xspeed > 0)) || (_root.walls.hitTest((_x - (_width / 2)) + xspeed, _y - ycheck, true) and (xspeed < 0))) {
if ((_root.walls.hitTest((_x + (_width / 2)) + xspeed, _y, true) and (xspeed > 0)) || (_root.walls.hitTest((_x - (_width / 2)) + xspeed, _y, true) and (xspeed < 0))) {
_x = (_x - xspeed);
xspeed = -(xspeed * 0.2);
if ((speed > 5) and (hitSoundTimer <= 0)) {
hitSound = new Sound(this);
hitSound.attachSound("hitWall");
hitSound.start(0, 1);
hitSoundTimer = 10;
}
}
}
} else if ((_root.walls.hitTest((_x + (_width / 2)) + xspeed, _y, true) and (xspeed > 0)) || (_root.walls.hitTest((_x - (_width / 2)) + xspeed, _y, true) and (xspeed < 0))) {
_x = (_x - xspeed);
xspeed = -(xspeed * 0.2);
if ((speed > 5) and (hitSoundTimer <= 0)) {
hitSound = new Sound(this);
hitSound.attachSound("hitWall");
hitSound.start(0, 1);
hitSoundTimer = 10;
}
}
}
if (_root.walls.hitTest(_x, (_y - (_height / 2)) + yspeed, true) and (yspeed < 0)) {
if ((yspeed < -5) and (hitSoundTimer <= 0)) {
hitSound = new Sound(this);
hitSound.attachSound("hitWall");
hitSound.start(0, 1);
hitSoundTimer = 10;
}
yspeed = -(yspeed * 0.3);
}
var slopeAdd = ((pen1 - pen2) / 30);
if (slopeAdd > 0.2) {
if (slopeAdd > 1) {
slopeAdd = 1 - (slopeAdd - 1);
if (slopAdd < 0.3) {
slopeAdd = 0.3;
}
}
} else if (slopeAdd < -0.2) {
if (slopeAdd < -1) {
slopeAdd = -1 - (slopeAdd + 1);
if (slopAdd > -0.3) {
slopeAdd = -0.3;
}
}
}
if (yspeed > 2) {
slopeAdd = ((slopeAdd * 30) * yspeed) / 30;
}
if ((slopeAdd > 0.2) || (slopeAdd < -0.2)) {
xspeed = xspeed + slopeAdd;
}
yspeed = yspeed + grav;
rotSpeed = rotSpeed + (xspeed / 4);
if (Key.isDown(40)) {
if (_root.walls.hitTest(_x, _y + ((_height / 2) + 5), true)) {
} else {
yspeed = yspeed + 0.1;
}
}
if (Key.isDown(40) and _root.walls.hitTest(_x, _y + ((_height / 2) + 5), true)) {
xspeed = xspeed * 0.99;
yspeed = yspeed * 0.99;
} else if (_root.walls.hitTest(_x, _y + ((_height / 2) + 5), true)) {
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
} else {
xspeed = xspeed * 0.98;
yspeed = yspeed * 0.98;
}
rotSpeed = rotSpeed * 0.92;
_rotation = (_rotation + rotSpeed);
if (_rotation < 0) {
_rotation = (_rotation + 360);
}
if (_rotation > 360) {
_rotation = (_rotation - 360);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((((xspeed > 2) || (xspeed < -2)) || (yspeed > 2)) || (yspeed < -2)) {
if (_root.walls.hitTest(_x, _y + _height, true)) {
if ((_currentframe == 1) || (_currentframe > 15)) {
gotoAndPlay ("falling");
}
airTimer = 0;
} else {
airTimer = airTimer + 1;
if (airTimer > 125) {
_root.fiveSecondAir = true;
}
}
if ((airTimer > 4) and (_currentframe < 25)) {
gotoAndPlay ("inAir");
}
safeTimer = 20;
standing = false;
} else if (safeTimer == 0) {
xspeed = xspeed * 0.92;
rotSpeed = -(_rotation / 5);
if (standing == false) {
gotoAndPlay ("standUp");
standing = true;
}
} else {
safeTimer = safeTimer - 1;
}
if (_root.walls.hitTest(_x, _y + ((_height / 2) + 5), true)) {
if (Key.isDown(38)) {
jumpSound = new Sound(this);
jumpSound.attachSound("jump");
jumpSound.start(0, 1);
yspeed = -10;
}
if (Key.isDown(37) and (xspeed > -7)) {
xspeed = xspeed - 0.5;
}
if (Key.isDown(39) and (xspeed < 7)) {
xspeed = xspeed + 0.5;
}
} else if (_root.walls.hitTest((_x - (_width / 2)) + (xspeed * 1.5), _y + 0, true)) {
if (Key.isDown(38)) {
jumpSound = new Sound(this);
jumpSound.attachSound("jump");
jumpSound.start(0, 1);
yspeed = -8;
xspeed = xspeed + 10;
}
} else if (_root.walls.hitTest((_x + (_width / 2)) + (xspeed * 1.5), _y + 0, true)) {
if (Key.isDown(38)) {
jumpSound = new Sound(this);
jumpSound.attachSound("jump");
jumpSound.start(0, 1);
yspeed = -8;
xspeed = xspeed - 10;
}
}
if (Key.isDown(37) and (xspeed > -7)) {
xspeed = xspeed - 0.2;
}
if (Key.isDown(39) and (xspeed < 7)) {
xspeed = xspeed + 0.2;
}
} else {
stop();
}
}
Instance of Symbol 215 MovieClip "effects" in Frame 229
onClipEvent (load) {
id = 0;
}
onClipEvent (enterFrame) {
if (id > 200) {
id = 0;
}
}
Instance of Symbol 129 MovieClip in Frame 230
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 308 MovieClip "exit2" in Frame 231
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit1;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit1" in Frame 231
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit2;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 314 MovieClip in Frame 231
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 231
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 231
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 231
onClipEvent (load) {
target = _parent.player;
speed = 4;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 231
onClipEvent (load) {
target = _parent.player;
speed = 4;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 129 MovieClip in Frame 232
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 232
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 232
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 232
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 346 MovieClip in Frame 232
onClipEvent (load) {
timer = 0;
target = _parent.player;
gravDist = 250;
gravStrength = 0.025;
powerOut = 10;
chargeTime = 50;
}
onClipEvent (load) {
charger = 0;
active = true;
_x = (_x - (-5 + random(10)));
_y = (_y - (-5 + random(10)));
id = 0;
j = 0;
while (j < 60) {
target = this["dust" + j];
duplicateMovieClip (dust, "dust" + j, j + 1);
this["dust" + j]._x = -200 + random(400);
this["dust" + j]._y = -200 + random(400);
this["dust" + j].xspeed = 0;
this["dust" + j].yspeed = 0;
this["dust" + j]._alpha = 0;
j = j + 1;
}
dust._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
j = 0;
while (j < 20) {
target = this["dust" + j];
var adj = this["dust" + j]._x;
var opp = this["dust" + j]._y;
var adjside = this["dust" + j]._x;
var oppside = (-1 * this["dust" + j]._y);
var dist = Math.sqrt((opp * opp) + (adj * adj));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rot = (-1 * angle);
if (active == true) {
this["dust" + j].xspeed = this["dust" + j].xspeed + (-(Math.cos((rot - 180) * (Math.PI/180)) * ((dist - gravDist) * (gravStrength / 5))));
this["dust" + j].yspeed = this["dust" + j].yspeed + (-(Math.sin((rot - 180) * (Math.PI/180)) * ((dist - gravDist) * (gravStrength / 5))));
if (this["dust" + j]._alpha < 100) {
this["dust" + j]._alpha = this["dust" + j]._alpha + 5;
}
} else {
if (this["dust" + j]._alpha > 0) {
this["dust" + j]._alpha = this["dust" + j]._alpha - 5;
}
this["dust" + j].yspeed = this["dust" + j].yspeed + 0.4;
}
this["dust" + j]._rotation = this["dust" + j]._rotation + this["dust" + j].xspeed;
this["dust" + j].xspeed = this["dust" + j].xspeed * 0.97;
this["dust" + j].yspeed = this["dust" + j].yspeed * 0.97;
this["dust" + j]._x = this["dust" + j]._x + this["dust" + j].xspeed;
this["dust" + j]._y = this["dust" + j]._y + this["dust" + j].yspeed;
if ((dist < 15) || (dist > 200)) {
this["dust" + j]._x = -200 + random(400);
this["dust" + j]._y = -200 + random(400);
this["dust" + j].xspeed = 0;
this["dust" + j].yspeed = 0;
this["dust" + j]._alpha = 0;
}
j = j + 1;
}
target = _parent.player;
var adj = (_x - target._x);
var opp = (_y - target._y);
var adjside = (target._x - _x);
var oppside = (-1 * (target._y - _y));
var dist = Math.sqrt((opp * opp) + (adj * adj));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rot = (-1 * angle);
var speed = (-((dist - gravDist) * gravStrength));
if ((dist < (gravDist - 30)) and (active == true)) {
target.xspeed = target.xspeed - (Math.cos((rot - 180) * (Math.PI/180)) * ((dist - gravDist) * gravStrength));
target.yspeed = target.yspeed - (Math.sin((rot - 180) * (Math.PI/180)) * ((dist - gravDist) * gravStrength));
timer = timer + 1;
j = 0;
while (j < 1) {
_root.effects.id = _root.effects.id + 1;
duplicateMovieClip (_root.effects.fireF, "fire" + _root.effects.id, _root.effects.id + 1);
_root.effects["fire" + _root.effects.id].xspeed = _root.player.xspeed;
_root.effects["fire" + _root.effects.id].yspeed = _root.player.yspeed;
_root.effects["fire" + _root.effects.id]._x = _root.player._x - ((_root.player.xspeed / 4) + random(10));
_root.effects["fire" + _root.effects.id]._y = _root.player._y - ((_root.player.yspeed / 4) + random(10));
_root.effects["fire" + _root.effects.id].target = this;
j = j + 1;
}
} else if (timer > 0) {
timer = timer - 1;
}
if (timer > powerOut) {
active = false;
}
if (active == false) {
mouth.gotoAndStop(2);
charger = charger + 1;
if (_currentframe < 10) {
play();
}
} else {
mouth.gotoAndStop(1);
if (_currentframe >= 10) {
play();
}
}
if (charger > chargeTime) {
active = true;
charger = 0;
}
}
}
Instance of Symbol 341 MovieClip in Frame 232
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Instance of Symbol 129 MovieClip in Frame 233
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 314 MovieClip in Frame 233
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 233
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 233
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 234
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 308 MovieClip "exit2" in Frame 234
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit1;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit1" in Frame 234
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit2;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 235
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 314 MovieClip in Frame 235
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 235
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 235
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 235
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 235
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 308 MovieClip "exit2" in Frame 235
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit1;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit1" in Frame 235
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit2;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 314 MovieClip in Frame 235
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 346 MovieClip in Frame 236
onClipEvent (load) {
timer = 0;
target = _parent.player;
gravDist = 750;
gravStrength = 0.005;
powerOut = 10;
chargeTime = 30;
}
onClipEvent (load) {
charger = 0;
active = true;
_x = (_x - (-5 + random(10)));
_y = (_y - (-5 + random(10)));
id = 0;
j = 0;
while (j < 60) {
target = this["dust" + j];
duplicateMovieClip (dust, "dust" + j, j + 1);
this["dust" + j]._x = -200 + random(400);
this["dust" + j]._y = -200 + random(400);
this["dust" + j].xspeed = 0;
this["dust" + j].yspeed = 0;
this["dust" + j]._alpha = 0;
j = j + 1;
}
dust._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
j = 0;
while (j < 20) {
target = this["dust" + j];
var adj = this["dust" + j]._x;
var opp = this["dust" + j]._y;
var adjside = this["dust" + j]._x;
var oppside = (-1 * this["dust" + j]._y);
var dist = Math.sqrt((opp * opp) + (adj * adj));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rot = (-1 * angle);
if (active == true) {
this["dust" + j].xspeed = this["dust" + j].xspeed + (-(Math.cos((rot - 180) * (Math.PI/180)) * ((dist - gravDist) * (gravStrength / 5))));
this["dust" + j].yspeed = this["dust" + j].yspeed + (-(Math.sin((rot - 180) * (Math.PI/180)) * ((dist - gravDist) * (gravStrength / 5))));
if (this["dust" + j]._alpha < 100) {
this["dust" + j]._alpha = this["dust" + j]._alpha + 5;
}
} else {
if (this["dust" + j]._alpha > 0) {
this["dust" + j]._alpha = this["dust" + j]._alpha - 5;
}
this["dust" + j].yspeed = this["dust" + j].yspeed + 0.4;
}
this["dust" + j]._rotation = this["dust" + j]._rotation + this["dust" + j].xspeed;
this["dust" + j].xspeed = this["dust" + j].xspeed * 0.97;
this["dust" + j].yspeed = this["dust" + j].yspeed * 0.97;
this["dust" + j]._x = this["dust" + j]._x + this["dust" + j].xspeed;
this["dust" + j]._y = this["dust" + j]._y + this["dust" + j].yspeed;
if ((dist < 15) || (dist > 200)) {
this["dust" + j]._x = -200 + random(400);
this["dust" + j]._y = -200 + random(400);
this["dust" + j].xspeed = 0;
this["dust" + j].yspeed = 0;
this["dust" + j]._alpha = 0;
}
j = j + 1;
}
target = _parent.player;
var adj = (_x - target._x);
var opp = (_y - target._y);
var adjside = (target._x - _x);
var oppside = (-1 * (target._y - _y));
var dist = Math.sqrt((opp * opp) + (adj * adj));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rot = (-1 * angle);
var speed = (-((dist - gravDist) * gravStrength));
if ((dist < (gravDist - 30)) and (active == true)) {
target.xspeed = target.xspeed - (Math.cos((rot - 180) * (Math.PI/180)) * ((dist - gravDist) * gravStrength));
target.yspeed = target.yspeed - (Math.sin((rot - 180) * (Math.PI/180)) * ((dist - gravDist) * gravStrength));
timer = timer + 1;
j = 0;
while (j < 1) {
_root.effects.id = _root.effects.id + 1;
duplicateMovieClip (_root.effects.fireF, "fire" + _root.effects.id, _root.effects.id + 1);
_root.effects["fire" + _root.effects.id].xspeed = _root.player.xspeed;
_root.effects["fire" + _root.effects.id].yspeed = _root.player.yspeed;
_root.effects["fire" + _root.effects.id]._x = _root.player._x - ((_root.player.xspeed / 4) + random(10));
_root.effects["fire" + _root.effects.id]._y = _root.player._y - ((_root.player.yspeed / 4) + random(10));
_root.effects["fire" + _root.effects.id].target = this;
j = j + 1;
}
} else if (timer > 0) {
timer = timer - 1;
}
if (timer > powerOut) {
active = false;
}
if (active == false) {
mouth.gotoAndStop(2);
charger = charger + 1;
if (_currentframe < 10) {
play();
}
} else {
mouth.gotoAndStop(1);
if (_currentframe >= 10) {
play();
}
}
if (charger > chargeTime) {
active = true;
charger = 0;
}
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 236
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 237
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 308 MovieClip "exit2" in Frame 237
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit1;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit1" in Frame 237
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit2;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 314 MovieClip in Frame 238
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 308 MovieClip "exit2" in Frame 238
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit1;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit1" in Frame 238
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit2;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 314 MovieClip in Frame 238
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 308 MovieClip "exit3" in Frame 238
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit4;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit4" in Frame 238
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit3;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit5" in Frame 238
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit6;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit6" in Frame 238
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 314 MovieClip in Frame 238
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 238
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 238
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 238
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 238
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 314 MovieClip in Frame 238
onClipEvent (load) {
target = _parent.player;
speed = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
target.xspeed = target.xspeed + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
target.yspeed = target.yspeed + (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
effect.play();
_parent.player.fireTimer = _parent.player.fireTimer + 5;
if (soundFree == true) {
hitSound = new Sound(this);
hitSound.attachSound("zoom");
hitSound.start(0, 1);
soundFree = false;
}
} else {
soundFree = true;
}
}
Instance of Symbol 308 MovieClip "exit2" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit1" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit3" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit4" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit8" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit7" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit9" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit15;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit10" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit11" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit8;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit12" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit1;
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit13" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit14;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit14" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 308 MovieClip "exit15" in Frame 239
onClipEvent (load) {
target = _parent.player;
exit = _parent.exit5;
trace(_rotation);
}
onClipEvent (enterFrame) {
if (this.hitTest(target._x, target._y, true)) {
var adjside = (target._x - (target._x + target.xspeed));
var oppside = (-1 * (target._y - (target._y + target.yspeed)));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var rotTarget = ((-1 * angle) + 90);
exitRot = exit._rotation - 90;
myRot = _rotation;
i = 0;
while (i < 5) {
if (exitRot < 0) {
exitRot = exitRot + 360;
}
if (myRot < 0) {
myRot = myRot + 360;
}
if (rotTarget < 0) {
rotTarget = rotTarget + 360;
}
i = i + 1;
}
trace((rotTarget + " ") + myRot);
if (((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) < 90) || ((Math.max(rotTarget, myRot) - Math.min(rotTarget, myRot)) > 270)) {
play();
storeXspeed = target.xspeed;
storeYspeed = target.yspeed;
target._x = exit._x;
target._y = exit._y;
_root.cross._x = exit._x;
_root.cross._y = exit._y;
var speed = 0;
if (target.xspeed > 0) {
speed = speed + target.xspeed;
} else {
speed = speed - target.xspeed;
}
if (target.yspeed > 0) {
speed = speed + target.yspeed;
} else {
speed = speed - target.yspeed;
}
var endRot = (exitRot - (rotTarget - myRot));
var enterRot = ((myRot + 90) - rotTarget);
target.xspeed = Math.cos(endRot * (Math.PI/180)) * speed;
target.yspeed = Math.sin(endRot * (Math.PI/180)) * speed;
}
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Instance of Symbol 129 MovieClip in Frame 240
onClipEvent (load) {
_rotation = random(360);
_root.bananTotal = _root.bananTotal + 1;
}
onClipEvent (enterFrame) {
if ((_root.timer <= 1) and (_currentframe == 2)) {
_root.bananTotal = _root.bananTotal + 1;
gotoAndStop (228);
}
_rotation = (_rotation + 5);
if (this.hitTest(_parent.player)) {
_root.bananCollected = _root.bananCollected + 1;
_root.timer = _root.timer - 6.25;
play();
}
}
Frame 268
wind = 0.1;
bid = 0;
doneTimer = 0;
onEnterFrame = function () {
watchMedals();
doneTimer = doneTimer + 1;
if (random(7) == 1) {
bid = bid + 1;
duplicateMovieClip (baloonHolder.baloon, "baloon" + bid, bid + 1);
}
};
onMouseUp = function () {
if (doneTimer > 10) {
getURL ("http://www.johnnytwoshoes.com/game/bananadashworldtwo", "_blank");
doneMenu = false;
fader.target = "levelSelect";
fader.play();
}
};
_x = 0;
_y = 0;
remove = true;
Symbol 5 MovieClip Frame 10
stop();
Symbol 5 MovieClip Frame 20
if (target != "restartGame") {
_root.gotoAndStop(target);
} else {
_root.restartGame();
}
Symbol 419 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 30 MovieClip Frame 1
_root.cardId = _root.cardId + 1;
gotoAndStop(_root.cardId);
onRelease = function () {
getURL (linkUrl, "_blank");
};
linkUrl = "http://www.johnnytwoshoes.com/game/thermostorm/";
Symbol 30 MovieClip Frame 2
linkUrl = "http://www.johnnytwoshoes.com/game/piratesofjts/";
Symbol 30 MovieClip Frame 3
linkUrl = "http://www.johnnytwoshoes.com/game/comatosenew/";
Symbol 30 MovieClip Frame 4
linkUrl = "http://www.johnnytwoshoes.com/game/catchoftheday/";
Symbol 30 MovieClip Frame 5
linkUrl = "http://www.johnnytwoshoes.com/game/attak/";
Symbol 30 MovieClip Frame 6
linkUrl = "http://www.johnnytwoshoes.com/game/highspeedchase/";
Symbol 30 MovieClip Frame 7
linkUrl = "http://www.johnnytwoshoes.com/game/abirdsjourney/";
Symbol 31 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((random(5) == 1) and (_currentframe == 1)) {
play();
}
};
Symbol 31 MovieClip Frame 65
stop();
Symbol 36 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Instance of Symbol 36 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 1 * (_xscale / 100);
if (speed < 0) {
speed = speed * 1;
}
_x = (_x - speed);
if ((_x < -400) and (random(10) == 1)) {
gotoAndStop(1 + random(_totalframes));
_x = (_x + 900);
}
}
Instance of Symbol 36 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 1 * (_xscale / 100);
if (speed < 0) {
speed = speed * 1;
}
_x = (_x - speed);
if ((_x < -400) and (random(10) == 1)) {
gotoAndStop(1 + random(_totalframes));
_x = (_x + 900);
}
}
Instance of Symbol 36 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 1 * (_xscale / 100);
if (speed < 0) {
speed = speed * 1;
}
_x = (_x - speed);
if ((_x < -400) and (random(10) == 1)) {
gotoAndStop(1 + random(_totalframes));
_x = (_x + 900);
}
}
Instance of Symbol 36 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 1 * (_xscale / 100);
if (speed < 0) {
speed = speed * 1;
}
_x = (_x - speed);
if ((_x < -400) and (random(10) == 1)) {
gotoAndStop(1 + random(_totalframes));
_x = (_x + 900);
}
}
Instance of Symbol 36 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 1 * (_xscale / 100);
if (speed < 0) {
speed = speed * 1;
}
_x = (_x - speed);
if ((_x < -400) and (random(10) == 1)) {
gotoAndStop(1 + random(_totalframes));
_x = (_x + 900);
}
}
Instance of Symbol 36 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 1 * (_xscale / 100);
if (speed < 0) {
speed = speed * 1;
}
_x = (_x - speed);
if ((_x < -400) and (random(10) == 1)) {
gotoAndStop(1 + random(_totalframes));
_x = (_x + 900);
}
}
Symbol 48 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
gotoAndStop (2);
}
};
Symbol 57 Button
on (release) {
getURL ("http://www.johnnytwoshoes.com/", "_blank");
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 1
stop();
mouseOverHere = false;
onRollOver = function () {
mouseOverHere = true;
};
onRollOut = function () {
mouseOverHere = false;
};
onDragOut = function () {
mouseOverHere = false;
};
onEnterFrame = function () {
if (_root.levelUnlocked >= myLevel) {
if (mouseOverHere == false) {
gotoAndStop ("number");
} else {
gotoAndStop ("hover");
}
} else {
gotoAndStop ("locked");
}
};
numberD.gotoAndStop(myLevel);
onRelease = function () {
if (_root.levelUnlocked >= myLevel) {
stopAllSounds();
_root.levelSelected = myLevel;
_root.currentLevel = myLevel;
_root.fader.target = "game";
_root.fader.gotoAndPlay(11);
}
};
Symbol 109 MovieClip Frame 20
targetTime = _root[("level" + myLevel) + "TimeTarget"] / 25;
if (targetTime == Math.round(targetTime)) {
targetTime = targetTime + ".00";
}
if (_root[("level" + myLevel) + "Time"] != undefined) {
bestTime = _root[("level" + myLevel) + "Time"] / 25;
} else {
bestTime = "--.--";
}
if (bestTime == Math.round(bestTime)) {
bestTime = bestTime + ".00";
}
if (_root[("level" + myLevel) + "Banan"] == true) {
bananCollected = "GOT";
} else {
bananCollected = "NEED";
}
Symbol 120 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 15
stop();
Symbol 144 MovieClip Frame 25
gotoAndStop (1);
Symbol 144 MovieClip Frame 40
gotoAndPlay ("inAir");
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 26
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
light.play();
Symbol 158 MovieClip Frame 25
stop();
i = 0;
while (i < 60) {
_root.effects.id = _root.effects.id + 1;
duplicateMovieClip (_root.effects.conf, "conf" + _root.effects.id, _root.effects.id + 1);
_root.effects["conf" + _root.effects.id]._x = _x;
_root.effects["conf" + _root.effects.id]._y = _y - 50;
i = i + 1;
}
Symbol 201 MovieClip Frame 20
i = 0;
while (i < 60) {
_root.effects.id = _root.effects.id + 1;
duplicateMovieClip (_root.effects.conf, "conf" + _root.effects.id, _root.effects.id + 1);
_root.effects["conf" + _root.effects.id]._x = _x;
_root.effects["conf" + _root.effects.id]._y = _y;
i = i + 1;
}
Symbol 201 MovieClip Frame 35
stop();
Symbol 204 MovieClip Frame 16
stop();
Symbol 214 MovieClip Frame 1
gotoAndStop(1 + random(2));
Instance of Symbol 211 MovieClip "conf" in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
xspeed = (-100 + random(200)) / 10;
yspeed = (-random(150)) / 10;
grav = 0.4;
life = 100;
gotoAndStop(1 + random(_totalframes));
if (_name == "conf") {
_alpha = 0;
} else {
_alpha = 100;
}
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
yspeed = yspeed + grav;
xspeed = xspeed * 0.96;
yspeed = yspeed * 0.96;
_rotation = (_rotation + xspeed);
_x = (_x + xspeed);
_y = (_y + yspeed);
life = life - 1;
if ((life < 20) and (life > -1)) {
_alpha = (life * 5);
}
}
}
Instance of Symbol 214 MovieClip "fireF" in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
speed = target.speed * 3;
life = 20;
speed = 0;
if (_name == "fireF") {
_alpha = 0;
} else {
_alpha = 100;
}
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
if (target.active == true) {
var adjside = (_x - target._x);
var oppside = (-1 * (_y - target._y));
var adj = (_x - target._x);
var opp = (_y - target._y);
var dist = Math.sqrt((opp * opp) + (adj * adj));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
_rotation = ((-1 * angle) - 180);
speed = -((dist - target.gravDist) * target.gravStrength);
xspeed = xspeed + (Math.cos(_rotation * (Math.PI/180)) * speed);
yspeed = yspeed + (Math.sin(_rotation * (Math.PI/180)) * speed);
} else {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
yspeed = yspeed + 0.4;
}
_x = (_x + xspeed);
_y = (_y + yspeed);
life = life - 1;
if ((_name != "fireF") and (dist < 20)) {
removeMovieClip(this);
}
}
}
Symbol 236 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndStop ("on");
};
onRollOut = function () {
gotoAndStop ("off");
};
onDragOut = function () {
gotoAndStop ("off");
};
Symbol 242 Button
on (release) {
getURL ("http://www.johnnytwoshoes.com/game/bananadashworldtwo", "_blank");
}
Symbol 246 Button
on (release) {
_root.muteGame();
}
Symbol 250 Button
on (release) {
_root.muteGame();
}
Symbol 251 MovieClip Frame 5
stop();
Symbol 251 MovieClip Frame 10
stop();
Symbol 255 MovieClip Frame 1
bananText = ((("COLLECTED " + _root.bananCollected) + " of ") + _root.bananTotal) + " BANANAS";
button1.buttonName = "RESUME";
button2.buttonName = "CHOOSE LEVEL";
targetTime = _root[("level" + _root.currentLevel) + "TimeTarget"] / 25;
if (targetTime == Math.round(targetTime)) {
targetTime = targetTime + ".00";
}
showTime = targetTime;
Instance of Symbol 236 MovieClip "button2" in Symbol 255 MovieClip Frame 1
on (release) {
stopAllSounds();
_root.hud.fader.target = "levelSelect";
_root.hud.fader.play();
}
Instance of Symbol 236 MovieClip "button1" in Symbol 255 MovieClip Frame 1
on (release) {
_parent._parent.play();
}
Instance of Symbol 251 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
if (_root.muted == true) {
gotoAndStop (10);
} else {
gotoAndStop (5);
}
}
onClipEvent (enterFrame) {
if (_root.muted == true) {
gotoAndStop (10);
} else {
gotoAndStop (5);
}
}
Symbol 256 MovieClip Frame 1
onEnterFrame = function () {
if ((_currentframe != 1) || (_root.paused == false)) {
if (Key.isDown(27)) {
play();
}
}
};
_root.paused = false;
stop();
Symbol 256 MovieClip Frame 2
_root.paused = true;
Symbol 256 MovieClip Frame 10
stop();
Symbol 264 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndStop ("on");
};
onRollOut = function () {
gotoAndStop ("off");
};
onDragOut = function () {
gotoAndStop ("off");
};
Symbol 269 Button
on (release) {
getURL ("http://www.johnnytwoshoes.com/game/bananadash", "_blank");
}
Symbol 272 MovieClip Frame 1
stop();
button1.buttonName = "NEXT";
button3.buttonName = "RETRY";
button2.buttonName = "CHOOSE LEVEL";
onEnterFrame = function () {
winMessage = ((("WON LEVEL " + _root.currentLevel) + " BY ") + (-(_parent.wonBy / 25))) + " SECONDS";
};
Instance of Symbol 236 MovieClip "button2" in Symbol 272 MovieClip Frame 1
on (release) {
stopAllSounds();
_root.hud.fader.target = "levelSelect";
_root.hud.fader.play();
}
Instance of Symbol 264 MovieClip "button3" in Symbol 272 MovieClip Frame 1
on (release) {
stopAllSounds();
_root.hud.fader.target = "restartGame";
_root.hud.fader.play();
_parent._parent.gotoAndStop(1);
}
Instance of Symbol 264 MovieClip "button1" in Symbol 272 MovieClip Frame 1
on (release, keyPress "<Space>") {
stopAllSounds();
_root.currentLevel = _root.currentLevel + 1;
_root.hud.fader.target = "restartGame";
_root.hud.fader.play();
_parent._parent.gotoAndStop(1);
}
Symbol 272 MovieClip Frame 15
button1.buttonName = "RETRY";
button2.buttonName = "CHOOSE LEVEL";
onEnterFrame = function () {
winMessage = ("LOST BY " + (_parent.wonBy / 25)) + " SECONDS";
};
Instance of Symbol 236 MovieClip "button1" in Symbol 272 MovieClip Frame 15
on (release, keyPress "<Space>") {
stopAllSounds();
_root.hud.fader.target = "restartGame";
_root.hud.fader.play();
_parent._parent.gotoAndStop(1);
}
Symbol 272 MovieClip Frame 30
stop();
button1.buttonName = "NEXT";
button2.buttonName = "CHOOSE LEVEL";
onEnterFrame = function () {
winMessage = ("WON BY " + (-(_parent.wonBy / 25))) + " SECONDS";
};
Symbol 273 MovieClip Frame 1
stop();
levelSelected = 1;
Symbol 273 MovieClip Frame 2
targetTime = _root[("level" + _root.currentLevel) + "TimeTarget"];
wonBy = _root.timer - targetTime;
if (_root.bananTotal == _root.bananCollected) {
_root[("level" + _root.currentLevel) + "Banan"] = true;
}
if (_root.timer < targetTime) {
if (_root.currentLevel < 12) {
screen.gotoAndStop("win");
if (_root.levelUnlocked < (_root.currentLevel + 1)) {
_root.levelUnlocked = _root.currentLevel + 1;
}
} else {
_root.levelUnlocked = 13;
screen.gotoAndStop("end");
_root.hud.fader.target = "end";
_root.hud.fader.play();
}
} else {
screen.gotoAndStop("loss");
}
timesbeating = 0;
l = 1;
while (l <= 12) {
if (_root[("level" + l) + "Time"] <= (_root[("level" + l) + "TimeTarget"] - 250)) {
timesbeating = timesbeating + 1;
}
l = l + 1;
}
if (timesbeating >= 12) {
_root.beatByTen = true;
}
if (_root.timer <= (targetTime - 750)) {
_root.beatByThirty = true;
}
bananDone = 0;
b = 1;
while (b <= 12) {
if (_root[("level" + b) + "Banan"] == true) {
bananDone = bananDone + 1;
}
b = b + 1;
}
if (bananDone >= 12) {
_root.allBanans = true;
}
beatTimes = 0;
t = 1;
while (t <= 12) {
if (_root[("level" + t) + "TimeBeat"] == true) {
beatTimes = beatTimes + 1;
}
t = t + 1;
}
if (beatTimes >= 12) {
_root.perfectionist = true;
}
Symbol 273 MovieClip Frame 9
stopAllSounds();
Symbol 273 MovieClip Frame 10
stop();
pressedTimer = 0;
levelSelected = 1;
i = 1;
while (i <= 3) {
this["level" + i].selected = false;
i = i + 1;
}
onEnterFrame = function () {
if (pressedTimer == 0) {
if (Key.isDown(38) and (levelSelected > 1)) {
this["level" + levelSelected].selected = false;
levelSelected = levelSelected - 1;
pressedTimer = 6;
}
if (Key.isDown(40) and (levelSelected < 3)) {
this["level" + levelSelected].selected = false;
levelSelected = levelSelected + 1;
pressedTimer = 6;
}
this["level" + levelSelected].selected = true;
currentLevel = levelSelected;
} else {
pressedTimer = pressedTimer - 1;
}
};
_root.saveTimes();
Symbol 281 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 1
onEnterFrame = function () {
vortex._rotation = vortex._rotation + 10;
};
Symbol 308 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 1
stop();
Instance of Symbol 341 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Symbol 412 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Instance of Symbol 417 MovieClip "baloon" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
_x = (-200 + random(600));
_xscale = (50 + random(150));
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (_name != "baloon") {
xspeed = xspeed + _root.wind;
yspeed = yspeed + -0.2;
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
_y = (_y + (yspeed * (_xscale / 100)));
_x = (_x + (xspeed * (_xscale / 100)));
_rotation = (xspeed * 3);
if (_y < -200) {
removeMovieClip(this);
}
}
}