Frame 1 (32 B)
stop();
_root.preload = false;
Instance of Symbol 101 MovieClip in Frame 1 (468 B)
onClipEvent (enterFrame) {
if (_root.preload == false) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent = percent - ((percent - ((loading / total) * 100)) * 0.25);
per = int(percent);
percentage = per + "%";
loadBar._width = per * 1.4;
if (percent > 99) {
percentage = "100%";
loadBar._width = 140;
_root.transition.next = "preloaded";
_root.transition.gotoAndPlay("start");
_root.preload = true;
}
}
}
Frame 4 (9.58 KiB) ● ●
_root.enableallbtns = function () {
_root.main.playbtn.enabled = true;
_root.main.instructionsbtn.enabled = true;
_root.main.highscoresbtn.enabled = true;
_root.main.replaybtn.enabled = true;
_root.main.mainmenubtn.enabled = true;
_root.display.menubtn.enabled = true;
_root.display.restartbtn.enabled = true;
_root.display.scoreanim.score.replaybtn.enabled = true;
_root.display.scoreanim.score.submitbtn.enabled = true;
};
_root.disableallbtns = function () {
_root.main.playbtn.enabled = false;
_root.main.instructionsbtn.enabled = false;
_root.main.highscoresbtn.enabled = false;
_root.main.replaybtn.enabled = false;
_root.main.mainmenubtn.enabled = false;
_root.display.menubtn.enabled = false;
_root.display.restartbtn.enabled = false;
_root.display.scoreanim.score.replaybtn.enabled = false;
_root.display.scoreanim.score.submitbtn.enabled = false;
};
_root.addDepth = function () {
if (_root.depth > 500) {
_root.depth--;
} else {
_root.depth = 100000 /* 0x0186A0 */;
}
};
_root.windc = function () {
var r = _root;
if (_root.windrand < 20) {
r.windrand = r.windrand + r.windch;
}
r.wind = random(r.windrand) / r.windv;
r.winddir = random(2);
if (r.winddir == 0) {
r.wind = -r.wind;
if (r.wind != 0) {
if (r.winddirection == 1) {
trace("WINWINWIWNIWNIWNWINWINW = " + _root.display.windanim._currentframe);
if (_root.display.windanim._currentframe == 1) {
_root.display.windanim.gotoAndPlay(2);
}
}
r.winddirection = -1;
}
} else if (r.wind != 0) {
if (r.winddirection == -1) {
if (_root.display.windanim._currentframe == 10) {
_root.display.windanim.play();
}
}
r.winddirection = 1;
}
r.display.windtxt = Math.abs(r.wind) * r.windv;
};
_root.startg = function () {
Mouse.hide();
_root.display.gotoAndStop("show");
_root.main.gotoAndStop("blank");
_root.depth = 100000 /* 0x0186A0 */;
_root.duck.swapDepths(100001);
_root.objectsA = new Array(_root.ground);
_root.game = "start";
_root.allowshoot = true;
_root.gaming = true;
_root.charge = false;
_root.realign = false;
_root.airborn = false;
_root.pbar.mask._xscale = 0;
_root.adjoff = 0;
_root.noclouds = 0;
_root.finalscore = 0;
_root.totalbonus = 0;
_root.winddirection = 1;
_root.windrand = 0;
_root.windc();
_root.totalbonus = 0;
_root.display.bonus = _root.totalbonus;
_root.skipbonus = 0;
_root.csbonus = 0;
_root.habonus = 0;
_root.acbonus = 0;
_root.tbbonus = 0;
_root.timer = 0;
_root.display.timertxt = _root.timer;
_root.ssdelt = 0;
_root.snapshot = false;
_root.sstrue = false;
_root.xpos = 0;
_root.ypos = 0;
_root.zpos = 0;
_root.zf = 0;
_root.xf = 0;
_root.yf = 0;
_root.lf = 0;
_root.display.mask._xscale = (_root.lf / _root.maxlf) * 100;
_root.zmin = 500;
_root.attachMovie("baseCanon", "canon0", 100006);
_root.canon0._x = 225;
_root.canon0._y = 376;
_root.canon0.xpos = 0;
_root.canon0.ypos = -18;
_root.canon0.zpos = 0;
_root.objectsA.push(_root.canon0);
_root.rname = _root.canon0;
_root.create();
_root.create();
_root.create();
_root.create();
_root.create();
_root.create();
_root.attachMovie("sf", "sf", 3);
_root.sf._x = (_root.sf._y = 225);
_root.sf.zpos = 35000;
_root.objectsA.push(_root.sf);
_root.duck.gotoAndStop("normal");
_root.display.scoreanim.gotoAndStop("blank");
_root.objectMove();
_root.container.removeAllFW();
};
_root.quitg = function () {
Mouse.show();
_root.display.gotoAndStop("blank");
var i = (_root.objectsA.length - 1);
while (i >= 0) {
var n = _root.objectsA[i];
if (n._name != "ground") {
n.removeMovieClip();
_root.objectA.splice(i, 1);
}
i--;
}
_root.game = "over";
_root.allowshoot = false;
_root.depth = 100000 /* 0x0186A0 */;
_root.gaming = false;
_root.charge = false;
_root.realign = false;
_root.airborn = false;
_root.pbar.mask._xscale = 0;
_root.adjoff = 0;
_root.noclouds = 0;
_root.totalbonus = 0;
_root.display.bonus = _root.totalbonus;
_root.skipbonus = 0;
_root.csbonus = 0;
_root.habonus = 0;
_root.acbonus = 0;
_root.tbbonus = 0;
_root.timer = 0;
_root.display.timertxt = _root.timer;
_root.wind = 0;
_root.xpos = 0;
_root.ypos = 0;
_root.zpos = 0;
_root.zf = 0;
_root.xf = 0;
_root.yf = 0;
_root.lf = 0;
_root.display.mask._xscale = (_root.lf / _root.maxlf) * 100;
_root.zmin = 500;
_root.ssdelt = 0;
_root.snapshot = false;
_root.sstrue = false;
_root.display.scoreanim.gotoAndStop("blank");
_root.display.haanim.gotoAndStop("blank");
_root.display.csanim.gotoAndStop("blank");
_root.display.acanim.gotoAndStop("blank");
_root.display.tbanim.gotoAndStop("blank");
_root.container.removeAllFW();
};
_root.border.swapDepths(100200);
_root.transition.swapDepths(100105);
_root.main.swapDepths(100100);
_root.dot.swapDepths(100011);
_root.aim.swapDepths(100010);
_root.display.swapDepths(100009);
_root.ground.swapDepths(5);
_root.name = "";
_root.playloop = true;
_root.duck.gotoAndStop("blank");
_root.zfoc = 200;
_root.rdel = 5;
_root.adj = 10;
_root.maxadjoff = 600;
_root.ssdel = 12;
_root.finalscore = 0;
_root.maxsang = 70;
_root.maxlf = 48;
_root.lfadd = 2;
_root.grav = -0.5;
_root.ar = 0.05;
_root.windch = 1;
_root.windv = 20;
_root.zmax = 1500;
_root.zch = 30;
_root.zrand = 300;
_root.radconv = (Math.PI/180);
_root.centerx = 225;
_root.centery = 358;
_root.ground.ypos = -78;
_root.create = function () {
var r = _root;
r.attachMovie("cloud", "o" + r.depth, r.depth);
var n = ("o" + r.depth);
if (r.noclouds != 0) {
var i = (r.objectsA.length - 1);
while (i >= 0) {
var q = r.objectsA[i];
if (q.typ == "cloud") {
r[n].zpos = (q.zpos + random(r.zrand)) + r.zmin;
var ratio = (r.zfoc / (r.zfoc + (r[n].zpos - r.zpos)));
r[n].xpos = (q.xpos + random(1800)) - 900;
r[n].ypos = (q.ypos + random(850)) + 200;
r[n]._x = ((r[n].xpos - r.xpos) * ratio) + r.centerx;
r[n]._y = r.centery - ((r[n].ypos - r.ypos) * ratio);
break;
}
i--;
}
} else {
r[n].zpos = (r.zpos + random(_root.zch)) + r.zmin;
var ratio = (r.zfoc / (r.zfoc + r[n].zpos));
r[n]._x = random(350) + 50;
r[n].xpos = r.xpos + ((r[n]._x - r.centerx) / ratio);
r[n]._y = random(150) + 60;
r[n].ypos = r.ypos + ((r.centery - r[n]._y) / ratio);
}
r[n]._xscale = (r[n]._yscale = 100 * ratio);
r[n]._alpha = ratio * 500;
r[n].dist = r[n].zpos - r.zpos;
r[n].typ = "cloud";
r[n].swap = false;
r[n].w = 50;
r.objectsA.push(r[n]);
r.noclouds++;
_root.addDepth();
};
_root.objectMove = function () {
var r = _root;
var i = (r.objectsA.length - 1);
while (i >= 0) {
var n = r.objectsA[i];
if (n._name == "ground") {
n._y = r.centery - (n.ypos - r.ypos);
} else if (n._name != "ground") {
var ratio = (r.zfoc / (r.zfoc + (n.zpos - r.zpos)));
n.dist = Math.round(n.zpos - r.zpos);
if (n != r.rname) {
if (n.dist < (n.w / 2)) {
if (n.dist > ((-n.w) / 2)) {
if (n.swap == false) {
n.swapDepths(r.duck);
n.swap = true;
}
var xdist = Math.abs(n._x - r.centerx);
var ydist = Math.abs((n._y - r.centery) + 67);
if (xdist < ((n._width / 2) + 10)) {
if (ydist < ((n._height / 2) + 5)) {
if (r.realign == false) {
r.attachMovie("peffect", "pe", 100005);
r.pe._x = r.duck._x;
r.pe._y = r.duck._y + 92;
r.pe.xpos = r.xpos;
r.pe.ypos = r.ypos - 92;
r.pe.zpos = n.zpos;
r.objectsA.push(r.pe);
n.dist = 0;
r.zpos = n.zpos;
r.xf = 0;
r.yf = 0;
r.zf = 0;
r.lf = 0;
r.display.mask._xscale = (r.lf / r.maxlf) * 100;
r.realign = true;
r.rname = n;
r.adjoff = 0;
r.duck.gotoAndStop("blank");
r.wind = 0;
r.timer = 0;
r.display.timertxt = r.timer;
if ((xdist < 60) and (ydist < 60)) {
r.acbonus = 250;
if ((xdist < 30) and (ydist < 30)) {
r.acbonus = 500;
if ((xdist < 15) and (ydist < 15)) {
r.acbonus = 1000;
}
}
}
if (r.skipbonus > 0) {
r.csbonus = r.skipbonus * 1000;
r.display.csanim.play();
}
r.skipbonus = 0;
if (r.habonus > 0) {
r.display.haanim.play();
}
if (r.acbonus > 0) {
r.display.acanim.play();
}
if (r.tbbonus > 0) {
r.display.tbanim.play();
}
}
}
}
}
if ((n.dist - r.zf) < ((-n.w) / 2)) {
if (r.sstrue == false) {
if (Math.abs(n._x - r.centerx) < ((n._width / 2) + 100)) {
if (Math.abs((n._y - r.centery) + 67) < ((n._height / 2) + 95)) {
r.snapshot = true;
r.airborn = false;
r.sstrue = true;
}
}
}
}
}
}
n.disttxt = n.dist;
if (n.dist < -100) {
if (n.typ == "cloud") {
if (n != r.rname) {
r.skipbonus++;
}
r.noclouds--;
r.create();
}
if (r.zmin < r.zmax) {
r.zmin = r.zmin + r.zch;
}
r.sstrue = false;
n.removeMovieClip();
r.objectA.splice(i, 1);
}
if (n._name != "sf") {
n._xscale = (n._yscale = 100 * ratio);
n._alpha = ratio * 500;
} else {
n.zpos = r.zpos + 35000;
}
n._x = Math.round(((n.xpos - r.xpos) * ratio) + r.centerx);
n._y = Math.round(r.centery - ((n.ypos - r.ypos) * ratio));
}
i--;
}
};
Instance of Symbol 191 MovieClip "container" in Frame 4 (124 B)
onClipEvent (load) {
_root.shootFireworks = true;
this._xscale = (this._yscale = 50);
this.ratioS = this._xscale / 100;
}
Instance of Symbol 297 MovieClip "aaa" in Frame 4 (4.94 KiB) ●
onClipEvent (keyDown) {
if (Key.isDown(38)) {
_root.quitg();
_root.startg();
}
if (Key.isDown(77)) {
if (_root.playloop == true) {
_root.loop.gotoAndStop("stop");
_root.playloop = false;
} else {
_root.loop.gotoAndStop("play");
_root.playloop = true;
}
}
if (Key.isDown(70)) {
if (_root.shootFireworks == true) {
_root.shootFireworks = false;
_root.container.removeAllFW();
} else {
_root.shootFireworks = true;
}
}
}
onClipEvent (enterFrame) {
if (_root.gaming == true) {
if (_root.snapshot == true) {
_root.ssdelt++;
if (_root.ssdelt == _root.ssdel) {
_root.ssdelt = 0;
_root.airborn = true;
_root.snapshot = false;
}
}
if (_root.charge == true) {
if (_root.lf < _root.maxlf) {
_root.lf = _root.lf + _root.lfadd;
_root.display.mask._xscale = (_root.lf / _root.maxlf) * 100;
if (_root.lf > _root.maxlf) {
_root.lf = _root.maxlf;
}
}
}
_root.aim._x = _root._xmouse;
if (_root._ymouse < _root.centery) {
_root.aim._y = _root._ymouse;
} else {
_root.aim._y = _root.centery;
}
_root.dot._x = _root._xmouse;
_root.dot._y = _root._ymouse;
_root.aimx = Math.round(_root.aim._x) - _root.centerx;
_root.aimy = (_root.centery - Math.round(_root.aim._y)) + 1;
_root.aim.dist = Math.round(_root[_root.enterframename].zpos - _root.zpos);
_root.sang = _root.maxsang * (_root.aimy / 356);
if (_root.sang > 70) {
_root.sang = 70;
}
_root.rname.canon.canon2.ang = Math.round(_root.sang);
_root.rname.canon.canon2.canonmc.gotoAndStop(Math.round(_root.rname.canon.canon2.ang / 2));
if (_root.allowshoot == true) {
if (_root.timer < 65) {
_root.timer++;
}
_root.display.timertxt = _root.timer;
if (_root._xmouse > 425) {
if (_root.adjoff < _root.maxadjoff) {
_root.xpos = _root.xpos + _root.adj;
_root.rname.xpos = _root.rname.xpos + _root.adj;
_root.adjoff = _root.adjoff + _root.adj;
_root.objectmove();
}
} else if (_root._xmouse < 25) {
if (_root.adjoff > (-_root.maxadjoff)) {
_root.xpos = _root.xpos - _root.adj;
_root.rname.xpos = _root.rname.xpos - _root.adj;
_root.adjoff = _root.adjoff - _root.adj;
_root.objectmove();
}
}
}
if (_root.airborn == true) {
_root.zpos = _root.zpos + _root.zf;
_root.xpos = _root.xpos + _root.xf;
_root.ypos = _root.ypos + _root.yf;
_root.display.dist = Math.round(_root.zpos);
if (_root.zf > 0) {
_root.zf = _root.zf - _root.ar;
if (_root.zf < 0) {
_root.zf = 0;
}
}
_root.xf = _root.xf + _root.wind;
if (_root.yf > -60) {
_root.yf = _root.yf + _root.grav;
}
if (_root.yf >= 0) {
_root.duckframe = Math.round(20 - (19 * (_root.yf / 45)));
} else if (_root.yf > -60) {
_root.duckframe = 20 + Math.round(20 * (_root.yf / -60));
}
_root.duck.duckgraphic.gotoAndStop(_root.duckframe);
if (_root.ypos <= 0) {
_root.ypos = 0;
_root.zf = 0;
_root.xf = 0;
_root.yf = 0;
_root.lf = 0;
_root.display.mask._xscale = _root.lf;
_root.game = "over";
_root.display.scoreanim.gotoAndPlay("start");
_root.duck.duckgraphic.gotoAndStop("ground");
_root.airborn = false;
_root.container.removeAllFW();
}
if (_root.realign == true) {
_root.xpos = _root.xpos + ((_root.rname.xpos - _root.xpos) / _root.rdel);
_root.ypos = _root.ypos + ((_root.rname.ypos - _root.ypos) / _root.rdel);
_root.yf = 0;
if (Math.abs(_root.rname.xpos - _root.xpos) < 4) {
if (Math.abs(_root.rname.ypos - _root.ypos) < 4) {
_root.xpos = _root.rname.xpos;
_root.ypos = _root.rname.ypos;
_root.realign = false;
_root.airborn = false;
_root.rname.canon.gotoAndPlay("rise");
_root.windc();
}
}
}
_root.objectMove();
}
}
if (_root.shootFireworks == true) {
_root.container.mfh();
_root.container.pm();
_root.container.fwCount++;
if (_root.container.fwCount == 50) {
_root.container.wfw = random(5) + 1;
var x = (random(450) / _root.container.ratioS);
var destx = ((x - 70) + random(140));
if (destx < 0) {
destx = 10 / _root.container.ratioS;
} else if (destx > (450 / _root.container.ratioS)) {
destx = 440 / _root.container.ratioS;
}
_root.container.cfh(_root.container.wfw, x, 450 / _root.container.ratioS, destx, random(250) + 50, "fha");
_root.container.fwCount = 0;
}
}
}
onClipEvent (mouseDown) {
if (_root.allowshoot == true) {
_root.charge = true;
}
}
onClipEvent (mouseUp) {
if (_root.charge == true) {
_root.charge = false;
_root.allowshoot = false;
_root.yf = Math.sin(_root.radconv * _root.sang) * _root.lf;
_root.xf = _root.yf * (_root.aimx / _root.aimy);
_root.zf = (_root.lf * 4) / 9;
_root.airborn = true;
_root.duck.gotoAndPlay("drop");
_root.lf = 0;
if (_root.sang > 64) {
_root.habonus = 1000 - (100 * (70 - Math.round(_root.sang)));
}
if (_root.timer < 60) {
_root.tbbonus = 500 - (8 * _root.timer);
}
}
}
Symbol 4 MovieClip [trail3] Frame 29 (24 B)
this.removeMovieClip();
Symbol 5 MovieClip [trail2] Frame 15 (24 B)
this.removeMovieClip();
Symbol 6 MovieClip [trail1] Frame 25 (24 B)
this.removeMovieClip();
Symbol 9 MovieClip [flash] Frame 6 (24 B)
this.removeMovieClip();
Symbol 16 MovieClip Frame 1 (8 B)
stop();
Symbol 16 MovieClip Frame 2 (8 B)
stop();
Symbol 16 MovieClip Frame 3 (8 B)
stop();
Symbol 16 MovieClip Frame 4 (8 B)
stop();
Symbol 16 MovieClip Frame 5 (8 B)
stop();
Symbol 16 MovieClip Frame 6 (8 B)
stop();
Symbol 18 MovieClip Frame 48 (96 B)
if (this.h == true) {
this._parent._parent.remove = true;
}
this._parent.removeMovieClip();
Symbol 27 MovieClip [t5h] Frame 1 (8 B)
stop();
Symbol 27 MovieClip [t5h] Frame 2 (8 B)
stop();
Symbol 27 MovieClip [t5h] Frame 3 (8 B)
stop();
Symbol 27 MovieClip [t5h] Frame 4 (8 B)
stop();
Symbol 27 MovieClip [t5h] Frame 5 (8 B)
stop();
Symbol 27 MovieClip [t5h] Frame 6 (8 B)
stop();
Symbol 28 MovieClip [t4h] Frame 1 (8 B)
stop();
Symbol 28 MovieClip [t4h] Frame 2 (8 B)
stop();
Symbol 28 MovieClip [t4h] Frame 3 (8 B)
stop();
Symbol 28 MovieClip [t4h] Frame 4 (8 B)
stop();
Symbol 28 MovieClip [t4h] Frame 5 (8 B)
stop();
Symbol 28 MovieClip [t4h] Frame 6 (8 B)
stop();
Symbol 38 MovieClip [FPSMeter] Frame 1 (1.68 KiB) ●
#initclip 1
FPSMeterClass = function () {
this.listenersList = [];
this.init();
};
Object.registerClass("FPSMeter", FPSMeterClass);
FPSMeterClass.prototype.init = function () {
if (this._targetInstanceName.length > 0) {
this.FPSMeterTarget = (this.targetInstance = this._parent[this._targetInstanceName]);
if (this.FPSMeterTarget instanceof TextField) {
this._visible = false;
this.past = 0;
this.now = 0;
this.fps = 0;
this.pass = 0;
this.delta = 0;
this.population = new Array(this.populationSize);
} else {
trace("FPSMeter Component: no target TextField found!");
}
}
};
FPSMeterClass.prototype.onEnterFrame = function () {
this.now = getTimer();
this.delta = this.now - this.past;
if (this.modus) {
this.population[this.pass] = this.delta;
this.pass++;
if (this.pass >= this.populationSize) {
var sum = 0;
for (var measurement in this.population) {
sum = sum + this.population[measurement];
}
this.fps = int((1000 * this.populationSize) / sum);
this.sendFPSMeterEvent(this.fps);
this.pass = 0;
}
} else {
this.fps = int(1000 / this.delta);
this.sendFPSMeterEvent(this.fps);
}
this.past = this.now;
};
FPSMeterClass.prototype.getFPS = function () {
return(this.fps);
};
FPSMeterClass.prototype.addListener = function (ref) {
this.listenersList[ref] = ref;
};
FPSMeterClass.prototype.removeListener = function (ref) {
delete this.listenersList[ref];
};
FPSMeterClass.prototype.sendFPSMeterEvent = function (value) {
this.FPSMeterTarget.text = (this.prefix + value) + this.suffix;
for (var i in this.listenersList) {
this.listenersList[i].getFPS(value);
}
};
#endinitclip
Symbol 72 MovieClip Frame 1 (8 B)
stop();
Symbol 76 MovieClip Frame 1 (8 B)
stop();
Symbol 76 MovieClip Frame 15 (76 B)
stop();
_root.currentcanon = this._parent._name;
_root.allowshoot = true;
Instance of Symbol 79 MovieClip "cloudcolor" in Symbol 80 MovieClip [cloud] Frame 1 (104 B)
on (rollOver) {
_root.enterframename = _parent._name;
}
on (rollOut) {
_root.enterframename = _root;
}
Symbol 83 MovieClip [peffect] Frame 1 (390 B)
var i = 0;
while (i < 4) {
this.attachMovie("puff", "p" + _root.depth, _root.depth);
this["p" + _root.depth]._x = random(50) - 50;
this["p" + _root.depth]._y = random(50) - 50;
this["p" + _root.depth]._rotation = random(360);
this["p" + _root.depth]._xscale = random(50) + 30;
this["p" + _root.depth]._yscale = this["P" + _root.depth]._xscale;
_root.addDepth();
i++;
}
Symbol 86 MovieClip [puff] Frame 9 (24 B)
this.removeMovieClip();
Symbol 87 MovieClip [sf] Frame 1 (399 B)
var i = 10;
while (i < 75) {
var r = _root;
var t = this;
t.attachMovie("star", "s" + i, i);
t["s" + i]._x = random(1000) - 500;
t["s" + i]._y = random(1000) - 900;
t["s" + i]._rotation = random(360);
t["s" + i]._xscale = (t["s" + i]._yscale = random(70) + 30);
i++;
}
this.attachMovie("moon", "moon", 80);
this.moon._x = random(100) - 200;
this.moon._y = random(100) - 350;
Symbol 101 MovieClip Frame 1 (8 B)
stop();
Symbol 114 MovieClip Frame 1 (8 B)
stop();
Symbol 114 MovieClip Frame 2 (24 B)
_root.disableallbtns();
Symbol 114 MovieClip Frame 24 (514 B)
if (_root.transition.next == "start") {
_root.quitg();
_root.startg();
} else if (_root.transition.next == "menu") {
_root.quitg();
_root.main.gotoAndStop("title");
} else if (_root.transition.next == "submit") {
_root.quitg();
_root.main.gotoAndPlay("process");
} else if (_root.transition.next == "preloaded") {
_root.gotoAndStop("gog");
} else if (_root.transition.next == "intro") {
_root.gotoAndStop("intro");
} else if (_root.transition.next == "game") {
_root.gotoAndStop("game");
}
Symbol 114 MovieClip Frame 34 (63 B)
_root.enableallbtns();
_root.transition.gotoAndStop("blank");
Symbol 132 MovieClip Frame 177 (82 B)
stop();
_root.transition.next = "intro";
_root.transition.gotoAndPlay("start");
Symbol 138 Button (117 B)
on (release) {
this.skip.enabled = false;
_root.transition.next = "game";
_root.transition.gotoAndPlay("start");
}
Symbol 190 MovieClip Frame 113 (81 B)
stop();
_root.transition.next = "game";
_root.transition.gotoAndPlay("close");
Symbol 191 MovieClip Frame 1 (8.8 KiB) ● ●
this.rc = (Math.PI/180);
this.pi = Math.PI;
this.d = 1;
this.g1 = 1;
this.g2 = 2.5;
this.g4 = 1.5;
this.mps = 2;
this.s1 = 8;
this.s2 = 8;
this.s3 = 10;
this.s4 = 10;
this.s5 = 10;
this.fha = new Array();
this.pa = new Array();
this.removeAllFW = function () {
var r = this;
var i = (r.fha.length - 1);
while (i >= 0) {
r.fha[i].removeMovieClip();
r.fha.splice(i, 1);
i--;
}
var i = (r.pa.length - 1);
while (i >= 0) {
r.pa[i].removeMovieClip();
r.pa.splice(i, 1);
i--;
}
};
this.cfh = function (t, x, y, destx, desty, a) {
var r = this;
r.attachMovie(("t" + t) + "h", (("t" + t) + "h") + r.d, r.d);
var n = r[(("t" + t) + "h") + r.d];
if ((t == 4) or (t == 5)) {
n.col = random(n._totalframes) + 1;
n.gotoAndStop(n.col);
}
n.destx = destx;
n.desty = desty;
n._x = x;
n._y = y;
var dx = (destx - n._x);
var dy = (desty - n._y);
var ang = Math.atan(dy / dx);
if (dx < 0) {
ang = ang + r.pi;
}
n._rotation = (ang / r.rc) + 90;
n.mx = r["s" + t] * Math.cos(ang);
n.my = r["s" + t] * Math.sin(ang);
n.t = t;
r.fha.push(n);
r.d++;
};
this.mfh = function () {
var r = this;
var i = (r.fha.length - 1);
while (i >= 0) {
var n = r.fha[i];
n._x = n._x + n.mx;
n._y = n._y + n.my;
if (n.t == 1) {
var j = (random(2) + 2);
while (j > 0) {
r.attachMovie("trail1", "tr" + r.d, r.d);
var n2 = r["tr" + r.d];
n2._x = (n._x - 2) + (Math.random() * 4);
n2._y = n._y + (Math.random() * 4);
r.d++;
j--;
}
} else if (n.t == 2) {
var j = (random(2) + 1);
while (j > 0) {
r.attachMovie("trail2", "tr" + r.d, r.d);
var n2 = r["tr" + r.d];
n2._x = (n._x - 2) + (Math.random() * 4);
n2._y = n._y + (Math.random() * 4);
n2._xscale = (n2._yscale = 80);
r.d++;
j--;
}
} else if (n.t == 3) {
r.attachMovie("trail2", "tr" + r.d, r.d);
var n2 = r["tr" + r.d];
n2._x = (n._x - 1) + (Math.random() * 2);
n2._y = n._y;
n2._xscale = (n2._yscale = 30);
r.d++;
} else if ((n.t == 4) or (n.t == 5)) {
r.attachMovie("trail2", "tr" + r.d, r.d);
var n2 = r["tr" + r.d];
n2._x = (n._x - 1) + (Math.random() * 2);
n2._y = n._y;
n2._xscale = (n2._yscale = 50);
r.d++;
}
if (n._y < n.desty) {
if (n.t == 1) {
var k = 10;
var diff = (360 / k);
var sang = random(360);
while (k > 0) {
var ra = (random(50) + 100);
var ang = (((sang + (diff * k)) + random(14)) - 7);
ang = ang * r.rc;
var x = n._x;
var destx = (x + (ra * Math.cos(ang)));
var y = n._y;
var desty = (y + (ra * Math.sin(ang)));
r.cp(1, x, y, destx, desty);
k--;
}
var k = 5;
var diff = (360 / k);
var sang = random(360);
while (k > 0) {
var ra = (random(20) + 60);
var ang = (((sang + (diff * k)) + random(14)) - 7);
ang = ang * r.rc;
var x = n._x;
var destx = (x + (ra * Math.cos(ang)));
var y = n._y;
var desty = (y + (ra * Math.sin(ang)));
r.cp(1, x, y, destx, desty);
k--;
}
} else if (n.t == 2) {
var k = 13;
while (k > 0) {
var x = n._x;
var dx = random(100);
var dirx = random(2);
if (dirx == 0) {
var destx = (x + dx);
} else {
var destx = (x - dx);
}
var y = n._y;
var dy = random(120);
var desty = ((y - 100) - dy);
r.cp(2, x, y, destx, desty);
k--;
}
} else if (n.t == 3) {
var k = 10;
var diff = (360 / k);
while (k > 0) {
var ra = (random(100) + 50);
var ang = (((sang + (diff * k)) + random(30)) - 15);
ang = ang * r.rc;
var x = n._x;
var destx = (x + (ra * Math.cos(ang)));
var y = n._y;
var desty = (y + (ra * Math.sin(ang)));
r.cp(3, x, y, destx, desty);
k--;
}
} else if ((n.t == 4) or (n.t == 5)) {
r.createEmptyMovieClip("c" + r.d, r.d);
var c = r["c" + r.d];
c._x = n._x;
c._y = n._y;
c.destx = c._x;
c.desty = c._y;
c.t = 4;
r.pa.push(c);
r.d++;
r.attachMovie("flash", "f" + r.d, r.d);
var f = r["f" + r.d];
f._x = n._x;
f._y = n._y;
r.d++;
var mR = (random(150) + 150);
var k = 38;
while (k > 0) {
var x = 0;
var destx = 0;
var y = 0;
var desty = 0;
r.cp(n.t, x, y, destx, desty, n.col, c, mR);
k--;
}
}
n.removeMovieClip();
r.fha.splice(i, 1);
}
i--;
}
};
this.cp = function (t, x, y, destx, desty, c, p, mR) {
var r = this;
if ((t == 1) or (t == 2)) {
r.attachMovie("t1h", "t1h" + r.d, r.d);
var n = r["t1h" + r.d];
n.gr._xscale = (n.gr._yscale = 5);
} else if (t == 3) {
r.attachMovie("t3h", "t3h" + r.d, r.d);
var n = r["t3h" + r.d];
} else if ((t == 4) or (t == 5)) {
p.attachMovie("p4", "p" + r.d, r.d);
var n = p["p" + r.d];
if (t == 4) {
n.anim.col.graphic.gotoAndStop(c);
n.anim2.col.graphic.gotoAndStop(c);
n.anim3.col.graphic.gotoAndStop(c);
n.anim4.col.graphic.gotoAndStop(c);
} else {
var f1 = (random(n.anim.col.graphic._totalframes) + 1);
n.anim.col.graphic.gotoAndStop(f1);
n.anim2.col.graphic.gotoAndStop(f1);
n.anim3.col.graphic.gotoAndStop(f2);
n.anim4.col.graphic.gotoAndStop(f2);
}
n.anim._xscale = (n.anim._yscale = random(mR) + 20);
n.anim.col.graphic._xscale = (n.anim.col.graphic._yscale = (9000 / n.anim._xscale) - random(5));
n.anim2._xscale = (n.anim2._yscale = random(mR) + 20);
n.anim2.col.graphic._xscale = (n.anim2.col.graphic._yscale = (9000 / n.anim2._xscale) - random(5));
n.anim3._xscale = (n.anim3._yscale = random(mR) + 20);
n.anim3.col.graphic._xscale = (n.anim3.col.graphic._yscale = (9000 / n.anim3._xscale) - random(5));
n.anim4._xscale = (n.anim4._yscale = random(mR) + 20);
n.anim4.col.graphic._xscale = (n.anim4.col.graphic._yscale = (9000 / n.anim4._xscale) - random(5));
var frame = (random(6) + 1);
n.anim.gotoAndPlay(frame);
var frame = (random(6) + 1);
n.anim2.gotoAndPlay(frame);
var frame = (random(6) + 1);
n.anim3.gotoAndPlay(frame);
var frame = (random(6) + 1);
n.anim4.gotoAndPlay(frame);
}
n.destx = destx;
n.desty = desty;
n._x = x;
n._y = y;
if ((t == 4) or (t == 5)) {
n.anim._rotation = random(360);
n.anim2._rotation = random(360);
n.anim3._rotation = random(360);
n.anim4._rotation = random(360);
n.t = t;
} else if (((t == 1) or (t == 2)) or (t == 3)) {
n.t = t;
r.pa.push(n);
} else {
var dx = (destx - n._x);
var dy = (desty - n._y);
var ang = Math.atan(dy / dx);
if (dx < 0) {
ang = ang + r.pi;
}
n._rotation = (ang / r.rc) + 90;
n.mx = r["s" + t] * Math.cos(ang);
n.my = r["s" + t] * Math.sin(ang);
n.t = t;
r.pa.push(n);
}
r.d++;
};
this.pm = function () {
var r = this;
var i = (r.pa.length - 1);
while (i >= 0) {
var n = r.pa[i];
if (n.t == 1) {
n._x = n._x + ((n.destx - n._x) / 11);
n._y = n._y + ((n.desty - n._y) / 11);
n.desty = n.desty + r.g1;
var num = random(3);
if (num == 0) {
num = 3;
} else if (num == 2) {
num = 1;
}
r.attachMovie("trail" + num, "tr" + r.d, r.d);
var n2 = r["tr" + r.d];
n2._x = (n._x - 2) + (Math.random() * 4);
n2._y = n._y + (Math.random() * 4);
if (num == 1) {
n2._xscale = (n2._yscale = 70);
} else {
n2._xscale = (n2._yscale = 40);
}
r.d++;
} else if (n.t == 2) {
n._x = n._x + ((n.destx - n._x) / 11);
n._y = n._y + ((n.desty - n._y) / 11);
n.desty = n.desty + r.g2;
r.attachMovie("trail1", "tr" + r.d, r.d);
var n2 = r["tr" + r.d];
n2._x = (n._x - 2) + (Math.random() * 4);
n2._y = n._y + (Math.random() * 4);
n2._xscale = (n2._yscale = 70);
r.d++;
} else if (n.t == 3) {
n._x = n._x + ((n.destx - n._x) / 11);
n._y = n._y + ((n.desty - n._y) / 11);
var k = 1;
while (k > 0) {
r.attachMovie("trail3", "tr" + r.d, r.d);
var n2 = r["tr" + r.d];
n2._x = n._x;
n2._y = n._y;
n2._xscale = (n2._yscale = 40);
n2._rotation = random(360);
r.d++;
k--;
}
} else if (n.t == 4) {
n._x = n._x + ((n.destx - n._x) / 13);
n._y = n._y + ((n.desty - n._y) / 13);
n.desty = n.desty + r.g4;
}
if (Math.abs(n.destx - n._x) < 40) {
if (Math.abs(n.desty - n._y) < 40) {
n.ar = true;
}
}
if (n.t != 4) {
if (n.ar == true) {
n._xscale = n._xscale - 6;
n._yscale = n._xscale;
if (n._xscale <= 0) {
n.removeMovieClip();
r.pa.splice(i, 1);
}
}
} else {
n.count++;
if (n.count == 49) {
n.removeMovieClip();
r.pa.splice(i, 1);
}
}
if (((n._x < 0) or (n._x > (450 / r.ratioS))) or (n._y < 0)) {
n.removeMovieClip();
r.pa.splice(i, 1);
}
i--;
}
};
Symbol 209 MovieClip Frame 1 (8 B)
stop();
Symbol 209 MovieClip Frame 41 (8 B)
stop();
Symbol 210 MovieClip Frame 1 (8 B)
stop();
Symbol 210 MovieClip Frame 2 (8 B)
stop();
Symbol 210 MovieClip Frame 11 (8 B)
stop();
Symbol 217 MovieClip Frame 1 (8 B)
stop();
Symbol 217 MovieClip Frame 2 (160 B)
_root.display.tbanim.tb.tbtxt = "SPEED BONUS: " + _root.tbbonus;
_root.totalbonus = _root.totalbonus + _root.tbbonus;
_root.display.bonus = _root.totalbonus;
Symbol 217 MovieClip Frame 36 (63 B)
_root.tbbonus = 0;
_root.display.tbanim.gotoAndStop("blank");
Symbol 220 MovieClip Frame 1 (8 B)
stop();
Symbol 220 MovieClip Frame 2 (163 B)
_root.display.acanim.ac.actxt = "ACCURACY BONUS: " + _root.acbonus;
_root.totalbonus = _root.totalbonus + _root.acbonus;
_root.display.bonus = _root.totalbonus;
Symbol 220 MovieClip Frame 36 (63 B)
_root.acbonus = 0;
_root.display.acanim.gotoAndStop("blank");
Symbol 223 MovieClip Frame 1 (8 B)
stop();
Symbol 223 MovieClip Frame 2 (165 B)
_root.display.csanim.cs.cstxt = "CLOUD SKIP BONUS: " + _root.csbonus;
_root.totalbonus = _root.totalbonus + _root.csbonus;
_root.display.bonus = _root.totalbonus;
Symbol 223 MovieClip Frame 36 (85 B)
_root.skipbonus = 0;
_root.csbonus = 0;
_root.display.csanim.gotoAndStop("blank");
Symbol 226 MovieClip Frame 1 (8 B)
stop();
Symbol 226 MovieClip Frame 2 (165 B)
_root.display.haanim.ha.hatxt = "HIGH ANGLE BONUS: " + _root.habonus;
_root.totalbonus = _root.totalbonus + _root.habonus;
_root.display.bonus = _root.totalbonus;
Symbol 226 MovieClip Frame 36 (63 B)
_root.habonus = 0;
_root.display.haanim.gotoAndStop("blank");
Symbol 234 MovieClip Frame 1 (8 B)
stop();
Symbol 234 MovieClip Frame 10 (8 B)
stop();
Symbol 234 MovieClip Frame 19 (45 B)
_root.display.windanim.gotoAndStop("right");
Symbol 238 Button (242 B)
on (release) {
_root.transition.next = "menu";
_root.transition.gotoAndPlay("start");
}
on (rollOver) {
_root.allowshoot = false;
}
on (rollOut) {
if ((_root.game == "start") and (_root.airborn == false)) {
_root.allowshoot = true;
}
}
Symbol 241 Button (243 B)
on (release) {
_root.transition.next = "start";
_root.transition.gotoAndPlay("start");
}
on (rollOver) {
_root.allowshoot = false;
}
on (rollOut) {
if ((_root.game == "start") and (_root.airborn == false)) {
_root.allowshoot = true;
}
}
Symbol 253 Button (153 B)
on (release) {
getURL ("http://members.lycos.co.uk/dounanthebarb/gogcsfts.html?", "_blank");
_root.loop.gotoAndStop("stop");
_root.playloop = false;
}
Symbol 256 Button (90 B)
on (release) {
_root.transition.next = "start";
_root.transition.gotoAndPlay("start");
}
Instance of Symbol 258 MovieClip in Symbol 259 MovieClip Frame 1 (277 B)
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
if ((_root.display.scoreanim.score.nametxt == "enter your name") or (_root.display.scoreanim.score.nametxt == "your name goes here")) {
_root.display.scoreanim.score.nametxt = "";
}
}
}
Symbol 260 MovieClip Frame 1 (8 B)
stop();
Symbol 260 MovieClip Frame 2 (326 B)
_root.display.scoreanim.score.totaldist = Math.round(_root.zpos);
_root.display.scoreanim.score.tbonus = _root.totalbonus;
_root.finalscore = Math.round(_root.zpos + _root.totalbonus);
_root.display.scoreanim.score.total = _root.finalscore;
if (_root.name != "") {
_root.display.scoreanim.score.nametxt = _root.name;
}
Symbol 260 MovieClip Frame 20 (8 B)
stop();
Symbol 261 MovieClip Frame 1 (8 B)
stop();
Symbol 261 MovieClip Frame 2 (8 B)
stop();
Symbol 274 Button (90 B)
on (release) {
_root.transition.next = "start";
_root.transition.gotoAndPlay("start");
}
Symbol 277 Button (153 B)
on (release) {
getURL ("http://members.lycos.co.uk/dounanthebarb/gogcsfts.html?", "_blank");
_root.loop.gotoAndStop("stop");
_root.playloop = false;
}
Symbol 280 Button (57 B)
on (release) {
_root.main.gotoAndStop("instructions");
}
Symbol 284 Button (125 B)
on (release) {
getURL ("http://www.gamesofgondor.com", "blank");
_root.loop.gotoAndStop("stop");
_root.playloop = false;
}
Symbol 290 Button (50 B)
on (release) {
_root.main.gotoAndStop("title");
}
Symbol 291 MovieClip Frame 1 (8 B)
stop();
Symbol 291 MovieClip Frame 2 (8 B)
stop();
Symbol 291 MovieClip Frame 3 (8 B)
stop();
Symbol 295 MovieClip Frame 1 (8 B)
stop();
Symbol 295 MovieClip Frame 2 (8 B)
stop();