STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/76665527?noj=FRM76665527-22DC" width="1" height="1"></div>

DuckLife.swf

This is the info page for
Flash #132403

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { if (_url.indexOf('arcadetown.com') == -1 && _url.indexOf('heavygames.com') == -1) { mochi.as2.MochiAd.showPreGameAd({'id': '4bf9d0dc577d3781', 'res': '640x480'}); loads = 0; } else { stop(); } web = _url; } frame 1 { function Lbar() { if (getBytesLoaded() >= getBytesTotal() and _root.loads !== 0) { play(); clearInterval(LoaderInt); } _root.spinamount = (getBytesLoaded() / getBytesTotal()) * 100; txtx.text = Math.ceil((getBytesLoaded() / getBytesTotal()) * 100) + '%'; txtxtx.text = Math.ceil(getBytesLoaded() / 1000) + 'KB/' + Math.ceil(getBytesTotal() / 1000) + 'KB loaded'; } LoaderInt = setInterval(Lbar, 10); } frame 1 { game = SharedObject.getLocal('mydata'); if (game.data.stalvl == undefined) { stalvl = 0; } else { stalvl = game.data.stalvl; } 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.colour == undefined) { colour = 0; } else { colour = game.data.colour; } if (game.data.hat == undefined) { hat = 0; } else { hat = game.data.hat; } if (game.data.skill == undefined) { skill = 0; } else { skill = game.data.skill; } if (game.data.seed == undefined) { seed = 5; } else { seed = game.data.seed; } if (game.data.hat2 == undefined) { hat2 = 0; } else { hat2 = game.data.hat; } if (game.data.hat3 == undefined) { hat3 = 0; } else { hat3 = game.data.hat; } if (game.data.hat4 == undefined) { hat4 = 0; } else { hat4 = game.data.hat; } if (game.data.hat5 == undefined) { hat5 = 0; } else { hat5 = game.data.hat; } if (game.data.colour2 == undefined) { colour2 = 0; } else { colour2 = game.data.colour2; } if (game.data.colour3 == undefined) { colour3 = 0; } else { colour3 = game.data.colour3; } if (game.data.colour4 == undefined) { colour4 = 0; } else { colour4 = game.data.colour4; } if (game.data.colour5 == undefined) { colour5 = 0; } else { colour5 = game.data.colour5; } if (game.data.colour6 == undefined) { colour6 = 0; } else { colour6 = game.data.colour6; } if (game.data.colour7 == undefined) { colour7 = 0; } else { colour7 = game.data.colour7; } if (game.data.colour8 == undefined) { colour8 = 0; } else { colour8 = game.data.colour8; } if (game.data.colour9 == undefined) { colour9 = 0; } else { colour9 = game.data.colour9; } if (game.data.colour10 == undefined) { colour10 = 0; } else { colour10 = game.data.colour10; } _root.music = 999; } movieClip 3 { } instance of movieClip 3 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 10; } } movieClip 5 { } instance of movieClip 5 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 2; } } movieClip 7 { } // unknown tag 88 length 175 movieClip 12 { } instance loader of movieClip 12 { onClipEvent (enterFrame) { this._rotation += _root.spinamount; } } // unknown tag 88 length 62 movieClip 820 __Packages.mochi.as2.MochiAd { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiAd) { var v1 = function () {}; mochi.as2.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showPreGameAd = function (options) { var v26 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = mochi.as2.MochiAd._parseOptions(options, v26); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v22 = 11000; var v25 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v14 = mochi.as2.MochiAd._getRes(options); var v4 = v14[0]; var v13 = v14[1]; mc._x = v4 * 0.5; mc._y = v13 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v4 * -0.5; chk._y = v13 * -0.5; var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v6._visible = false; delete options.no_progress_bar; } else { v6._x = 10; v6._y = v13 - 20; } var v21 = options.color; delete options.color; var v19 = options.background; delete options.background; var v23 = options.outline; delete options.outline; var v5 = v6.createEmptyMovieClip('_outline', 1); v5.beginFill(v19); v5.moveTo(0, 0); v5.lineTo(v4 - 20, 0); v5.lineTo(v4 - 20, 10); v5.lineTo(0, 10); v5.lineTo(0, 0); v5.endFill(); var v3 = v6.createEmptyMovieClip('_inside', 2); v3.beginFill(v21); v3.moveTo(0, 0); v3.lineTo(v4 - 20, 0); v3.lineTo(v4 - 20, 10); v3.lineTo(0, 10); v3.lineTo(0, 0); v3.endFill(); v3._xscale = 0; var v7 = v6.createEmptyMovieClip('_outline', 3); v7.lineStyle(0, v23, 100); v7.moveTo(0, 0); v7.lineTo(v4 - 20, 0); v7.lineTo(v4 - 20, 10); v7.lineTo(0, 10); v7.lineTo(0, 0); chk.ad_msec = v22; chk.ad_timeout = v25; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v6 = this._parent._parent; var v11 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; var v4 = v6.getBytesTotal(); var v8 = v6.getBytesLoaded(); var v2 = 100 * v8 / v4; var v10 = 100 * v5 / chk.ad_msec; var v9 = this._mochiad_bar._inside; var v13 = Math.min(100, Math.min(v2 || 0, v10)); v13 = Math.max(this.last_pcnt, v13); this.last_pcnt = v13; v9._xscale = v13; options.ad_progress(v13); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v2}, clip._mochiad._containerLCName); if (v2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v7 = v11.getBytesTotal(); if (v7 > 0 || typeof v7 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout && v2 == 100) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { v3 = true; } if (v4 > 0 && v8 >= v4 && v3) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v9 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v9); var clip = options.clip; var v8 = options.ad_timeout; delete options.ad_timeout; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v4 = mochi.as2.MochiAd._getRes(options); var v10 = v4[0]; var v7 = v4[1]; mc._x = v10 * 0.5; mc._y = v7 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { v2 = true; chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v2) { delete this.onEnterFrame; } }; }; v1.showInterLevelAd = function (options) { var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v13); var clip = options.clip; var v10 = 11000; var v12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v14 = v5[0]; var v11 = v5[1]; mc._x = v14 * 0.5; mc._y = v11 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v10; chk.ad_timeout = v12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); mochi.as2.MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); mochi.as2.MochiAd.showInterLevelAd(options); }; v1._allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.load = function (options) { var v13 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v7 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v7._mochiad_loaded) { return null; } var v12 = options.depth; delete options.depth; var v6 = v7.createEmptyMovieClip('_mochiad', v12); var v11 = mochi.as2.MochiAd._getRes(options); options.res = v11[0] + 'x' + v11[1]; options.server += options.id; delete options.id; v7._mochiad_loaded = true; if (v7._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1); for (var v8 in options) { v4[v8] = options[v8]; } var v10 = v4.server; delete v4.server; var v14 = mochi.as2.MochiAd._allowDomains(v10); v6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; mochi.as2.MochiAd.unload(this._parent); } }; } }; var v5 = new Object(); var v9 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = v6; v5.name = v9; v5.hostname = v14; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v9); v6.lc = v5; v4.lc = v9; v4.st = getTimer(); v4.loadMovie(v10 + '.swf', 'POST'); return v6; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName); clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; v1._isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1._getRes = function (options) { var v3 = options.clip.getBounds(); var v2 = 0; var v1 = 0; if (typeof options.res != 'undefined') { var v4 = options.res.split('x'); v2 = parseFloat(v4[0]); v1 = parseFloat(v4[1]); } else { v2 = v3.xMax - v3.xMin; v1 = v3.yMax - v3.yMin; } if (v2 == 0 || v1 == 0) { v2 = Stage.width; v1 = Stage.height; } return [v2, v1]; }; v1._parseOptions = function (options, defaults) { var v4 = {}; for (var v8 in defaults) { v4[v8] = defaults[v8]; } if (options) { for (v8 in options) { v4[v8] = options[v8]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v5.length) { var v3 = v5[v2].split('='); v4[unescape(v3[0])] = unescape(v3[1]); ++v2; } } if (v4.id == 'test') { trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!'); } return v4; }; v1.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; v1.setValue = function (base, objectName, value) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } base[v2[v1]] = value; }; v1.getValue = function (base, objectName) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } return base[v2[v1]]; }; v1.runMethod = function (base, methodName, argsArray) { var v2 = methodName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } if (typeof base[v2[v1]] == 'function') { return base[v2[v1]].apply(base, argsArray); } else { return undefined; } }; v1.containerNotify = function (clip, args, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.notify) { v1.notify(args); } else { (new LocalConnection()).send(lcName, 'notify', args); } }; v1.containerRpcResult = function (clip, callbackID, val, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.rpcResult) { v1.rpcResult(callbackID, val); } else { (new LocalConnection()).send(lcName, 'rpcResult', callbackID, val); } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } movieClip 821 __Packages.mochi.as2.MochiSync { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSync) { var v1 = function () { this._syncContainer = {}; }; mochi.as2.MochiSync = v1; var v2 = v1.prototype; v2.getProp = function (name) { return this._syncContainer[name]; }; v2.setProp = function (name, value) { if (this._syncContainer[name] == value) { return undefined; } this._syncContainer[name] = value; mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value}); }; v2.triggerEvent = function (eventType, args) { switch (eventType) { case mochi.as2.MochiSync.SYNC_REQUEST: mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer); break; case mochi.as2.MochiSync.SYNC_PROPERTY: this._syncContainer[args.name] = args.value; } }; v1.SYNC_REQUEST = 'SyncRequest'; v1.SYNC_PROPERTY = 'UpdateProperty'; ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1); } #endinitclip } movieClip 822 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.2 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + /:$version, mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'clip': mochi.as2.MochiServices._clip, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args); break; case 'sync': mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ['NotConnected']); } if (args.options != null && args.options.onError != null) { args.options.onError.apply(null, ['NotConnected']); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; if (_root.mochiad_options) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': break; case 'b': case 'c': case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1.servicesSync = new mochi.as2.MochiSync(); v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 823 __Packages.mochi.as2.MochiEventDispatcher { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEventDispatcher) { var v1 = function () { this.eventTable = {}; }; mochi.as2.MochiEventDispatcher = v1; var v2 = v1.prototype; v2.buildDelegate = function (thisObject, thatObject) { var v2 = {'thisObject': thisObject, 'thatObject': thatObject}; if (thatObject != undefined) { var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject; v2.delegate = function (args) { funct.call(thisObject, args); }; return v2; } v2.delegate = thisObject; return v2; }; v2.compareDelegate = function (d_A, d_B) { if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) { return false; } return true; }; v2.addEventListener = function (event, thisObject, thatObject) { this.removeEventListener(event, thisObject, thatObject); this.eventTable[event].push(this.buildDelegate(thisObject, thatObject)); }; v2.removeEventListener = function (event, thisObject, thatObject) { var v3 = this.buildDelegate(thisObject, thatObject); if (this.eventTable[event] == undefined) { this.eventTable[event] = []; return undefined; } for (var v4 in this.eventTable[event]) { if (!this.compareDelegate(this.eventTable[event][v4], v3)) { continue; } this.eventTable[event].splice(Number(v4), 1); } }; v2.triggerEvent = function (event, args) { if (this.eventTable[event] == undefined) { return undefined; } for (var v4 in this.eventTable[event]) { this.eventTable[event][v4].delegate(args); } }; ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 824 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.trigger = function (kind, obj) { if (obj == undefined) { obj = {}; } else { if (obj.kind != undefined) { trace('WARNING: optional arguements package contains key \'id\', it will be overwritten'); obj.kind = kind; } } mochi.as2.MochiServices.send('events_triggerEvent', {'eventObject': obj}, null, null); }; v1.setNotifications = function (clip, style) { var v2 = {}; for (var v3 in style) { v2[v3] = style[v3]; } v2.clip = clip; mochi.as2.MochiServices.send('events_setNotifications', v2, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startGame = function () { mochi.as2.MochiEvents.gameStart = (new Date()).getTime(); mochi.as2.MochiEvents.trigger('start_game'); }; v1.endGame = function () { var v1 = (new Date()).getTime() - mochi.as2.MochiEvents.gameStart; mochi.as2.MochiEvents.trigger('end_game', {'time': v1}); }; v1.startLevel = function () { mochi.as2.MochiEvents.levelStart = (new Date()).getTime(); mochi.as2.MochiEvents.trigger('start_level'); }; v1.endLevel = function () { var v1 = (new Date()).getTime() - mochi.as2.MochiEvents.levelStart; mochi.as2.MochiEvents.trigger('end_level', {'time': v1}); }; v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 825 __Packages.mochi.as2.MochiCoins { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiCoins) { var v1 = function () {}; mochi.as2.MochiCoins = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showStore = function (options) { mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null); }; v1.showItem = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showItem call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null); }; v1.showVideo = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showVideo call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('coins_hideLoginWidget'); }; v1.getStoreItems = function () { mochi.as2.MochiServices.send('coins_getStoreItems'); }; v1.getUserInfo = function () { mochi.as2.MochiServices.send('coins_getUserInfo'); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('coins_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.STORE_SHOW = 'StoreShow'; v1.STORE_HIDE = 'StoreHide'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.ITEM_OWNED = 'ItemOwned'; v1.ITEM_NEW = 'ItemNew'; v1.STORE_ITEMS = 'StoreItems'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1); } #endinitclip } frame 2 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('4a8f5b8d', this, 10301, true); } movieClip 34 { frame 1 { _root.stop(); } frame 124 { _root.play(); } } instance of movieClip 34 { onClipEvent (release) { getURL('http://www.arcadetown.com/index.asp?gameid=ducklife', '_blank'); } } frame 3 { game = SharedObject.getLocal('mydata'); if (game.data.stalvl == undefined) { stalvl = 0; } else { stalvl = game.data.stalvl; } 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.colour == undefined) { colour = 0; } else { colour = game.data.colour; } if (game.data.hat == undefined) { hat = 0; } else { hat = game.data.hat; } if (game.data.skill == undefined) { skill = 0; } else { skill = game.data.skill; } if (game.data.seed == undefined) { seed = 5; } else { seed = game.data.seed; } if (game.data.hat2 == undefined) { hat2 = 0; } else { hat2 = game.data.hat; } if (game.data.hat3 == undefined) { hat3 = 0; } else { hat3 = game.data.hat; } if (game.data.hat4 == undefined) { hat4 = 0; } else { hat4 = game.data.hat; } if (game.data.hat5 == undefined) { hat5 = 0; } else { hat5 = game.data.hat; } if (game.data.colour2 == undefined) { colour2 = 0; } else { colour2 = game.data.colour2; } if (game.data.colour3 == undefined) { colour3 = 0; } else { colour3 = game.data.colour3; } if (game.data.colour4 == undefined) { colour4 = 0; } else { colour4 = game.data.colour4; } if (game.data.colour5 == undefined) { colour5 = 0; } else { colour5 = game.data.colour5; } if (game.data.colour6 == undefined) { colour6 = 0; } else { colour6 = game.data.colour6; } if (game.data.colour7 == undefined) { colour7 = 0; } else { colour7 = game.data.colour7; } if (game.data.colour8 == undefined) { colour8 = 0; } else { colour8 = game.data.colour8; } if (game.data.colour9 == undefined) { colour9 = 0; } else { colour9 = game.data.colour9; } if (game.data.colour10 == undefined) { colour10 = 0; } else { colour10 = game.data.colour10; } _root.music = 999; } frame 3 { stop(); } // unknown tag 88 length 44 button 40 { on (release) { nextFrame(); } } movieClip 44 { } movieClip 51 { } movieClip 54 { instance of movieClip 44 { 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' or _parent._name == 'chick') { if (_root.hat == 5) { _parent.gotoAndStop(6); } } } } } movieClip 55 { instance of movieClip 54 { 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 { gotoAndStop(1); } } } } instance of movieClip 55 { onClipEvent (enterFrame) { rx = _root._xmouse; ry = _root._ymouse; cx = _x; cy = _y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433; roto = angle; _rotation = roto; if (_rotation < -110) { _rotation = -110; } if (_rotation > 90) { _rotation = 90; } } } movieClip 57 { } instance of movieClip 57 { 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; } } } } button 65 { on (release) { getURL('http://www.arcadetown.com/index.asp?gameid=ducklife', '_blank'); } } button 69 { on (release) { getURL('http://www.arcadetown.com/index.asp?gameid=ducklife', '_blank'); } } button 71 { on (release) { getURL('http://www.arcadetown.com/ducklife/download.asp', '_blank'); } } movieClip 73 { } instance of movieClip 73 { 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 75 { } movieClip 80 { frame 1 { stop(); } instance of movieClip 75 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 4 { delay = 1500; } frame 4 { stop(); } button 86 { on (release) { nextFrame(); } } button 89 { on (release) { gotoAndStop(9); } } button 95 { on (release) { prevFrame(); } } frame 9 { stop(); xspeed = 0.4; info = 'Roll over an object to find out more about it'; colour2 = game.data.colour2; colour3 = game.data.colour3; colour4 = game.data.colour4; colour5 = game.data.colour5; colour6 = game.data.colour6; colour7 = game.data.colour7; colour8 = game.data.colour8; colour9 = game.data.colour9; colour10 = game.data.colour10; hat2 = game.data.hat2; hat3 = game.data.hat3; hat4 = game.data.hat4; hat5 = game.data.hat5; } instance of movieClip 3 { } movieClip 107 { } instance of movieClip 107 { 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; } } } instance of movieClip 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x - xspeed; if (_x < -150) { _x = _x + 940; _y = 10 + Math.random() * 420; } } } instance of movieClip 73 { 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) { _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'; } } } } } } } } } } movieClip 120 { } movieClip 287 { instance of movieClip 120 { 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 54 { 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 19 { _parent._x -= _parent.xspeed; } frame 20 { _parent._x -= _parent.xspeed; } frame 21 { _parent._x -= _parent.xspeed; } frame 22 { _parent._x -= _parent.xspeed; } frame 23 { _parent._x -= _parent.xspeed; } frame 24 { _parent._x -= _parent.xspeed; } frame 25 { _parent._x -= _parent.xspeed; } frame 26 { _parent._x -= _parent.xspeed; } frame 27 { _parent._x -= _parent.xspeed; } frame 28 { _parent._x -= _parent.xspeed; } frame 29 { _parent._x -= _parent.xspeed; } frame 30 { _parent._x -= _parent.xspeed; } frame 31 { _parent._x -= _parent.xspeed; } frame 32 { _parent._x -= _parent.xspeed; } frame 33 { _parent._x -= _parent.xspeed; } frame 34 { _parent._x -= _parent.xspeed; } frame 35 { _parent._x -= _parent.xspeed; } frame 36 { _parent._x -= _parent.xspeed; } frame 37 { _parent._x -= _parent.xspeed; } frame 38 { _parent._x -= _parent.xspeed; } frame 39 { _parent._x -= _parent.xspeed; } frame 40 { _parent._x -= _parent.xspeed; } frame 41 { _parent._x -= _parent.xspeed; } frame 42 { _parent._x -= _parent.xspeed; } frame 43 { _parent._x -= _parent.xspeed; } frame 44 { _parent._x -= _parent.xspeed; } frame 45 { _parent._x -= _parent.xspeed; } frame 46 { _parent._x -= _parent.xspeed; } frame 47 { _parent._x -= _parent.xspeed; } frame 48 { _parent._x -= _parent.xspeed; } frame 49 { _parent._x -= _parent.xspeed; } frame 50 { _parent._x -= _parent.xspeed; } frame 51 { _parent._x -= _parent.xspeed; } frame 52 { _parent._x -= _parent.xspeed; } frame 53 { _parent._x -= _parent.xspeed; } frame 54 { _parent._x -= _parent.xspeed; } frame 55 { _parent._x -= _parent.xspeed; } frame 56 { _parent._x -= _parent.xspeed; } frame 57 { _parent._x -= _parent.xspeed; } frame 58 { _parent._x -= _parent.xspeed; } frame 59 { _parent._x -= _parent.xspeed; } frame 60 { _parent._x -= _parent.xspeed; } frame 61 { _parent._x -= _parent.xspeed; } frame 62 { _parent._x -= _parent.xspeed; } frame 63 { _parent._x -= _parent.xspeed; } frame 64 { _parent._x -= _parent.xspeed; } frame 65 { _parent._x -= _parent.xspeed; } frame 66 { _parent._x -= _parent.xspeed; } frame 67 { _parent._x -= _parent.xspeed; } frame 68 { _root.nextFrame(); } } movieClip 288 { frame 1 { stop(); } instance of movieClip 120 { 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 55 { 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 57 { 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; } } } } } instance of movieClip 54 { 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 54 { 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 291 { } movieClip 293 { instance of movieClip 120 { 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 54 { 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 296 { } movieClip 299 { } movieClip 300 { instance of movieClip 291 { onClipEvent (load) { if (_parent._parent.skill == 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } frame 10 { if (_parent.skill == 1) { _root.flylvl = Number(_root.flylvl + 2); _root.runlvl = Number(_root.runlvl + 2); _root.swilvl = Number(_root.swilvl + 2); } _root.stalvl = Number(_root.stalvl + 2); } instance of movieClip 296 { onClipEvent (load) { if (_parent._parent.skill == 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } frame 29 { if (_parent.skill == 1) { _root.flylvl = Number(_root.flylvl + 2); _root.runlvl = Number(_root.runlvl + 2); _root.swilvl = Number(_root.swilvl + 2); } _root.stalvl = Number(_root.stalvl + 2); } instance of movieClip 299 { onClipEvent (load) { if (_parent._parent.skill == 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } frame 49 { if (_parent.skill == 1) { _root.flylvl = Number(_root.flylvl + 2); _root.runlvl = Number(_root.runlvl + 2); _root.swilvl = Number(_root.swilvl + 2); } _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 301 { frame 1 { stop(); } instance qwe of movieClip 288 { 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 288 { 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 301 { onClipEvent (load) { yspeed = 0; skill = 0; } onClipEvent (enterFrame) { _y = _y + yspeed; yspeed += 1; } } movieClip 306 { frame 1 { stop(); } } instance pile of movieClip 306 { onClipEvent (press) { if (_root.corn._x < 1000 and _root.corn._x > 640) { _root.corn.drag = true; _root.seed = Number(_root.seed - 1); } } onClipEvent (load) { if (_root.seed > 3) { gotoAndStop(1); } if (_root.seed == 3) { gotoAndStop(2); } if (_root.seed == 2) { gotoAndStop(3); } if (_root.seed == 1) { gotoAndStop(4); } if (_root.seed == 0) { gotoAndStop(5); } } onClipEvent (enterFrame) { if (_root.seed > 3) { gotoAndStop(1); } if (_root.seed == 3) { gotoAndStop(2); } if (_root.seed == 2) { gotoAndStop(3); } if (_root.seed == 1) { gotoAndStop(4); } if (_root.seed == 0) { gotoAndStop(5); } if (_root.corn.drag == false) { while (this.hitTest(_root.corn._x, _root.corn._y, true)) { _root.corn._x -= 1; _root.corn.xspeed -= 1; } } if (_root.corn2.drag == false) { while (this.hitTest(_root.corn2._x, _root.corn2._y, true)) { _root.corn2._x -= 1; _root.corn2.xspeed -= 1; } } } onClipEvent (rollOver) { _root.info = 'Seed - this increases your duck\'s energy level. Click and drag to feed it'; } } movieClip 308 { } instance corn of movieClip 308 { 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)) { _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; } } instance pile2 of movieClip 306 { onClipEvent (press) { if (_root.corn2._x > -360 and _root.corn2._x < 0) { _root.corn2.drag = true; _root.skill = Number(_root.skill - 1); } } onClipEvent (load) { if (_root.skill > 3) { gotoAndStop(1); } if (_root.skill == 3) { gotoAndStop(2); } if (_root.skill == 2) { gotoAndStop(3); } if (_root.skill == 1) { gotoAndStop(4); } if (_root.skill == 0) { gotoAndStop(5); } } onClipEvent (enterFrame) { if (_root.skill > 3) { gotoAndStop(1); } if (_root.skill == 3) { gotoAndStop(2); } if (_root.skill == 2) { gotoAndStop(3); } if (_root.skill == 1) { gotoAndStop(4); } if (_root.skill == 0) { gotoAndStop(5); } if (_root.corn.drag == false) { while (this.hitTest(_root.corn._x, _root.corn._y, true)) { _root.corn._x += 1; _root.corn.xspeed += 1; } } if (_root.corn2.drag == false) { while (this.hitTest(_root.corn2._x, _root.corn2._y, true)) { _root.corn2._x += 1; _root.corn2.xspeed += 1; } } } onClipEvent (rollOver) { _root.info = 'Skill seed - this increases all of your ducks levels. Click and drag to feed it'; } } instance corn2 of movieClip 308 { 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)) { _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 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x - xspeed; if (_x < -150) { _x = _x + 940; _y = 10 + Math.random() * 420; } } } movieClip 311 { } instance of movieClip 311 { 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) { _rotation = -3; _root.info = 'This button turns the game music on or off'; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } movieClip 313 { } instance of movieClip 313 { onClipEvent (release) { _root.gotoAndStop(57); } onClipEvent (rollOver) { _rotation = 3; _root.info = 'View your ducks statistics'; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } button 314 { on (release) { getURL('http://www.arcadetown.com/index.asp?gameid=ducklife', '_blank'); } on (rollOver) { info = 'Play more games at ArcadeTown.com!'; } } movieClip 319 { } instance of movieClip 319 { onClipEvent (enterFrame) { this._xscale = _root.staminalevel * 2; _root.staminalevel = Math.floor(_root.stalvl / 10); } } movieClip 323 { } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.stalvl - _root.staminalevel * 10 >= 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.stalvl - _root.staminalevel * 10 >= 2) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.stalvl - _root.staminalevel * 10 >= 4) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.stalvl - _root.staminalevel * 10 >= 6) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.stalvl - _root.staminalevel * 10 >= 8) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 319 { onClipEvent (enterFrame) { this._xscale = _root.flyinglevel / 1.5; _root.flyinglevel = Math.floor(_root.flylvl / 10); } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 2) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 4) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 6) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 8) { gotoAndStop(2); } else { gotoAndStop(1); } } } button 331 { on (release) { gotoAndStop(12); } on (rollOver) { info = 'Train your duck at flying to make it faster in the air'; } } button 334 { on (release) { nextFrame(); } on (rollOver) { info = 'Duck Shop - Buy food and accessories for your duck here with your coins'; } } button 337 { on (release) { gotoAndStop(11); } on (rollOver) { info = 'Settings - Change settings such as music or game quality'; } } instance of movieClip 319 { onClipEvent (enterFrame) { this._xscale = _root.runninglevel / 1.5; _root.runninglevel = Math.floor(_root.runlvl / 10); } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 2) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 4) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 6) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 8) { gotoAndStop(2); } else { gotoAndStop(1); } } } button 342 { on (release) { gotoAndStop(15); } on (rollOver) { info = 'Train your duck at running to make it faster on land'; } } instance of movieClip 319 { onClipEvent (enterFrame) { this._xscale = _root.swimlevel / 1.5; _root.swimlevel = Math.floor(_root.swilvl / 10); } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 2) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 4) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 6) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 8) { gotoAndStop(2); } else { gotoAndStop(1); } } } button 346 { on (release) { gotoAndStop(18); } on (rollOver) { info = 'Train your duck at swimming to make it faster in the water'; } } button 349 { on (release) { gotoAndStop(21); } on (rollOver) { info = 'Make sure you\'ve trained your duck before entering'; } } movieClip 352 { } instance of movieClip 352 { onClipEvent (rollOver) { _root.info = 'This is your current running level. To increase it, click the "Train running" button'; } } instance of movieClip 352 { onClipEvent (rollOver) { _root.info = 'This is your current flying level. To increase it, click the "Train flying" button'; } } instance of movieClip 352 { onClipEvent (rollOver) { _root.info = 'This is your current swimming level. To increase it, click "Train swimming"'; } } instance of movieClip 352 { onClipEvent (rollOver) { _root.info = 'Energy is needed to complete races. To train it, just feed your duck some seed or skill seed'; } } button 353 { on (release) { getURL('http://www.arcadetown.com/index.asp?gameid=ducklife', '_blank'); } on (rollOver) { info = 'Play more games at ArcadeTown.com!'; } } button 356 { on (release) { getURL('http://www.arcadetown.com/free_content/index.asp', '_blank'); } on (rollOver) { info = 'Get DuckLife on www.yoursite.com!'; } } button 357 { on (release) { getURL('http://www.arcadetown.com/ducklife/download.asp', '_blank'); } on (rollOver) { info = 'Download Ducklife and play fullscreen!'; } } instance of movieClip 73 { 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 80 { 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'; } movieClip 366 { } instance of movieClip 366 { onClipEvent (release) { if (_root.money > 99) { _root.hat = 1; _root.money = Number(_root.money - 100); } } onClipEvent (rollOver) { _rotation = 10; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { _root.info = 'Flat Cap - 100 coins. Click to buy'; } } movieClip 368 { } instance of movieClip 368 { onClipEvent (load) { if (_root.hat2 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.hat2 == 1) { if (_root.money > 99) { _root.hat = 2; _root.money = Number(_root.money - 100); } } } onClipEvent (rollOver) { if (_root.hat2 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.hat2 == 1) { _root.info = 'Bowler Hat - 100 coins. Click to buy'; } else { _root.info = 'Locked. Win races to unlock hats'; } } } movieClip 370 { } instance of movieClip 370 { onClipEvent (load) { if (_root.hat3 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.hat3 == 1) { if (_root.money > 99) { _root.hat = 3; _root.money = Number(_root.money - 100); } } } onClipEvent (rollOver) { if (_root.hat3 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.hat3 == 1) { _root.info = 'Propeller Hat - 100 coins. Click to buy'; } else { _root.info = 'Locked. Win races to unlock hats'; } } } movieClip 372 { } instance of movieClip 372 { onClipEvent (load) { if (_root.hat4 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.hat4 == 1) { if (_root.money >= 100) { _root.hat = 4; _root.money = Number(_root.money - 100); } } } onClipEvent (rollOver) { if (_root.hat4 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.hat4 == 1) { _root.info = 'Liberty Spikes - 100 coins. Click to buy'; } else { _root.info = 'Locked. Win races to unlock hats'; } } } movieClip 374 { } instance of movieClip 374 { onClipEvent (release) { _root.hat = 0; } onClipEvent (rollOver) { _rotation = -3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { _root.info = 'This button will remove any hat (for free)'; } } movieClip 376 { } instance of movieClip 376 { onClipEvent (release) { _root.colour = 0; } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { _root.info = 'This button will change your colour to classic yellow (for free)'; } } movieClip 378 { } instance of movieClip 378 { 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 120 { 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 381 { } instance of movieClip 381 { onClipEvent (release) { if (_root.money > 0) { _root.seed = Number(_root.seed + 1); _root.money = Number(_root.money - 1); } } onClipEvent (rollOver) { _rotation = 10; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { _root.info = 'Seed - 1 coin. This only trains energy but is super cheap. Click to buy'; } } movieClip 385 { } instance of movieClip 385 { onClipEvent (rollOver) { _root.info = 'This is how many coins you currently own'; } } movieClip 396 { frame 1 { _root.hdesc = 'Hatless'; } frame 2 { nextFrame(); } frame 3 { _root.hdesc = 'Flat Cap'; stop(); } frame 4 { nextFrame(); } frame 5 { _root.hdesc = 'Bowler Hat'; stop(); } instance of movieClip 55 { onClipEvent (load) { _rotation = 0; } onClipEvent (enterFrame) { if (_parent._parent._currentframe == 1) { 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; 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; } } } } frame 6 { nextFrame(); } frame 7 { _root.hdesc = 'Propeller Hat'; stop(); } instance of movieClip 55 { onClipEvent (load) { _rotation = 0; } onClipEvent (enterFrame) { if (_parent._parent._currentframe == 1) { 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; 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; } } } } frame 8 { nextFrame(); } frame 9 { _root.hdesc = 'Liberty Spikes'; stop(); } instance of movieClip 55 { onClipEvent (load) { _rotation = 0; } onClipEvent (enterFrame) { if (_parent._parent._currentframe == 1) { 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; 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; } } } } frame 10 { nextFrame(); } frame 11 { _root.hdesc = 'Crown'; stop(); } instance of movieClip 55 { onClipEvent (load) { _rotation = 0; } onClipEvent (enterFrame) { if (_parent._parent._currentframe == 1) { 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; 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 396 { onClipEvent (load) { if (_root.hat == 0) { gotoAndStop(1); } if (_root.hat == 1) { gotoAndPlay(2); } if (_root.hat == 2) { gotoAndPlay(4); } if (_root.hat == 3) { gotoAndPlay(6); } if (_root.hat == 4) { gotoAndPlay(8); } if (_root.hat == 5) { gotoAndPlay(10); } } onClipEvent (enterFrame) { if (_root.hat == 0) { gotoAndStop(1); } if (_root.hat == 1) { gotoAndPlay(2); } if (_root.hat == 2) { gotoAndPlay(4); } if (_root.hat == 3) { gotoAndPlay(6); } if (_root.hat == 4) { gotoAndPlay(8); } if (_root.hat == 5) { gotoAndPlay(10); } } } instance of movieClip 385 { onClipEvent (rollOver) { _root.info = 'This is the hat your duck\'s wearing right now'; } } movieClip 407 { frame 1 { _root.desc = 'Classic Yellow'; } frame 2 { _root.desc = 'Hazel Brown'; } frame 3 { _root.desc = 'Juicy Orange'; } frame 4 { _root.desc = 'Crazy Red'; } frame 5 { _root.desc = 'Deep Purple'; } frame 6 { _root.desc = 'Boring Grey'; } frame 7 { _root.desc = 'Midnight Black'; } frame 8 { _root.desc = 'Pretty Pink'; } frame 9 { _root.desc = 'Snow White'; } frame 10 { _root.desc = 'Lime Green'; } frame 11 { _root.desc = 'Sky Blue'; } } instance of movieClip 407 { 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); } } 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 of movieClip 385 { onClipEvent (rollOver) { _root.info = 'This is the colour your duck is right now'; } } movieClip 409 { } instance of movieClip 409 { onClipEvent (release) { if (_root.money >= 50) { _root.colour = 1; _root.money = Number(_root.money - 50); } } onClipEvent (rollOver) { _rotation = 10; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { _root.info = 'Hazel Brown Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } } movieClip 410 { } instance of movieClip 410 { onClipEvent (load) { if (_root.colour2 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour2 == 1) { if (_root.money >= 50) { _root.colour = 2; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour2 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour2 == 1) { _root.info = 'Juicy Orange Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 411 { } instance of movieClip 411 { onClipEvent (load) { if (_root.colour3 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour3 == 1) { if (_root.money >= 50) { _root.colour = 3; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour3 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour3 == 1) { _root.info = 'Crazy Red Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 412 { } instance of movieClip 412 { onClipEvent (load) { if (_root.colour4 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour4 == 1) { if (_root.money >= 50) { _root.colour = 4; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour4 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour4 == 1) { _root.info = 'Deep Purple Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 414 { } instance of movieClip 414 { onClipEvent (load) { if (_root.colour5 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour5 == 1) { if (_root.money >= 50) { _root.colour = 5; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour5 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour5 == 1) { _root.info = 'Boring Grey Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 415 { } instance of movieClip 415 { onClipEvent (load) { if (_root.colour6 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour6 == 1) { if (_root.money >= 50) { _root.colour = 6; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour6 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour6 == 1) { _root.info = 'Midnight Black Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 416 { } instance of movieClip 416 { onClipEvent (load) { if (_root.colour7 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour7 == 1) { if (_root.money >= 50) { _root.colour = 7; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour7 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour7 == 1) { _root.info = 'Pretty Pink Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 417 { } instance of movieClip 417 { onClipEvent (load) { if (_root.colour8 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour8 == 1) { if (_root.money >= 50) { _root.colour = 8; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour8 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour8 == 1) { _root.info = 'Snow White Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 419 { } instance of movieClip 419 { onClipEvent (load) { if (_root.colour9 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour9 == 1) { if (_root.money >= 50) { _root.colour = 9; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour9 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour9 == 1) { _root.info = 'Lime Green Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 420 { } instance of movieClip 420 { onClipEvent (load) { if (_root.colour10 == 1) { _alpha = 100; } else { _alpha = 25; } } onClipEvent (release) { if (_root.colour10 == 1) { if (_root.money >= 50) { _root.colour = 10; _root.money = Number(_root.money - 50); } } } onClipEvent (rollOver) { if (_root.colour10 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.colour10 == 1) { _root.info = 'Sky Blue Paint - 50 coins. This will change your duck\'s colour. Click to buy'; } else { _root.info = 'Locked. Win races to unlock colours'; } } } movieClip 422 { } instance of movieClip 422 { onClipEvent (release) { if (_root.money > 9) { _root.skill = Number(_root.skill + 1); _root.money = Number(_root.money - 10); } } onClipEvent (rollOver) { _rotation = -10; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { _root.info = 'Skill Seed - 10 coins. This is expensive, but it trains all skills at once. Click to buy'; } } movieClip 424 { } instance of movieClip 424 { onClipEvent (load) { if (_root.hat5 == 1) { _alpha = 100; } else { _alpha = 0; } } onClipEvent (release) { if (_root.hat5 == 1) { _root.hat = 5; } } onClipEvent (rollOver) { if (_root.hat5 == 1) { _rotation = -10; } } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { if (_root.hat2 == 1) { _root.info = 'Crown. Click to wear'; } } } instance of movieClip 385 { onClipEvent (rollOver) { _root.info = 'Hats don\'t help your duck athletically at all. But they do make it look cute'; } } instance of movieClip 385 { onClipEvent (rollOver) { _root.info = 'Seed can be eaten at the main menu'; } } instance of movieClip 385 { onClipEvent (rollOver) { _root.info = 'Paint doesn\'t help your duck athletically at all. But it does make it look cool'; } } instance of movieClip 73 { 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 80 { 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 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } onClipEvent (rollOver) { _root.info = 'Back to the main menu'; } } movieClip 432 { } instance of movieClip 432 { onClipEvent (enterFrame) { _root.qual = _root._quality; if (_root.music == 1) { _root.musico = 'On'; } else { _root.musico = 'Off'; } } } movieClip 437 { } instance of movieClip 437 { 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'; } } movieClip 441 { } instance of movieClip 441 { 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 445 { } instance of movieClip 445 { 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 448 { } instance of movieClip 448 { 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 450 { } instance of movieClip 450 { 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 452 { } instance of movieClip 452 { 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.stalvl = 0; game.data.runlvl = 0; game.data.flylvl = 0; game.data.swilvl = 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.seed = 5; _root.skill = 0; _root.money = 0; _root.colour = 0; _root.hat = 0; } } instance of movieClip 80 { onClipEvent (enterFrame) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 12 { stop(); coins = 0; } movieClip 467 { instance of movieClip 120 { 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 54 { 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 468 { frame 1 { stop(); } instance of movieClip 120 { 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 54 { 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); } } } frame 40 { _root.nextFrame(); } } instance of movieClip 468 { onClipEvent (keyPress '<Space>') { play(); } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 13 { dist = 0; } instance of movieClip 3 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 10; } } instance of movieClip 5 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 2; } } movieClip 474 { frame 1 { stop(); } } instance of movieClip 474 { 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 474 { 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 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x - xspeed; if (_x < -150) { _x = _x + 940; _y = 10 + Math.random() * 420; } } } movieClip 485 { } movieClip 486 { instance of movieClip 120 { 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 54 { 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 120 { 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 54 { 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 486 { onClipEvent (load) { xspeed = 20 + _root.flylvl / 10; yspeed = 0; } onClipEvent (enterFrame) { 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(37)) { yspeed -= 0.5; xspeed -= 0.05; } if (Key.isDown(39)) { yspeed += 0.5; xspeed += 0.05; } angle = Math.atan(yspeed / xspeed) / 0.0174532925199433; if (xspeed < 0) { angle += 180; } _rotation = angle; } } instance of movieClip 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x - xspeed; if (_x < -150) { _x = _x + 940; _y = 10 + Math.random() * 420; } } } instance of movieClip 80 { 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 319 { onClipEvent (enterFrame) { this._xscale = _root.flyinglevel * 1.16; _root.flyinglevel = Math.floor(_root.flylvl / 10); } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 2) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 4) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 6) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.flylvl - _root.flyinglevel * 10 >= 8) { gotoAndStop(2); } else { gotoAndStop(1); } } } button 493 { on (release) { gotoAndStop(9); } } button 496 { on (release) { gotoAndStop(12); } on (keyPress '<Space>') { gotoAndStop(12); } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 15 { stop(); dist = 0; xp = 0; coins = 0; } instance of movieClip 3 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 10; } } instance of movieClip 5 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 2; } } movieClip 506 { } instance of movieClip 506 { onClipEvent (enterFrame) { _x = _x - _root.chick.xspeed; if (_x < 0) { _x = _x + 640; } } } instance of movieClip 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x - xspeed; if (_x < -150) { _x = _x + 940; _y = 10 + Math.random() * 420; } } } instance of movieClip 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x - xspeed; if (_x < -150) { _x = _x + 940; _y = 10 + Math.random() * 420; } } } instance chick of movieClip 288 { onClipEvent (load) { xspeed = 1; } onClipEvent (enterFrame) { _root.xspeed = xspeed; _x = _x - xspeed; if (_x < 100) { play(); } } } button 509 { on (keyPress '<Space>') { nextFrame(); } } frame 16 { stop(); } instance of movieClip 506 { onClipEvent (enterFrame) { _x = _x - _root.xspeed; if (_x < 0) { _x = _x + 640; } } } instance of movieClip 474 { 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 474 { 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); } } } movieClip 513 { frame 1 { stop(); } frame 2 { stop(); } } instance of movieClip 513 { 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)) { if (_root.chick._currentframe < 13) { _root.chick._x += Number(_root.chick._currentframe * 5); } _root.chick.gotoAndStop(15); } } } instance chick of movieClip 288 { onClipEvent (load) { xspeed = 1 + _root.runlvl / 500; yspeed = 0; } onClipEvent (enterFrame) { _root.xspeed = xspeed; _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 = -15; } } } else { _y = _y + yspeed; yspeed += 1; } } } instance of movieClip 80 { 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 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x - xspeed; if (_x < -150) { _x = _x + 940; _y = 10 + Math.random() * 420; } } } instance of movieClip 474 { 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 474 { 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 513 { 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 515 { on (release) { gotoAndStop(15); } on (keyPress '<Space>') { gotoAndStop(15); } } instance of movieClip 319 { onClipEvent (enterFrame) { this._xscale = _root.runninglevel * 1.16; _root.runninglevel = Math.floor(_root.runlvl / 10); } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 2) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 4) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 6) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.runlvl - _root.runninglevel * 10 >= 8) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 80 { 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 3 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x + _root.xspeed / 10; } } instance of movieClip 5 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x + _root.xspeed / 2; } } instance of movieClip 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x + xspeed; if (_x < -150) { _x = _x + 940; _y = Math.random() * 200; } } } instance of movieClip 7 { onClipEvent (enterFrame) { xspeed = _root.xspeed; _x = _x + xspeed; if (_x < -150) { _x = _x + 940; _y = Math.random() * 200; } } } movieClip 529 { } movieClip 530 { instance of movieClip 120 { 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 55 { onClipEvent (enterFrame) { _rotation = -_parent._rotation; } } } button 534 { on (keyPress '<Space>') { nextFrame(); } } frame 19 { stop(); } frame 19 { dist = 0; } instance coin of movieClip 474 { 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); } } } instance chick of movieClip 530 { 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 < 71) { where = 2; } if (_y > 349) { where = 2; } 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; } } } } } movieClip 544 { } instance of movieClip 544 { onClipEvent (load) { xspeed = -(3 + _root.swilvl / 100); 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 of movieClip 80 { 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 474 { 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 544 { 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 319 { onClipEvent (enterFrame) { this._xscale = _root.swimlevel * 1.16; _root.swimlevel = Math.floor(_root.swilvl / 10); } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 2) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 4) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 6) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 323 { onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.swilvl - _root.swimlevel * 10 >= 8) { gotoAndStop(2); } else { gotoAndStop(1); } } } button 553 { on (release) { gotoAndStop(18); } on (keyPress '<Space>') { gotoAndStop(18); } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 120 { 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 560 { on (release) { nextFrame(); } } button 565 { on (release) { gotoAndStop(31); } } button 569 { on (release) { gotoAndStop(40); } } button 572 { on (release) { if (colour2 == 1 and colour3 == 1 and colour4 == 1 and colour5 == 1 and colour6 == 1 and colour7 == 1 and colour8 == 1 and colour9 == 1 and colour10 == 1 and hat2 == 1 and hat3 == 1 and hat4 == 1) { gotoAndStop(49); } } } movieClip 574 { } instance of movieClip 574 { onClipEvent (load) { if (_root.hat5 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.hat4 == 1 and _root.colour8 == 1 and _root.colour9 == 1 and _root.colour10 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.hat3 == 1 and _root.colour5 == 1 and _root.colour6 == 1 and _root.colour7 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.hat2 == 1 and _root.colour2 == 1 and _root.colour3 == 1 and _root.colour4 == 1) { _visible = true; } else { _visible = false; } } } button 581 { on (release) { nextFrame(); } } button 587 { on (release) { gotoAndStop(25); } } button 592 { on (release) { gotoAndStop(27); } } button 597 { on (release) { gotoAndStop(29); } } instance of movieClip 574 { onClipEvent (load) { if (_root.hat2 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour4 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour3 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour2 == 1) { _visible = true; } else { _visible = false; } } } frame 23 { stop(); go = 0; enelvl = 70; } movieClip 602 { } instance of movieClip 602 { 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; } } } } } movieClip 604 { 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 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -1660) { _x = -1660; } if (_x > -1330) { _x = -1330; } _root.energy._x = _x; } } movieClip 605 { frame 1 { gotoAndStop(2); } instance of movieClip 120 { 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 57 { 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 618 { frame 1 { gotoAndStop(2); } instance of movieClip 120 { 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 57 { 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 619 { } movieClip 620 { frame 20 { stop(); } } movieClip 622 { frame 1 { stop(); } frame 2 { if (_name == 'chick') { _x = _x - _root.runlvl / 150; } else { _x = _x - level / 150; } } instance of movieClip 120 { 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 54 { 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 120 { 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 120 { 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 120 { 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 57 { 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 120 { 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 55 { onClipEvent (enterFrame) { _rotation = -_parent._rotation; } } } instance chick2 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 100); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 100); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 100); } } } } instance chick of movieClip 622 { 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); } } } } movieClip 624 { } instance terrain of movieClip 624 { 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 626 { } instance of movieClip 626 { 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 628 { } instance of movieClip 628 { 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 632 { frame 150 { _root.go = 1; stop(); } } movieClip 634 { } instance of movieClip 634 { 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 637 { } movieClip 638 { frame 1 { stop(); } frame 388 { _root.nextFrame(); } } movieClip 639 { instance of movieClip 319 { 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(56); } } } } } instance of movieClip 637 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 638 { onClipEvent (enterFrame) { if (_root.first > 0) { play(); } } } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 24 { if (first == 1) { if (_root.colour2 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { 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)'; game = SharedObject.getLocal('mydata'); game.data.colour2 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 3 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 10; } } instance of movieClip 5 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 2; } } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 120 { 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 646 { } movieClip 648 { } movieClip 650 { } movieClip 652 { instance of movieClip 120 { 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 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 657 { } button 661 { on (release) { getURL('http://www.arcadetown.com/index.asp?gameid=ducklife', '_blank'); } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 25 { stop(); go = 0; enelvl = 75; } instance of movieClip 602 { 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 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -780) { _x = -780; } if (_x > -270) { _x = -270; } _root.energy._x = _x; } } instance chick2 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance of movieClip 628 { 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 chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { 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); } } } } instance terrain of movieClip 624 { 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 626 { 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 634 { 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 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 26 { if (first == 1) { if (_root.colour3 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 50); position = 'You came first!'; results = 'You win 50 coins and have unlocked the colour "Crazy Red" (you can purchase this in the shop for 50 coins)'; game = SharedObject.getLocal('mydata'); game.data.colour3 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 3 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 10; } } instance of movieClip 5 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 2; } } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 27 { stop(); go = 0; enelvl = 75; } instance cam of movieClip 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < 210) { _x = 210; } if (_x > 950) { _x = 950; } _root.energy._x = _x; } } instance chick2 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance of movieClip 628 { 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 chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { 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 / 200); } } } } instance terrain of movieClip 624 { 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 602 { 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 634 { 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 626 { 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 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 28 { if (first == 1) { if (_root.colour4 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 50); position = 'You came first!'; results = 'You win 50 coins and have unlocked the colour "Deep Purple" (you can purchase this in the shop for 50 coins)'; game = SharedObject.getLocal('mydata'); game.data.colour4 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 3 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 10; } } instance of movieClip 5 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 2; } } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 29 { stop(); go = 0; enelvl = 75; } instance of movieClip 602 { 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 628 { 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 terrain of movieClip 624 { 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 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -1660) { _x = -1660; } if (_x > 950) { _x = 950; } _root.energy._x = _x; } } instance chick2 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { 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); } } } } instance of movieClip 634 { 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 626 { 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 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 30 { if (first == 1) { if (_root.hat2 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 50); position = 'You came first!'; results = 'You win 50 coins and have unlocked the bowler hat (you can purchase this in the shop for 100 coins)'; game = SharedObject.getLocal('mydata'); game.data.hat2 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 3 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 10; } } instance of movieClip 5 { onClipEvent (enterFrame) { if (_x < -760) { _x = _x + 760; } _x = _x - _root.xspeed / 2; } } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } instance of movieClip 120 { 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 675 { } button 677 { on (release) { nextFrame(); } } button 680 { on (release) { gotoAndStop(34); } } button 683 { on (release) { gotoAndStop(36); } } button 688 { on (release) { gotoAndStop(38); } } instance of movieClip 574 { onClipEvent (load) { if (_root.hat3 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour7 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour6 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour5 == 1) { _visible = true; } else { _visible = false; } } } frame 32 { stop(); go = 0; enelvl = 400; } movieClip 690 { } instance of movieClip 690 { onClipEvent (enterFrame) { if (this.hitTest(_root.chick)) { _root.gotoAndStop(9); } } } instance of movieClip 628 { 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 693 { } instance chick2 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 100); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 100); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 100); } } } } instance chick of movieClip 622 { 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); } } } } movieClip 695 { } instance of movieClip 695 { 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 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; } } } movieClip 700 { } instance of movieClip 700 { 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 702 { } instance of movieClip 702 { 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 704 { } instance of movieClip 704 { 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 602 { 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 602 { 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 602 { 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 602 { 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 634 { 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 634 { 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 634 { 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 634 { 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 707 { } instance of movieClip 707 { 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 710 { instance of movieClip 626 { 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 710 { 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 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < 142) { _x = 142; } if (_x > 450) { _x = 450; } _root.energy._x = _x; } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 33 { if (first == 1) { if (_root.colour5 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 100); position = 'You came first!'; results = 'You win 100 coins and have unlocked the colour "Boring Grey" (you can purchase this in the shop for 50 coins)'; game = SharedObject.getLocal('mydata'); game.data.colour5 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 34 { stop(); go = 0; enelvl = 400; } instance of movieClip 602 { 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 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -610) { _x = -610; } if (_x > -200) { _x = -200; } _root.energy._x = _x; } } instance of movieClip 626 { 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 707 { 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 695 { 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 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 700 { 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 702 { 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 704 { 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 628 { 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 710 { 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 602 { 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 602 { 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 602 { 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 634 { 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 634 { 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 634 { 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 634 { 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 chick2 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { 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); } } } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 35 { if (first == 1) { if (_root.colour6 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 100); position = 'You came first!'; results = 'You win 100 coins and have unlocked the colour "Midnight Black" (you can purchase this in the shop for 50 coins)'; game = SharedObject.getLocal('mydata'); game.data.colour6 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 36 { stop(); go = 0; enelvl = 400; } instance cam of movieClip 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -2090) { _x = -2090; } if (_x > -1050) { _x = -1050; } _root.energy._x = _x; } } instance of movieClip 626 { 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 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 100; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { 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 / 200); } } } } instance of movieClip 707 { 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 695 { 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 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 700 { 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 702 { 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 704 { 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 628 { 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 710 { 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 602 { 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 602 { 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 602 { 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 602 { 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 634 { 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 634 { 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 634 { 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 634 { 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 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 37 { if (first == 1) { if (_root.colour7 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 100); position = 'You came first!'; results = 'You win 100 coins and have unlocked the colour "Pretty Pink" (you can purchase this in the shop for 50 coins)'; game = SharedObject.getLocal('mydata'); game.data.colour7 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 38 { stop(); go = 0; enelvl = 600; } instance of movieClip 602 { 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 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -2460) { _x = -2460; } if (_x > 2050) { _x = 2050; } _root.energy._x = _x; } } instance of movieClip 628 { 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 626 { 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 602 { 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 602 { 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 602 { 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 chick2 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { 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); } } } } instance of movieClip 710 { 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 707 { 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 695 { 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 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 700 { 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 702 { 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 704 { 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 634 { 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 634 { 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 634 { 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 634 { 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 634 { 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 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 39 { if (first == 1) { if (_root.hat3 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 100); position = 'You came first!'; results = 'You win 100 coins and have unlocked the propeller hat (you can purchase this in the shop for 100 coins)'; game = SharedObject.getLocal('mydata'); game.data.hat3 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } instance of movieClip 120 { 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 729 { on (release) { nextFrame(); } } button 733 { on (release) { gotoAndStop(43); } } button 736 { on (release) { gotoAndStop(45); } } button 739 { on (release) { gotoAndStop(47); } } instance of movieClip 574 { onClipEvent (load) { if (_root.hat4 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour10 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour9 == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 574 { onClipEvent (load) { if (_root.colour8 == 1) { _visible = true; } else { _visible = false; } } } frame 41 { stop(); go = 0; enelvl = 1100; } instance of movieClip 628 { 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 626 { 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 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { onClipEvent (load) { yspeed = 0; delay = (1750 - _root.runlvl) / 50; 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); } } } } 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; } } } instance of movieClip 602 { 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 634 { 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 744 { } instance of movieClip 744 { onClipEvent (enterFrame) { if (this.hitTest(_root.chick)) { _root.colour = 6; _root.gotoAndStop(9); } } } movieClip 746 { } instance of movieClip 746 { 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 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -2460) { _x = -2460; } if (_x > -1700) { _x = -1700; } _root.energy._x = _x; } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 42 { if (first == 1) { if (_root.colour8 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 200); position = 'You came first!'; results = 'You win 200 coins and have unlocked the colour "Snow White" (you can purchase this in the shop for 50 coins)'; game = SharedObject.getLocal('mydata'); game.data.colour8 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 43 { stop(); go = 0; enelvl = 1100; } instance of movieClip 628 { 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 626 { 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 602 { 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 634 { 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 744 { onClipEvent (enterFrame) { if (this.hitTest(_root.chick)) { _root.colour = 6; _root.gotoAndStop(9); } } } instance cam of movieClip 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -1230) { _x = -1230; } if (_x > -850) { _x = -850; } _root.energy._x = _x; } } instance chick2 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { onClipEvent (load) { yspeed = 0; delay = (1750 - _root.runlvl) / 50; 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); } } } } instance of movieClip 746 { 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 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 44 { if (first == 1) { if (_root.colour9 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 200); position = 'You came first!'; results = 'You win 200 coins and have unlocked the colour "Lime Green" (you can purchase this in the shop for 50 coins)'; game = SharedObject.getLocal('mydata'); game.data.colour9 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 45 { stop(); go = 0; enelvl = 1100; } instance of movieClip 628 { 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 626 { 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 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { onClipEvent (load) { yspeed = 0; delay = (1750 - _root.runlvl) / 50; 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); } } } } instance of movieClip 602 { 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 634 { 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 744 { onClipEvent (enterFrame) { if (this.hitTest(_root.chick)) { _root.colour = 6; _root.gotoAndStop(9); } } } instance cam of movieClip 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -120) { _x = -120; } if (_x > 1340) { _x = 1340; } _root.energy._x = _x; } } 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 746 { 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 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 46 { if (first == 1) { if (_root.colour10 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 200); position = 'You came first!'; results = 'You win 200 coins and have unlocked the colour "Sky Blue" (you can purchase this in the shop for 50 coins)'; game = SharedObject.getLocal('mydata'); game.data.colour10 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 47 { stop(); go = 0; enelvl = 1100; } instance of movieClip 628 { 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 626 { 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 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick3 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick4 of movieClip 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl - 50 + Math.random() * 100; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { onClipEvent (load) { yspeed = 0; delay = (1750 - _root.runlvl) / 50; 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); } } } } instance of movieClip 602 { 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 634 { 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 744 { onClipEvent (enterFrame) { if (this.hitTest(_root.chick)) { _root.colour = 6; _root.gotoAndStop(9); } } } instance cam of movieClip 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -2460) { _x = -2460; } if (_x > 1680) { _x = 1680; } _root.energy._x = _x; } } instance of movieClip 746 { 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 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 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 48 { if (first == 1) { if (_root.hat4 == 1) { position = 'You came first!'; results = 'You have already won the prizes for this race'; } else { money = Number(money + 200); position = 'You came first!'; results = 'You win 200 coins and have unlocked the Liberty Spikes (you can purchase this in the shop for 100 coins)'; game = SharedObject.getLocal('mydata'); game.data.hat4 = 1; game.flush(); } } 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'; } mochi.as2.MochiAd.showClickAwayAd({'clip': adclip, 'id': '4bf9d0dc577d3781'}); } instance of movieClip 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 of movieClip 652 { 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 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 49 { stop(); } button 758 { on (release) { gotoAndStop(52); } } movieClip 761 { } frame 52 { stop(); go = 0; enelvl = 1490; } instance of movieClip 628 { onClipEvent (load) { _root.first = 0; _root.second = 0; one = 0; two = 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; } } } 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; _root.nextFrame(); } } } } } instance of movieClip 626 { 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 622 { onClipEvent (load) { yspeed = 0; level = _root.enelvl; delay = (1750 - level) / 50; 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 + level) / 200; } if (mode == 3) { gotoAndStop(31); _x = _x + (1 + level / 200); } } } } instance chick of movieClip 622 { onClipEvent (load) { yspeed = 0; delay = (1750 - _root.runlvl) / 50; 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); } } } } instance of movieClip 602 { 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 634 { 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 766 { } movieClip 768 { } instance of movieClip 768 { 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 770 { } instance of movieClip 770 { 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 cam of movieClip 604 { onClipEvent (enterFrame) { _x = _x + (_root.chick._x - _x) / 8; if (_x < -2530) { _x = -2530; } if (_x > _root.marker._x) { _x = _root.marker._x; } _root.energy._x = _x; } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 4 and _root.music !== 0) { stopAllSounds(); gotoAndStop(4); } } } frame 53 { if (first == 1) { position = 'You came first!'; results = 'You win 200,000 coins and have saved the farm! You are now champion of the world of racing ducks!'; } if (second == 1) { position = 'You came last!'; results = 'So close yet so far. Train up your duck then come back and try again'; } } instance of movieClip 120 { 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 777 { } movieClip 778 { instance of movieClip 777 { onClipEvent (load) { if (_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' or _parent._parent._currentframe == 1) { 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 { gotoAndStop(1); } } } } movieClip 780 { } movieClip 781 { } instance of movieClip 781 { onClipEvent (load) { if (_root.first == 1) { gotoAndStop(1); } if (_root.first == 2) { gotoAndStop(2); } } } instance of movieClip 781 { onClipEvent (load) { if (_root.second == 1) { gotoAndStop(1); } if (_root.second == 2) { gotoAndStop(2); } } } movieClip 783 { } instance of movieClip 783 { onClipEvent (load) { if (_root.first == 1) { gotoAndStop(2); } if (_root.second == 1) { gotoAndStop(1); } } onClipEvent (release) { if (_root.first == 1) { _root.nextFrame(); } if (_root.second == 1) { _root.gotoAndStop(9); } } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 80 { onClipEvent (load) { if (_root.music !== 2 and _root.music !== 0) { stopAllSounds(); gotoAndStop(2); } } } frame 54 { if (_root.hat5 == 1) { gotoAndStop(9); } } frame 55 { game = SharedObject.getLocal('mydata'); game.data.hat5 = 1; game.flush(); } button 788 { on (release) { gotoAndStop(9); hat = 5; } } frame 56 { 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 378 { onClipEvent (release) { _root.gotoAndStop(9); } onClipEvent (rollOver) { _rotation = 3; } onClipEvent (releaseOutside, rollOut) { _rotation = 0; } } instance of movieClip 120 { 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 797 { } instance of movieClip 73 { 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'; } } } } } }




http://swfchan.com/27/132403/info.shtml
Created: 19/2 -2019 06:58:51 Last modified: 19/2 -2019 06:58:51 Server time: 22/12 -2024 21:18:18