Combined Code
frame 1 {
_root.kongregateServices.connect();
}
frame 1 {
myColor = 0;
}
frame 1 {
function Lbar() {
loadcheat = Number(loadcheat + 0.25);
_root.spinamount = (getBytesLoaded() / getBytesTotal()) * 100;
txtx = Math.ceil(((getBytesLoaded() / getBytesTotal()) * 100 + loadcheat) / 2) + '%';
txtxtx.text = Math.ceil(getBytesLoaded() / 1000) + 'KB/' + Math.ceil(getBytesTotal() / 1000) + 'KB loaded';
if (txtx == '100%' or Math.ceil(((getBytesLoaded() / getBytesTotal()) * 100 + loadcheat) / 2) > 99) {
txtx = '';
playb._visible = true;
clearInterval(LoaderInt);
}
}
stop();
loadcheat = 0;
LoaderInt = setInterval(Lbar, 10);
}
frame 1 {
var CPMStarContentSpotID = '2536Q977FBD09';
System.security.allowDomain('server.cpmstar.com');
var urlString = _root._url;
}
// unknown tag 88 length 175
// unknown tag 88 length 51
movieClip 7 {
}
instance playb of movieClip 7 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
onClipEvent (release) {
_root.nextFrame();
}
}
movieClip 10 {
}
// unknown tag 88 length 106
movieClip 17 {
}
movieClip 18 {
instance of movieClip 17 {
onClipEvent (release) {
getURL('http://sims5000.newgrounds.com', '');
}
}
}
instance of movieClip 18 {
onClipEvent (load) {
xspeed = 0;
}
onClipEvent (enterFrame) {
this._rotation += _root.spinamount / 2;
}
}
// unknown tag 88 length 164
movieClip 25 {
frame 1 {
stop();
}
}
instance locker of movieClip 25 {
onClipEvent (load) {
if (_root._url.indexOf('softschools.com') == -1) {
}
}
}
movieClip 1068 __Packages.com.gameshed.GameShedAchievement {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameshed) {
_global.com.gameshed = new Object();
}
if (!_global.com.gameshed.GameShedAchievement) {
var v1 = function (pCrypto, pUrl) {
this.NOT_INITIALIZED = '-2';
this.USER_ID_NOT_FOUND = '-1';
this._userId = '-2';
this._locked = false;
this.gameShedAchievementUrl = pUrl;
this.crypto = pCrypto;
System.security.allowDomain('http://www.gameshed.com');
var v3 = _root;
if (v3.user == null || v3.user == undefined) {
this._userId = this.USER_ID_NOT_FOUND;
} else {
this._userId = String(v3.user);
}
};
com.gameshed.GameShedAchievement = v1;
var v2 = v1.prototype;
v2.ActivateAchievement = function (achievementId) {
trace('gameshed: activating achievement, id=' + achievementId);
this.SendStuff(achievementId);
};
v2.SendStuff = function (pAchievementId) {
if (this._locked) {
return undefined;
}
if (this._userId == this.NOT_INITIALIZED) {
throw new Error('GameShedAchievement API hasn\'t been initialized. You must call GameShedAchievement.Init(this.root) before sending achievements.');
} else {
if (this._userId == this.USER_ID_NOT_FOUND) {
trace('GameShedAchievementAPI.ActivateAchievement() :: User Id not found, please contact a developer from gameshed.com for further infos.');
return undefined;
}
}
var v2 = new LoadVars();
v2.user_id = this._userId;
v2.achievement_id = pAchievementId;
v2.achievement_id = pAchievementId;
var v4 = pAchievementId + '' + this.crypto + '' + this._userId;
v2.key = com.gameshed.MD5.calcMD5(v4);
v2.sendAndLoad(this.gameShedAchievementUrl, new LoadVars(), 'POST');
};
ASSetPropFlags(com.gameshed.GameShedAchievement.prototype, null, 1);
}
#endinitclip
}
movieClip 1069 __Packages.com.gameshed.MD5 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.gameshed) {
_global.com.gameshed = new Object();
}
if (!_global.com.gameshed.MD5) {
var v1 = function () {};
com.gameshed.MD5 = v1;
var v2 = v1.prototype;
v1.bitOR = function (a, b) {
var v1 = a & 1 | b & 1;
var v2 = a >>> 1 | b >>> 1;
return v2 << 1 | v1;
};
v1.bitXOR = function (a, b) {
var v1 = a & 1 ^ b & 1;
var v2 = a >>> 1 ^ b >>> 1;
return v2 << 1 | v1;
};
v1.bitAND = function (a, b) {
var v1 = a & 1 & (b & 1);
var v2 = a >>> 1 & b >>> 1;
return v2 << 1 | v1;
};
v1.addme = function (x, y) {
var v1 = (x & 65535) + (y & 65535);
var v2 = (x >> 16) + (y >> 16) + (v1 >> 16);
return v2 << 16 | v1 & 65535;
};
v1.rhex = function (num) {
var v3 = '';
var v1 = 0;
while (v1 <= 3) {
v3 += com.gameshed.MD5.hex_chr.charAt(num >> v1 * 8 + 4 & 15) + com.gameshed.MD5.hex_chr.charAt(num >> v1 * 8 & 15);
++v1;
}
return v3;
};
v1.str2blks_MD5 = function (str) {
var v4 = (str.length + 8 >> 6) + 1;
var v3 = new Array(v4 * 16);
var v1 = 0;
while (v1 < v4 * 16) {
v3[v1] = 0;
++v1;
}
v1 = 0;
while (v1 < str.length) {
v3[v1 >> 2] |= str.charCodeAt(v1) << ((str.length * 8 + v1) % 4) * 8;
++v1;
}
v3[v1 >> 2] |= 128 << ((str.length * 8 + v1) % 4) * 8;
var v5 = str.length * 8;
v3[v4 * 16 - 2] = v5 & 255;
v3[v4 * 16 - 2] |= (v5 >>> 8 & 255) << 8;
v3[v4 * 16 - 2] |= (v5 >>> 16 & 255) << 16;
v3[v4 * 16 - 2] |= (v5 >>> 24 & 255) << 24;
return v3;
};
v1.rol = function (num, cnt) {
return num << cnt | num >>> 32 - cnt;
};
v1.cmn = function (q, a, b, x, s, t) {
return com.gameshed.MD5.addme(com.gameshed.MD5.rol(com.gameshed.MD5.addme(com.gameshed.MD5.addme(a, q), com.gameshed.MD5.addme(x, t)), s), b);
};
v1.ff = function (a, b, c, d, x, s, t) {
return com.gameshed.MD5.cmn(com.gameshed.MD5.bitOR(com.gameshed.MD5.bitAND(b, c), com.gameshed.MD5.bitAND(~b, d)), a, b, x, s, t);
};
v1.gg = function (a, b, c, d, x, s, t) {
return com.gameshed.MD5.cmn(com.gameshed.MD5.bitOR(com.gameshed.MD5.bitAND(b, d), com.gameshed.MD5.bitAND(c, ~d)), a, b, x, s, t);
};
v1.hh = function (a, b, c, d, x, s, t) {
return com.gameshed.MD5.cmn(com.gameshed.MD5.bitXOR(com.gameshed.MD5.bitXOR(b, c), d), a, b, x, s, t);
};
v1.ii = function (a, b, c, d, x, s, t) {
return com.gameshed.MD5.cmn(com.gameshed.MD5.bitXOR(c, com.gameshed.MD5.bitOR(b, ~d)), a, b, x, s, t);
};
v1.calcMD5 = function (str) {
var v6 = com.gameshed.MD5.str2blks_MD5(str);
var v4 = 1732584193;
var v3 = -271733879;
var v2 = -1732584194;
var v1 = 271733878;
var v11;
var v5 = 0;
while (v5 < v6.length) {
var v10 = v4;
var v9 = v3;
var v8 = v2;
var v7 = v1;
v11 = 0;
v4 = com.gameshed.MD5.ff(v4, v3, v2, v1, v6[v5 + 0], 7, -680876936);
v1 = com.gameshed.MD5.ff(v1, v4, v3, v2, v6[v5 + 1], 12, -389564586);
v2 = com.gameshed.MD5.ff(v2, v1, v4, v3, v6[v5 + 2], 17, 606105819);
v3 = com.gameshed.MD5.ff(v3, v2, v1, v4, v6[v5 + 3], 22, -1044525330);
v4 = com.gameshed.MD5.ff(v4, v3, v2, v1, v6[v5 + 4], 7, -176418897);
v1 = com.gameshed.MD5.ff(v1, v4, v3, v2, v6[v5 + 5], 12, 1200080426);
v2 = com.gameshed.MD5.ff(v2, v1, v4, v3, v6[v5 + 6], 17, -1473231341);
v3 = com.gameshed.MD5.ff(v3, v2, v1, v4, v6[v5 + 7], 22, -45705983);
v4 = com.gameshed.MD5.ff(v4, v3, v2, v1, v6[v5 + 8], 7, 1770035416);
v1 = com.gameshed.MD5.ff(v1, v4, v3, v2, v6[v5 + 9], 12, -1958414417);
v2 = com.gameshed.MD5.ff(v2, v1, v4, v3, v6[v5 + 10], 17, -42063);
v3 = com.gameshed.MD5.ff(v3, v2, v1, v4, v6[v5 + 11], 22, -1990404162);
v4 = com.gameshed.MD5.ff(v4, v3, v2, v1, v6[v5 + 12], 7, 1804603682);
v1 = com.gameshed.MD5.ff(v1, v4, v3, v2, v6[v5 + 13], 12, -40341101);
v2 = com.gameshed.MD5.ff(v2, v1, v4, v3, v6[v5 + 14], 17, -1502002290);
v3 = com.gameshed.MD5.ff(v3, v2, v1, v4, v6[v5 + 15], 22, 1236535329);
v4 = com.gameshed.MD5.gg(v4, v3, v2, v1, v6[v5 + 1], 5, -165796510);
v1 = com.gameshed.MD5.gg(v1, v4, v3, v2, v6[v5 + 6], 9, -1069501632);
v2 = com.gameshed.MD5.gg(v2, v1, v4, v3, v6[v5 + 11], 14, 643717713);
v3 = com.gameshed.MD5.gg(v3, v2, v1, v4, v6[v5 + 0], 20, -373897302);
v4 = com.gameshed.MD5.gg(v4, v3, v2, v1, v6[v5 + 5], 5, -701558691);
v1 = com.gameshed.MD5.gg(v1, v4, v3, v2, v6[v5 + 10], 9, 38016083);
v2 = com.gameshed.MD5.gg(v2, v1, v4, v3, v6[v5 + 15], 14, -660478335);
v3 = com.gameshed.MD5.gg(v3, v2, v1, v4, v6[v5 + 4], 20, -405537848);
v4 = com.gameshed.MD5.gg(v4, v3, v2, v1, v6[v5 + 9], 5, 568446438);
v1 = com.gameshed.MD5.gg(v1, v4, v3, v2, v6[v5 + 14], 9, -1019803690);
v2 = com.gameshed.MD5.gg(v2, v1, v4, v3, v6[v5 + 3], 14, -187363961);
v3 = com.gameshed.MD5.gg(v3, v2, v1, v4, v6[v5 + 8], 20, 1163531501);
v4 = com.gameshed.MD5.gg(v4, v3, v2, v1, v6[v5 + 13], 5, -1444681467);
v1 = com.gameshed.MD5.gg(v1, v4, v3, v2, v6[v5 + 2], 9, -51403784);
v2 = com.gameshed.MD5.gg(v2, v1, v4, v3, v6[v5 + 7], 14, 1735328473);
v3 = com.gameshed.MD5.gg(v3, v2, v1, v4, v6[v5 + 12], 20, -1926607734);
v4 = com.gameshed.MD5.hh(v4, v3, v2, v1, v6[v5 + 5], 4, -378558);
v1 = com.gameshed.MD5.hh(v1, v4, v3, v2, v6[v5 + 8], 11, -2022574463);
v2 = com.gameshed.MD5.hh(v2, v1, v4, v3, v6[v5 + 11], 16, 1839030562);
v3 = com.gameshed.MD5.hh(v3, v2, v1, v4, v6[v5 + 14], 23, -35309556);
v4 = com.gameshed.MD5.hh(v4, v3, v2, v1, v6[v5 + 1], 4, -1530992060);
v1 = com.gameshed.MD5.hh(v1, v4, v3, v2, v6[v5 + 4], 11, 1272893353);
v2 = com.gameshed.MD5.hh(v2, v1, v4, v3, v6[v5 + 7], 16, -155497632);
v3 = com.gameshed.MD5.hh(v3, v2, v1, v4, v6[v5 + 10], 23, -1094730640);
v4 = com.gameshed.MD5.hh(v4, v3, v2, v1, v6[v5 + 13], 4, 681279174);
v1 = com.gameshed.MD5.hh(v1, v4, v3, v2, v6[v5 + 0], 11, -358537222);
v2 = com.gameshed.MD5.hh(v2, v1, v4, v3, v6[v5 + 3], 16, -722521979);
v3 = com.gameshed.MD5.hh(v3, v2, v1, v4, v6[v5 + 6], 23, 76029189);
v4 = com.gameshed.MD5.hh(v4, v3, v2, v1, v6[v5 + 9], 4, -640364487);
v1 = com.gameshed.MD5.hh(v1, v4, v3, v2, v6[v5 + 12], 11, -421815835);
v2 = com.gameshed.MD5.hh(v2, v1, v4, v3, v6[v5 + 15], 16, 530742520);
v3 = com.gameshed.MD5.hh(v3, v2, v1, v4, v6[v5 + 2], 23, -995338651);
v4 = com.gameshed.MD5.ii(v4, v3, v2, v1, v6[v5 + 0], 6, -198630844);
v1 = com.gameshed.MD5.ii(v1, v4, v3, v2, v6[v5 + 7], 10, 1126891415);
v2 = com.gameshed.MD5.ii(v2, v1, v4, v3, v6[v5 + 14], 15, -1416354905);
v3 = com.gameshed.MD5.ii(v3, v2, v1, v4, v6[v5 + 5], 21, -57434055);
v4 = com.gameshed.MD5.ii(v4, v3, v2, v1, v6[v5 + 12], 6, 1700485571);
v1 = com.gameshed.MD5.ii(v1, v4, v3, v2, v6[v5 + 3], 10, -1894986606);
v2 = com.gameshed.MD5.ii(v2, v1, v4, v3, v6[v5 + 10], 15, -1051523);
v3 = com.gameshed.MD5.ii(v3, v2, v1, v4, v6[v5 + 1], 21, -2054922799);
v4 = com.gameshed.MD5.ii(v4, v3, v2, v1, v6[v5 + 8], 6, 1873313359);
v1 = com.gameshed.MD5.ii(v1, v4, v3, v2, v6[v5 + 15], 10, -30611744);
v2 = com.gameshed.MD5.ii(v2, v1, v4, v3, v6[v5 + 6], 15, -1560198380);
v3 = com.gameshed.MD5.ii(v3, v2, v1, v4, v6[v5 + 13], 21, 1309151649);
v4 = com.gameshed.MD5.ii(v4, v3, v2, v1, v6[v5 + 4], 6, -145523070);
v1 = com.gameshed.MD5.ii(v1, v4, v3, v2, v6[v5 + 11], 10, -1120210379);
v2 = com.gameshed.MD5.ii(v2, v1, v4, v3, v6[v5 + 2], 15, 718787259);
v3 = com.gameshed.MD5.ii(v3, v2, v1, v4, v6[v5 + 9], 21, -343485551);
v4 = com.gameshed.MD5.addme(v4, v10);
v3 = com.gameshed.MD5.addme(v3, v9);
v2 = com.gameshed.MD5.addme(v2, v8);
v1 = com.gameshed.MD5.addme(v1, v7);
v5 += 16;
}
return com.gameshed.MD5.rhex(v4) + com.gameshed.MD5.rhex(v3) + com.gameshed.MD5.rhex(v2) + com.gameshed.MD5.rhex(v1);
};
v1.hex_chr = '0123456789abcdef';
ASSetPropFlags(com.gameshed.MD5.prototype, null, 1);
}
#endinitclip
}
movieClip 1070 __Packages.mx.behaviors.DepthControl {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.behaviors) {
_global.mx.behaviors = new Object();
}
if (!_global.mx.behaviors.DepthControl) {
var v1 = function () {
super();
};
mx.behaviors.DepthControl = v1;
mx.behaviors.DepthControl extends Object;
var v2 = v1.prototype;
v1.sendToBack = function (target) {
var v2 = false;
while (v2 == false) {
mx.behaviors.DepthControl.sendBackward(target);
v2 = target == mx.behaviors.DepthControl.getInstanceAtLowest(target._parent);
}
};
v1.bringToFront = function (target) {
var v2 = false;
while (v2 == false) {
mx.behaviors.DepthControl.bringForward(target);
v2 = target == mx.behaviors.DepthControl.getInstanceAtHighest(target._parent);
}
};
v1.sendBackward = function (target) {
var v2 = mx.behaviors.DepthControl.trackDepths(target._parent);
if (target != mx.behaviors.DepthControl.getInstanceAtLowest(target._parent)) {
target.swapDepths(mx.behaviors.DepthControl.getInstanceLowerThan(target));
}
};
v1.bringForward = function (target) {
if (target != mx.behaviors.DepthControl.getInstanceAtHighest(target._parent)) {
target.swapDepths(mx.behaviors.DepthControl.getInstanceHigherThan(target));
}
};
v1.trackDepths = function (mcParent) {
var v4 = [];
for (var v5 in mcParent) {
if (typeof mcParent[v5] == 'movieclip') {
v4.push({'mc': mcParent[v5], 'depth': mcParent[v5].getDepth()});
}
}
v4.sort(mx.behaviors.DepthControl.orderFunc);
return v4;
};
v1.orderFunc = function (a, b) {
var v2 = Number(a.depth);
var v1 = Number(b.depth);
if (v2 > v1) {
return -1;
} else {
if (v1 > v2) {
return 1;
} else {
return 0;
}
}
};
v1.getInstanceAtLowest = function (targetParent) {
var v1 = mx.behaviors.DepthControl.trackDepths(targetParent);
return v1[v1.length - 1].mc;
};
v1.getInstanceAtHighest = function (targetParent) {
var v1 = mx.behaviors.DepthControl.trackDepths(targetParent);
return v1[0].mc;
};
v1.getInstanceLowerThan = function (target) {
var v2 = mx.behaviors.DepthControl.trackDepths(target._parent);
var v1 = 0;
while (v1 < v2.length) {
if (v2[v1].mc == target) {
break;
}
++v1;
}
return v2[v1 + 1].mc;
};
v1.getInstanceHigherThan = function (target) {
var v2 = mx.behaviors.DepthControl.trackDepths(target._parent);
var v1 = 0;
while (v1 < v2.length) {
if (v2[v1].mc == target) {
break;
}
++v1;
}
return v2[v1 - 1].mc;
};
ASSetPropFlags(mx.behaviors.DepthControl.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
splashtimer = 0;
onEnterFrame = function () {
++splashtimer;
if (splashtimer > 100) {
play();
delete onEnterFrame;
}
};
}
frame 2 {
_root.music = 999;
daytime = 1;
game = SharedObject.getLocal('mydata');
if (game.data.stalvl == undefined) {
stalvl = 0;
} else {
stalvl = game.data.stalvl;
}
if (game.data.clilvl == undefined) {
clilvl = 0;
} else {
clilvl = game.data.clilvl;
}
if (game.data.runlvl == undefined) {
runlvl = 0;
} else {
runlvl = game.data.runlvl;
}
if (game.data.flylvl == undefined) {
flylvl = 0;
} else {
flylvl = game.data.flylvl;
}
if (game.data.swilvl == undefined) {
swilvl = 0;
} else {
swilvl = game.data.swilvl;
}
if (game.data.money == undefined) {
money = 0;
} else {
money = game.data.money;
}
if (_root.money == 'NaN') {
money = 0;
}
if (game.data.race == undefined) {
race = 0;
} else {
race = game.data.race;
}
if (game.data.maxi == undefined) {
maxi = 20;
} else {
maxi = game.data.maxi;
}
if (game.data.maxmaxi == undefined) {
maxmaxi = 30;
} else {
maxmaxi = game.data.maxmaxi;
}
if (game.data.colour == undefined) {
colour = 0;
} else {
colour = game.data.colour;
}
if (game.data.hat == undefined) {
hat = 0;
} else {
hat = game.data.hat;
}
if (game.data.namee == undefined) {
} else {
namee = game.data.namee;
gotoAndStop(83);
}
if (_root.race == NaN) {
_root.race = 0;
}
}
frame 2 {
this.gameShedAchievement = new com.gameshed.GameShedAchievement('r2nspe6b7y845v', 'http://www.gameshed.com/_a_a/duck_life.php');
}
movieClip 29 {
}
instance of movieClip 29 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
movieClip 31 {
frame 1 {
stop();
}
}
movieClip 33 {
frame 1 {
stop();
}
}
instance of movieClip 17 {
onClipEvent (release) {
getURL('http://sims5000.newgrounds.com', '');
}
}
frame 3 {
delay = 1500;
}
frame 3 {
_root.race = Number(0);
}
frame 3 {
name = '';
stop();
}
movieClip 40 {
}
instance of movieClip 40 {
onClipEvent (load) {
num = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._x < 480 or _parent._parent._currentframe == 2) {
num = Math.round(Math.random() * 40);
if (num == 5) {
_parent.play();
num = 0;
}
if (_root.corn._x < 640) {
_parent.play();
num = 0;
}
}
}
}
// unknown tag 88 length 64
movieClip 47 {
}
instance of movieClip 47 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.name !== '') {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (rollOver) {
if (_root.name !== '') {
_alpha = 50;
}
}
onClipEvent (rollOut) {
if (_root.name !== '') {
_alpha = 100;
}
}
onClipEvent (release) {
if (_root.name !== '') {
_root.nextFrame();
}
}
onClipEvent (keyPress '<Enter>') {
if (_root.name !== '') {
_root.nextFrame();
}
}
}
movieClip 50 {
}
instance of movieClip 50 {
onClipEvent (load) {
delay = 100;
}
onClipEvent (enterFrame) {
if (_root.stalvl > 1500) {
_root.stalvl = 1500;
}
if (_root.runlvl > 1500) {
_root.runlvl = 1500;
}
if (_root.flylvl > 1500) {
_root.flylvl = 1500;
}
if (_root.swilvl > 1500) {
_root.swilvl = 1500;
}
delay -= 1;
if (delay <= 0) {
game = SharedObject.getLocal('mydata');
game.data.stalvl = _root.stalvl;
game.data.runlvl = _root.runlvl;
game.data.flylvl = _root.flylvl;
game.data.swilvl = _root.swilvl;
game.data.seed = _root.seed;
game.data.skill = _root.skill;
game.data.money = _root.money;
game.data.colour = _root.colour;
game.data.hat = _root.hat;
game.flush();
delay = 100;
}
}
}
movieClip 52 {
}
movieClip 57 {
frame 1 {
stop();
}
instance of movieClip 52 {
onClipEvent (enterFrame) {
if (_root.music == 0) {
stopAllSounds();
_parent.gotoAndStop(1);
}
}
}
frame 2 {
_root.music = 2;
stop();
}
frame 3 {
_root.music = 3;
stop();
}
frame 4 {
_root.music = 4;
stop();
}
frame 5 {
stop();
_root.music = 1;
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
movieClip 58 {
}
instance of movieClip 58 {
onClipEvent (load) {
delay = 500;
}
onClipEvent (enterFrame) {
if (_root.chick.mode == 2 and _root.chick._currentframe < 22) {
_root.chick.play();
}
if (_root.chick2.mode == 2 and _root.chick._currentframe < 22) {
_root.chick.play();
}
if (_root.chick3.mode == 2 and _root.chick._currentframe < 22) {
_root.chick.play();
}
if (_root.chick4.mode == 2 and _root.chick._currentframe < 22) {
_root.chick.play();
}
if (_root.race == NaN) {
_root.race = 0;
}
if (_root.clilvl > _root.maxi * 10) {
_root.clilvl = _root.maxi * 10;
_root.maxwarning.gotoAndStop(2);
}
if (_root.stalvl > _root.maxi * 10) {
_root.stalvl = _root.maxi * 10;
_root.maxwarning.gotoAndStop(2);
}
if (_root.runlvl > _root.maxi * 10) {
_root.runlvl = _root.maxi * 10;
_root.maxwarning.gotoAndStop(2);
}
if (_root.flylvl > _root.maxi * 10) {
_root.flylvl = _root.maxi * 10;
_root.maxwarning.gotoAndStop(2);
}
if (_root.swilvl > _root.maxi * 10) {
_root.swilvl = _root.maxi * 10;
_root.maxwarning.gotoAndStop(2);
}
delay -= 1;
if (delay <= 0) {
_root.kongregateStats.submit('TotalDuckLevel', _root.total);
game = SharedObject.getLocal('mydata');
game.data.maxi = _root.maxi;
game.data.maxmaxi = _root.maxmaxi;
game.data.clilvl = _root.clilvl;
game.data.namee = _root.namee;
if (game.data.race == NaN) {
game.data.race = 0;
}
game.flush();
delay = 100;
}
}
}
movieClip 60 {
}
button 65 {
on (release) {
prevFrame();
_root.gotoAndStop(10);
}
}
button 71 {
on (release) {
prevFrame();
}
}
movieClip 72 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 60 {
onClipEvent (rollOver) {
this.useHandCursor = false;
}
onClipEvent (keyDown) {
prevFrame();
}
onClipEvent (mouseDown) {
prevFrame();
}
}
}
movieClip 74 {
}
instance of movieClip 74 {
onClipEvent (release) {
_root.music = 2;
_root.nextFrame();
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (releaseOutside, rollOut) {
_alpha = 100;
}
}
movieClip 76 {
}
instance of movieClip 76 {
onClipEvent (release) {
_root.music = 0;
_root.nextFrame();
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (releaseOutside, rollOut) {
_alpha = 100;
}
}
frame 5 {
delay = 1500;
}
frame 5 {
_root.hey = 'Hey ' + _root.name;
}
button 80 {
on (release) {
nextFrame();
}
}
button 83 {
on (release) {
gotoAndStop(7);
}
}
movieClip 85 {
}
movieClip 87 {
}
button 92 {
on (release) {
prevFrame();
}
}
movieClip 99 {
}
frame 8 {
name2 = name;
}
// unknown tag 88 length 51
frame 9 {
stop();
xspeed = 0.4;
if (_root.money == 'NaN') {
money = 0;
}
info = 'Roll over an object to find out more about it';
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 33 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
movieClip 107 {
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
_root.total = Number(_root.swimlevel) + Number(_root.staminalevel) + Number(_root.runninglevel) + Number(_root.flyinglevel);
if (_root.total > 599) {
_root.rank = 'Duck God';
} else {
if (_root.total > 499) {
_root.rank = 'King of Ducks';
} else {
if (_root.total > 399) {
_root.rank = 'Professional';
} else {
if (_root.total > 299) {
_root.rank = 'Speedy Duck';
} else {
if (_root.total > 199) {
_root.rank = 'Amateur';
} else {
if (_root.total > 99) {
_root.rank = 'Trainee';
} else {
if (_root.total > 49) {
_root.rank = 'Beginner';
} else {
if (_root.total > 19) {
_root.rank = 'Duckling';
} else {
_root.rank = 'Baby Duckling';
}
}
}
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.staminalevel > 49) {
_root.gameShedAchievement.ActivateAchievement(2450399626.0);
}
_root.total = Number(_root.swimlevel) + Number(_root.staminalevel) + Number(_root.runninglevel) + Number(_root.flyinglevel) + Number(_root.climblevel);
if (_root.total > 599) {
_root.rank = 'Duck God';
} else {
if (_root.total > 499) {
_root.rank = 'King of Ducks';
} else {
if (_root.total > 399) {
_root.rank = 'Professional';
} else {
if (_root.total > 299) {
_root.rank = 'Speedy Duck';
} else {
if (_root.total > 199) {
_root.rank = 'Amateur';
} else {
if (_root.total > 99) {
_root.rank = 'Trainee';
} else {
if (_root.total > 49) {
_root.rank = 'Beginner';
} else {
if (_root.total > 19) {
_root.rank = 'Duckling';
} else {
_root.rank = 'Baby Duckling';
}
}
}
}
}
}
}
}
}
}
movieClip 110 {
}
instance corn2 of movieClip 110 {
onClipEvent (load) {
drag = false;
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
if (_x < -960) {
_x = -60;
}
if (_x == -20 and drag == false) {
xspeed = 0;
}
if (_x < -10) {
_y = 400;
}
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe == 1 and _root.chick.qwe._currentframe > 8) {
_root.chick._x += 50;
}
if (_root.chick._currentframe == 2 and _root.chick.qwe._currentframe > 8) {
_root.chick._x -= 50;
}
_root.chick.skill = 1;
if (_x > _root.chick._x) {
_root.chick.gotoAndStop(3);
}
if (_x < _root.chick._x) {
_root.chick.gotoAndStop(4);
}
_x = -860;
drag = false;
xspeed = 10;
}
_x = _x + xspeed;
_y = _y + yspeed;
if (drag == true) {
xspeed = -(_x - _root._xmouse) / 2;
yspeed = -(_y - _root._ymouse) / 2;
}
if (drag == false) {
yspeed += 1;
if (_y > 420) {
_y = 420;
yspeed = -yspeed / 2;
}
if (_x > 630) {
_x = 630;
xspeed = -xspeed / 2;
}
}
}
onClipEvent (mouseUp) {
if (drag == true) {
drag = false;
}
}
onClipEvent (press) {
drag = true;
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
}
}
movieClip 114 {
}
instance of movieClip 114 {
onClipEvent (enterFrame) {
if (_root.music == 1) {
gotoAndStop(1);
}
if (_root.music == 0) {
gotoAndStop(2);
}
}
onClipEvent (release) {
if (_root.music == 1) {
_root.music = 0;
} else {
if (_root.music == 0) {
_root.music = 2;
}
}
}
onClipEvent (rollOver) {
_alpha = 50;
_root.info = 'This button turns the game music on or off';
}
onClipEvent (releaseOutside, rollOut) {
_alpha = 100;
}
}
movieClip 118 {
}
instance of movieClip 118 {
onClipEvent (release) {
_root.gotoAndStop(79);
}
onClipEvent (rollOver) {
_alpha = 50;
_root.info = 'View your ducks statistics';
}
onClipEvent (releaseOutside, rollOut) {
_alpha = 100;
}
}
instance corn of movieClip 110 {
onClipEvent (load) {
drag = false;
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
if (_x > 1600) {
_x = 700;
}
if (_x == 660 and drag == false) {
xspeed = 0;
}
if (_x > 650) {
_y = 400;
}
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe == 1 and _root.chick.qwe._currentframe > 8) {
_root.chick._x += 50;
}
if (_root.chick._currentframe == 2 and _root.chick.qwe._currentframe > 8) {
_root.chick._x -= 50;
}
_root.chick.skill = 0;
if (_x > _root.chick._x) {
_root.chick.gotoAndStop(3);
}
if (_x < _root.chick._x) {
_root.chick.gotoAndStop(4);
}
_x = 1500;
drag = false;
xspeed = -10;
}
_x = _x + xspeed;
_y = _y + yspeed;
if (drag == true) {
xspeed = -(_x - _root._xmouse) / 2;
yspeed = -(_y - _root._ymouse) / 2;
}
if (drag == false) {
yspeed += 1;
if (_y > 420) {
_y = 420;
yspeed = -yspeed / 2;
}
if (_x < 10) {
_x = 10;
xspeed = -xspeed / 2;
}
}
}
onClipEvent (mouseUp) {
if (drag == true) {
drag = false;
}
}
onClipEvent (press) {
drag = true;
}
}
// unknown tag 88 length 106
// unknown tag 88 length 70
movieClip 125 {
}
movieClip 127 {
}
instance of movieClip 127 {
onClipEvent (press) {
if (_root.corn2._x > -360 and _root.corn2._x < 0 and _root.money > 14 and _root.freeseed == 0) {
_root.corn2._x = 67;
_root.corn2._y = 325;
_root.corn2.xspeed = 0;
_root.corn2.yspeed = 5;
_root.money = Number(_root.money - 15);
}
if (_root.corn2._x > -360 and _root.corn2._x < 0 and _root.freeseed == 1) {
_root.corn2._x = 67;
_root.corn2._y = 325;
_root.corn2.xspeed = 0;
_root.corn2.yspeed = 5;
}
}
onClipEvent (rollOver) {
_root.info = 'Purple Seed - each pile of this high-energy seed will increase your energy level by 3! Click to dispense';
}
onClipEvent (enterFrame) {
if (_root.freeseed == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
movieClip 129 {
}
movieClip 130 {
}
instance of movieClip 130 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x + _root.chick.qwe._x, _root.chick._y + _root.chick.qwe._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
movieClip 146 {
frame 1 {
stop();
}
}
movieClip 147 {
instance of movieClip 146 {
onClipEvent (load) {
if (_parent._parent._name == 'chick' or _parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 10) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
}
}
movieClip 151 {
}
movieClip 159 {
}
movieClip 165 {
}
movieClip 166 {
instance of movieClip 151 {
onClipEvent (load) {
if (_root.sglasses == 1) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.sglasses == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 165 {
onClipEvent (load) {
if (_root.bcrown == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.bcrown == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 167 {
instance of movieClip 166 {
onClipEvent (load) {
if (_parent._parent._parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._name == 'chick' or _parent._parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
} else {
if (_root.hat == 5) {
gotoAndStop(6);
} else {
if (_root.hat == 6) {
gotoAndStop(7);
} else {
if (_root.hat == 7) {
gotoAndStop(8);
} else {
if (_root.hat == 8) {
gotoAndStop(9);
} else {
if (_root.hat == 9) {
gotoAndStop(10);
}
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._parent._parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._name == 'chick' or _parent._parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
} else {
if (_root.hat == 5) {
gotoAndStop(6);
} else {
if (_root.hat == 6) {
gotoAndStop(7);
} else {
if (_root.hat == 7) {
gotoAndStop(8);
} else {
if (_root.hat == 8) {
gotoAndStop(9);
} else {
if (_root.hat == 9) {
gotoAndStop(10);
}
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
}
}
movieClip 168 {
instance of movieClip 167 {
onClipEvent (load) {
if (_parent._parent._currentframe == 1 or _parent._parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._name == 'chick' or _parent._parent._name == 'chick' or _parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
} else {
if (_root.hat == 5) {
gotoAndStop(6);
} else {
if (_root.hat == 6) {
gotoAndStop(7);
} else {
if (_root.hat == 7) {
gotoAndStop(8);
} else {
if (_root.hat == 8) {
gotoAndStop(9);
} else {
if (_root.hat == 9) {
gotoAndStop(10);
}
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._parent._currentframe == 1 or _parent._parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._name == 'chick' or _parent._parent._name == 'chick' or _parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
} else {
if (_root.hat == 5) {
gotoAndStop(6);
} else {
if (_root.hat == 6) {
gotoAndStop(7);
} else {
if (_root.hat == 7) {
gotoAndStop(8);
} else {
if (_root.hat == 8) {
gotoAndStop(9);
} else {
if (_root.hat == 9) {
gotoAndStop(10);
}
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
}
}
movieClip 186 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 167 {
onClipEvent (load) {
if (_root.hat == 0) {
gotoAndStop(1);
}
if (_root.hat == 1) {
gotoAndStop(2);
}
if (_root.hat == 2) {
gotoAndStop(3);
}
if (_root.hat == 3) {
gotoAndStop(4);
}
if (_root.hat == 4) {
gotoAndStop(5);
}
}
}
}
movieClip 187 {
frame 1 {
_parent.timerstop = 1;
}
frame 50 {
_root.nextFrame();
}
}
movieClip 188 {
frame 1 {
stop();
}
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 168 {
onClipEvent (load) {
_rotation = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._currentframe == 1) {
if (_root.corn._x < 640 and _root.corn.drag == false or _root.corn2._x > 0 and _root.corn2.drag == false) {
} else {
rx = _root._xmouse;
ry = _root._ymouse;
cx = _parent._parent._x + _parent._x + _x;
cy = _parent._parent._y + _parent._y + _y;
angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433;
roto = angle;
_rotation = roto;
}
}
if (_parent._parent._currentframe == 2) {
if (_root.corn._x < 640 and _root.corn.drag == false) {
} else {
rx = _root._xmouse;
ry = _root._ymouse;
cx = _parent._parent._x + _parent._x + _x;
cy = _parent._parent._y + _parent._y + _y;
angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433;
_rotation = -angle + 180;
}
}
}
}
instance of movieClip 40 {
onClipEvent (load) {
num = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._x < 530 or _parent._parent._currentframe == 2) {
if (_parent._parent._x > 110 or _parent._parent._currentframe == 1) {
num = Math.round(Math.random() * 40);
if (num == 5) {
_parent.play();
num = 0;
}
if (_root.corn._x < 640) {
_parent.play();
num = 0;
}
if (_root.corn2._x > 0) {
_parent.play();
num = 0;
}
}
}
}
}
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 167 {
onClipEvent (load) {
if (_root.hat == 0) {
gotoAndStop(1);
}
if (_root.hat == 1) {
gotoAndStop(2);
}
if (_root.hat == 2) {
gotoAndStop(3);
}
if (_root.hat == 3) {
gotoAndStop(4);
}
if (_root.hat == 4) {
gotoAndStop(5);
}
}
}
frame 12 {
if (_root._currentframe == 9) {
if (_parent._currentframe == 1) {
_parent._x += 50;
}
if (_parent._currentframe == 2) {
_parent._x -= 50;
}
} else {
_x = _x + 50;
}
gotoAndStop(1);
}
instance of movieClip 167 {
onClipEvent (load) {
if (_root.hat == 0) {
gotoAndStop(1);
}
if (_root.hat == 1) {
gotoAndStop(2);
}
if (_root.hat == 2) {
gotoAndStop(3);
}
if (_root.hat == 3) {
gotoAndStop(4);
}
if (_root.hat == 4) {
gotoAndStop(5);
}
}
}
frame 14 {
prevFrame();
}
frame 15 {
stop();
}
}
movieClip 190 {
}
movieClip 192 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
instance of movieClip 167 {
onClipEvent (load) {
if (_root.hat == 0) {
gotoAndStop(1);
}
if (_root.hat == 1) {
gotoAndStop(2);
}
if (_root.hat == 2) {
gotoAndStop(3);
}
if (_root.hat == 3) {
gotoAndStop(4);
}
if (_root.hat == 4) {
gotoAndStop(5);
}
}
}
}
movieClip 195 {
}
movieClip 198 {
}
movieClip 199 {
instance of movieClip 190 {
onClipEvent (load) {
if (_parent._parent.skill == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
frame 10 {
if (_parent.skill == 1) {
_root.stalvl = Number(_root.stalvl + 8);
}
_root.stalvl = Number(_root.stalvl + 2);
}
instance of movieClip 195 {
onClipEvent (load) {
if (_parent._parent.skill == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
frame 29 {
if (_parent.skill == 1) {
_root.stalvl = Number(_root.stalvl + 8);
}
_root.stalvl = Number(_root.stalvl + 2);
}
instance of movieClip 198 {
onClipEvent (load) {
if (_parent._parent.skill == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
frame 49 {
if (_parent.skill == 1) {
_root.stalvl = Number(_root.stalvl + 8);
}
_root.stalvl = Number(_root.stalvl + 2);
}
frame 60 {
if (_root._xmouse > _root.chick._x) {
_parent.gotoAndStop(1);
}
if (_root._xmouse < _root.chick._x) {
_parent.gotoAndStop(2);
}
_root.corn._x = 700;
}
}
movieClip 200 {
frame 1 {
stop();
}
instance qwe of movieClip 188 {
onClipEvent (enterFrame) {
if (_root.corn._x < 640) {
if (_root.corn._x < _parent._x) {
if (_currentframe == 1) {
_parent.nextFrame();
}
}
} else {
if (_root.corn2._x > 0) {
if (_root.corn2._x < _parent._x) {
if (_currentframe == 1) {
_parent.nextFrame();
}
}
} else {
if (_root._xmouse < _parent._x) {
if (_currentframe == 1) {
_parent.nextFrame();
}
}
}
}
}
}
frame 2 {
stop();
}
instance qwe of movieClip 188 {
onClipEvent (enterFrame) {
if (_root.corn._x < 640) {
if (_root.corn._x > _parent._x) {
if (_currentframe == 1) {
_parent.prevFrame();
}
}
} else {
if (_root.corn2._x > 0) {
if (_root.corn2._x > _parent._x) {
if (_currentframe == 1) {
_parent.prevFrame();
}
}
} else {
if (_root._xmouse > _parent._x) {
if (_currentframe == 1) {
_parent.prevFrame();
}
}
}
}
}
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance chick of movieClip 200 {
onClipEvent (load) {
yspeed = 0;
skill = 0;
}
onClipEvent (enterFrame) {
_y = _y + yspeed;
yspeed += 1;
}
}
movieClip 205 {
}
instance of movieClip 205 {
onClipEvent (press) {
if (_root.corn._x < 1000 and _root.corn._x > 640 and _root.money > 0 and _root.freeseed == 0) {
_root.corn._x = 573;
_root.corn._y = 325;
_root.corn.xspeed = 0;
_root.corn.yspeed = 5;
_root.money = Number(_root.money - 1);
}
if (_root.corn._x < 1000 and _root.corn._x > 640 and _root.freeseed == 1) {
_root.corn._x = 573;
_root.corn._y = 325;
_root.corn.xspeed = 0;
_root.corn.yspeed = 5;
}
}
onClipEvent (rollOver) {
_root.info = 'Seed - this increases your duck\'s energy level. Click to dispense';
}
onClipEvent (enterFrame) {
if (_root.freeseed == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
movieClip 212 {
}
instance of movieClip 212 {
onClipEvent (load) {
if (_root.race > 13) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (release) {
if (_root.race > 13) {
_root.gotoAndStop(81);
}
}
}
movieClip 216 {
}
instance of movieClip 216 {
onClipEvent (load) {
if (_root.race > 13) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
onClipEvent (release) {
if (_root.race > 13) {
_root.cam.space = 3;
}
}
}
movieClip 218 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
instance cam of movieClip 218 {
onClipEvent (load) {
space = 1;
}
onClipEvent (enterFrame) {
if (space == 1) {
_y = _y + (240 - _y) / 20;
_x = _x + (320 - _x) / 20;
}
if (space == 2) {
_y = _y + (240 - _y) / 20;
_x = _x + (960 - _x) / 20;
}
if (space == 3) {
_y = _y + (720 - _y) / 20;
_x = _x + (320 - _x) / 20;
}
if (space == 4) {
_y = _y + (720 - _y) / 20;
_x = _x + (960 - _x) / 20;
}
}
}
// unknown tag 88 length 66
button 221 {
on (release) {
_root.runlvl = Number(_root.runlvl + 10);
_root.swilvl = Number(_root.swilvl + 10);
_root.clilvl = Number(_root.clilvl + 10);
_root.flylvl = Number(_root.flylvl + 10);
_root.stalvl = Number(_root.stalvl + 10);
}
}
// unknown tag 88 length 62
movieClip 229 {
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.stalvl - _root.staminalevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.stalvl - _root.staminalevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.stalvl - _root.staminalevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.stalvl - _root.staminalevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.stalvl - _root.staminalevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
button 236 {
on (release) {
gotoAndStop(12);
}
on (rollOver) {
info = 'Train your duck at flying to make it faster in the air';
}
}
button 239 {
on (release) {
nextFrame();
}
on (rollOver) {
info = 'Duck Shop - Buy accessories for your duck here with your coins';
}
}
button 243 {
on (release) {
gotoAndStop(11);
}
on (rollOver) {
info = 'Settings - Change settings such as music or game quality';
}
}
movieClip 245 {
}
instance of movieClip 245 {
onClipEvent (enterFrame) {
this._xscale = _root.runninglevel / 1.5;
_root.runninglevel = Math.floor(_root.runlvl / 10);
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
button 247 {
on (release) {
gotoAndStop(15);
}
on (rollOver) {
info = 'Train your duck at running to make it faster on land';
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
button 249 {
on (release) {
gotoAndStop(18);
}
on (rollOver) {
info = 'Train your duck at swimming to make it faster in the water';
}
}
button 251 {
on (release) {
gotoAndStop(24);
}
on (rollOver) {
info = 'Make sure you\'ve trained your duck before entering';
}
}
movieClip 254 {
}
instance of movieClip 254 {
onClipEvent (rollOver) {
_root.info = 'Energy is needed to complete races. To train it, just feed your duck some seed or skill seed';
}
}
instance of movieClip 245 {
onClipEvent (enterFrame) {
this._xscale = _root.climblevel / 1.5;
_root.climblevel = Math.floor(_root.clilvl / 10);
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
button 256 {
on (release) {
gotoAndStop(21);
}
on (rollOver) {
info = 'Train your duck at climbing to make it climb faster in races';
}
}
movieClip 257 {
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
this._xscale = _root.staminalevel * 2;
_root.staminalevel = Math.floor(_root.stalvl / 10);
}
}
instance of movieClip 245 {
onClipEvent (enterFrame) {
this._xscale = _root.flyinglevel / 1.5;
_root.flyinglevel = Math.floor(_root.flylvl / 10);
}
}
instance of movieClip 245 {
onClipEvent (enterFrame) {
this._xscale = _root.swimlevel / 1.5;
_root.swimlevel = Math.floor(_root.swilvl / 10);
}
}
movieClip 269 {
}
instance of movieClip 269 {
onClipEvent (release) {
_root.cam.space = 1;
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (releaseOutside, rollOut) {
_alpha = 100;
}
}
movieClip 273 {
}
instance of movieClip 273 {
onClipEvent (load) {
if (_root.xtrain == 1) {
onn = 1;
} else {
onn = 0;
}
}
onClipEvent (release) {
if (onn == 0) {
onn = 1;
} else {
if (onn == 1) {
onn = 0;
}
}
}
onClipEvent (enterFrame) {
if (onn == 0) {
gotoAndStop(1);
_root.xtrain = 0;
} else {
if (onn == 1) {
gotoAndStop(2);
_root.xtrain = 1;
}
}
}
}
instance of movieClip 273 {
onClipEvent (load) {
if (_root.freeseed == 1) {
onn = 1;
} else {
onn = 0;
}
}
onClipEvent (release) {
if (onn == 0) {
onn = 1;
} else {
if (onn == 1) {
onn = 0;
}
}
}
onClipEvent (enterFrame) {
if (onn == 0) {
gotoAndStop(1);
_root.freeseed = 0;
} else {
if (onn == 1) {
gotoAndStop(2);
_root.freeseed = 1;
}
}
}
}
movieClip 277 {
}
instance of movieClip 277 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (release) {
_root.daytime = 1;
}
}
movieClip 279 {
}
instance of movieClip 279 {
onClipEvent (enterFrame) {
if (_root.daytime == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (release) {
_root.daytime = 2;
}
}
movieClip 281 {
}
instance of movieClip 281 {
onClipEvent (enterFrame) {
if (_root.daytime == 3) {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (release) {
_root.daytime = 3;
}
}
instance of movieClip 273 {
onClipEvent (load) {
if (_root.bcrown == 1) {
onn = 1;
} else {
onn = 0;
}
}
onClipEvent (release) {
if (onn == 0) {
onn = 1;
} else {
if (onn == 1) {
onn = 0;
}
}
}
onClipEvent (enterFrame) {
if (onn == 0) {
gotoAndStop(1);
_root.bcrown = 0;
} else {
if (onn == 1) {
gotoAndStop(2);
_root.bcrown = 1;
}
}
}
}
instance of movieClip 273 {
onClipEvent (load) {
if (_root.sglasses == 1) {
onn = 1;
} else {
onn = 0;
}
}
onClipEvent (release) {
if (onn == 0) {
onn = 1;
} else {
if (onn == 1) {
onn = 0;
}
}
}
onClipEvent (enterFrame) {
if (onn == 0) {
gotoAndStop(1);
_root.sglasses = 0;
} else {
if (onn == 1) {
gotoAndStop(2);
_root.sglasses = 1;
}
}
}
}
instance of movieClip 50 {
onClipEvent (load) {
delay = 100;
}
onClipEvent (enterFrame) {
if (_root.stalvl > 500) {
_root.stalvl = 500;
}
if (_root.runlvl > 1500) {
_root.runlvl = 1500;
}
if (_root.flylvl > 1500) {
_root.flylvl = 1500;
}
if (_root.swilvl > 1500) {
_root.swilvl = 1500;
}
delay -= 1;
if (delay <= 0) {
game = SharedObject.getLocal('mydata');
game.data.stalvl = _root.stalvl;
game.data.runlvl = _root.runlvl;
game.data.flylvl = _root.flylvl;
game.data.swilvl = _root.swilvl;
game.data.seed = _root.seed;
game.data.skill = _root.skill;
game.data.money = _root.money;
game.data.colour = _root.colour;
game.data.hat = _root.hat;
game.flush();
delay = 100;
}
}
}
instance of movieClip 57 {
onClipEvent (enterFrame) {
if (_root.music !== 1 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(5);
}
}
}
frame 10 {
info = 'Roll over an object to find out more about it';
}
instance of movieClip 269 {
onClipEvent (release) {
_root.prevFrame();
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
onClipEvent (rollOver) {
_root.info = 'Back to the main menu';
}
}
instance of movieClip 147 {
onClipEvent (enterFrame) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
movieClip 292 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
onClipEvent (enterFrame) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 168 {
}
instance of movieClip 40 {
onClipEvent (load) {
num = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._x < 530 or _parent._parent._currentframe == 2) {
if (_parent._parent._x > 110 or _parent._parent._currentframe == 1) {
num = Math.round(Math.random() * 40);
if (num == 5) {
_parent.play();
num = 0;
}
if (_root.corn._x < 640) {
_parent.play();
num = 0;
}
if (_root.corn2._x > 0) {
_parent.play();
num = 0;
}
}
}
}
}
}
movieClip 295 {
}
instance of movieClip 295 {
onClipEvent (rollOver) {
_root.info = 'Max level is the highest level that your duck can get in each skill.';
}
}
button 302 {
on (release) {
if (_root.money > 49 and _root.maxmaxi > _root.maxi) {
_root.money = Number(_root.money - 50);
_root.maxi = Number(_root.maxi + 10);
} else {
if (_root.money < 50) {
_root.info = 'You don\'t have enough money! You need ' + Number(50 - _root.money) + ' more coins';
} else {
_root.info = 'You can\'t upgrade your max level any more at the moment. Win races to unlock higher max levels';
}
}
}
}
movieClip 304 {
}
instance of movieClip 304 {
onClipEvent (release) {
if (_root.race == 1) {
if (_root.colour < 1) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 2) {
if (_root.colour < 2) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 3) {
if (_root.colour < 3) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 4) {
if (_root.colour < 4) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 5) {
if (_root.colour < 5) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 6) {
if (_root.colour < 6) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 7) {
if (_root.colour < 7) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 8) {
if (_root.colour < 8) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 9) {
if (_root.colour < 9) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 10) {
if (_root.colour < 10) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 11) {
if (_root.colour < 11) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 12) {
if (_root.colour < 12) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 13) {
if (_root.colour < 13) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 14) {
if (_root.colour < 14) {
_root.colour = Number(_root.colour + 1);
}
}
if (_root.race == 15) {
if (_root.colour < 15) {
_root.colour = Number(_root.colour + 1);
}
}
}
onClipEvent (enterFrame) {
if (_root.colour >= _root.race) {
_alpha = 50;
this.useHandCursor = false;
} else {
_alpha = 100;
this.useHandCursor = true;
}
}
}
movieClip 306 {
}
instance of movieClip 306 {
onClipEvent (release) {
if (_root.colour > 0) {
_root.colour = Number(_root.colour - 1);
}
}
onClipEvent (enterFrame) {
if (_root.colour == 0) {
_alpha = 50;
this.useHandCursor = false;
} else {
_alpha = 100;
this.useHandCursor = true;
}
}
}
movieClip 308 {
}
instance of movieClip 308 {
onClipEvent (release) {
if (_root.hat > 0) {
_root.hat = Number(_root.hat - 1);
}
}
onClipEvent (enterFrame) {
if (_root.hat == 0) {
_alpha = 50;
this.useHandCursor = false;
} else {
_alpha = 100;
this.useHandCursor = true;
}
}
}
movieClip 310 {
}
instance of movieClip 310 {
onClipEvent (release) {
if (_root.race < 3) {
if (_root.hat < 1) {
_root.hat = Number(_root.hat + 1);
}
} else {
if (_root.race < 6) {
if (_root.hat < 2) {
_root.hat = Number(_root.hat + 1);
}
} else {
if (_root.race < 9) {
if (_root.hat < 3) {
_root.hat = Number(_root.hat + 1);
}
} else {
if (_root.race < 12) {
if (_root.hat < 4) {
_root.hat = Number(_root.hat + 1);
}
} else {
if (_root.race < 14) {
if (_root.hat < 5) {
_root.hat = Number(_root.hat + 1);
}
} else {
if (_root.hat < 7) {
_root.hat = Number(_root.hat + 1);
}
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.hat - 1 >= _root.race * 3) {
_alpha = 50;
this.useHandCursor = false;
} else {
_alpha = 100;
this.useHandCursor = true;
}
}
}
instance of movieClip 50 {
onClipEvent (load) {
delay = 100;
}
onClipEvent (enterFrame) {
if (_root.stalvl > 1500) {
_root.stalvl = 1500;
}
if (_root.runlvl > 1500) {
_root.runlvl = 1500;
}
if (_root.flylvl > 1500) {
_root.flylvl = 1500;
}
if (_root.swilvl > 1500) {
_root.swilvl = 1500;
}
delay -= 1;
if (delay <= 0) {
game = SharedObject.getLocal('mydata');
game.data.stalvl = _root.stalvl;
game.data.runlvl = _root.runlvl;
game.data.flylvl = _root.flylvl;
game.data.swilvl = _root.swilvl;
game.data.seed = _root.seed;
game.data.skill = _root.skill;
game.data.money = _root.money;
game.data.colour = _root.colour;
game.data.hat = _root.hat;
game.flush();
delay = 100;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 11 {
info = 'Roll over an option to find out more about it';
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
onClipEvent (rollOver) {
_root.info = 'Back to the main menu';
}
}
movieClip 317 {
}
instance of movieClip 317 {
onClipEvent (enterFrame) {
_root.qual = _root._quality;
if (_root.music == 1) {
_root.musico = 'On';
} else {
_root.musico = 'Off';
}
}
}
movieClip 319 {
}
instance of movieClip 319 {
onClipEvent (press) {
_root._quality = 'HIGH';
}
onClipEvent (enterFrame) {
if (_root._quality == 'HIGH') {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
if (_root._quality !== 'HIGH') {
_rotation = 3;
}
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
onClipEvent (rollOver) {
_root.info = 'If you have a fairly new computer, keep it on high quality. It should be able to handle it';
}
}
// unknown tag 88 length 63
movieClip 322 {
}
instance of movieClip 322 {
onClipEvent (press) {
_root._quality = 'MEDIUM';
}
onClipEvent (enterFrame) {
if (_root._quality == 'MEDIUM') {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
if (_root._quality !== 'MEDIUM') {
_rotation = 3;
}
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
onClipEvent (rollOver) {
_root.info = 'Medium quality has slightly worse graphics than high quality, but is a lot faster on older or slower computers';
}
}
movieClip 324 {
}
instance of movieClip 324 {
onClipEvent (press) {
_root._quality = 'LOW';
}
onClipEvent (enterFrame) {
if (_root._quality == 'LOW') {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
if (_root._quality !== 'LOW') {
_rotation = 3;
}
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
onClipEvent (rollOver) {
_root.info = 'This mode has very bad graphics. It is only recommended if you are on an ancient computer, a virus-filled slow computer, or are on a phone or something';
}
}
movieClip 326 {
}
instance of movieClip 326 {
onClipEvent (press) {
if (_root.music !== 2) {
_root.music = 3;
}
}
onClipEvent (enterFrame) {
if (_root.music == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
onClipEvent (rollOver) {
_root.info = 'Turns game music on';
}
}
movieClip 328 {
}
instance of movieClip 328 {
onClipEvent (press) {
_root.music = 0;
}
onClipEvent (enterFrame) {
if (_root.music == 0) {
_alpha = 100;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
onClipEvent (rollOver) {
_root.info = 'Turns game music off';
}
}
movieClip 330 {
}
instance of movieClip 330 {
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (rollOver) {
_root.info = 'WARNING - If you press this button, you will lose ALL data. Everything in the shop will be locked again, you will lose all of your money, and your duck will go back to level 0 in all skills';
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
onClipEvent (release) {
game = SharedObject.getLocal('mydata');
game.data.race = 0;
game.data.stalvl = 0;
game.data.runlvl = 0;
game.data.flylvl = 0;
game.data.swilvl = 0;
game.data.clilvl = 0;
game.data.seed = 5;
game.data.skill = 0;
game.data.money = 0;
game.data.colour = 0;
game.data.hat = 0;
game.data.hat2 = 0;
game.data.hat3 = 0;
game.data.hat4 = 0;
game.data.hat5 = 0;
game.data.colour2 = 0;
game.data.colour3 = 0;
game.data.colour4 = 0;
game.data.colour5 = 0;
game.data.colour6 = 0;
game.data.colour7 = 0;
game.data.colour8 = 0;
game.data.colour9 = 0;
game.data.colour10 = 0;
game.flush();
_root.hat2 = 0;
_root.hat3 = 0;
_root.hat4 = 0;
_root.hat5 = 0;
_root.colour2 = 0;
_root.colour3 = 0;
_root.colour4 = 0;
_root.colour5 = 0;
_root.colour6 = 0;
_root.colour7 = 0;
_root.colour8 = 0;
_root.colour9 = 0;
_root.colour10 = 0;
_root.stalvl = 0;
_root.runlvl = 0;
_root.flylvl = 0;
_root.swilvl = 0;
_root.clilvl = 0;
_root.seed = 5;
_root.skill = 0;
_root.money = 0;
_root.colour = 0;
_root.hat = 0;
_root.gotoAndStop(3);
}
}
instance of movieClip 57 {
onClipEvent (enterFrame) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 12 {
stop();
coins = 0;
}
instance of movieClip 29 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 33 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
movieClip 339 {
}
movieClip 347 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 167 {
onClipEvent (load) {
if (_root.hat == 0) {
gotoAndStop(1);
}
if (_root.hat == 1) {
gotoAndStop(2);
}
if (_root.hat == 2) {
gotoAndStop(3);
}
if (_root.hat == 3) {
gotoAndStop(4);
}
if (_root.hat == 4) {
gotoAndStop(5);
}
if (_root.hat == 5) {
gotoAndStop(6);
}
}
}
}
movieClip 348 {
frame 1 {
stop();
}
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 167 {
onClipEvent (load) {
if (_root.hat == 0) {
gotoAndStop(1);
}
if (_root.hat == 1) {
gotoAndStop(2);
}
if (_root.hat == 2) {
gotoAndStop(3);
}
if (_root.hat == 3) {
gotoAndStop(4);
}
if (_root.hat == 4) {
gotoAndStop(5);
}
if (_root.hat == 5) {
gotoAndStop(6);
}
}
}
instance of movieClip 339 {
onClipEvent (load) {
if (_root.xtrain == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
frame 40 {
_root.nextFrame();
}
}
instance chick of movieClip 348 {
onClipEvent (keyPress '<Space>') {
play();
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 13 {
dist = 0;
}
movieClip 353 {
frame 1 {
stop();
}
}
instance of movieClip 353 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
if (this.hitTest(_root.chick)) {
play();
_x = _x + 940;
_y = 10 + Math.random() * 420;
_root.coins = Number(_root.coins + 1);
}
}
}
instance of movieClip 353 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
if (this.hitTest(_root.chick)) {
play();
_x = _x + 940;
_y = 10 + Math.random() * 420;
_root.coins = Number(_root.coins + 1);
}
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
}
}
movieClip 363 {
}
movieClip 364 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 167 {
onClipEvent (load) {
if (_root.hat == 0) {
gotoAndStop(1);
}
if (_root.hat == 1) {
gotoAndStop(2);
}
if (_root.hat == 2) {
gotoAndStop(3);
}
if (_root.hat == 3) {
gotoAndStop(4);
}
if (_root.hat == 4) {
gotoAndStop(5);
}
}
}
frame 30 {
stop();
}
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
instance of movieClip 167 {
onClipEvent (load) {
if (_root.hat == 0) {
gotoAndStop(1);
}
if (_root.hat == 1) {
gotoAndStop(2);
}
if (_root.hat == 2) {
gotoAndStop(3);
}
if (_root.hat == 3) {
gotoAndStop(4);
}
if (_root.hat == 4) {
gotoAndStop(5);
}
}
}
}
instance chick of movieClip 364 {
onClipEvent (load) {
xspeed = 20 + _root.flylvl / 10;
if (_root.xtrain == 1) {
xspeed = 20 + _root.flylvl / 5;
}
yspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.rock.hitTest(_x + 30, _y, true) or _root.rock.hitTest(_x + 30, _y + 15, true) or _root.rock.hitTest(_x + 30, _y - 15, true)) {
_x = _x - _root.xspeed;
}
if (_x < -20) {
_root.nextFrame();
}
if (_y < 25) {
_y = 25;
yspeed = 0;
}
if (_y > 430) {
_root.nextFrame();
}
if (_rotation < -90) {
_rotation = -90;
}
if (_rotation > 90) {
_rotation = 90;
}
_root.dist = Number(_root.dist + Math.round(xspeed));
xspeed *= 0.999;
_y = _y + yspeed;
speed = 20 - xspeed;
if (speed < 0) {
speed = 0;
}
yspeed += speed / 40;
_root.xspeed = xspeed;
if (Key.isDown(38)) {
yspeed -= 0.5;
xspeed -= 0.05;
}
if (Key.isDown(40)) {
yspeed += 0.5;
xspeed += 0.05;
}
angle = Math.atan(yspeed / xspeed) / 0.0174532925199433;
if (xspeed < 0) {
angle += 180;
}
_rotation = angle;
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
}
}
movieClip 367 {
}
movieClip 369 {
instance of movieClip 367 {
onClipEvent (enterFrame) {
if (_root.xspeed > 40) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
instance rock of movieClip 369 {
onClipEvent (load) {
_x = 1000 + (20 + _root.flylvl / 10) * 100;
where = Math.round(Math.random());
}
onClipEvent (enterFrame) {
if (where == 1) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
_x = _x - _root.xspeed;
if (_x < -100) {
_x = Math.random() * 2000 + 640 + _root.xspeed * 100;
where = Math.round(Math.random());
}
if (_x > 1000 and _x < 640 + _root.xspeed * 50) {
_root.warning.play();
}
}
}
movieClip 371 {
}
movieClip 372 {
frame 1 {
stop();
}
}
instance warning of movieClip 372 {
onClipEvent (enterFrame) {
if (_root.rock.where == 1) {
_y = 300;
} else {
_y = 100;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 3 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(3);
}
}
}
frame 14 {
xp = Math.round(dist / 1000);
flylvl = Number(flylvl + _root.dist / 500);
_root.money = Number(_root.coins + _root.money);
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.flylvl - _root.flyinglevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
button 382 {
on (release) {
gotoAndStop(9);
}
}
button 386 {
on (release) {
gotoAndStop(12);
}
on (keyPress '<Space>') {
gotoAndStop(12);
}
}
instance of movieClip 245 {
onClipEvent (enterFrame) {
this._xscale = _root.flyinglevel * 1.16;
_root.flyinglevel = Math.floor(_root.flylvl / 10);
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 15 {
stop();
dist = 0;
xp = 0;
coins = 0;
}
movieClip 400 {
}
movieClip 401 {
}
instance of movieClip 401 {
onClipEvent (enterFrame) {
_x = _x - _root.chick.xspeed;
if (_x < 0) {
_x = _x + 640;
}
}
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
}
}
instance chick of movieClip 188 {
onClipEvent (load) {
xspeed = 1;
}
onClipEvent (enterFrame) {
_root.xspeed = xspeed;
_x = _x - xspeed;
if (_x < 100) {
play();
}
}
}
button 407 {
on (keyPress '<Space>') {
nextFrame();
}
}
instance of movieClip 339 {
onClipEvent (load) {
if (_root.xtrain == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
frame 16 {
stop();
}
instance of movieClip 401 {
onClipEvent (enterFrame) {
_x = _x - _root.xspeed;
if (_x < 0) {
_x = _x + 640;
}
}
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 353 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 150 + Math.random() * 230;
}
if (this.hitTest(_root.chick)) {
play();
_x = _x + 940;
_y = 150 + Math.random() * 230;
_root.coins = Number(_root.coins + 1);
}
}
}
instance of movieClip 353 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 150 + Math.random() * 230;
}
if (this.hitTest(_root.chick)) {
play();
_x = _x + 940;
_y = 250 + Math.random() * 130;
_root.coins = Number(_root.coins + 1);
}
}
}
movieClip 414 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance log1 of movieClip 414 {
onClipEvent (load) {
no = Math.ceil(Math.random() * 7);
if (no == 1) {
gotoAndStop(1);
}
if (no == 2) {
gotoAndStop(2);
}
if (no == 3) {
gotoAndStop(3);
}
if (no == 4) {
gotoAndStop(4);
}
if (no == 5) {
gotoAndStop(5);
}
if (no == 6) {
gotoAndStop(6);
}
if (no == 7) {
gotoAndStop(7);
}
}
onClipEvent (enterFrame) {
_x = _x - _root.xspeed * 4;
_rotation = _rotation - _root.xspeed * 8;
if (_x < -30) {
_x = _x + (640 + Math.random() * 640);
no = Math.ceil(Math.random() * 7);
if (no == 1) {
gotoAndStop(1);
}
if (no == 2) {
gotoAndStop(2);
}
if (no == 3) {
gotoAndStop(3);
}
if (no == 4) {
gotoAndStop(4);
}
if (no == 5) {
gotoAndStop(5);
}
if (no == 6) {
gotoAndStop(6);
}
if (no == 7) {
gotoAndStop(7);
}
}
if (_root.chick.hitTest(_x - 20, _y, true) or _root.chick.hitTest(_x + 20, _y, true) or _root.chick.hitTest(_x, _y - 20, true)) {
if (_root.chick._currentframe < 13) {
_root.chick._x += Number(_root.chick._currentframe * 5);
}
_root.chick.gotoAndStop(15);
}
}
}
instance chick of movieClip 188 {
onClipEvent (load) {
xspeed = 1 + _root.runlvl / 500;
if (_root.xtrain == 1) {
xspeed = 1 + _root.runlvl / 250;
}
yspeed = 0;
}
onClipEvent (enterFrame) {
_root.xspeed = xspeed;
if (timerstop !== 1) {
_root.dist = Number(_root.dist + Math.round(xspeed * 2));
}
if (_currentframe < 15) {
_y = _y + yspeed;
yspeed += 0.5;
if (_y > 391) {
_y = 390;
yspeed = 0;
gotoAndStop(1);
}
if (_y > 390) {
_y = 390;
yspeed = 0;
}
if (_y < 388) {
_x = _x + xspeed;
if (_x < 125) {
_x = _x + 1;
}
if (yspeed < 0) {
gotoAndStop(2);
}
if (yspeed > 0) {
gotoAndStop(13);
}
}
xspeed += 0.001;
_x = _x - xspeed;
if (xspeed > 4) {
xspeed = 4;
}
if (_x < 100) {
play();
}
if (Key.isDown(38)) {
if (_y > 388 and _currentframe == 1) {
yspeed = -10;
}
}
} else {
_y = _y + yspeed;
yspeed += 1;
}
}
}
instance of movieClip 414 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.log1)) {
_x = _x + 1;
}
_x = _x - _root.xspeed * 4;
_rotation = _rotation - _root.xspeed * 8;
if (_x < -30) {
_x = _x + (640 + Math.random() * 640);
no = Math.ceil(Math.random() * 7);
if (no == 1) {
gotoAndStop(1);
}
if (no == 2) {
gotoAndStop(2);
}
if (no == 3) {
gotoAndStop(3);
}
if (no == 4) {
gotoAndStop(4);
}
if (no == 5) {
gotoAndStop(5);
}
if (no == 6) {
gotoAndStop(6);
}
if (no == 7) {
gotoAndStop(7);
}
}
if (_root.chick.hitTest(_x - 20, _y, true) or _root.chick.hitTest(_x + 20, _y, true) or _root.chick.hitTest(_x, _y - 20, true)) {
if (_root.chick._currentframe < 13) {
_root.chick._x += Number(_root.chick._currentframe * 5);
}
_root.chick.gotoAndStop(15);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 3 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(3);
}
}
}
frame 17 {
xp = Math.round(dist / 100);
runlvl = Number(runlvl + _root.dist / 50);
_root.money = Number(_root.coins + _root.money);
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
}
}
instance of movieClip 353 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
if (this.hitTest(_root.chick)) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
_root.coins = Number(_root.coins + 1);
}
}
}
instance of movieClip 353 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x - xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
if (this.hitTest(_root.chick)) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
_root.coins = Number(_root.coins + 1);
}
}
}
instance of movieClip 414 {
onClipEvent (enterFrame) {
_x = _x - _root.xspeed * 4;
_rotation = _rotation - _root.xspeed * 8;
if (_x < -30) {
_x = _x + (640 + Math.random() * 640);
no = Math.ceil(Math.random() * 3);
if (no == 1) {
gotoAndStop(1);
}
if (no == 2) {
gotoAndStop(2);
}
if (no == 3) {
gotoAndStop(3);
}
}
if (this.hitTest(_root.chick) and _root.chick._currentframe < 15) {
if (_root.chick._currentframe < 13) {
_root.chick._x += Number(_root.chick._currentframe * 5);
}
_root.chick.gotoAndStop(15);
}
}
}
button 417 {
on (release) {
gotoAndStop(15);
}
on (keyPress '<Space>') {
gotoAndStop(15);
}
}
instance of movieClip 245 {
onClipEvent (enterFrame) {
this._xscale = _root.runninglevel * 1.16;
_root.runninglevel = Math.floor(_root.runlvl / 10);
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.runlvl - _root.runninglevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 18 {
stop();
}
frame 18 {
dist = 0;
xspeed = -4;
coins = 0;
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x + _root.xspeed / 10;
}
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 33 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x + _root.xspeed / 2;
}
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x + xspeed;
if (_x < -150) {
_x = _x + 940;
_y = Math.random() * 200;
}
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x + xspeed;
if (_x < -150) {
_x = _x + 940;
_y = Math.random() * 200;
}
}
}
movieClip 433 {
}
movieClip 434 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
}
button 439 {
on (keyPress '<Space>') {
nextFrame();
}
}
instance of movieClip 339 {
onClipEvent (load) {
if (_root.xtrain == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
frame 19 {
stop();
}
frame 19 {
dist = 0;
}
instance coin of movieClip 353 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x + xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 50 + Math.random() * 300;
}
if (this.hitTest(_root.chick)) {
play();
_x = _x + 940;
_y = 50 + Math.random() * 300;
_root.coins = Number(_root.coins + 1);
}
}
}
movieClip 447 {
}
movieClip 452 {
}
instance of movieClip 452 {
onClipEvent (load) {
xspeed = -(3 + _root.swilvl / 100);
if (_root.xtrain == 1) {
xspeed = -(3 + _root.swilvl / 50);
}
stop();
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
xspeed -= 0.0025;
_root.xspeed = xspeed;
_root.dist = Number(_root.dist - Math.round(xspeed / 2));
while (this.hitTest(_root.chick._x, _root.chick._y - _root.chick._height / 2, true)) {
_root.chick.yspeed += 1;
_root.chick._y += 1;
}
while (this.hitTest(_root.chick._x + _root.chick._width / 2, _root.chick._y, true)) {
_root.chick.xspeed -= 1;
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick._x, _root.chick._y + _root.chick._height / 2, true)) {
_root.chick.yspeed -= 1;
_root.chick._y -= 1;
}
while (this.hitTest(_root.chick._x - _root.chick._width / 2, _root.chick._y, true)) {
_root.chick.xspeed += 1;
_root.chick._x += 1;
}
if (_x < -250) {
_x = _x + 1140;
num = Math.ceil(Math.random() * 6);
if (num == 1) {
gotoAndStop(1);
coin._y = 70;
}
if (num == 2) {
gotoAndStop(2);
coin._y = 350;
}
if (num == 3) {
gotoAndStop(3);
coin._y = 70;
}
if (num == 4) {
gotoAndStop(4);
coin._y = 350;
}
if (num == 5) {
gotoAndStop(5);
coin._y = 70;
}
if (num == 6) {
gotoAndStop(6);
coin._y = 350;
}
}
}
}
instance chick of movieClip 434 {
onClipEvent (load) {
targrot = 10;
where = 2;
xspeed = 0;
}
onClipEvent (enterFrame) {
if (_x < -20) {
_root.nextFrame();
}
xspeed *= 0.85;
_x = _x + xspeed;
if (Key.isDown(37)) {
if (_x > 70) {
xspeed -= 1;
}
}
if (Key.isDown(39)) {
if (_x < 580) {
xspeed += 1;
}
}
if (where == 1) {
targrot = 0;
targy = 70;
}
if (where == 2) {
if (_y < 210) {
yspeed += 0.5;
} else {
yspeed -= 0.45;
}
_y = _y + yspeed;
}
if (where == 3) {
targrot = 100;
targy = 350;
}
if (where == 4) {
targrot = 270;
targy = 210;
}
if (where !== 2) {
_rotation = _rotation + (targrot - _rotation) / 8;
_y = _y + (targy - _y) / 8;
}
if (_y < 0) {
yspeed = 1;
}
if (_y < 71) {
where = 2;
}
if (_y > 349) {
where = 2;
}
if (_y < 0) {
_y = 0;
yspeed = 0;
}
if (_y > 640) {
_y = 640;
yspeed = 0;
}
if (_y > 205 and _y < 215) {
where = 0;
targrot = 10;
targy = 210;
if (where !== 4) {
if (Key.isDown(38)) {
where = 1;
yspeed = 0;
}
if (Key.isDown(40)) {
where = 3;
yspeed = 0;
}
}
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 3 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(3);
}
}
}
frame 20 {
stop();
}
frame 20 {
xp = Math.round(dist / 100);
swilvl = Number(swilvl + _root.dist / 50);
_root.money = Number(_root.coins + _root.money);
}
instance coin of movieClip 353 {
onClipEvent (enterFrame) {
xspeed = _root.xspeed;
_x = _x + xspeed;
if (_x < -150) {
_x = _x + 940;
_y = 10 + Math.random() * 420;
}
if (this.hitTest(_root.chick)) {
_x = _x + 940;
_y = 50 + Math.random() * 350;
_root.coins = Number(_root.coins + 1);
}
}
}
instance of movieClip 452 {
onClipEvent (load) {
xspeed = -4;
stop();
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
xspeed -= 0.0025;
_root.xspeed = xspeed;
if (_root._currentframe == 19) {
_root.dist = Number(_root.dist + Math.round(xspeed));
}
while (this.hitTest(_root.chick._x, _root.chick._y - _root.chick._height / 2, true)) {
_root.chick.yspeed += 1;
_root.chick._y += 1;
}
while (this.hitTest(_root.chick._x + _root.chick._width / 2, _root.chick._y, true)) {
_root.chick.xspeed -= 1;
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick._x, _root.chick._y + _root.chick._height / 2, true)) {
_root.chick.yspeed -= 1;
_root.chick._y -= 1;
}
while (this.hitTest(_root.chick._x - _root.chick._width / 2, _root.chick._y, true)) {
_root.chick.xspeed += 1;
_root.chick._x += 1;
}
if (_x < -200) {
_x = _x + 1040;
num = Math.ceil(Math.random() * 6);
if (num == 1) {
gotoAndStop(1);
coin._y = 70;
}
if (num == 2) {
gotoAndStop(2);
coin._y = 350;
}
if (num == 3) {
gotoAndStop(3);
coin._y = 70;
}
if (num == 4) {
gotoAndStop(4);
coin._y = 350;
}
if (num == 5) {
gotoAndStop(5);
coin._y = 70;
}
if (num == 6) {
gotoAndStop(6);
coin._y = 350;
}
}
}
}
instance of movieClip 245 {
onClipEvent (enterFrame) {
this._xscale = _root.swimlevel * 1.16;
_root.swimlevel = Math.floor(_root.swilvl / 10);
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.swilvl - _root.swimlevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
button 464 {
on (release) {
gotoAndStop(18);
}
on (keyPress '<Space>') {
gotoAndStop(18);
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 21 {
stop();
}
frame 21 {
dist = 0;
xspeed = -4;
coins = 0;
}
movieClip 465 {
}
instance bg of movieClip 465 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
movieClip 470 {
}
movieClip 473 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 168 {
onClipEvent (load) {
timer = 0;
up = 1;
}
onClipEvent (enterFrame) {
}
}
}
button 478 {
on (keyPress '<Space>') {
nextFrame();
}
}
instance of movieClip 339 {
onClipEvent (load) {
if (_root.xtrain == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
frame 22 {
stop();
}
frame 22 {
dist = 0;
yspeed = 3 + climblevel / 20;
if (_root.xtrain == 1) {
yspeed = 3 + climblevel / 10;
}
}
instance of movieClip 107 {
onClipEvent (enterFrame) {
xspeed = -4;
_x = _x + xspeed;
if (_x < -150) {
_x = _x + 940;
_y = Math.random() * 200;
}
}
}
movieClip 483 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 168 {
onClipEvent (load) {
timer = 0;
up = 1;
}
onClipEvent (enterFrame) {
}
}
instance of movieClip 168 {
onClipEvent (load) {
timer = 0;
up = 1;
}
onClipEvent (enterFrame) {
}
}
}
instance chick of movieClip 483 {
onClipEvent (load) {
targrot = 10;
where = 2;
xspeed = 0;
yspeed = 0;
_root.scoreclip.dist = 0;
_root.dist = 0;
}
onClipEvent (enterFrame) {
oldx = _x;
if (_y > 500) {
_root.nextFrame();
}
_root.dist = Number(_root.scoreclip.dist + _root.yspeed / 4);
_root.scoreclip.dist = Math.round(_root.dist);
_root.yspeed = Number(_root.yspeed + 0.002);
_root.where = where;
_y = _y + yspeed;
_x = _x + xspeed;
if (_y > 250) {
yspeed -= 1;
}
if (Key.isDown(37)) {
if (_root.walls.hitTest(_x - 22, _y, true) or _root.walls.hitTest(_x + 22, _y, true)) {
where = 1;
}
}
if (Key.isDown(39)) {
if (_root.walls.hitTest(_x - 22, _y, true) or _root.walls.hitTest(_x + 22, _y, true)) {
where = 2;
}
}
if (_root.walls.hitTest(_x - 22, _y, true) or _root.walls.hitTest(_x + 22, _y, true)) {
yspeed = 0;
if (_y > 300) {
_y = _y - 4;
}
} else {
yspeed += 1.5;
}
if (where == 1) {
gotoAndStop(2);
if (!_root.walls.hitTest(_x - 17, _y, true)) {
_x = _x - 10;
}
while (_root.walls.hitTest(_x - 17, _y, true)) {
_x = _x + 1;
}
if (!_root.walls.hitTest(_x - 25, _y - 20, true)) {
_y = _y + yspeed;
}
}
if (where == 2) {
gotoAndStop(1);
if (!_root.walls.hitTest(_x + 17, _y, true)) {
_x = _x + 10;
}
while (_root.walls.hitTest(_x + 17, _y, true)) {
_x = _x - 1;
}
if (!_root.walls.hitTest(_x + 25, _y - 20, true)) {
_y = _y + yspeed;
}
}
while (_root.walls.hitTest(_x, _y - 28, true)) {
_y = _y + 1;
}
newx = _x;
_rotation = _rotation + ((newx - oldx) * 10 - _rotation) / 4;
}
}
instance coin of movieClip 353 {
onClipEvent (enterFrame) {
if (_y > 500) {
_y = _y - (Math.random() * 500 + 600);
_x = Math.random() * 640;
}
if (_root.walls.hitTest(_x, _y, true)) {
_x = Math.random() * 1000 - 200;
} else {
_y = _y + int(_root.yspeed);
}
if (this.hitTest(_root.chick)) {
play();
_y = 501;
_root.coins = Number(_root.coins + 1);
}
}
}
movieClip 504 {
}
movieClip 505 {
frame 1 {
lcr = 1;
}
instance part1 of movieClip 504 {
onClipEvent (load) {
gotoAndStop(6);
}
onClipEvent (enterFrame) {
_y = _y + int(_root.yspeed);
_parent.part2._y += int(_root.yspeed);
if (_y > 240) {
_y = _y - 960;
_root.part = 1;
if (_parent.part2._currentframe < 6) {
_x = _parent.part2._x + 220;
_parent.pose = 1;
} else {
if (_parent.part2._currentframe > 5 and _parent.part2._currentframe < 16) {
_x = _parent.part2._x;
_parent.pose = 2;
} else {
if (_parent.part2._currentframe > 15) {
_x = _parent.part2._x - 220;
_parent.pose = 3;
}
}
}
if (_x < 200) {
rand = Math.ceil(random(15));
} else {
if (_x > 200) {
rand = 5 + Math.ceil(random(15));
} else {
rand = Math.ceil(Math.random() * 20);
}
}
if (rand == 1) {
gotoAndStop(1);
}
if (rand == 2) {
gotoAndStop(2);
}
if (rand == 3) {
gotoAndStop(3);
}
if (rand == 4) {
gotoAndStop(4);
}
if (rand == 5) {
gotoAndStop(5);
}
if (rand == 6) {
gotoAndStop(6);
}
if (rand == 7) {
gotoAndStop(7);
}
if (rand == 8) {
gotoAndStop(8);
}
if (rand == 9) {
gotoAndStop(9);
}
if (rand == 10) {
gotoAndStop(10);
}
if (rand == 11) {
gotoAndStop(11);
}
if (rand == 12) {
gotoAndStop(12);
}
if (rand == 13) {
gotoAndStop(13);
}
if (rand == 14) {
gotoAndStop(14);
}
if (rand == 15) {
gotoAndStop(15);
}
if (rand == 16) {
gotoAndStop(16);
}
if (rand == 17) {
gotoAndStop(17);
}
if (rand == 18) {
gotoAndStop(18);
}
if (rand == 19) {
gotoAndStop(19);
}
if (rand == 20) {
gotoAndStop(20);
}
}
}
}
instance part2 of movieClip 504 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_y > 240) {
_y = _y - 960;
_root.part = 2;
if (_parent.part1._currentframe < 6) {
_x = _parent.part1._x + 220;
} else {
if (_parent.part1._currentframe > 5 and _parent.part1._currentframe < 16) {
_x = _parent.part1._x;
} else {
if (_parent.part1._currentframe > 15) {
_x = _parent.part1._x - 220;
}
}
}
if (_x < 200) {
rand = Math.ceil(random(15));
} else {
if (_x > 200) {
rand = 5 + Math.ceil(random(15));
} else {
rand = Math.ceil(Math.random() * 20);
}
}
if (rand == 1) {
gotoAndStop(1);
}
if (rand == 2) {
gotoAndStop(2);
}
if (rand == 3) {
gotoAndStop(3);
}
if (rand == 4) {
gotoAndStop(4);
}
if (rand == 5) {
gotoAndStop(5);
}
if (rand == 6) {
gotoAndStop(6);
}
if (rand == 7) {
gotoAndStop(7);
}
if (rand == 8) {
gotoAndStop(8);
}
if (rand == 9) {
gotoAndStop(9);
}
if (rand == 10) {
gotoAndStop(10);
}
if (rand == 11) {
gotoAndStop(11);
}
if (rand == 12) {
gotoAndStop(12);
}
if (rand == 13) {
gotoAndStop(13);
}
if (rand == 14) {
gotoAndStop(14);
}
if (rand == 15) {
gotoAndStop(15);
}
if (rand == 16) {
gotoAndStop(16);
}
if (rand == 17) {
gotoAndStop(17);
}
if (rand == 18) {
gotoAndStop(18);
}
if (rand == 19) {
gotoAndStop(19);
}
if (rand == 20) {
gotoAndStop(20);
}
}
}
}
}
movieClip 507 {
}
movieClip 508 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 200;
_root.shad._x = _x;
_root.bg._x = _x;
_root.scoreclip._x = _x;
_root.energy._x = _x;
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 3 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(3);
}
}
}
frame 23 {
stop();
}
frame 23 {
xp = Math.round(dist / 100);
clilvl = Number(clilvl + _root.dist / 25);
dist = Math.round(dist);
_root.money = Number(_root.coins + _root.money);
walls.part1._x = 0;
walls.part2._x = 0;
}
instance of movieClip 245 {
onClipEvent (enterFrame) {
this._xscale = _root.climblevel * 1.16;
_root.climblevel = Math.floor(_root.clilvl / 10);
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 0) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 2) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 4) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 6) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 229 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.clilvl - _root.climblevel * 10 >= 8) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
button 520 {
on (release) {
gotoAndStop(21);
}
on (keyPress '<Space>') {
gotoAndStop(21);
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
instance of movieClip 29 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 33 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance of movieClip 147 {
onClipEvent (enterFrame) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
button 527 {
on (release) {
nextFrame();
}
}
button 530 {
on (release) {
if (_root.race > 2) {
gotoAndStop(32);
}
}
}
button 533 {
on (release) {
if (_root.race > 5) {
gotoAndStop(39);
}
}
}
movieClip 536 {
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 8) {
_visible = true;
gotoAndStop(1);
} else {
if (_root.race < 6) {
_visible = true;
gotoAndStop(2);
} else {
_visible = false;
}
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 2) {
_visible = true;
gotoAndStop(1);
} else {
_visible = false;
}
}
}
button 539 {
on (release) {
if (_root.race > 8) {
gotoAndStop(46);
}
}
}
button 542 {
on (release) {
if (_root.race > 11) {
gotoAndStop(53);
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 11) {
_visible = true;
gotoAndStop(1);
} else {
if (_root.race < 9) {
_visible = true;
gotoAndStop(2);
} else {
_visible = false;
}
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 5) {
_visible = true;
gotoAndStop(1);
} else {
if (_root.race < 3) {
_visible = true;
gotoAndStop(2);
} else {
_visible = false;
}
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 13) {
_visible = true;
gotoAndStop(1);
} else {
if (_root.race < 12) {
_visible = true;
gotoAndStop(2);
} else {
_visible = false;
}
}
}
}
// unknown tag 88 length 118
button 559 {
on (release) {
if (_root.race > 1) {
gotoAndStop(30);
}
}
}
button 562 {
on (release) {
if (_root.race > 0) {
gotoAndStop(28);
}
}
}
button 564 {
on (release) {
nextFrame();
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 0) {
_visible = true;
gotoAndStop(1);
}
if (_root.race == 0) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 1) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 1) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 1) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 2) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 2) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 2) {
_visible = false;
}
}
}
frame 26 {
stop();
go = 0;
enelvl = 70;
}
movieClip 570 {
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -870) {
_x = -870;
}
if (_x > -80) {
_x = -80;
}
_root.energy._x = _x;
}
}
movieClip 571 {
frame 1 {
gotoAndStop(2);
}
instance of movieClip 147 {
onClipEvent (load) {
if (_parent._parent._name == 'chick' or _parent._parent._parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 40 {
onClipEvent (load) {
num = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._x < 480 or _parent._parent._currentframe == 2) {
if (_parent._parent._x > 160 or _parent._parent._currentframe == 1) {
num = Math.round(Math.random() * 40);
if (num == 5) {
_parent.play();
num = 0;
}
if (_root.corn._x < 640) {
_parent.play();
num = 0;
}
if (_root.corn2._x > 0) {
_parent.play();
num = 0;
}
}
}
}
}
}
movieClip 583 {
frame 1 {
gotoAndStop(2);
}
instance of movieClip 147 {
onClipEvent (load) {
if (_parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._parent._parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 40 {
onClipEvent (load) {
num = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._x < 480 or _parent._parent._currentframe == 2) {
if (_parent._parent._x > 160 or _parent._parent._currentframe == 1) {
num = Math.round(Math.random() * 40);
if (num == 5) {
_parent.play();
num = 0;
}
if (_root.corn._x < 640) {
_parent.play();
num = 0;
}
if (_root.corn2._x > 0) {
_parent.play();
num = 0;
}
}
}
}
}
}
movieClip 584 {
}
movieClip 585 {
frame 20 {
stop();
}
}
movieClip 619 {
frame 1 {
stop();
}
frame 2 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
instance of movieClip 147 {
onClipEvent (load) {
if (_parent._parent._name == 'chick' or _parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 167 {
onClipEvent (load) {
if (_parent._parent._parent._parent._name == 'chick' or _parent._parent._parent._name == 'chick' or _parent._parent._name == 'chick' or _parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
}
frame 3 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
frame 4 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
frame 5 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
frame 6 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
frame 7 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
frame 8 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
frame 9 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
instance of movieClip 147 {
onClipEvent (load) {
if (_parent._parent._name == 'chick' or _parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
} else {
gotoAndStop(1);
}
}
}
frame 10 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
instance of movieClip 147 {
onClipEvent (load) {
if (_parent._parent._name == 'chick' or _parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
} else {
gotoAndStop(1);
}
}
}
frame 11 {
if (_name == 'chick') {
_x = _x - _root.runlvl / 150;
} else {
_x = _x - level / 150;
}
}
frame 12 {
_x = _x + 50;
gotoAndStop(1);
}
instance of movieClip 147 {
onClipEvent (load) {
if (_parent._parent._name == 'chick' or _parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 40 {
onClipEvent (load) {
num = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._x < 480 or _parent._parent._currentframe == 2) {
if (_parent._parent._x > 160 or _parent._parent._currentframe == 1) {
num = Math.round(Math.random() * 40);
if (num == 5) {
_parent.play();
num = 0;
}
if (_root.corn._x < 640) {
_parent.play();
num = 0;
}
if (_root.corn2._x > 0) {
_parent.play();
num = 0;
}
}
}
}
}
frame 23 {
_x = _x + 70;
mode = 2;
stop();
}
frame 30 {
mode = 1;
}
frame 31 {
stop();
}
instance of movieClip 147 {
onClipEvent (load) {
if (_parent._parent._name == 'chick' or _parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
} else {
gotoAndStop(1);
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
frame 32 {
stop();
}
instance of movieClip 168 {
}
instance of movieClip 168 {
}
instance of movieClip 168 {
}
frame 66 {
mode = 1;
_x = _x + 70;
_y = _y - 30;
gotoAndStop(1);
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 100);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
movieClip 622 {
}
movieClip 623 {
instance of movieClip 622 {
onClipEvent (load) {
chick1 = 0;
chick2 = 0;
chick3 = 0;
chick4 = 0;
idn = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) && _root.chick._currentframe > 33) {
_root.chick._x = _parent._x + _x - 17;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (this.hitTest(_root.chick) && chick1 == 0) {
chick1 = 1;
_root.chick._x = _parent._x + _x - 17;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (_root.chick.mode == 4) {
if (!this.hitTest(_root.chick)) {
_root.chick.mode = 0;
_root.chick.play();
}
}
if (this.hitTest(_root.chick2) && _root.chick2._currentframe > 33) {
_root.chick2._x = _parent._x + _x - 17;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (this.hitTest(_root.chick2) && chick2 == 0) {
chick2 = 1;
_root.chick2._x = _parent._x + _x - 17;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (_root.chick2.mode == 4) {
if (!this.hitTest(_root.chick2)) {
_root.chick2.mode = 0;
_root.chick2.play();
}
}
if (this.hitTest(_root.chick3) && _root.chick3._currentframe > 33) {
_root.chick3._x = _parent._x + _x - 17;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (this.hitTest(_root.chick3) && chick3 == 0) {
chick3 = 1;
_root.chick3._x = _parent._x + _x - 14;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (_root.chick3.mode == 4) {
if (!this.hitTest(_root.chick3)) {
_root.chick3.mode = 0;
_root.chick3.play();
}
}
if (this.hitTest(_root.chick4) && _root.chick4._currentframe > 33) {
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (this.hitTest(_root.chick4) && chick4 == 0) {
chick4 = 1;
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (_root.chick4.mode == 4) {
if (!this.hitTest(_root.chick4)) {
_root.chick4.mode = 0;
_root.chick4.play();
}
}
}
}
}
instance terrain of movieClip 623 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
movieClip 625 {
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
// unknown tag 88 length 44
movieClip 630 {
frame 150 {
_root.go = 1;
stop();
}
}
movieClip 632 {
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
movieClip 635 {
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
movieClip 639 {
}
movieClip 640 {
frame 1 {
stop();
}
frame 388 {
_root.nextFrame();
}
}
movieClip 641 {
instance of movieClip 245 {
onClipEvent (load) {
level = 1 + _root.staminalevel;
clevel = level;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
if (_root.first !== 1 and _root.second !== 1 and _root.third !== 1) {
this._xscale = (clevel / level) * 100;
clevel -= 0.01;
if (clevel <= 0) {
_root.gotoAndStop(78);
}
}
}
}
}
instance of movieClip 639 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (releaseOutside, rollOut) {
_alpha = 100;
}
}
instance of movieClip 640 {
onClipEvent (enterFrame) {
if (_root.first > 0) {
play();
}
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 27 {
if (first == 1) {
if (_root.race > 0) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked brown paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 1;
_root.race = 1;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x - _root.xspeed / 10;
}
}
instance of movieClip 33 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x - _root.xspeed / 2;
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance of movieClip 147 {
onClipEvent (enterFrame) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
movieClip 648 {
}
movieClip 650 {
}
movieClip 652 {
}
movieClip 653 {
instance of movieClip 147 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
movieClip 656 {
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 28 {
stop();
go = 0;
enelvl = 70;
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_root.energy._x = _x;
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 100);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance terrain of movieClip 623 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 29 {
if (first == 1) {
if (_root.race > 1) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked orange paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 2;
game.flush();
_root.race = 2;
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x - _root.xspeed / 10;
}
}
instance of movieClip 33 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x - _root.xspeed / 2;
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance of movieClip 147 {
onClipEvent (enterFrame) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 30 {
stop();
go = 0;
enelvl = 100;
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -1650) {
_x = -1650;
}
if (_x > 650) {
_x = 650;
}
_root.energy._x = _x;
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 100);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 100;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 100);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance terrain of movieClip 623 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 31 {
if (first == 1) {
if (_root.race > 2) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
maxmaxi = 50;
_root.kongregateStats.submit('FinishedScotland', 1);
results = 'You won 50 coins, Scotland paint, a safari hat, and the max level you can buy has been raised to 50';
game = SharedObject.getLocal('mydata');
game.data.race = 3;
_root.race = 3;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x - _root.xspeed / 10;
}
}
instance of movieClip 33 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x - _root.xspeed / 2;
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance of movieClip 147 {
onClipEvent (enterFrame) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
movieClip 670 {
}
button 678 {
on (release) {
if (_root.race > 4) {
gotoAndStop(37);
}
}
}
button 682 {
on (release) {
if (_root.race > 3) {
gotoAndStop(35);
}
}
}
button 685 {
on (release) {
nextFrame();
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 3) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 3) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 3) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 4) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 4) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 4) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 5) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 5) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 5) {
_visible = false;
}
}
}
frame 33 {
stop();
go = 0;
enelvl = 300;
}
instance of movieClip 31 {
onClipEvent (enterFrame) {
if (_x < -760) {
_x = _x + 760;
}
_x = _x - _root.xspeed / 10;
}
}
movieClip 688 {
}
movieClip 693 {
}
movieClip 695 {
}
instance of movieClip 695 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
_root.gotoAndStop(9);
}
}
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
movieClip 697 {
}
instance of movieClip 697 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
movieClip 699 {
}
instance of movieClip 699 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
movieClip 701 {
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -2460) {
_x = -2460;
}
if (_x > -1880) {
_x = -1880;
}
_root.energy._x = _x;
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
movieClip 705 {
}
movieClip 706 {
instance of movieClip 705 {
onClipEvent (load) {
chick1 = 0;
chick2 = 0;
chick3 = 0;
chick4 = 0;
idn = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) && _root.chick._currentframe > 33) {
_root.chick._x = _parent._x + _x - 17;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (this.hitTest(_root.chick) && chick1 == 0) {
chick1 = 1;
_root.chick._x = _parent._x + _x - 17;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (_root.chick.mode == 4) {
if (!this.hitTest(_root.chick)) {
_root.chick.mode = 0;
_root.chick.play();
}
}
if (this.hitTest(_root.chick2) && _root.chick2._currentframe > 33) {
_root.chick2._x = _parent._x + _x - 17;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (this.hitTest(_root.chick2) && chick2 == 0) {
chick2 = 1;
_root.chick2._x = _parent._x + _x - 17;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (_root.chick2.mode == 4) {
if (!this.hitTest(_root.chick2)) {
_root.chick2.mode = 0;
_root.chick2.play();
}
}
if (this.hitTest(_root.chick3) && _root.chick3._currentframe > 33) {
_root.chick3._x = _parent._x + _x - 17;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (this.hitTest(_root.chick3) && chick3 == 0) {
chick3 = 1;
_root.chick3._x = _parent._x + _x - 14;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (_root.chick3.mode == 4) {
if (!this.hitTest(_root.chick3)) {
_root.chick3.mode = 0;
_root.chick3.play();
}
}
if (this.hitTest(_root.chick4) && _root.chick4._currentframe > 33) {
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (this.hitTest(_root.chick4) && chick4 == 0) {
chick4 = 1;
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (_root.chick4.mode == 4) {
if (!this.hitTest(_root.chick4)) {
_root.chick4.mode = 0;
_root.chick4.play();
}
}
}
}
}
instance of movieClip 706 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
movieClip 709 {
}
instance of movieClip 709 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 34 {
if (first == 1) {
if (_root.race > 3) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked red paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 4;
game.flush();
_root.race = 4;
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 35 {
stop();
go = 0;
enelvl = 300;
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 697 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 699 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 709 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 706 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < 1320) {
_x = 1320;
}
if (_x > 1880) {
_x = 1880;
}
_root.energy._x = _x;
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 36 {
if (first == 1) {
if (_root.race > 4) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked purple paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 5;
game.flush();
_root.race = 5;
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 37 {
stop();
go = 0;
enelvl = 400;
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 697 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 699 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -2460) {
_x = -2460;
}
if (_x > 1880) {
_x = 1880;
}
_root.energy._x = _x;
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance of movieClip 706 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 709 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 38 {
if (first == 1) {
if (_root.race > 5) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
maxmaxi = 80;
_root.kongregateStats.submit('FinishedEngland', 1);
results = 'You won 50 coins, England paint, a propeller hat, and the max level you can buy has been raised to 80';
game = SharedObject.getLocal('mydata');
game.data.race = 6;
_root.race = 6;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
button 727 {
on (release) {
if (_root.race > 7) {
gotoAndStop(44);
}
}
}
button 730 {
on (release) {
if (_root.race > 6) {
gotoAndStop(42);
}
}
}
button 734 {
on (release) {
nextFrame();
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 6) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 6) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 6) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 7) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 7) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 7) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 8) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 8) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 8) {
_visible = false;
}
}
}
// unknown tag 88 length 143
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 40 {
stop();
go = 0;
enelvl = 600;
}
movieClip 739 {
}
instance of movieClip 739 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
movieClip 742 {
}
instance of movieClip 742 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
movieClip 744 {
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
gotoAndStop(2);
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
_root.chick._x -= 50;
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -2460) {
_x = -2460;
}
if (_x > -1470) {
_x = -1470;
}
_root.energy._x = _x;
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
movieClip 748 {
}
movieClip 749 {
instance of movieClip 748 {
onClipEvent (load) {
chick1 = 0;
chick2 = 0;
chick3 = 0;
chick4 = 0;
idn = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) && _root.chick._currentframe > 33) {
_root.chick._x = _parent._x + _x - 17;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (this.hitTest(_root.chick) && chick1 == 0) {
chick1 = 1;
_root.chick._x = _parent._x + _x - 17;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (_root.chick.mode == 4) {
if (!this.hitTest(_root.chick)) {
_root.chick.mode = 0;
_root.chick.play();
}
}
if (this.hitTest(_root.chick2) && _root.chick2._currentframe > 33) {
_root.chick2._x = _parent._x + _x - 17;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (this.hitTest(_root.chick2) && chick2 == 0) {
chick2 = 1;
_root.chick2._x = _parent._x + _x - 17;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (_root.chick2.mode == 4) {
if (!this.hitTest(_root.chick2)) {
_root.chick2.mode = 0;
_root.chick2.play();
}
}
if (this.hitTest(_root.chick3) && _root.chick3._currentframe > 33) {
_root.chick3._x = _parent._x + _x - 17;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (this.hitTest(_root.chick3) && chick3 == 0) {
chick3 = 1;
_root.chick3._x = _parent._x + _x - 14;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (_root.chick3.mode == 4) {
if (!this.hitTest(_root.chick3)) {
_root.chick3.mode = 0;
_root.chick3.play();
}
}
if (this.hitTest(_root.chick4) && _root.chick4._currentframe > 33) {
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (this.hitTest(_root.chick4) && chick4 == 0) {
chick4 = 1;
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (_root.chick4.mode == 4) {
if (!this.hitTest(_root.chick4)) {
_root.chick4.mode = 0;
_root.chick4.play();
}
}
}
}
}
instance of movieClip 749 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 41 {
if (first == 1) {
if (_root.race > 6) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked pink paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 7;
_root.race = 7;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
frame 42 {
stop();
go = 0;
enelvl = 600;
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
gotoAndStop(2);
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -810) {
_x = -810;
}
if (_x > 700) {
_x = 700;
}
_root.energy._x = _x;
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance of movieClip 749 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 739 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 742 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 43 {
if (first == 1) {
if (_root.race > 7) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked blue paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 8;
_root.race = 8;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 44 {
stop();
go = 0;
enelvl = 700;
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
gotoAndStop(2);
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -2460) {
_x = -2460;
}
if (_x > 700) {
_x = 700;
}
_root.energy._x = _x;
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance of movieClip 749 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 739 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 742 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 45 {
if (first == 1) {
if (_root.race > 8) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
maxmaxi = 110;
_root.kongregateStats.submit('FinishedEgypt', 1);
results = 'You won 50 coins, Egypt paint, punk hair, and the max level you can buy has been raised to 110';
game = SharedObject.getLocal('mydata');
game.data.race = 9;
_root.race = 9;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
movieClip 760 {
}
button 766 {
on (release) {
if (_root.race > 10) {
gotoAndStop(51);
}
}
}
button 769 {
on (release) {
if (_root.race > 9) {
gotoAndStop(49);
}
}
}
button 773 {
on (release) {
if (_root.race > 8) {
nextFrame();
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 9) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 9) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 9) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 10) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 10) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 10) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 11) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 11) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 11) {
_visible = false;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 47 {
stop();
go = 0;
enelvl = 900;
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
movieClip 777 {
}
movieClip 778 {
instance of movieClip 777 {
onClipEvent (load) {
chick1 = 0;
chick2 = 0;
chick3 = 0;
chick4 = 0;
idn = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) && _root.chick._currentframe > 33) {
_root.chick._x = _parent._x + _x - 17;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (this.hitTest(_root.chick) && chick1 == 0) {
chick1 = 1;
_root.chick._x = _parent._x + _x - 17;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (_root.chick.mode == 4) {
if (!this.hitTest(_root.chick)) {
_root.chick.mode = 0;
_root.chick.play();
}
}
if (this.hitTest(_root.chick2) && _root.chick2._currentframe > 33) {
_root.chick2._x = _parent._x + _x - 17;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (this.hitTest(_root.chick2) && chick2 == 0) {
chick2 = 1;
_root.chick2._x = _parent._x + _x - 17;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (_root.chick2.mode == 4) {
if (!this.hitTest(_root.chick2)) {
_root.chick2.mode = 0;
_root.chick2.play();
}
}
if (this.hitTest(_root.chick3) && _root.chick3._currentframe > 33) {
_root.chick3._x = _parent._x + _x - 17;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (this.hitTest(_root.chick3) && chick3 == 0) {
chick3 = 1;
_root.chick3._x = _parent._x + _x - 14;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (_root.chick3.mode == 4) {
if (!this.hitTest(_root.chick3)) {
_root.chick3.mode = 0;
_root.chick3.play();
}
}
if (this.hitTest(_root.chick4) && _root.chick4._currentframe > 33) {
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (this.hitTest(_root.chick4) && chick4 == 0) {
chick4 = 1;
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (_root.chick4.mode == 4) {
if (!this.hitTest(_root.chick4)) {
_root.chick4.mode = 0;
_root.chick4.play();
}
}
}
}
}
instance of movieClip 778 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 760 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
movieClip 780 {
}
instance of movieClip 780 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
gotoAndStop(2);
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -2410) {
_x = -2410;
}
if (_x > -1100) {
_x = -1100;
}
_root.energy._x = _x;
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 48 {
if (first == 1) {
if (_root.race > 9) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked green paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 10;
_root.race = 10;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 49 {
stop();
go = 0;
enelvl = 900;
}
instance of movieClip 760 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 780 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
gotoAndStop(2);
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_root.energy._x = _x;
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 778 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 50 {
if (first == 1) {
if (_root.race > 10) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked white paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 11;
_root.race = 11;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
frame 51 {
stop();
go = 0;
enelvl = 1000;
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance of movieClip 778 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 760 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 780 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
gotoAndStop(2);
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
instance of movieClip 635 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -2410) {
_x = -2410;
}
if (_x > 2820) {
_x = 2820;
}
_root.energy._x = _x;
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndPlay(13);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndPlay(13);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
frame 52 {
if (first == 1) {
if (_root.race > 11) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
maxmaxi = 150;
_root.kongregateStats.submit('FinishedHawaii', 1);
results = 'You won 50 coins, Hawaii paint, emo hair, and the max level you can buy has been raised to 150';
game = SharedObject.getLocal('mydata');
game.data.race = 12;
_root.race = 12;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
// unknown tag 88 length 92
button 799 {
on (release) {
if (_root.race > 12) {
gotoAndStop(56);
}
}
}
button 804 {
on (release) {
if (_root.race > 8) {
nextFrame();
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 12) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 12) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 12) {
_visible = false;
}
}
}
instance of movieClip 536 {
onClipEvent (load) {
if (_root.race > 13) {
_visible = true;
gotoAndStop(1);
}
if (_root.race < 13) {
_visible = true;
gotoAndStop(2);
}
if (_root.race == 13) {
_visible = false;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 4 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(4);
}
}
}
frame 54 {
stop();
go = 0;
enelvl = 1200;
}
movieClip 806 {
}
// unknown tag 88 length 244
movieClip 824 {
}
instance of movieClip 824 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
movieClip 826 {
}
instance of movieClip 826 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
movieClip 828 {
}
instance of movieClip 828 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
movieClip 830 {
}
instance of movieClip 830 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
movieClip 832 {
}
instance of movieClip 832 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
movieClip 833 {
}
instance of movieClip 833 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0 and yspeed < 5) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick4 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0 and yspeed < 5) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick3 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = _root.enelvl - 50 + Math.random() * 100;
level2 = _root.enelvl - 50 + Math.random() * 100;
level3 = _root.enelvl - 50 + Math.random() * 100;
level4 = _root.enelvl - 50 + Math.random() * 100;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0 and yspeed < 5) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0 and yspeed < 5) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -3010) {
_x = -3010;
}
if (_x > _root.flag._x - 100) {
_x = _root.flag._x - 100;
}
_root.energy._x = _x;
}
}
instance flag of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
gotoAndStop(2);
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
}
}
movieClip 836 {
}
movieClip 837 {
instance of movieClip 836 {
onClipEvent (load) {
chick1 = 0;
chick2 = 0;
chick3 = 0;
chick4 = 0;
idn = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and chick1 == 0) {
chick1 = 1;
_root.chick._x = _parent._x + _x * 2 - 25;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (_root.chick.mode == 4) {
if (!this.hitTest(_root.chick)) {
_root.chick.mode = 0;
_root.chick.play();
}
}
if (this.hitTest(_root.chick2) and chick2 == 0) {
chick2 = 1;
_root.chick2._x = _parent._x + _x * 2 - 25;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (_root.chick2.mode == 4) {
if (!this.hitTest(_root.chick2)) {
_root.chick2.mode = 0;
_root.chick2.play();
}
}
if (this.hitTest(_root.chick3) and chick3 == 0) {
chick3 = 1;
_root.chick3._x = _parent._x + _x * 2 - 22;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (_root.chick3.mode == 4) {
if (!this.hitTest(_root.chick3)) {
_root.chick3.mode = 0;
_root.chick3.play();
}
}
if (this.hitTest(_root.chick4) and chick4 == 0) {
chick4 = 1;
_root.chick4._x = _parent._x + _x * 2 - 25;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (_root.chick4.mode == 4) {
if (!this.hitTest(_root.chick4)) {
_root.chick4.mode = 0;
_root.chick4.play();
}
}
}
}
}
instance japan of movieClip 837 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
movieClip 838 {
}
instance of movieClip 838 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
movieClip 839 {
}
instance of movieClip 839 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 57 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
frame 55 {
if (first == 1) {
if (_root.race > 12) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
money = Number(money + 50);
position = '1st';
results = 'You win 50 coins and have unlocked black paint (go to the shop to change colour)';
game = SharedObject.getLocal('mydata');
game.data.race = 13;
game.flush();
_root.race = 13;
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(2);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(2);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
instance chick3 of movieClip 653 {
onClipEvent (load) {
if (_root.third == 0) {
gotoAndStop(5);
}
if (_root.third == 1) {
gotoAndStop(1);
}
if (_root.third == 2) {
gotoAndStop(2);
}
if (_root.third == 3) {
gotoAndStop(3);
}
if (_root.third == 4) {
gotoAndStop(4);
}
}
}
instance chick4 of movieClip 653 {
onClipEvent (load) {
if (_root.forth == 0) {
gotoAndStop(5);
}
if (_root.forth == 1) {
gotoAndStop(1);
}
if (_root.forth == 2) {
gotoAndStop(2);
}
if (_root.forth == 3) {
gotoAndStop(3);
}
if (_root.forth == 4) {
gotoAndStop(4);
}
}
}
frame 56 {
stop();
go = 0;
enelvl = 1200;
}
instance of movieClip 824 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 826 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 828 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 830 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 832 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 833 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick2)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick3)) {
_root.chick3._x -= 1;
}
while (this.hitTest(_root.chick4)) {
_root.chick4._x -= 1;
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance of movieClip 570 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 and _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 and _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 and _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 and _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 632 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 and _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 and _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 and _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 and _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
level = 1490;
level2 = 1490;
level3 = 1490;
level4 = 1490;
delay = (1750 - level) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay2 = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0 and yspeed < 5) {
play();
delay = (1750 - level) / 100;
}
} else {
_x = _x + level / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + level2) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + level3 / 200);
}
if (mode == 4) {
_y = _y - (0.5 + level4 / 250);
}
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = (1750 - _root.runlvl) / 100;
mode = 1;
}
onClipEvent (enterFrame) {
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0 and yspeed < 5) {
play();
delay = (1750 - _root.runlvl) / 100;
}
} else {
_x = _x + _root.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.flylvl) / 200;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.swilvl / 200);
}
if (mode == 4) {
_y = _y - (0.5 + _root.clilvl / 250);
}
}
}
}
instance cam of movieClip 508 {
onClipEvent (enterFrame) {
_x = _x + (_root.chick._x - _x) / 16;
if (_x < -3010) {
_x = -3010;
}
if (_x > _root.flag._x - 100) {
_x = _root.flag._x - 100;
}
_root.energy._x = _x;
}
}
instance flag of movieClip 625 {
onClipEvent (load) {
_root.first = 0;
_root.second = 0;
_root.third = 0;
_root.forth = 0;
one = 0;
two = 0;
thr = 0;
fou = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick) and one == 0) {
one = 1;
if (_root.first == 0) {
_root.first = 1;
gotoAndStop(2);
} else {
if (_root.second == 0) {
_root.second = 1;
} else {
if (_root.third == 0) {
_root.third = 1;
} else {
if (_root.forth == 0) {
_root.forth = 1;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick2) and two == 0) {
two = 1;
if (_root.first == 0) {
_root.first = 2;
} else {
if (_root.second == 0) {
_root.second = 2;
} else {
if (_root.third == 0) {
_root.third = 2;
} else {
if (_root.forth == 0) {
_root.forth = 2;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick3) and thr == 0) {
thr = 1;
if (_root.first == 0) {
_root.first = 3;
} else {
if (_root.second == 0) {
_root.second = 3;
} else {
if (_root.third == 0) {
_root.third = 3;
} else {
if (_root.forth == 0) {
_root.forth = 3;
_root.nextFrame();
}
}
}
}
}
if (this.hitTest(_root.chick4) and fou == 0) {
fou = 1;
if (_root.first == 0) {
_root.first = 4;
} else {
if (_root.second == 0) {
_root.second = 4;
} else {
if (_root.third == 0) {
_root.third = 4;
} else {
if (_root.forth == 0) {
_root.forth = 4;
_root.nextFrame();
}
}
}
}
}
if (_root.second > 0) {
_root.nextFrame();
}
}
}
instance japan of movieClip 837 {
onClipEvent (enterFrame) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
instance of movieClip 838 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
instance of movieClip 839 {
onClipEvent (enterFrame) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 3;
}
}
}
frame 57 {
if (first == 1) {
if (_root.race > 13) {
position = '1st';
results = 'You have already won the prizes for this race';
} else {
menub.gotoAndStop(2);
money = Number(money + 50);
position = '1st';
maxmaxi = 150;
_root.kongregateStats.submit('FinishedGame', 1);
results = 'You won! You are now the champion, click next to see your prizes (there are a lot)';
game = SharedObject.getLocal('mydata');
game.data.race = 14;
_root.race = 14;
game.flush();
}
}
if (second == 1) {
position = '2nd';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = '3rd';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = '4th';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance chick of movieClip 653 {
onClipEvent (load) {
if (_root.first == 1) {
gotoAndStop(1);
}
if (_root.first == 2) {
gotoAndStop(6);
}
if (_root.first == 3) {
gotoAndStop(3);
}
if (_root.first == 4) {
gotoAndStop(4);
}
}
}
instance chick2 of movieClip 653 {
onClipEvent (load) {
if (_root.second == 0) {
gotoAndStop(5);
}
if (_root.second == 1) {
gotoAndStop(1);
}
if (_root.second == 2) {
gotoAndStop(6);
}
if (_root.second == 3) {
gotoAndStop(3);
}
if (_root.second == 4) {
gotoAndStop(4);
}
}
}
movieClip 848 {
frame 1 {
stop();
}
}
instance menub of movieClip 848 {
onClipEvent (release) {
if (_currentframe == 1) {
_root.gotoAndStop(9);
} else {
_root.nextFrame();
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (releaseOutside, rollOut) {
_alpha = 100;
}
}
movieClip 850 {
}
frame 59 {
_root.money = Number(_root.money + 200000);
}
// unknown tag 88 length 80
instance menub of movieClip 848 {
onClipEvent (release) {
if (_currentframe == 1) {
_root.gotoAndStop(9);
} else {
_root.nextFrame();
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (releaseOutside, rollOut) {
_alpha = 100;
}
}
frame 78 {
if (first == 1) {
money = Number(money + 50);
position = 'You came first!';
results = 'You win 50 coins and have unlocked the colour "Juicy Orange" (you can purchase this in the shop for 50 coins)';
}
if (second == 1) {
position = 'You came second!';
results = 'So close yet so far. Train up your duck then come back and try again';
}
if (third == 1) {
position = 'You came third';
results = 'At least you wern\'t last. Train up your duck then come back and try again';
}
if (forth == 1) {
position = 'You came last';
results = 'Oh no! Train up your duck then come back and try again';
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
instance of movieClip 147 {
onClipEvent (enterFrame) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
}
}
movieClip 874 {
}
instance of movieClip 58 {
onClipEvent (load) {
delay = 100;
}
onClipEvent (enterFrame) {
delay -= 1;
if (delay <= 0) {
game = SharedObject.getLocal('mydata');
game.data.stalvl = _root.stalvl;
game.data.runlvl = _root.runlvl;
game.data.flylvl = _root.flylvl;
game.data.swilvl = _root.swilvl;
game.data.seed = _root.seed;
game.data.skill = _root.skill;
game.data.money = _root.money;
game.data.colour = _root.colour;
game.data.hat = _root.hat;
game.flush();
delay = 100;
}
}
}
movieClip 878 {
}
movieClip 879 {
frame 1 {
stop();
}
instance of movieClip 878 {
onClipEvent (enterFrame) {
if (_root.music == 0) {
stopAllSounds();
_parent.gotoAndStop(1);
}
}
}
frame 2 {
_root.music = 2;
stop();
}
frame 3 {
_root.music = 3;
stop();
}
frame 4 {
_root.music = 4;
stop();
}
frame 5 {
stop();
_root.music = 1;
}
}
instance of movieClip 879 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
instance of movieClip 58 {
onClipEvent (load) {
_root.total = Number(_root.swimlevel) + Number(_root.staminalevel) + Number(_root.runninglevel) + Number(_root.flyinglevel);
_root.totalx = Math.round((Number(_root.swilvl) + Number(_root.stalvl) + Number(_root.runlvl) + Number(_root.flylvl)) / 2);
if (_root.total > 499) {
_root.rank = 'Duck God';
} else {
if (_root.total > 399) {
_root.rank = 'King of Ducks';
} else {
if (_root.total > 299) {
_root.rank = 'Professional';
} else {
if (_root.total > 199) {
_root.rank = 'Speedy Duck';
} else {
if (_root.total > 159) {
_root.rank = 'Amateur';
} else {
if (_root.total > 99) {
_root.rank = 'Trainee';
} else {
if (_root.total > 49) {
_root.rank = 'Beginner';
} else {
if (_root.total > 19) {
_root.rank = 'Duckling';
} else {
_root.rank = 'Baby Duckling';
}
}
}
}
}
}
}
}
if (_root.total499) {
_root.rank2 = 'N/A';
} else {
if (_root.total > 399) {
_root.rank2 = 'Duck God';
} else {
if (_root.total > 299) {
_root.rank2 = 'King of Ducks';
} else {
if (_root.total > 199) {
_root.rank2 = 'Professional';
} else {
if (_root.total > 159) {
_root.rank2 = 'Speedy Duck';
} else {
if (_root.total > 99) {
_root.rank2 = 'Amateur';
} else {
if (_root.total > 49) {
_root.rank2 = 'Trainee';
} else {
if (_root.total > 19) {
_root.rank2 = 'Beginner';
} else {
_root.rank2 = 'Duckling';
}
}
}
}
}
}
}
}
if (_root.stalvl > _root.flylvl and _root.stalvl > _root.runlvl and _root.stalvl > _root.swilvl) {
_root.type = 'Energetic';
} else {
if (_root.swilvl > _root.flylvl and _root.swilvl > _root.runlvl and _root.swilvl > _root.stalvl) {
_root.type = 'Swimmer';
} else {
if (_root.flylvl > _root.stalvl and _root.flylvl > _root.runlvl and _root.flylvl > _root.swilvl) {
_root.type = 'Pilot';
} else {
if (_root.runlvl > _root.flylvl and _root.runlvl > _root.stalvl and _root.runlvl > _root.swilvl) {
_root.type = 'Sprinter';
} else {
_root.type = 'Neutral';
}
}
}
}
}
}
movieClip 904 {
}
movieClip 905 {
}
button 912 {
on (release) {
gotoAndStop(9);
}
}
movieClip 931 {
frame 1 {
stop();
}
}
movieClip 932 {
instance colours of movieClip 931 {
onClipEvent (load) {
if (_parent._parent._name == 'chick' || _parent._parent._parent._name == 'chick' || _parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._parent._parent._name == 'chick') {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 10) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
}
}
movieClip 934 {
}
movieClip 935 {
instance of movieClip 934 {
onClipEvent (load) {
if (_parent._parent._parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._name == 'chick' || _parent._parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
} else {
if (_root.hat == 5) {
gotoAndStop(6);
} else {
if (_root.hat == 6) {
gotoAndStop(7);
} else {
if (_root.hat == 7) {
gotoAndStop(8);
} else {
if (_root.hat == 8) {
gotoAndStop(9);
} else {
if (_root.hat == 9) {
gotoAndStop(10);
}
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._parent._parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._name == 'chick' || _parent._parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
} else {
if (_root.hat == 5) {
gotoAndStop(6);
} else {
if (_root.hat == 6) {
gotoAndStop(7);
} else {
if (_root.hat == 7) {
gotoAndStop(8);
} else {
if (_root.hat == 8) {
gotoAndStop(9);
} else {
if (_root.hat == 9) {
gotoAndStop(10);
}
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
}
}
movieClip 936 {
instance of movieClip 935 {
onClipEvent (load) {
if (_parent._parent._currentframe == 1 || _parent._parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._name == 'chick' || _parent._parent._name == 'chick' || _parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
} else {
if (_root.hat == 5) {
gotoAndStop(6);
} else {
if (_root.hat == 6) {
gotoAndStop(7);
} else {
if (_root.hat == 7) {
gotoAndStop(8);
} else {
if (_root.hat == 8) {
gotoAndStop(9);
} else {
if (_root.hat == 9) {
gotoAndStop(10);
}
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._parent._currentframe == 1 || _parent._parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._parent._name == 'chick' || _parent._parent._parent._name == 'chick' || _parent._parent._name == 'chick' || _parent._name == 'chick') {
if (_root.hat == 0) {
gotoAndStop(1);
} else {
if (_root.hat == 1) {
gotoAndStop(2);
} else {
if (_root.hat == 2) {
gotoAndStop(3);
} else {
if (_root.hat == 3) {
gotoAndStop(4);
} else {
if (_root.hat == 4) {
gotoAndStop(5);
} else {
if (_root.hat == 5) {
gotoAndStop(6);
} else {
if (_root.hat == 6) {
gotoAndStop(7);
} else {
if (_root.hat == 7) {
gotoAndStop(8);
} else {
if (_root.hat == 8) {
gotoAndStop(9);
} else {
if (_root.hat == 9) {
gotoAndStop(10);
}
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(1);
}
}
}
}
movieClip 937 {
}
movieClip 938 {
instance of movieClip 932 {
onClipEvent (load) {
if (_root.colour == 0) {
gotoAndStop(1);
}
if (_root.colour == 1) {
gotoAndStop(2);
}
if (_root.colour == 2) {
gotoAndStop(3);
}
if (_root.colour == 3) {
gotoAndStop(4);
}
if (_root.colour == 4) {
gotoAndStop(5);
}
if (_root.colour == 5) {
gotoAndStop(6);
}
if (_root.colour == 6) {
gotoAndStop(7);
}
if (_root.colour == 7) {
gotoAndStop(8);
}
if (_root.colour == 8) {
gotoAndStop(9);
}
if (_root.colour == 9) {
gotoAndStop(10);
}
if (_root.colour == 10) {
gotoAndStop(11);
}
if (_root.colour == 11) {
gotoAndStop(12);
}
if (_root.colour == 12) {
gotoAndStop(13);
}
if (_root.colour == 13) {
gotoAndStop(14);
}
if (_root.colour == 14) {
gotoAndStop(15);
}
if (_root.colour == 15) {
gotoAndStop(16);
}
}
}
instance of movieClip 937 {
onClipEvent (load) {
num = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._x < 530 || _parent._parent._currentframe == 2) {
if (_parent._parent._x > 110 || _parent._parent._currentframe == 1) {
num = Math.round(Math.random() * 40);
if (num == 5) {
_parent.play();
num = 0;
}
if (_root.corn._x < 640) {
_parent.play();
num = 0;
}
if (_root.corn2._x > 0) {
_parent.play();
num = 0;
}
}
}
}
}
}
movieClip 939 {
frame 1 {
dname = _root.namee;
drun = 'Run Lvl: ' + Math.floor(_root.runlvl / 10);
dswim = 'Swim Lvl: ' + Math.floor(_root.swilvl / 10);
dfly = 'Fly Lvl: ' + Math.floor(_root.flylvl / 10);
dclimb = 'Climb Lvl: ' + Math.floor(_root.clilvl / 10);
denergy = 'Energy Lvl: ' + Math.floor(_root.stalvl / 10);
}
}
frame 81 {
_root.clears = 0;
_root.clears2 = 0;
}
movieClip 941 {
}
instance block4 of movieClip 941 {
onClipEvent (press) {
drag = 1;
}
onClipEvent (release, releaseOutside) {
drag = 0;
}
onClipEvent (enterFrame) {
if (_root.clears == 1) {
this.removeMovieClip();
}
if (drag == 1) {
_x = Math.round(_root._xmouse / 10) * 10;
}
if (drag == 1) {
_y = Math.round(_root._ymouse / 10) * 10;
}
if (_y < 100) {
_y = 100;
}
if (_root.go == 1) {
while (this.hitTest(_root.chick._x, _root.chick._y, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 5;
_root.chick.mode = 3;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 5;
_root.chick2.mode = 3;
}
while (this.hitTest(_root.chick3._x, _root.chick3._y, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 5;
_root.chick3.mode = 3;
}
while (this.hitTest(_root.chick4._x, _root.chick4._y, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 5;
_root.chick4.mode = 3;
}
if (this.hitTest(_root.chick._x - 20, _root.chick._y - 20, true)) {
_root.chick.mode = 1;
}
if (this.hitTest(_root.chick2._x - 20, _root.chick2._y - 20, true)) {
_root.chick2.mode = 1;
}
}
}
}
movieClip 943 {
}
movieClip 944 {
}
movieClip 945 {
}
movieClip 946 {
instance of movieClip 943 {
onClipEvent (enterFrame) {
if (_root.go == 1) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x + 20, _root.chick._y, true)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
if (this.hitTest(_root.chick._x + 30, _root.chick._y, true)) {
_root.chick._x = _x - 130;
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x + 20, _root.chick2._y, true)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
if (this.hitTest(_root.chick2._x + 30, _root.chick2._y, true)) {
_root.chick2._x = _x - 130;
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 944 {
onClipEvent (load) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.resets == 1) {
jump1 = 0;
jump2 = 0;
jump3 = 0;
jump4 = 0;
}
if (this.hitTest(_root.chick)) {
if (_root.chick._currentframe > 1 && _root.chick._currentframe < 5) {
if (jump1 == 0) {
_root.chick._y -= 2;
_root.chick.gotoAndPlay(13);
jump1 = 1;
_root.chick.mode = 0;
}
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2._currentframe > 1 && _root.chick2._currentframe < 5) {
if (jump2 == 0) {
_root.chick2._y -= 2;
_root.chick2.gotoAndPlay(13);
jump2 = 1;
_root.chick2.mode = 0;
}
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3._currentframe > 1 && _root.chick3._currentframe < 5) {
if (jump3 == 0) {
_root.chick3._y -= 2;
_root.chick3.gotoAndPlay(13);
jump3 = 1;
_root.chick3.mode = 0;
}
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4._currentframe > 1 && _root.chick4._currentframe < 5) {
if (jump4 == 0) {
_root.chick4._y -= 2;
_root.chick4.gotoAndPlay(13);
jump4 = 1;
_root.chick4.mode = 0;
}
}
}
}
}
instance of movieClip 945 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.chick)) {
if (_root.chick.mode !== 2 && _root.chick._currentframe < 13) {
_root.chick.mode = 2;
_root.chick.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick2)) {
if (_root.chick2.mode !== 2 && _root.chick2._currentframe < 13) {
_root.chick2.mode = 2;
_root.chick2.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick3)) {
if (_root.chick3.mode !== 2 && _root.chick3._currentframe < 13) {
_root.chick3.mode = 2;
_root.chick3.gotoAndStop(23);
}
}
if (this.hitTest(_root.chick4)) {
if (_root.chick4.mode !== 2 && _root.chick4._currentframe < 13) {
_root.chick4.mode = 2;
_root.chick4.gotoAndStop(23);
}
}
}
}
}
instance block2 of movieClip 946 {
onClipEvent (press) {
drag = 1;
}
onClipEvent (release, releaseOutside) {
drag = 0;
}
onClipEvent (enterFrame) {
if (_root.clears == 1) {
this.removeMovieClip();
}
if (drag == 1) {
_x = Math.round(_root._xmouse / 10) * 10;
}
if (drag == 1) {
_y = Math.round(_root._ymouse / 10) * 10;
}
if (_y < 100) {
_y = 100;
}
}
}
movieClip 949 {
}
movieClip 951 {
instance of movieClip 949 {
onClipEvent (load) {
chick1 = 0;
chick2 = 0;
chick3 = 0;
chick4 = 0;
idn = 1;
}
onClipEvent (enterFrame) {
if (_root.resets == 1) {
chick1 = 0;
chick2 = 0;
chick3 = 0;
chick4 = 0;
}
if (this.hitTest(_root.chick) && _root.chick._currentframe > 33) {
_root.chick._x = _parent._x + _x - 15;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (this.hitTest(_root.chick) && chick1 == 0) {
chick1 = 1;
_root.chick._x = _parent._x + _x - 15;
_root.chick.mode = 4;
_root.chick.gotoAndStop(32);
}
if (_root.chick.mode == 4) {
if (!this.hitTest(_root.chick) && chick1 == 1) {
chick1 = 0;
_root.chick.mode = 0;
_root.chick.play();
}
}
if (this.hitTest(_root.chick2) && _root.chick2._currentframe > 33) {
_root.chick2._x = _parent._x + _x - 15;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (this.hitTest(_root.chick2) && chick1 == 0) {
chick2 = 1;
_root.chick2._x = _parent._x + _x - 15;
_root.chick2.mode = 4;
_root.chick2.gotoAndStop(32);
}
if (_root.chick2.mode == 4) {
if (!this.hitTest(_root.chick2) && chick2 == 1) {
chick2 = 0;
_root.chick2.mode = 0;
_root.chick2.play();
}
}
if (this.hitTest(_root.chick3) && _root.chick3._currentframe > 33) {
_root.chick3._x = _parent._x + _x - 17;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (this.hitTest(_root.chick3) && chick3 == 0) {
chick3 = 1;
_root.chick3._x = _parent._x + _x - 14;
_root.chick3.mode = 4;
_root.chick3.gotoAndStop(32);
}
if (_root.chick3.mode == 4) {
if (!this.hitTest(_root.chick3)) {
_root.chick3.mode = 0;
_root.chick3.play();
}
}
if (this.hitTest(_root.chick4) && _root.chick4._currentframe > 33) {
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (this.hitTest(_root.chick4) && chick4 == 0) {
chick4 = 1;
_root.chick4._x = _parent._x + _x - 17;
_root.chick4.mode = 4;
_root.chick4.gotoAndStop(32);
}
if (_root.chick4.mode == 4) {
if (!this.hitTest(_root.chick4)) {
_root.chick4.mode = 0;
_root.chick4.play();
}
}
}
}
}
instance block3 of movieClip 951 {
onClipEvent (press) {
drag = 1;
}
onClipEvent (release, releaseOutside) {
drag = 0;
}
onClipEvent (enterFrame) {
if (_root.clears == 1) {
this.removeMovieClip();
}
if (drag == 1) {
_x = Math.round(_root._xmouse / 10) * 10;
}
if (drag == 1) {
_y = Math.round(_root._ymouse / 10) * 10;
}
if (_y < 250) {
_y = 250;
}
if (_root.go == 1) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x + 20, _root.chick._y, true)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
if (this.hitTest(_root.chick._x + 30, _root.chick._y, true)) {
_root.chick._x = _x - 130;
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x + 20, _root.chick2._y, true)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
if (this.hitTest(_root.chick2._x + 30, _root.chick2._y, true)) {
_root.chick2._x = _x - 130;
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
}
movieClip 952 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v3 = sX / this._width;
var v4 = sY / this._height;
_parent._x = cX - this._x * v3;
_parent._y = cY - this._y * v4;
_parent._xscale = 100 * v3;
_parent._yscale = 100 * v4;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
instance cam of movieClip 952 {
onClipEvent (enterFrame) {
if (_root.go == 1) {
_x = _x + (_root.chick._x - _x) / 16;
} else {
if (_root.starts == 1) {
if (Key.isDown(39)) {
_x = _x + 10;
}
if (Key.isDown(37)) {
_x = _x - 10;
}
}
}
if (_x < 320) {
_x = 320;
}
_root.energy._x = _x;
}
}
movieClip 954 {
}
instance block5 of movieClip 954 {
onClipEvent (press) {
drag = 1;
}
onClipEvent (release, releaseOutside) {
drag = 0;
}
onClipEvent (enterFrame) {
if (_root.clears == 1) {
this.removeMovieClip();
_root.clears = 0;
}
if (drag == 1) {
_x = Math.round(_root._xmouse / 10) * 10;
}
if (drag == 1) {
_y = Math.round(_root._ymouse / 10) * 10;
}
if (_y < 100) {
_y = 100;
}
if (_root.go == 1) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x + 20, _root.chick._y, true)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
if (this.hitTest(_root.chick._x + 30, _root.chick._y, true)) {
_root.chick._x = _x - 130;
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x + 20, _root.chick2._y, true)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
if (this.hitTest(_root.chick2._x + 30, _root.chick2._y, true)) {
_root.chick2._x = _x - 130;
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
}
movieClip 956 {
}
instance of movieClip 956 {
onClipEvent (load) {
delayer = 0;
}
onClipEvent (enterFrame) {
if (_root.resets == 1) {
delayer += 1;
}
if (delayer == 3) {
_root.resets = 0;
delayer = 0;
}
}
}
instance block6 of movieClip 954 {
onClipEvent (press) {
drag = 1;
}
onClipEvent (release, releaseOutside) {
drag = 0;
}
onClipEvent (enterFrame) {
if (_root.clears == 1) {
this.removeMovieClip();
_root.clears = 0;
}
if (drag == 1) {
_x = Math.round(_root._xmouse / 10) * 10;
}
if (drag == 1) {
_y = Math.round(_root._ymouse / 10) * 10;
}
if (_y < 100) {
_y = 100;
}
if (_root.go == 1) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x + 20, _root.chick._y, true)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
if (this.hitTest(_root.chick._x + 30, _root.chick._y, true)) {
_root.chick._x = _x - 130;
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x + 20, _root.chick2._y, true)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
if (this.hitTest(_root.chick2._x + 30, _root.chick2._y, true)) {
_root.chick2._x = _x - 130;
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
}
movieClip 959 {
}
movieClip 960 {
}
movieClip 962 {
}
movieClip 963 {
}
movieClip 964 {
}
movieClip 965 {
}
movieClip 968 {
}
movieClip 969 {
}
button 973 {
on (release) {
_root.clears = 1;
}
}
button 976 {
on (release) {
_root.clears = 1;
_root.clears2 = 1;
_root.gotoAndStop(9);
}
}
movieClip 977 {
instance of movieClip 959 {
onClipEvent (release) {
var newdepth = this._parent._parent.block._parent.getNextHighestDepth();
var newname = 'copy' + newdepth;
var prevname = 'copy' + (newdepth - 1);
if (this._parent._parent.block._parent[prevname] == undefined) {
this._parent._parent.block._parent[prevname] = this._parent._parent.block;
}
this._parent._parent.block.duplicateMovieClip(newname, newdepth);
this._parent._parent.block._parent[newname]._x = -500;
this._parent._parent.block._parent[newname]._y = -500;
this._parent._parent.block._parent[newname].drag = 1;
mx.behaviors.DepthControl.bringToFront(this._parent);
}
}
instance of movieClip 960 {
onClipEvent (release) {
var newdepth = this._parent._parent.block2._parent.getNextHighestDepth();
var newname = 'copy' + newdepth;
var prevname = 'copy' + (newdepth - 1);
if (this._parent._parent.block2._parent[prevname] == undefined) {
this._parent._parent.block2._parent[prevname] = this._parent._parent.block2;
}
this._parent._parent.block2.duplicateMovieClip(newname, newdepth);
this._parent._parent.block2._parent[newname]._x = -500;
this._parent._parent.block2._parent[newname]._y = -500;
this._parent._parent.block2._parent[newname].drag = 1;
mx.behaviors.DepthControl.bringToFront(this._parent);
}
}
instance of movieClip 962 {
onClipEvent (release) {
var newdepth = this._parent._parent.block3._parent.getNextHighestDepth();
var newname = 'copy' + newdepth;
var prevname = 'copy' + (newdepth - 1);
if (this._parent._parent.block3._parent[prevname] == undefined) {
this._parent._parent.block3._parent[prevname] = this._parent._parent.block3;
}
this._parent._parent.block3.duplicateMovieClip(newname, newdepth);
this._parent._parent.block3._parent[newname]._x = -500;
this._parent._parent.block3._parent[newname]._y = -500;
this._parent._parent.block3._parent[newname].drag = 1;
mx.behaviors.DepthControl.bringToFront(this._parent);
}
}
instance of movieClip 963 {
onClipEvent (release) {
var newdepth = this._parent._parent.block4._parent.getNextHighestDepth();
var newname = 'copy' + newdepth;
var prevname = 'copy' + (newdepth - 1);
if (this._parent._parent.block4._parent[prevname] == undefined) {
this._parent._parent.block4._parent[prevname] = this._parent._parent.block4;
}
this._parent._parent.block4.duplicateMovieClip(newname, newdepth);
this._parent._parent.block4._parent[newname]._x = -500;
this._parent._parent.block4._parent[newname]._y = -500;
this._parent._parent.block4._parent[newname].drag = 1;
mx.behaviors.DepthControl.bringToFront(this._parent);
}
}
instance of movieClip 964 {
onClipEvent (release) {
var newdepth = this._parent._parent.block5._parent.getNextHighestDepth();
var newname = 'copy' + newdepth;
var prevname = 'copy' + (newdepth - 1);
if (this._parent._parent.block5._parent[prevname] == undefined) {
this._parent._parent.block5._parent[prevname] = this._parent._parent.block5;
}
this._parent._parent.block5.duplicateMovieClip(newname, newdepth);
this._parent._parent.block5._parent[newname]._x = -500;
this._parent._parent.block5._parent[newname]._y = -500;
this._parent._parent.block5._parent[newname].drag = 1;
mx.behaviors.DepthControl.bringToFront(this._parent);
}
}
instance of movieClip 965 {
onClipEvent (release) {
var newdepth = this._parent._parent.block6._parent.getNextHighestDepth();
var newname = 'copy' + newdepth;
var prevname = 'copy' + (newdepth - 1);
if (this._parent._parent.block6._parent[prevname] == undefined) {
this._parent._parent.block6._parent[prevname] = this._parent._parent.block6;
}
this._parent._parent.block6.duplicateMovieClip(newname, newdepth);
this._parent._parent.block6._parent[newname]._x = -500;
this._parent._parent.block6._parent[newname]._y = -500;
this._parent._parent.block6._parent[newname].drag = 1;
mx.behaviors.DepthControl.bringToFront(this._parent);
}
}
instance of movieClip 968 {
onClipEvent (load) {
_root.go = 0;
}
onClipEvent (enterFrame) {
if (_root.go == 0) {
gotoAndStop(1);
}
if (_root.go == 1) {
gotoAndStop(2);
}
}
onClipEvent (release) {
if (_root.go == 0) {
_root.go = 1;
} else {
if (_root.go == 1) {
_root.go = 0;
}
}
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
}
instance of movieClip 969 {
onClipEvent (load) {
chicksx = _root.chick._x;
chicksy = _root.chick._y;
chicksx2 = _root.chick2._x;
chicksy2 = _root.chick2._y;
}
onClipEvent (release) {
_root.resets = 1;
_root.go = 0;
_root.chick._x = chicksx;
_root.chick._y = chicksy;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
_root.chick.xspeed = 0;
_root.chick.yspeed = 0;
_root.chick2._x = chicksx2;
_root.chick2._y = chicksy2;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
_root.chick2.xspeed = 0;
_root.chick2.yspeed = 0;
}
onClipEvent (rollOver) {
_alpha = 50;
}
onClipEvent (rollOut) {
_alpha = 100;
}
}
}
instance energy of movieClip 977 {
onClipEvent (enterFrame) {
if (_root.clears2 == 1) {
this.removeMovieClip();
}
}
}
instance chick of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = 3;
mode = 1;
}
onClipEvent (press) {
if (_root.go == 0) {
_root.goodstats.gotoAndStop(2);
mx.behaviors.DepthControl.bringToFront(_root.goodstats);
}
}
onClipEvent (enterFrame) {
_root.cmode = mode;
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0 && yspeed < 5) {
play();
delay = (1750 - _root.goodstats.runlvl) / 100;
}
} else {
this._x += Number(_root.goodstats.runlvl / 10);
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.goodstats.flylvl) / 20;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.goodstats.swilvl / 20);
}
if (mode == 4) {
_y = _y - (0.5 + _root.goodstats.clilvl / 25);
}
}
}
}
movieClip 978 {
}
instance block of movieClip 978 {
onClipEvent (press) {
drag = 1;
}
onClipEvent (release, releaseOutside) {
drag = 0;
}
onClipEvent (enterFrame) {
if (_root.clears == 1) {
this.removeMovieClip();
}
if (drag == 1) {
_x = Math.round(_root._xmouse / 10) * 10;
}
if (drag == 1) {
_y = Math.round(_root._ymouse / 10) * 10;
}
if (_y < 100) {
_y = 100;
}
if (_root.go == 1) {
if (_root.chick.mode == 1) {
while (this.hitTest(_root.chick._x + 20, _root.chick._y, true)) {
_root.chick._x -= 1;
}
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
}
}
if (_root.chick.mode == 2) {
if (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick.mode = 0;
_root.chick.yspeed = 0;
_root.chick.play();
}
if (this.hitTest(_root.chick._x + 30, _root.chick._y, true)) {
_root.chick._x = _x - 130;
}
}
if (_root.chick.mode == 3) {
while (this.hitTest(_root.chick._x, _root.chick._y + 25, true)) {
_root.chick._y -= 1;
_root.chick.yspeed = 0;
_root.chick.mode = 1;
_root.chick.gotoAndStop(1);
}
}
if (_root.chick2.mode == 1) {
while (this.hitTest(_root.chick2._x + 20, _root.chick2._y, true)) {
_root.chick2._x -= 1;
}
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
}
}
if (_root.chick2.mode == 2) {
if (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2.mode = 0;
_root.chick2.yspeed = 0;
_root.chick2.play();
}
if (this.hitTest(_root.chick2._x + 30, _root.chick2._y, true)) {
_root.chick2._x = _x - 130;
}
}
if (_root.chick2.mode == 3) {
while (this.hitTest(_root.chick2._x, _root.chick2._y + 25, true)) {
_root.chick2._y -= 1;
_root.chick2.yspeed = 0;
_root.chick2.mode = 1;
_root.chick2.gotoAndStop(1);
}
}
if (_root.chick3.mode == 1) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
}
}
if (_root.chick3.mode == 2) {
if (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3.mode = 0;
_root.chick3.yspeed = 0;
_root.chick3.play();
}
}
if (_root.chick3.mode == 3) {
while (this.hitTest(_root.chick3._x, _root.chick3._y + 23, true)) {
_root.chick3._y -= 1;
_root.chick3.yspeed = 0;
_root.chick3.mode = 1;
_root.chick3.gotoAndStop(1);
}
}
if (_root.chick4.mode == 1) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
}
}
if (_root.chick4.mode == 2) {
if (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4.mode = 0;
_root.chick4.yspeed = 0;
_root.chick4.play();
}
}
if (_root.chick4.mode == 3) {
while (this.hitTest(_root.chick4._x, _root.chick4._y + 30, true)) {
_root.chick4._y -= 1;
_root.chick4.yspeed = 0;
_root.chick4.mode = 1;
_root.chick4.gotoAndStop(1);
}
}
}
}
}
instance chick2 of movieClip 619 {
onClipEvent (load) {
yspeed = 0;
delay = 3;
mode = 1;
}
onClipEvent (press) {
if (_root.go == 0) {
_root.evilstats.gotoAndStop(2);
mx.behaviors.DepthControl.bringToFront(_root.evilstats);
}
}
onClipEvent (enterFrame) {
_root.cmode = mode;
if (_root.go == 1) {
_root.delay = delay;
if (mode == 1) {
_y = _y + yspeed;
yspeed += 1;
if (_currentframe > 12) {
gotoAndStop(1);
}
if (_currentframe == 1) {
delay -= 1;
if (delay <= 0 && yspeed < 5) {
play();
delay = (1750 - _root.evilstats.runlvl) / 100;
}
} else {
_x = _x + _root.evilstats.runlvl / 100;
}
}
if (mode == 2) {
_y = _y + 1;
_x = _x + Number(20 + _root.evilstats.flylvl) / 20;
}
if (mode == 3) {
gotoAndStop(31);
_x = _x + (1 + _root.evilstats.swilvl / 20);
}
if (mode == 4) {
_y = _y - (0.5 + _root.evilstats.clilvl / 25);
}
}
}
}
button 986 {
on (release) {
if (runlvl == NaN || runlvl < 0 || runlvl > 200) {
runlvl = 100;
}
if (flylvl == NaN || flylvl < 0 || flylvl > 200) {
flylvl = 100;
}
if (swilvl == NaN || swilvl < 0 || swilvl > 200) {
swilvl = 100;
}
if (clilvl == NaN || clilvl < 0 || clilvl > 200) {
clilvl = 100;
}
prevFrame();
}
}
movieClip 988 {
}
movieClip 989 {
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.runlvl = Number(_root.evilstats.runlvl - 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.runlvl == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.clilvl = Number(_root.evilstats.clilvl + 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.clilvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.swilvl = Number(_root.evilstats.swilvl + 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.swilvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.flylvl = Number(_root.evilstats.flylvl + 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.flylvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.runlvl = Number(_root.evilstats.runlvl + 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.runlvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.flylvl = Number(_root.evilstats.flylvl - 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.flylvl == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.clilvl = Number(_root.evilstats.clilvl - 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.clilvl == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.swilvl = Number(_root.evilstats.swilvl - 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.swilvl == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.evilstats.swilvl = Number(_root.evilstats.swilvl + 1);
}
onClipEvent (enterFrame) {
if (_root.evilstats.swilvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
}
instance evilstats of movieClip 989 {
onClipEvent (load) {
stop();
runlvl = 50;
flylvl = 50;
swilvl = 50;
clilvl = 50;
}
onClipEvent (enterFrame) {
_x = _root.chick2._x;
_y = _root.chick2._y;
if (_root.go == 1) {
gotoAndStop(1);
}
}
}
movieClip 995 {
instance of movieClip 988 {
onClipEvent (release) {
_root.goodstats.runlvl = Number(_root.goodstats.runlvl - 1);
}
onClipEvent (enterFrame) {
if (_root.goodstats.runlvl == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.goodstats.runlvl = Number(_root.goodstats.runlvl + 1);
}
onClipEvent (enterFrame) {
if (_root.goodstats.runlvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.goodstats.flylvl = Number(_root.goodstats.flylvl - 1);
}
onClipEvent (enterFrame) {
if (_root.goodstats.flylvl == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.goodstats.flylvl = Number(_root.goodstats.flylvl + 1);
}
onClipEvent (enterFrame) {
if (_root.goodstats.flylvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.goodstats.clilvl = Number(_root.goodstats.clilvl - 1);
}
onClipEvent (enterFrame) {
if (_root.goodstats.clilvl == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.goodstats.clilvl = Number(_root.goodstats.clilvl + 1);
}
onClipEvent (enterFrame) {
if (_root.goodstats.clilvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.goodstats.swilvl = Number(_root.goodstats.swilvl - 1);
}
onClipEvent (enterFrame) {
if (_root.goodstats.swilvl == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 988 {
onClipEvent (release) {
_root.goodstats.swilvl = Number(_root.goodstats.swilvl + 1);
}
onClipEvent (enterFrame) {
if (_root.goodstats.swilvl == 200) {
_visible = false;
} else {
_visible = true;
}
}
}
}
instance goodstats of movieClip 995 {
onClipEvent (load) {
stop();
runlvl = 50;
flylvl = 50;
swilvl = 50;
clilvl = 50;
}
onClipEvent (enterFrame) {
_x = _root.chick._x;
_y = _root.chick._y;
if (_root.go == 1) {
gotoAndStop(1);
}
}
}
movieClip 1006 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance of movieClip 1006 {
onClipEvent (keyPress '<Space>') {
this.nextFrame();
_root.starts = 1;
}
onClipEvent (press) {
this.nextFrame();
_root.starts = 1;
}
onClipEvent (load) {
this.useHandCursor = false;
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
frame 83 {
}
instance of movieClip 29 {
onClipEvent (enterFrame) {
if (_root.daytime == 1) {
gotoAndStop(1);
}
if (_root.daytime == 2) {
gotoAndStop(2);
}
if (_root.daytime == 3) {
gotoAndStop(3);
}
}
}
instance of movieClip 17 {
onClipEvent (release) {
getURL('http://sims5000.newgrounds.com', '');
}
}
movieClip 1010 {
}
movieClip 1042 {
}
movieClip 1043 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
movieClip 1044 {
}
movieClip 1045 {
frame 1 {
this._parent.stop();
this.link.onRelease = function () {
getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1840&subid=splash', '_blank');
};
}
frame 181 {
this._parent.stop();
this.link.onRelease = function () {
getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=XXXX&subid=splash', '_blank');
};
}
frame 191 {
stop();
this._parent.play();
}
}
frame 84 {
gotoAndStop(80);
}
instance of movieClip 58 {
onClipEvent (load) {
_root.total = Number(_root.swimlevel) + Number(_root.staminalevel) + Number(_root.runninglevel) + Number(_root.flyinglevel);
_root.totalx = Math.round((Number(_root.swilvl) + Number(_root.stalvl) + Number(_root.runlvl) + Number(_root.flylvl)) / 2);
if (_root.total > 499) {
_root.rank = 'Duck God';
} else {
if (_root.total > 399) {
_root.rank = 'King of Ducks';
} else {
if (_root.total > 299) {
_root.rank = 'Professional';
} else {
if (_root.total > 199) {
_root.rank = 'Speedy Duck';
} else {
if (_root.total > 159) {
_root.rank = 'Amateur';
} else {
if (_root.total > 99) {
_root.rank = 'Trainee';
} else {
if (_root.total > 49) {
_root.rank = 'Beginner';
} else {
if (_root.total > 19) {
_root.rank = 'Duckling';
} else {
_root.rank = 'Baby Duckling';
}
}
}
}
}
}
}
}
if (_root.total499) {
_root.rank2 = 'N/A';
} else {
if (_root.total > 399) {
_root.rank2 = 'Duck God';
} else {
if (_root.total > 299) {
_root.rank2 = 'King of Ducks';
} else {
if (_root.total > 199) {
_root.rank2 = 'Professional';
} else {
if (_root.total > 159) {
_root.rank2 = 'Speedy Duck';
} else {
if (_root.total > 99) {
_root.rank2 = 'Amateur';
} else {
if (_root.total > 49) {
_root.rank2 = 'Trainee';
} else {
if (_root.total > 19) {
_root.rank2 = 'Beginner';
} else {
_root.rank2 = 'Duckling';
}
}
}
}
}
}
}
}
if (_root.stalvl > _root.flylvl and _root.stalvl > _root.runlvl and _root.stalvl > _root.swilvl) {
_root.type = 'Energetic';
} else {
if (_root.swilvl > _root.flylvl and _root.swilvl > _root.runlvl and _root.swilvl > _root.stalvl) {
_root.type = 'Swimmer';
} else {
if (_root.flylvl > _root.stalvl and _root.flylvl > _root.runlvl and _root.flylvl > _root.swilvl) {
_root.type = 'Pilot';
} else {
if (_root.runlvl > _root.flylvl and _root.runlvl > _root.stalvl and _root.runlvl > _root.swilvl) {
_root.type = 'Sprinter';
} else {
_root.type = 'Neutral';
}
}
}
}
}
}
instance of movieClip 269 {
onClipEvent (release) {
_root.gotoAndStop(9);
}
onClipEvent (rollOver) {
_rotation = 3;
}
onClipEvent (releaseOutside, rollOut) {
_rotation = 0;
}
}
button 1049 {
on (release) {
getURL('http://sims5000.newgrounds.com', '_blank');
}
}
button 1052 {
on (release) {
getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1840&subid=walkthrough&action=walkthrough_1840', '_blank');
}
}
button 1055 {
on (release) {
getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1840&subid=addtosite&action=addtosite', '_blank');
}
}
button 1058 {
on (release) {
getURL('http://www.myspace.com/beckywixon', '_blank');
}
}
button 1061 {
on (release) {
getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1840&subid=playSomeGame&action=play_1720', '_blank');
}
}
instance of movieClip 58 {
onClipEvent (load) {
delay = 100;
}
onClipEvent (enterFrame) {
delay -= 1;
if (delay <= 0) {
game = SharedObject.getLocal('mydata');
game.data.stalvl = _root.stalvl;
game.data.runlvl = _root.runlvl;
game.data.flylvl = _root.flylvl;
game.data.swilvl = _root.swilvl;
game.data.seed = _root.seed;
game.data.skill = _root.skill;
game.data.money = _root.money;
game.data.colour = _root.colour;
game.data.hat = _root.hat;
game.flush();
delay = 100;
}
}
}
instance of movieClip 879 {
onClipEvent (load) {
if (_root.music !== 2 and _root.music !== 0) {
stopAllSounds();
gotoAndStop(2);
}
}
}
movieClip 1066 {
frame 1 {
stop();
}
}
movieClip 1067 {
frame 1 {
this.onRollOver = function () {
this.logo_ro.gotoAndStop(2);
};
this.onRollOut = function () {
this.logo_ro.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.logo_ro.gotoAndStop(1);
};
}
}
instance of movieClip 1067 {
onClipEvent (release) {
getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1840&subid=linksscreen', '_blank');
}
}