Frame 1
var MochiAd = {getVersion:function () {
return("2.5");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
bar._visible = false;
delete options.no_progress_bar;
} else {
bar._x = 10;
bar._y = h - 20;
}
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.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 _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var _local2 = (100 * clip_loaded) / clip_total;
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(_local2 || 0, ad_pcnt));
pcnt = Math.max(_local1.last_pcnt, pcnt);
_local1.last_pcnt = pcnt;
_inside._xscale = pcnt;
options.ad_progress(pcnt);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((elapsed > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showClickAwayAd:function (options) {
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local2 = MochiAd._getRes(options);
var w = _local2[0];
var h = _local2[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var sendHostProgress = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var _local3 = getTimer() - this.started;
var _local1 = false;
if (!chk.showing) {
var _local2 = ad_clip.getBytesTotal();
if ((_local2 > 0) || (typeof(_local2) == "undefined")) {
_local1 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local3 > chk.ad_timeout) {
options.ad_failed();
_local1 = true;
}
}
if (_local1) {
delete this.onEnterFrame;
}
};
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
if (_local1._mochiad._containerLCName != undefined) {
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "notify", {id:"unload"});
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, rpc:function (clip, callbackID, arg) {
var _local1 = clip;
var _local2 = arg;
switch (_local2.id) {
case "setValue" :
MochiAd.setValue(_local1, _local2.objectName, _local2.value);
return;
case "getValue" :
var val = MochiAd.getValue(_local1, _local2.objectName);
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "rpcResult", callbackID, val);
return;
case "runMethod" :
var _local3 = MochiAd.runMethod(_local1, _local2.method, _local2.args);
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "rpcResult", callbackID, _local3);
return;
default :
trace("[mochiads rpc] unknown rpc id: " + _local2.id);
}
}, setValue:function (base, objectName, value) {
var _local2 = base;
var nameArray:Array = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return;
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
_local2[nameArray[_local1]] = value;
}, getValue:function (base, objectName) {
var _local2 = base;
var nameArray:Array = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return(undefined);
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
return(_local2[nameArray[_local1]]);
}, runMethod:function (base, methodName, argsArray:Array) {
var _local2 = base;
var nameArray:Array = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return(undefined);
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
if (typeof(_local2[nameArray[_local1]]) == "function") {
return(_local2[nameArray[_local1]].apply(_local2, argsArray));
}
return(undefined);
}, _:null};
MochiAd.showPreGameAd({id:"0cfb17aec4dc275b", res:"550x400"});
Frame 2
stop();
Frame 3
s = new Sound();
s.attachSound("bouclier");
s.start(0, 99);
stop();
yspeed = 0;
xspeed = 0;
gravity = 0.2;
rotationspeed = 0;
ypower = 1;
xpower = 1;
friction = 0.9;
fly.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
while (ground.hitTest(fly._x, fly._y, true)) {
fly._y--;
}
while (ground.hitTest(fly._x - 18, fly._y, true)) {
fly._x++;
xspeed = 0;
}
while (ground.hitTest(fly._x + 18, fly._y, true)) {
fly._x--;
xspeed = 0;
}
while (ground.hitTest(fly._x, fly._y - 30, true)) {
fly._y++;
yspeed = 0;
}
if (_local2.ground.hitTest(fly._x, fly._y + 1, true)) {
yspeed = 0;
}
while (ground2.hitTest(fly._x, fly._y, true)) {
fly._y--;
}
while (ground2.hitTest(fly._x - 18, fly._y, true)) {
fly._x++;
xspeed = 0;
}
while (ground2.hitTest(fly._x + 18, fly._y, true)) {
fly._x--;
xspeed = 0;
}
while (ground2.hitTest(fly._x, fly._y - 30, true)) {
fly._y++;
yspeed = 0;
}
if (_local2.ground2.hitTest(fly._x, fly._y + 1, true)) {
yspeed = 0;
}
xspeed = xspeed * friction;
_local1._x = _local1._x + xspeed;
rotationspeed = rotationspeed * friction;
_local1._rotation = 0 + (rotationspeed / 2);
_local1._y = _local1._y + yspeed;
_local2.vcam.bbb = climb + "yd";
climb = int(((-370 + _local2.fly._x) + 350.9) / 20);
if (_local2.fly.deader != true) {
if (Key.isDown(37)) {
xspeed = xspeed - xpower;
rotationspeed = rotationspeed + ((xpower * xspeed) / 2);
_local1.play();
} else if (Key.isDown(39)) {
xspeed = xspeed + xpower;
rotationspeed = rotationspeed + ((xpower * xspeed) / 2);
_local1.play();
}
if (Key.isDown(38)) {
yspeed = yspeed - ypower;
fly._y = fly._y - 0.2;
_local1.play();
}
if (yspeed < 0) {
yspeed = yspeed * friction;
}
}
yspeed = yspeed + gravity;
};
invinc = false;
Instance of Symbol 35 MovieClip in Frame 3
onClipEvent (load) {
cloud1.duplicateMovieClip("cloud2", 100);
cloud2._x = cloud1._x + cloud1._width;
groundStartx = this._x;
groundSpeed = 10;
}
onClipEvent (enterFrame) {
_x = (_root.vcam._x - (_root.vcam._x / 10));
if (this._x <= (_root.vcam._x - cloud1._width)) {
this._x = _root.vcam._x;
}
}
Instance of Symbol 39 MovieClip in Frame 3
onClipEvent (enterFrame) {
_x = (_root.vcam._x - (_root.vcam._x / 5));
}
Instance of Symbol 43 MovieClip "mainGround1" in Frame 3
onClipEvent (load) {
ground1.duplicateMovieClip("ground3", 100);
ground3._x = ground1._x + ground1._width;
groundStartx = this._x;
groundSpeed = 10;
}
onClipEvent (enterFrame) {
if (this._x <= (_root.vcam._x - ground1._width)) {
this._x = _root.vcam._x;
}
}
Instance of Symbol 45 MovieClip "ground" in Frame 3
onClipEvent (enterFrame) {
this._y = this._y + 0.5;
}
Instance of Symbol 97 MovieClip "fly" in Frame 3
onClipEvent (load) {
deader = false;
dead = false;
}
onClipEvent (enterFrame) {
flew = int(this._x);
if (flew > best) {
best = flew;
}
}
Instance of Symbol 101 MovieClip "enemy1" in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = _root.fly._x + 600;
_local1._y = random(300);
enemySpeed = random(3) + 2;
_local1.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if (_root.fly.best > 200) {
this._x = this._x - enemySpeed;
if (this._x < (_root.fly._x - 300)) {
reset();
}
if (((_root.fly.hitTest(_x, _y + 35, true) or _root.fly.hitTest(_x, _y - 35, true)) or _root.fly.hitTest(_x + 35, _y, true)) or _root.fly.hitTest(_x - 35, _y, true)) {
if (_root.fly.dead != true) {
_root.fly.gotoAndStop("dead");
_root.xspeed = 0;
}
}
}
}
Instance of Symbol 101 MovieClip "enemy2" in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = _root.fly._x + 600;
_local1._y = random(300);
enemySpeed = random(3) + 2;
_local1.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if (_root.fly.best > 1600) {
this._x = this._x - enemySpeed;
if (this._x < (_root.fly._x - 300)) {
reset();
}
if (((_root.fly.hitTest(_x, _y + 35, true) or _root.fly.hitTest(_x, _y - 35, true)) or _root.fly.hitTest(_x + 35, _y, true)) or _root.fly.hitTest(_x - 35, _y, true)) {
if (_root.fly.dead != true) {
_root.fly.gotoAndStop("dead");
_root.xspeed = 0;
}
}
}
}
Instance of Symbol 101 MovieClip "enemy3" in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = _root.fly._x + 600;
_local1._y = random(300);
enemySpeed = random(3) + 2;
_local1.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if (_root.fly.best > 3000) {
this._x = this._x - enemySpeed;
if (this._x < (_root.fly._x - 300)) {
reset();
}
if (((_root.fly.hitTest(_x, _y + 35, true) or _root.fly.hitTest(_x, _y - 35, true)) or _root.fly.hitTest(_x + 35, _y, true)) or _root.fly.hitTest(_x - 35, _y, true)) {
if (_root.fly.dead != true) {
_root.fly.gotoAndStop("dead");
_root.xspeed = 0;
}
}
}
}
Instance of Symbol 105 MovieClip in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = ((random(8) * 740) + _root.fly._x) + 1000;
_local1._y = random(300);
enemySpeed = random(5) + 2;
_local1.gotoAndPlay(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this._x < (_root.fly._x - 300)) {
reset();
}
if (this.hitTest(_root.fly)) {
_root.powers.gotoAndPlay("small");
reset();
}
}
Instance of Symbol 108 MovieClip in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = ((random(8) * 740) + _root.fly._x) + 1000;
_local1._y = random(300);
enemySpeed = random(5) + 2;
_local1.gotoAndPlay(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this._x < (_root.fly._x - 300)) {
reset();
}
if (this.hitTest(_root.fly)) {
_root.powers.gotoAndPlay("big");
reset();
}
}
Instance of Symbol 111 MovieClip in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = ((random(8) * 740) + _root.fly._x) + 1000;
_local1._y = random(300);
enemySpeed = random(5) + 2;
_local1.gotoAndPlay(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this._x < (_root.fly._x - 300)) {
reset();
}
if (this.hitTest(_root.fly)) {
_root.spower.gotoAndPlay("fast");
reset();
}
}
Instance of Symbol 113 MovieClip in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = ((random(8) * 740) + _root.fly._x) + 1000;
_local1._y = random(300);
enemySpeed = random(5) + 2;
_local1.gotoAndPlay(1);
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this._x < (_root.fly._x - 300)) {
reset();
}
if (this.hitTest(_root.fly)) {
_root.spower.gotoAndPlay("slow");
reset();
}
}
Instance of Symbol 101 MovieClip "enemy4" in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = _root.fly._x + 600;
_local1._y = random(300);
enemySpeed = random(3) + 2;
_local1.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if (_root.fly.best > 10000) {
this._x = this._x - enemySpeed;
if (this._x < (_root.fly._x - 300)) {
reset();
}
if (((_root.fly.hitTest(_x, _y + 35, true) or _root.fly.hitTest(_x, _y - 35, true)) or _root.fly.hitTest(_x + 35, _y, true)) or _root.fly.hitTest(_x - 35, _y, true)) {
if (_root.fly.dead != true) {
_root.fly.gotoAndStop("dead");
_root.xspeed = 0;
}
}
}
}
Instance of Symbol 118 MovieClip "fire1" in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = (_root.fly._x + (random(4) * 60)) + 500;
_local1._y = 410 + (random(4) * 25);
_local1.gotoAndPlay(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.fly.best < 200) {
reset();
}
if (this._x < (_root.fly._x - 50)) {
reset();
}
}
Instance of Symbol 118 MovieClip "fire3" in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = (_root.fly._x + (random(4) * 60)) + 500;
_local1._y = 410 + random(100);
_local1.gotoAndPlay(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.fly.best < 1000) {
reset();
}
if (this._x < (_root.fly._x - 50)) {
reset();
}
}
Instance of Symbol 118 MovieClip "fire2" in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = (_root.fly._x + (random(4) * 60)) + 500;
_local1._y = 410 + random(100);
_local1.gotoAndPlay(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.fly.best < 600) {
reset();
}
if (this._x < (_root.fly._x - 50)) {
reset();
}
}
Instance of Symbol 118 MovieClip "fire5" in Frame 3
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = (_root.fly._x + (random(4) * 60)) + 500;
_local1._y = 410 + random(100);
_local1.gotoAndPlay(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.fly.best < 10000) {
reset();
}
if (this._x < (_root.fly._x - 50)) {
reset();
}
}
Instance of Symbol 121 MovieClip "mainGround" in Frame 3
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = ground._x + ground._width;
groundStartx = this._x;
groundSpeed = 10;
}
onClipEvent (enterFrame) {
if (this._x <= (_root.vcam._x - ground._width)) {
this._x = _root.vcam._x;
}
if (this.hitTest(_root.fly)) {
if (_root.fly.dead != true) {
_root.fly.dead = true;
_root.fly.deader = true;
_root.xspeed = 0;
}
}
}
Instance of Symbol 123 MovieClip "ground2" in Frame 3
onClipEvent (enterFrame) {
_x = _root.vcam._x;
}
Instance of Symbol 146 MovieClip "vcam" in Frame 3
onClipEvent (enterFrame) {
if (_root.fly.flew >= _root.fly.best) {
if (_root.fly._x > 275) {
_x = (_x + ((_root.fly._x - _x) / 4));
}
}
swapDepths(_root.fly.getNextHighestDepth());
}
Instance of Symbol 152 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = _root.vcam._x - 400;
}
Frame 5
gotoAndStop (3);
Instance of Symbol 173 MovieClip "mainGround" in Frame 6
/* no clip actions */
Symbol 18 Button
on (release) {
stopAllSounds();
gotoAndStop (3);
}
Symbol 27 Button
on (release) {
gotoAndStop ("instruct");
}
Symbol 91 MovieClip Frame 8
stop();
Instance of Symbol 71 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation + 20;
}
Instance of Symbol 73 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation - 25;
}
Instance of Symbol 75 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation + 40;
}
Instance of Symbol 77 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation + 30;
}
Instance of Symbol 79 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation + 30;
}
Instance of Symbol 81 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation - 50;
}
Instance of Symbol 83 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation + 35;
}
Instance of Symbol 85 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation - 20;
}
Instance of Symbol 88 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
}
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Symbol 94 MovieClip Frame 1
scale = Number(random(50)) + 30;
setProperty(_target, _x , (Number(../:x) + Number(random(12))) - 6);
setProperty(_target, _yscale , scale);
Symbol 95 MovieClip Frame 1
i = 1;
max = 60;
x = getProperty("fire", _x);
Symbol 95 MovieClip Frame 2
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
Symbol 95 MovieClip Frame 3
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
gotoAndPlay (2);
Symbol 96 MovieClip Frame 21
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 12
gotoAndStop (1);
Symbol 97 MovieClip Frame 13
_root.fly.deader = true;
_root.fly.dead = true;
stop();
Symbol 97 MovieClip Frame 15
gotoAndStop ("dead");
Symbol 97 MovieClip Frame 16
_root.fly.deader = true;
_root.fly.dead = true;
Symbol 97 MovieClip Frame 17
stop();
Symbol 97 MovieClip Frame 18
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
_root.fly._xscale = 5;
_root.fly._yscale = 5;
Symbol 103 MovieClip Frame 92
_root.fly._xscale = 7;
_root.fly._yscale = 7;
Symbol 103 MovieClip Frame 100
_root.fly._xscale = 9;
_root.fly._yscale = 9;
Symbol 103 MovieClip Frame 108
_root.fly._xscale = 11;
_root.fly._yscale = 11;
Symbol 103 MovieClip Frame 116
_root.fly._xscale = 13;
_root.fly._yscale = 13;
Symbol 103 MovieClip Frame 124
_root.fly._xscale = 14;
_root.fly._yscale = 14;
Symbol 103 MovieClip Frame 132
_root.fly._xscale = 15;
_root.fly._yscale = 15;
gotoAndStop (1);
Symbol 103 MovieClip Frame 133
_root.fly._xscale = 25;
_root.fly._yscale = 25;
Symbol 103 MovieClip Frame 223
_root.fly._xscale = 23;
_root.fly._yscale = 23;
Symbol 103 MovieClip Frame 231
_root.fly._xscale = 21;
_root.fly._yscale = 21;
Symbol 103 MovieClip Frame 239
_root.fly._xscale = 19;
_root.fly._yscale = 19;
Symbol 103 MovieClip Frame 247
_root.fly._xscale = 17;
_root.fly._yscale = 17;
Symbol 103 MovieClip Frame 255
_root.fly._xscale = 16;
_root.fly._yscale = 16;
Symbol 103 MovieClip Frame 263
_root.fly._xscale = 15;
_root.fly._yscale = 15;
gotoAndStop (1);
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
_root.ypower = 0.3;
_root.xpower = 0.2;
Symbol 109 MovieClip Frame 67
_root.ypower = 0.6;
_root.xpower = 0.6;
gotoAndStop (1);
Symbol 109 MovieClip Frame 68
_root.ypower = 1.2;
_root.xpower = 1.2;
Symbol 109 MovieClip Frame 198
_root.ypower = 0.6;
_root.xpower = 0.6;
gotoAndStop (1);
Symbol 116 MovieClip Frame 1
scale = Number(random(50)) + 30;
eval (_target)._x = (Number(../:x) + Number(random(12))) - 6;
eval (_target)._yscale = scale;
Instance of Symbol 115 MovieClip in Symbol 116 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.fly.dead != true) {
if (this.hitTest(_root.fly)) {
_root.xspeed = 0;
_root.fly.gotoAndStop("burn");
}
}
}
Symbol 117 MovieClip Frame 1
i = 1;
max = 60;
x = fire._x;
Symbol 117 MovieClip Frame 2
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" + i, 16384 + i);
i = Number(i) + 1;
}
Symbol 117 MovieClip Frame 3
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" + i, 16384 + i);
i = Number(i) + 1;
}
gotoAndPlay (2);
Symbol 118 MovieClip Frame 174
stop();
Symbol 130 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay(4);
}
Symbol 145 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Symbol 146 MovieClip Frame 1
function camControl() {
var _local2 = _parent;
var _local3 = this;
parentColor.setTransform(camColor.getTransform());
var _local1 = sX / _local3._width;
_local1 = sY / _local3._height;
_local2._x = cX - (_local3._x * _local1);
_local2._y = cY - (_local3._y * _local1);
_local2._xscale = 100 * _local1;
_local2._yscale = 100 * _local1;
}
function resetStage() {
var _local1 = _parent;
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_local1._xscale = 100;
_local1._yscale = 100;
_local1._x = 0;
_local1._y = 0;
}
this._visible = true;
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 of Symbol 139 MovieClip in Symbol 146 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.fly.dead == true) {
_visible = true;
fiss = _root.climb + "yd!";
}
}
Symbol 149 Button
on (release) {
_root.s.setVolume(0);
gotoAndStop (2);
}
Symbol 151 Button
on (release) {
_root.s.setVolume(100);
gotoAndStop (1);
}
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
stop();
Symbol 179 Button
on (release) {
stopAllSounds();
gotoAndStop (2);
}