Frame 1
stop();
_root.WPI_ArcadeStartSingleGame = function () {
trace("WPI_ArcadeStartSingleGame called - the current game has started");
};
_root.WPI_ArcadeStopSingleGame = function (score) {
trace("WPI_ArcadeStopSingleGame called - the current game has finished with score: " + score);
};
Frame 2
stop();
Instance of Symbol 536 MovieClip "game" in Frame 2
onClipEvent (load) {
eyes = 0;
back = 0;
gloves = 0;
leveltot = 1;
maxvol = 70;
maxsound = 100;
var s1 = new Sound(this);
s1.attachSound("song-1");
var s2 = new Sound(this);
s2.attachSound("song-2");
var s3 = new Sound(this);
s3.attachSound("song-3");
var sm = new Sound(this);
sm.attachSound("song-menu");
sm.start(0, 999);
sm.setVolume(maxvol);
var stopper = new Sound();
}
Instance of Symbol 548 MovieClip "texted" in Frame 2
onClipEvent (load) {
stop();
var up = new Sound(this);
up.attachSound("jump");
var up2 = new Sound(this);
up2.attachSound("jump2");
var down = new Sound(this);
down.attachSound("land");
var one = new Sound(this);
one.attachSound("walk1");
var two = new Sound(this);
two.attachSound("walk2");
var number = new Sound(this);
number.attachSound("num");
var tick = new Sound(this);
tick.attachSound("tic");
var coin = new Sound(this);
coin.attachSound("coin");
}
Instance of Symbol 549 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_parent.game.pauser) {
this._x = 100;
} else {
this._x = 900;
}
}
Instance of Symbol 515 MovieClip "tester" in Frame 2
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 551 MovieClip in Frame 2
onClipEvent (load) {
_height = 0;
}
onClipEvent (enterFrame) {
if (_parent.game.char.fuel < 9999) {
_height = _parent.game.char.fuel;
}
}
Instance of Symbol 566 MovieClip "scorer" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 536 MovieClip "game" in Frame 3
onClipEvent (load) {
score = 0;
}
Symbol 25 MovieClip Frame 17
gotoAndPlay (15);
Symbol 26 Button
on (release) {
}
Symbol 35 MovieClip Frame 15
stop();
Symbol 37 Button
on (release) {
_root.gotoAndPlay("start");
}
Symbol 51 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
bl = _root.getBytesLoaded();
bt = _root.getBytesTotal();
perc = (bl / bt) * 100;
bar.bar._xscale = perc;
if (perc >= 100) {
this.gotoAndPlay("goplay");
delete this.onEnterFrame;
}
};
Symbol 51 MovieClip Frame 25
stop();
Symbol 568 MovieClip Frame 1
String.prototype.base64encode = function () {
var _local4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local2;
var _local6;
var _local3 = 0;
var _local5 = "";
while (this.length >= (_local3 + 3)) {
_local2 = (((this.charCodeAt(_local3++) & 255) << 16) | ((this.charCodeAt(_local3++) & 255) << 8)) | (this.charCodeAt(_local3++) & 255);
_local5 = _local5 + (((_local4.charAt((_local2 & 16515072) >> 18) + _local4.charAt((_local2 & 258048) >> 12)) + _local4.charAt((_local2 & 4032) >> 6)) + _local4.charAt(_local2 & 63));
}
if (((this.length - _local3) > 0) && ((this.length - _local3) < 3)) {
_local6 = Boolean((this.length - _local3) - 1);
_local2 = ((this.charCodeAt(_local3++) & 255) << 16) | (_local6 ? ((this.charCodeAt(_local3) & 255) << 8) : 0);
_local5 = _local5 + (((_local4.charAt((_local2 & 16515072) >> 18) + _local4.charAt((_local2 & 258048) >> 12)) + (_local6 ? (_local4.charAt((_local2 & 4032) >> 6)) : "=")) + "=");
}
return(_local5);
};
String.prototype.base64decode = function () {
var _local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local4;
var _local5 = "";
var _local2 = 0;
_local2 = 0;
while (_local2 < this.length) {
_local4 = ((((_local3.indexOf(this.charAt(_local2)) & 255) << 18) | ((_local3.indexOf(this.charAt(_local2 + 1)) & 255) << 12)) | ((_local3.indexOf(this.charAt(_local2 + 2)) & 255) << 6)) | (_local3.indexOf(this.charAt(_local2 + 3)) & 255);
_local5 = _local5 + String.fromCharCode((_local4 & 16711680) >> 16, (_local4 & 65280) >> 8, _local4 & 255);
_local2 = _local2 + 4;
}
if (this.charCodeAt(_local2 - 2) == 61) {
return(_local5.substring(0, _local5.length - 2));
}
if (this.charCodeAt(_local2 - 1) == 61) {
return(_local5.substring(0, _local5.length - 1));
}
return(_local5.substring(0, _local5.length - 2));
};
var jj_off = "file:";
var jj = "aHR0cDovL3d3dy5zdGFuaXMubmw=";
var jj_2 = "aHR0cDovL2dhbWVzLmxldWtlc3BlbGxlbi5iZQ==";
var jj_3 = "aHR0cDovL3NnYW1lcy5qc2tnYW1lcy5jb20=";
var jj_4 = "aHR0cDovL3NnYW1lcy5zcGVlbGVpbGFuZC5ubA==";
var jj_5 = "aHR0cDovL3NzcGllbGUuc3BpZWxrYXJ1c3NlbGwuZGU=";
var jj_6 = "aHR0cDovL3NnaWVya2kud3lzcGFnaWVyLnBs";
var jj_7 = "aHR0cDovL3Nqb2dvcy5icmluY2FyLnB0";
var jj_8 = "aHR0cDovL295dW4ub3l1bmxhcmFkYXNpLmNvbQ==";
var jj_9 = "aHR0cDovL3Nqb2dvcy5qb2dhcmxlZ2FsLmNvbQ==";
var jj_10 = "aHR0cDovL3Nqb2dvcy5qb2dhcmxlZ2FsLmNvbS5icg==";
var jj_11 = "aHR0cDovL3NqZXV4LmpldXhkcm9sZXMuZnI=";
jj = jj.base64decode();
jj_2 = jj_2.base64decode();
jj_3 = jj_3.base64decode();
jj_4 = jj_4.base64decode();
jj_5 = jj_5.base64decode();
jj_6 = jj_6.base64decode();
jj_7 = jj_7.base64decode();
jj_8 = jj_8.base64decode();
jj_9 = jj_9.base64decode();
jj_10 = jj_10.base64decode();
jj_11 = jj_11.base64decode();
var domein = _root._url;
if (domein.substr(0, jj_off.length) == jj_off) {
trace("offline");
} else if (((((((((((domein.substr(0, jj.length) != jj) && (domein.substr(0, jj_2.length) != jj_2)) && (domein.substr(0, jj_3.length) != jj_3)) && (domein.substr(0, jj_4.length) != jj_4)) && (domein.substr(0, jj_5.length) != jj_5)) && (domein.substr(0, jj_6.length) != jj_6)) && (domein.substr(0, jj_7.length) != jj_7)) && (domein.substr(0, jj_8.length) != jj_8)) && (domein.substr(0, jj_9.length) != jj_9)) && (domein.substr(0, jj_10.length) != jj_10)) && (domein.substr(0, jj_11.length) != jj_11)) {
trace("wrong");
gotoAndStop (555);
}
stop();
Symbol 568 MovieClip Frame 555
sec_dom = "d3d3LmlsaWEubmw=";
sec_dom = sec_dom.base64decode();
System.security.allowInsecureDomain(sec_dom);
loadmov = "aHR0cDovL3d3dy5pbGlhLm5sL3NrMzlzLw==";
loadmov = loadmov.base64decode();
loadmovv = "c3RsbG4uc3dmP2RvbWFpbj0=";
loadmovv = loadmovv.base64decode();
domain = _root._url;
domain = domain.base64encode();
var mcl = new MovieClipLoader();
mcl.loadClip((loadmov + loadmovv) + domain, 1000);
stop();
Symbol 15 MovieClip Frame 1
if (Math.ceil(Math.random() * 10) == 1) {
attachMovie("grassextra", "thing", 1);
if (Math.ceil(Math.random() * 3) == 1) {
thing.stop();
} else if (Math.ceil(Math.random() * 2) == 1) {
thing.gotoAndStop(2);
} else {
thing.gotoAndStop(3);
}
thing._x = 2 + (Math.random() * 56);
thing._y = 6 + (Math.random() * 3);
}
Instance of Symbol 53 MovieClip "a" in Symbol 56 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = (_parent._parent.game._x % 1600) / 2;
this._y = (_parent._parent.game._y % 1200) / 2;
_parent.b._y = this._y;
_parent.c._x = this._x;
_parent.c._y = this._y - 600;
_parent.d._y = this._y - 600;
if (_x < 0) {
_parent.b._x = this._x + 800;
_parent.d._x = this._x + 800;
} else {
_parent.b._x = this._x - 800;
_parent.d._x = this._x - 800;
}
}
Instance of Symbol 55 MovieClip "a" in Symbol 56 MovieClip Frame 4
onClipEvent (enterFrame) {
this._x = (_parent._parent.game._x % 1600) / 2;
this._y = (_parent._parent.game._y % 1200) / 2;
_parent.b._y = this._y;
_parent.c._x = this._x;
_parent.c._y = this._y - 600;
_parent.d._y = this._y - 600;
if (_x < 0) {
_parent.b._x = this._x + 800;
_parent.d._x = this._x + 800;
} else {
_parent.b._x = this._x - 800;
_parent.d._x = this._x - 800;
}
}
Symbol 60 MovieClip Frame 1
_alpha = 0;
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip Frame 1
onClipEvent (load) {
unloadMovie (this);
}
Symbol 64 MovieClip Frame 1
if (_parent.grassnum <= -1) {
_parent.grassnum = 0;
}
_parent.grassnum++;
_parent.grasshold.attachMovie("grass-back", "grass" + _parent.grassnum, _parent.grassnum);
eval ("_parent.grasshold.grass" + _parent.grassnum)._x = this._x;
eval ("_parent.grasshold.grass" + _parent.grassnum)._y = this._y - 8.4;
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 9
_parent._x = -99999;
_parent._y = -99999;
unloadMovie (_parent);
Instance of Symbol 60 MovieClip in Symbol 80 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_parent._parent._parent.gloves + 1);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_parent._parent._parent.gloves + 1);
}
Instance of Symbol 60 MovieClip in Symbol 80 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_parent._parent._parent.gloves + 1);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_parent._parent._parent.gloves + 1);
}
Symbol 80 MovieClip Frame 28
gotoAndPlay (1);
Symbol 100 MovieClip Frame 40
gotoAndPlay (1);
Instance of Symbol 100 MovieClip "exclaim" in Symbol 155 MovieClip Frame 1
onClipEvent (enterFrame) {
play();
}
Instance of Symbol 109 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if (_parent.work == 1) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 65))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_root.WPI_ArcadeStartSingleGame();
_parent._parent.level = 1;
_parent._parent.gotoAndStop(5);
}
down = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 10)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
}
}
}
Instance of Symbol 115 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if (_parent.work == 1) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 100))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent.work = 2;
_parent.count = 1;
}
down = 0;
hit = 0;
_alpha = 100;
};
}
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 15)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 45)) / 50))) / 3);
e._y = e._y - ((e._y - (20 * Math.sin((Math.PI * (count + 60)) / 50))) / 3);
f._y = f._y - ((f._y - (20 * Math.sin((Math.PI * (count + 75)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
e._y = e._y - ((e._y - 0) / 4);
f._y = f._y - ((f._y - 0) / 4);
}
}
Instance of Symbol 122 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if (_parent.work == 1) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 130))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent.work = 5;
_parent.counter = 1;
}
down = 0;
hit = 0;
_alpha = 100;
};
}
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 15)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 45)) / 50))) / 3);
e._y = e._y - ((e._y - (20 * Math.sin((Math.PI * (count + 60)) / 50))) / 3);
f._y = f._y - ((f._y - (20 * Math.sin((Math.PI * (count + 75)) / 50))) / 3);
g._y = g._y - ((g._y - (20 * Math.sin((Math.PI * (count + 90)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
e._y = e._y - ((e._y - 0) / 4);
f._y = f._y - ((f._y - 0) / 4);
g._y = g._y - ((g._y - 0) / 4);
}
}
Instance of Symbol 125 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if (_parent.work == 4) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 110))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_root.WPI_ArcadeStartSingleGame();
_parent._parent.level = 1;
_parent._parent.gotoAndStop(5);
}
down = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 15)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 45)) / 50))) / 3);
e._y = e._y - ((e._y - (20 * Math.sin((Math.PI * (count + 60)) / 50))) / 3);
g._y = g._y - ((g._y - (20 * Math.sin((Math.PI * (count + 90)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
e._y = e._y - ((e._y - 0) / 4);
g._y = g._y - ((g._y - 0) / 4);
}
}
}
Instance of Symbol 128 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
if (_parent._parent.leveltot < 2) {
_alpha = 20;
}
}
onClipEvent (enterFrame) {
if (_parent._parent.leveltot >= 2) {
if (_parent.work == 4) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 110))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_root.WPI_ArcadeStartSingleGame();
_parent._parent.level = 3;
_parent._parent.gotoAndStop(5);
}
down = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 15)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 45)) / 50))) / 3);
e._y = e._y - ((e._y - (20 * Math.sin((Math.PI * (count + 60)) / 50))) / 3);
g._y = g._y - ((g._y - (20 * Math.sin((Math.PI * (count + 90)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
e._y = e._y - ((e._y - 0) / 4);
g._y = g._y - ((g._y - 0) / 4);
}
}
}
}
Instance of Symbol 131 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
if (_parent._parent.leveltot < 3) {
_alpha = 20;
}
}
onClipEvent (enterFrame) {
if (_parent._parent.leveltot >= 3) {
if (_parent.work == 4) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 110))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_root.WPI_ArcadeStartSingleGame();
_parent._parent.level = 4;
_parent._parent.gotoAndStop(5);
}
down = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 15)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 45)) / 50))) / 3);
e._y = e._y - ((e._y - (20 * Math.sin((Math.PI * (count + 60)) / 50))) / 3);
g._y = g._y - ((g._y - (20 * Math.sin((Math.PI * (count + 90)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
e._y = e._y - ((e._y - 0) / 4);
g._y = g._y - ((g._y - 0) / 4);
}
}
}
}
Instance of Symbol 138 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if (_parent.work == 4) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 65))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent.count = 1;
_parent.work = 3;
}
down = 0;
hit = 0;
_alpha = 100;
};
}
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 10)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
}
}
Instance of Symbol 138 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if (_parent.work == 7) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 65))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent.count = 1;
_parent.work = 6;
}
down = 0;
hit = 0;
_alpha = 100;
};
}
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 10)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
}
}
Instance of Symbol 145 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_rotation = ((270 * (_parent._parent.maxvol / 100)) - 270);
down = 0;
hit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
baserot = _rotation - ((180 * Math.atan2(_parent._ymouse - this._y, _parent._xmouse - this._x)) / Math.PI);
}
};
onMouseUp = function () {
down = 0;
};
if (down) {
roter = _rotation;
_rotation = (((180 * Math.atan2(_parent._ymouse - this._y, _parent._xmouse - this._x)) / Math.PI) + baserot);
if ((_rotation > 0) && (_rotation < 90)) {
if (Math.abs(roter) < Math.abs(roter - 90)) {
_rotation = 0;
} else {
_rotation = 90;
}
}
roter = _rotation;
if (roter <= 0) {
roter = roter + 360;
}
_parent._parent.maxvol = (roter / 2.7) - 33.3333333333333;
if (_parent._parent.maxvol < 0) {
_parent._parent.maxvol = 0;
}
_parent._parent.sm.setVolume(_parent._parent.maxvol);
}
}
Instance of Symbol 151 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
if (_quality == "BEST") {
gotoAndStop (1);
} else if (_quality == "HIGH") {
gotoAndStop (2);
} else if (_quality == "MEDIUM") {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
down = 0;
hit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
onMouseUp = function () {
down = 0;
};
if (down) {
if (_parent._xmouse < (this._x + 60)) {
gotoAndStop (4);
_quality = "LOW";
} else if (_parent._xmouse > (this._x + 160)) {
gotoAndStop (1);
_quality = "BEST";
} else if (_parent._xmouse > (this._x + 110)) {
gotoAndStop (2);
_quality = "GOOD";
} else {
gotoAndStop (3);
_quality = "MEDIUM";
}
}
}
Instance of Symbol 145 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
_rotation = ((270 * (_parent._parent.maxsound / 100)) - 270);
down = 0;
hit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
baserot = _rotation - ((180 * Math.atan2(_parent._ymouse - this._y, _parent._xmouse - this._x)) / Math.PI);
}
};
onMouseUp = function () {
down = 0;
};
if (down) {
roter = _rotation;
_rotation = (((180 * Math.atan2(_parent._ymouse - this._y, _parent._xmouse - this._x)) / Math.PI) + baserot);
if ((_rotation > 0) && (_rotation < 90)) {
if (Math.abs(roter) < Math.abs(roter - 90)) {
_rotation = 0;
} else {
_rotation = 90;
}
}
roter = _rotation;
if (roter <= 0) {
roter = roter + 360;
}
_parent._parent.maxsound = (roter / 2.7) - 33.3333333333333;
if (_parent._parent.maxsound < 0) {
_parent._parent.maxsound = 0;
}
}
}
Instance of Symbol 164 MovieClip in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 40))) && (_parent._ymouse > this._y)) && (_parent._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent._y = 700;
_parent._parent.work = 1;
}
down = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 50)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
}
}
Instance of Symbol 165 MovieClip in Symbol 166 MovieClip Frame 1
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 50))) && (_parent._ymouse > this._y)) && (_parent._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_root.WPI_ArcadeStopSingleGame(_parent._parent.score);
_parent._parent.level = 0;
_parent._parent.gotoAndStop(2);
}
down = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
}
}
Instance of Symbol 165 MovieClip in Symbol 166 MovieClip Frame 2
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 50))) && (_parent._ymouse > this._y)) && (_parent._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent._parent.level = 0;
_parent._parent.gotoAndStop(1);
}
down = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
}
}
Instance of Symbol 180 MovieClip "a7" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.level + 1);
}
Symbol 194 MovieClip Frame 99
gotoAndPlay (1);
Instance of Symbol 194 MovieClip in Symbol 195 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.waters <= -1) {
_parent._parent.waters = 0;
}
_parent._parent.waters++;
_parent._name = "water" + _parent._parent.waters;
}
Instance of Symbol 60 MovieClip in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
if (_parent.n != 1) {
if (_parent._parent.walls <= -1) {
_parent._parent.walls = 0;
}
_parent._parent.walls++;
_parent._name = "wall" + _parent._parent.walls;
}
}
Instance of Symbol 60 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
if (_parent.n != 1) {
if (_parent._parent.floors <= -1) {
_parent._parent.floors = 0;
}
_parent._parent.floors++;
_parent._name = "floor" + _parent._parent.floors;
}
}
Symbol 200 MovieClip Frame 1
_alpha = 70;
if (_parent._parent.level == 4) {
_alpha = 10;
}
Symbol 200 MovieClip Frame 2
stop();
Instance of Symbol 200 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.vents <= -1) {
_parent._parent.vents = 0;
}
_parent._parent.vents++;
_parent._name = "vent" + _parent._parent.vents;
_parent.dir = 1;
}
Symbol 257 MovieClip Frame 17
gotoAndPlay (1);
Instance of Symbol 60 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.ladders <= -1) {
_parent._parent.ladders = 0;
}
_parent._parent.ladders++;
_parent._name = "ladder" + _parent._parent.ladders;
}
Instance of Symbol 60 MovieClip in Symbol 259 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.stations <= -1) {
_parent._parent.stations = 0;
}
_parent._parent.stations++;
_parent._name = "station" + _parent._parent.stations;
}
Instance of Symbol 60 MovieClip in Symbol 260 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.roofs <= -1) {
_parent._parent.roofs = 0;
}
_parent._parent.roofs++;
_parent._name = "roof" + _parent._parent.roofs;
}
Instance of Symbol 284 MovieClip "coi" in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
_rotation = (_rotation + 11);
}
}
Instance of Symbol 60 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.coins <= -1) {
_parent._parent.coins = 0;
}
_parent._parent.coins++;
_parent._name = "coin" + _parent._parent.coins;
_parent.score = 3;
_parent.alive = 1;
_parent.stop();
}
Instance of Symbol 60 MovieClip in Symbol 291 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
_parent.stop();
} else {
_parent.play();
}
}
Symbol 291 MovieClip Frame 8
_x = -29999;
_y = -29999;
unloadMovie (this);
Instance of Symbol 301 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
_rotation = (_rotation + 11);
}
}
Instance of Symbol 60 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.coins <= -1) {
_parent._parent.coins = 0;
}
_parent._parent.coins++;
_parent._name = "coin" + _parent._parent.coins;
_parent.score = 2;
_parent.alive = 1;
_parent.stop();
}
Instance of Symbol 60 MovieClip in Symbol 308 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
_parent.stop();
} else {
_parent.play();
}
}
Symbol 308 MovieClip Frame 8
_x = -29999;
_y = -29999;
unloadMovie (this);
Instance of Symbol 317 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
_rotation = (_rotation + 11);
}
}
Instance of Symbol 60 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.coins <= -1) {
_parent._parent.coins = 0;
}
_parent._parent.coins++;
_parent._name = "coin" + _parent._parent.coins;
_parent.score = 1;
_parent.alive = 1;
_parent.stop();
}
Instance of Symbol 60 MovieClip in Symbol 324 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
_parent.stop();
} else {
_parent.play();
}
}
Symbol 324 MovieClip Frame 8
_x = -29999;
_y = -29999;
unloadMovie (this);
Instance of Symbol 200 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.vents <= -1) {
_parent._parent.vents = 0;
}
_parent._parent.vents++;
_parent._name = "vent" + _parent._parent.vents;
_parent.dir = 4;
}
Instance of Symbol 200 MovieClip in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.vents <= -1) {
_parent._parent.vents = 0;
}
_parent._parent.vents++;
_parent._name = "vent" + _parent._parent.vents;
_parent.dir = 2;
}
Instance of Symbol 200 MovieClip in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.vents <= -1) {
_parent._parent.vents = 0;
}
_parent._parent.vents++;
_parent._name = "vent" + _parent._parent.vents;
_parent.dir = 3;
}
Symbol 342 MovieClip Frame 1
stop();
Instance of Symbol 335 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.buttons <= -1) {
_parent._parent.buttons = 0;
}
_parent._parent.buttons++;
_parent._name = "button" + _parent._parent.buttons;
}
Symbol 342 MovieClip Frame 2
_parent._parent.texted.tick.start(0, 1);
_parent._parent.texted.tick.setVolume(_parent.maxsound);
Instance of Symbol 60 MovieClip in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.deaths <= -1) {
_parent._parent.deaths = 0;
}
_parent._parent.deaths++;
_parent._name = "death" + _parent._parent.deaths;
}
Instance of Symbol 375 MovieClip in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.docks <= -1) {
_parent._parent.docks = 0;
}
_parent._parent.docks++;
_parent._name = "dock" + _parent._parent.docks;
_parent.side = 1;
}
Instance of Symbol 375 MovieClip in Symbol 377 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.docks <= -1) {
_parent._parent.docks = 0;
}
_parent._parent.docks++;
_parent._name = "dock" + _parent._parent.docks;
_parent.side = 0;
}
Symbol 386 MovieClip Frame 16
gotoAndPlay (1);
Symbol 433 MovieClip Frame 1
used = 0;
Instance of Symbol 386 MovieClip "air" in Symbol 433 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else if (!_parent.used) {
play();
}
}
Instance of Symbol 432 MovieClip "pic" in Symbol 433 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
a.stop();
b.stop();
c.stop();
d.stop();
e.stop();
f.stop();
} else {
a.play();
b.play();
c.play();
d.play();
e.play();
f.play();
}
}
Symbol 453 MovieClip Frame 50
if (!_parent.hit) {
gotoAndPlay (1);
}
Symbol 453 MovieClip Frame 59
_parent._x = -29999;
_parent._y = -29999;
unloadMovie (_parent);
Instance of Symbol 453 MovieClip "n" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.colls <= -1) {
_parent._parent.colls = 0;
}
_parent._parent.colls++;
_parent._name = "coll" + _parent._parent.colls;
num.gotoAndStop(_parent.num);
_parent.hit = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Instance of Symbol 60 MovieClip in Symbol 458 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_parent._parent._parent.gloves + 1);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_parent._parent._parent.gloves + 1);
}
Symbol 467 MovieClip Frame 2
var fire = new Sound(this);
fire.attachSound("fire");
Instance of Symbol 465 MovieClip "down" in Symbol 467 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent._parent._parent.upshot) {
this._alpha = 100;
_parent._parent._parent._parent.fuel = _parent._parent._parent._parent.fuel - 2;
} else {
this._alpha = 0;
}
stopp = 1;
frame = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent._parent._parent._parent.pauser) {
stop();
} else {
play();
if (_parent._parent._parent._parent.upshot) {
this._alpha = 100;
_parent.flame = 1;
_parent._parent._parent._parent.fuel = _parent._parent._parent._parent.fuel - 2;
} else {
this._alpha = 0;
}
}
frame++;
if (_parent.flame) {
if (frame > 5) {
_parent.fire.start(0, 1);
frame = 0;
}
if (stopp) {
_parent.fire.setVolume(_parent._parent._parent._parent._parent.maxsound);
stopp = 0;
}
}
if (!_parent.flame) {
if (!stopp) {
_parent.fire.setVolume(0);
stopp = 1;
}
}
_parent.flame = 0;
}
Instance of Symbol 465 MovieClip "side" in Symbol 467 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent._parent._parent.sideshot) {
this._alpha = 100;
_parent._parent._parent._parent.fuel--;
} else {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_parent._parent._parent._parent._parent.pauser) {
stop();
} else {
play();
if (_parent._parent._parent._parent.sideshot) {
this._alpha = 100;
_parent.flame = 1;
_parent._parent._parent._parent.fuel--;
} else {
this._alpha = 0;
}
}
}
Instance of Symbol 467 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent._parent._parent.back + 1);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent._parent.back + 1);
}
Instance of Symbol 469 MovieClip in Symbol 471 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent._parent._parent.eyes + 1);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent._parent.eyes + 1);
}
Instance of Symbol 60 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
_parent.gotoAndStop(_parent._parent._parent.gloves + 1);
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_parent._parent._parent.gloves + 1);
}
Symbol 474 MovieClip Frame 28
gotoAndPlay (1);
Symbol 475 MovieClip Frame 6
_parent.air = 4;
_parent.myfloor = 0;
_parent.they = -14;
if (_parent.power == 4) {
_parent.they = -8;
}
_parent.ground = 0;
_parent._parent._parent.texted.up.start(0, 1);
_parent._parent._parent.texted.up.setVolume(_parent._parent.maxsound);
Symbol 475 MovieClip Frame 14
_parent.gotoAndStop(4);
Symbol 476 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 477 MovieClip Frame 35
gotoAndPlay (7);
Symbol 478 MovieClip Frame 4
_parent.air = 0;
_parent.they = -16;
_parent.jumped = 1;
_parent._parent._parent.texted.up2.start(0, 1);
_parent._parent._parent.texted.up2.setVolume(_parent._parent.maxsound);
Symbol 478 MovieClip Frame 34
_parent.jumped = 2;
_parent.gotoAndStop(4);
Symbol 479 MovieClip Frame 37
gotoAndPlay (1);
Symbol 480 MovieClip Frame 4
_parent.otherduck = 1;
Symbol 480 MovieClip Frame 31
gotoAndPlay (4);
Symbol 481 MovieClip Frame 5
if (Key.isDown(40)) {
_parent.duck = 1;
_parent.downisdown = 1;
_parent.gotoAndStop(7);
}
_parent.gotoAndStop(1);
_parent.duck = 0;
_parent.downisdown = 0;
Symbol 482 MovieClip Frame 5
_parent._parent._parent.texted.one.start(0, 1);
_parent._parent._parent.texted.one.setVolume(_parent._parent.maxsound);
Symbol 482 MovieClip Frame 11
_parent._parent._parent.texted.two.start(0, 1);
_parent._parent._parent.texted.two.setVolume(_parent._parent.maxsound);
Symbol 482 MovieClip Frame 13
gotoAndPlay (1);
Symbol 483 MovieClip Frame 27
gotoAndPlay (3);
Instance of Symbol 473 MovieClip in Symbol 485 MovieClip Frame 1
onClipEvent (enterFrame) {
i = _parent.i + 2;
if (i > 9) {
i = i - 10;
}
if (_parent.right) {
if (i < 5) {
this._x = 27 + (((2 - _parent.down) - _parent.up) * (8 - (i + 5)));
} else {
this._x = 27 + (((2 - _parent.down) - _parent.up) * (i - 5));
}
} else if (_parent.left) {
if (i < 5) {
this._x = 27 + (((2 - _parent.down) - _parent.up) * i);
} else {
this._x = 27 + (((2 - _parent.down) - _parent.up) * (8 - i));
}
} else {
this._x = 33;
}
if (_parent.up) {
if (i < 5) {
this._y = 2 * i;
} else {
this._y = 2 * (8 - i);
}
} else if (_parent.down) {
if (i < 5) {
this._y = 2 * (8 - (i + 5));
} else {
this._y = 2 * (i - 5);
}
} else {
this._y = 6;
}
}
Instance of Symbol 473 MovieClip in Symbol 485 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.right) {
if (_parent.i < 5) {
this._x = 6 + (((2 - _parent.down) - _parent.up) * _parent.i);
} else {
this._x = 6 + (((2 - _parent.down) - _parent.up) * (8 - _parent.i));
}
} else if (_parent.left) {
if (_parent.i < 5) {
this._x = 6 + (((2 - _parent.down) - _parent.up) * (8 - (_parent.i + 5)));
} else {
this._x = 6 + (((2 - _parent.down) - _parent.up) * (_parent.i - 5));
}
} else {
this._x = 3;
}
if (_parent.up) {
if (_parent.i < 5) {
this._y = 2 * (8 - (_parent.i + 5));
} else {
this._y = 2 * (_parent.i - 5);
}
} else if (_parent.down) {
if (_parent.i < 5) {
this._y = 2 * _parent.i;
} else {
this._y = 2 * (8 - _parent.i);
}
} else {
this._y = 6;
}
}
Instance of Symbol 459 MovieClip in Symbol 485 MovieClip Frame 1
onClipEvent (enterFrame) {
i = _parent.i + 2;
if (i > 9) {
i = i - 10;
}
if (_parent.right) {
if (i < 5) {
this._x = 25 + (8 - (i + 5));
} else {
this._x = 25 + (i - 5);
}
} else if (_parent.left) {
if (i < 5) {
this._x = 25 + i;
} else {
this._x = 25 + (8 - i);
}
} else {
this._x = 25;
}
if (_parent.up) {
if (i < 5) {
this._y = 28 + (2 * i);
} else {
this._y = 28 + (2 * (8 - i));
}
} else if (_parent.down) {
if (i < 5) {
this._y = 28 + (2 * (8 - (i + 5)));
} else {
this._y = 28 + (2 * (i - 5));
}
} else {
this._y = 32;
}
}
Instance of Symbol 459 MovieClip in Symbol 485 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.right) {
if (_parent.i < 5) {
this._x = 8 + _parent.i;
} else {
this._x = 8 + (8 - _parent.i);
}
} else if (_parent.left) {
if (_parent.i < 5) {
this._x = 8 + (8 - (_parent.i + 5));
} else {
this._x = 8 + (_parent.i - 5);
}
} else {
this._x = 9;
}
if (_parent.up) {
if (_parent.i < 5) {
this._y = 28 + (2 * (8 - (_parent.i + 5)));
} else {
this._y = 28 + (2 * (_parent.i - 5));
}
} else if (_parent.down) {
if (_parent.i < 5) {
this._y = 28 + (2 * _parent.i);
} else {
this._y = 28 + (2 * (8 - _parent.i));
}
} else {
this._y = 32;
}
}
Symbol 486 MovieClip Frame 7
_parent._parent._parent.texted.one.start(0, 1);
_parent._parent._parent.texted.two.setVolume(_parent._parent.maxsound);
Symbol 486 MovieClip Frame 16
_parent._parent._parent.texted.two.start(0, 1);
_parent._parent._parent.texted.two.setVolume(_parent._parent.maxsound);
Symbol 486 MovieClip Frame 19
gotoAndPlay (1);
Symbol 487 MovieClip Frame 31
gotoAndPlay (7);
Symbol 488 MovieClip Frame 1
duck = 0;
stop();
Instance of Symbol 474 MovieClip in Symbol 488 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Instance of Symbol 60 MovieClip in Symbol 488 MovieClip Frame 1
onClipEvent (load) {
_parent.pusher = 0;
}
Instance of Symbol 100 MovieClip "exclaim" in Symbol 488 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (41);
}
onClipEvent (enterFrame) {
if (_parent._parent.pauser || (_currentframe == 41)) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 2
duck = 0;
Instance of Symbol 475 MovieClip in Symbol 488 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 3
delay = 4;
duck = 0;
Instance of Symbol 476 MovieClip in Symbol 488 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 4
duck = 0;
Instance of Symbol 477 MovieClip in Symbol 488 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 5
duck = 0;
Instance of Symbol 478 MovieClip in Symbol 488 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 6
duck = 0;
Instance of Symbol 479 MovieClip in Symbol 488 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Instance of Symbol 480 MovieClip in Symbol 488 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Instance of Symbol 481 MovieClip in Symbol 488 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 9
duck = 0;
Instance of Symbol 482 MovieClip in Symbol 488 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 10
duck = 0;
Instance of Symbol 483 MovieClip "jet" in Symbol 488 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 11
duck = 0;
Instance of Symbol 485 MovieClip "climb" in Symbol 488 MovieClip Frame 11
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
i++;
if (i > 9) {
i = 0;
}
}
}
Symbol 488 MovieClip Frame 12
duck = 0;
Instance of Symbol 486 MovieClip in Symbol 488 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Symbol 488 MovieClip Frame 13
duck = 0;
Instance of Symbol 487 MovieClip in Symbol 488 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_parent._parent.pauser) {
stop();
} else {
play();
}
}
Instance of Symbol 60 MovieClip in Symbol 488 MovieClip Frame 13
onClipEvent (load) {
_parent.pusher = 0;
}
Instance of Symbol 73 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.boxes <= -1) {
_parent._parent.boxes = 0;
}
_parent._parent.boxes++;
_parent._name = "box" + _parent._parent.boxes;
_parent.they = 0;
roter = 0;
destroyed = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= _parent._parent.buttons) {
if (((((_parent._x + 60) > _parent._parent["button" + i]._x) && (_parent._x < (_parent._parent["button" + i]._x + _parent._parent["button" + i]._width))) && ((_parent._y + 60) > _parent._parent["button" + i]._y)) && ((_parent._y + 40) < _parent._parent["button" + i]._y)) {
_parent._parent["button" + i].hit = 1;
}
i++;
}
if (this.hitTest(_parent._parent._parent.tester)) {
if (!roter) {
_parent.oldy = _parent._y - 1;
_parent.oldx = _parent._x;
_parent._y = _parent._y + _parent.they;
_parent.they = _parent.they + 3;
if (_parent.they > 21) {
_parent.they = 21;
}
flooring = 0;
i = 1;
while (i <= _parent._parent.floors) {
if (((((_parent._y + 60) >= _parent._parent["floor" + i]._y) && ((_parent.oldy + 60) < _parent._parent["floor" + i]._y)) && ((_parent._x + 60) > _parent._parent["floor" + i]._x)) && (_parent._x < (_parent._parent["floor" + i]._x + _parent._parent["floor" + i]._width))) {
if (_parent._x < _parent._parent["floor" + i]._x) {
flooring = _parent._parent["floor" + i]._x - _parent._x;
} else if ((_parent._x + 60) > (_parent._parent["floor" + i]._x + _parent._parent["floor" + i]._width)) {
flooring = ((_parent._x + 60) - _parent._parent["floor" + i]._x) - _parent._parent["floor" + i]._width;
} else {
flooring = 60;
}
if ((_parent._x + 30) > (_parent._parent["floor" + i]._x + _parent._parent["floor" + i]._width)) {
roter = 10;
} else if ((_parent._x + 30) < _parent._parent["floor" + i]._x) {
roter = -10;
} else {
_parent.they = 0;
_parent._y = _parent._parent["floor" + i]._y - 60;
_parent.oldy = _parent._y - 1;
}
if (roter) {
j = 1;
while (j <= _parent._parent.boxes) {
if (!((_parent._parent["box" + j]._x == _parent._x) && (_parent._parent["box" + j]._y == _parent._y))) {
if ((((_parent._x + 60) > _parent._parent["box" + j]._x) && (_parent._x < (_parent._parent["box" + j]._x + 60))) && (Math.abs((_parent._y + 60) - _parent._parent["box" + j]._y) < 30)) {
roter = 0;
_parent.they = 0;
_parent._y = _parent._parent["floor" + i]._y - 60;
_parent.oldy = _parent._y - 1;
}
}
j++;
}
}
if (roter == 10) {
_parent._x = (_parent._parent["floor" + i]._x + _parent._parent["floor" + i]._width) - 30;
} else if (roter == -10) {
_parent._x = _parent._parent["floor" + i]._x - 30;
}
}
i++;
}
j = 1;
while (j <= _parent._parent.boxes) {
if (!((_parent._parent["box" + j]._x == _parent._x) && (_parent._parent["box" + j]._y == _parent._y))) {
if (((((_parent._y + 60) >= _parent._parent["box" + j]._y) && ((_parent.oldy + 60) < _parent._parent["box" + j]._y)) && ((_parent._x + 60) > _parent._parent["box" + j]._x)) && (_parent._x < (_parent._parent["box" + j]._x + 60))) {
if ((_parent._x + 30) > (_parent._parent["box" + j]._x + 60)) {
roter = 10;
} else if ((_parent._x + 30) < _parent._parent["box" + j]._x) {
roter = -10;
} else {
_parent.they = 0;
_parent._y = _parent._parent["box" + j]._y - 60;
_parent.oldy = _parent._y - 1;
if ((_parent._parent["box" + j]._x != _parent._parent["box" + j].oldx) && (flooring < 60)) {
if (flooring) {
_parent._x = _parent._x + ((_parent._parent["box" + j]._x - _parent._parent["box" + j].oldx) * ((60 - Math.abs(_parent._x - ((_parent._parent["box" + j]._x + _parent._parent["box" + j].oldx) / 2))) / flooring));
} else {
_parent._x = _parent._x + (_parent._parent["box" + j]._x - _parent._parent["box" + j].oldx);
}
k = 1;
while (k <= _parent._parent.boxes) {
if ((!((_parent._parent["box" + j]._x == _parent._parent["box" + k]._x) && (_parent._parent["box" + j]._y == _parent._parent["box" + k]._y))) && (!((_parent._x == _parent._parent["box" + k]._x) && (_parent._parent["box" + k]._y == _parent._y)))) {
if (((_parent._y + 60) > _parent._parent["box" + k]._y) && (_parent._y < (_parent._parent["box" + k]._y + 60))) {
if (((_parent._x + 60) > _parent._parent["box" + k]._x) && ((_parent.oldx + 60) <= _parent._parent["box" + k]._x)) {
_parent._x = _parent._parent["box" + k]._x - 60;
count = 0;
} else if ((_parent._x < (_parent._parent["box" + k]._x + 60)) && (_parent.oldx >= (_parent._parent["box" + k]._x + 60))) {
_parent._x = _parent._parent["box" + k]._x + 60;
count = 0;
}
}
}
k++;
}
k = 1;
while (k <= _parent._parent.walls) {
if (((_parent._y + 60) > _parent._parent["wall" + k]._y) && (_parent._y < (_parent._parent["wall" + k]._y + _parent._parent["wall" + k]._height))) {
if (((_parent._x + 60) > _parent._parent["wall" + k]._x) && ((_parent.oldx + 60) <= _parent._parent["wall" + k]._x)) {
_parent._x = _parent._parent["wall" + k]._x - 60;
count = 0;
} else if ((_parent._x < (_parent._parent["wall" + k]._x + _parent._parent["wall" + k]._width)) && (_parent.oldx >= (_parent._parent["wall" + k]._x + _parent._parent["wall" + k]._width))) {
_parent._x = _parent._parent["wall" + k]._x + _parent._parent["wall" + k]._width;
count = 0;
}
}
k++;
}
}
}
if (roter) {
k = 1;
while (k <= _parent._parent.boxes) {
if (((k != j) && (_parent.box._name != _parent._parent["box" + k]._name)) && (_parent.box._name != _parent._parent["box" + j]._name)) {
if (!((_parent._parent["box" + k]._x == _parent._x) && (_parent._parent["box" + k]._y == _parent._y))) {
if ((((_parent._x + 60) > _parent._parent["box" + k]._x) && (_parent._x < (_parent._parent["box" + k]._x + 60))) && (Math.abs((_parent._y + 60) - _parent._parent["box" + k]._y) < 30)) {
roter = 0;
_parent.they = 0;
_parent._y = _parent._parent["box" + j]._y - 60;
_parent.oldy = _parent._y - 1;
}
}
}
k++;
}
}
if (roter) {
k = 1;
while (k <= _parent._parent.floors) {
if ((((_parent._x + 60) > _parent._parent["floor" + k]._x) && (_parent._x < (_parent._parent["floor" + k]._x + _parent._parent["floor" + k]._width))) && (Math.abs((_parent._y + 60) - _parent._parent["floor" + k]._y) < 30)) {
roter = 0;
_parent.they = 0;
_parent._y = _parent._parent["box" + j]._y - 60;
_parent.oldy = _parent._y - 1;
}
k++;
}
}
if (roter == 10) {
_parent._x = (_parent._parent["box" + j]._x + _parent._parent["box" + j]._width) - 30;
} else if (roter == -10) {
_parent._x = _parent._parent["box" + j]._x - 30;
}
}
}
j++;
}
}
if (roter && (!destroyed)) {
_parent._parent.char.thex = 0;
if (roter > 0) {
_rotation = (_rotation + 9);
_parent._x = _parent._x + 2.9;
they = Math.pow(10 - roter, 1.5) / 2;
if (they > 21) {
they = 21;
}
_parent._y = _parent._y + they;
roter--;
} else {
_rotation = (_rotation - 9);
_parent._x = _parent._x - 2.9;
they = Math.pow(10 + roter, 1.5) / 2;
if (they > 21) {
they = 21;
}
_parent._y = _parent._y + they;
roter++;
}
j = 1;
while ((j <= _parent._parent.boxes) && 0) {
if (!((_parent._parent["box" + j]._x == _parent._x) && (_parent._parent["box" + j]._y == _parent._y))) {
if (((((_parent._x + 60) > _parent._parent["box" + j]._x) && (_parent._x < (_parent._parent["box" + j]._x + 60))) && ((_parent._y + 60) > _parent._parent["box" + j]._y)) && (_parent._y < (_parent._parent["box" + j]._y + 60))) {
gotoAndPlay (2);
destroyed = 1;
if (roter > 0) {
_rotation = -135;
}
if (roter < 0) {
_rotation = -45;
}
}
}
j++;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.boats <= -1) {
_parent._parent.boats = 0;
}
_parent._parent.boats++;
_parent._name = "boat" + _parent._parent.boats;
}
Symbol 500 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_parent._parent.pauser) {
_parent.play();
} else {
_parent.stop();
}
}
Symbol 509 MovieClip Frame 25
stop();
Symbol 513 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 1
_parent.background.gotoAndStop(1);
score = 0;
level = 0;
stop();
Instance of Symbol 155 MovieClip in Symbol 536 MovieClip Frame 1
onClipEvent (load) {
work = 1;
count = 1;
}
onClipEvent (enterFrame) {
if (work == 2) {
if (this._x < 400) {
this._x = this._x + (count + 2);
count = count * 2;
if (this._x > 400) {
count = count / 2;
}
} else {
count = count / 2;
this._x = this._x + (count + 1);
if (this._x > 800) {
this._x = 800;
work = 4;
}
}
}
if (work == 3) {
if (this._x > 400) {
this._x = this._x - (count + 2);
count = count * 2;
if (this._x < 400) {
count = count / 2;
}
} else {
count = count / 2;
this._x = this._x - (count + 1);
if (this._x < 0) {
this._x = 0;
work = 1;
}
}
}
if (work == 5) {
if (this._x > -400) {
this._x = this._x - (count + 2);
count = count * 2;
if (this._x < -400) {
count = count / 2;
}
} else {
count = count / 2;
this._x = this._x - (count + 1);
if (this._x < -800) {
this._x = -800;
work = 7;
}
}
}
if (work == 6) {
if (this._x < -400) {
this._x = this._x + (count + 2);
count = count * 2;
if (this._x > -400) {
count = count / 2;
}
} else {
count = count / 2;
this._x = this._x + (count + 1);
if (this._x < 0) {
this._x = 0;
work = 1;
}
}
}
}
Instance of Symbol 159 MovieClip in Symbol 536 MovieClip Frame 2
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 224))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 63))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent.level = 0;
_parent.gotoAndStop(1);
}
down = 0;
hit = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 10)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
}
}
Symbol 536 MovieClip Frame 4
time = (1200 - ((minutes * 60) + seconds)) / 3;
scoretemp = ((score1 + (score2 * 3)) + (score3 * 5)) + time;
score = score + scoretemp;
work = 1;
_parent.scorer.gotoAndStop(1);
stopper.stop();
sm.start(0, 999);
sm.setVolume(maxvol);
if (level == leveltot) {
leveltot++;
}
Instance of Symbol 159 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if (_parent.work == 1) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 80))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent.work = 3;
_parent.sure._y = 217;
_parent.sure.gotoAndStop(2);
}
down = 0;
hit = 0;
_alpha = 100;
};
}
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 10)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
}
}
Instance of Symbol 161 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if (_parent.work == 1) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 110))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent.work = 2;
_parent.sure._y = 217;
_parent.sure.gotoAndStop(1);
}
down = 0;
hit = 0;
_alpha = 100;
};
}
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 15)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 45)) / 50))) / 3);
e._y = e._y - ((e._y - (20 * Math.sin((Math.PI * (count + 60)) / 50))) / 3);
f._y = f._y - ((f._y - (20 * Math.sin((Math.PI * (count + 75)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
e._y = e._y - ((e._y - 0) / 4);
f._y = f._y - ((f._y - 0) / 4);
}
}
Instance of Symbol 162 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
if (_parent.level == 4) {
this._x = 1000;
}
}
onClipEvent (enterFrame) {
if ((_parent.work == 1) && (_parent.level < 5)) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 145))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent.level++;
if (_parent.level == 2) {
_parent.level++;
}
_parent.gotoAndStop(5);
}
down = 0;
hit = 0;
_alpha = 100;
};
}
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 15)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 45)) / 50))) / 3);
e._y = e._y - ((e._y - (20 * Math.sin((Math.PI * (count + 60)) / 50))) / 3);
f._y = f._y - ((f._y - (20 * Math.sin((Math.PI * (count + 75)) / 50))) / 3);
g._y = g._y - ((g._y - (20 * Math.sin((Math.PI * (count + 90)) / 50))) / 3);
h._y = h._y - ((h._y - (20 * Math.sin((Math.PI * (count + 105)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
e._y = e._y - ((e._y - 0) / 4);
f._y = f._y - ((f._y - 0) / 4);
g._y = g._y - ((g._y - 0) / 4);
h._y = h._y - ((h._y - 0) / 4);
}
}
Instance of Symbol 181 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count = count + 0.5;
if (count == 100) {
count = 0;
}
i = 1;
while (i < 17) {
this["a" + i]._y = this["a" + i]._y - ((this["a" + i]._y - (10 * Math.sin((Math.PI * (count + ((i - 1) * 10))) / 50))) / 3);
i++;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score1 >= 100) {
gotoAndStop((_parent.score1 % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score1 >= 100) {
gotoAndStop((Math.floor(_parent.score1 / 10) % 10) + 1);
} else if (_parent.score1 >= 10) {
gotoAndStop((_parent.score1 % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score1 < 10) {
gotoAndStop(_parent.score1 + 1);
} else if (_parent.score1 < 100) {
gotoAndStop(Math.floor(_parent.score1 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent.score1 / 100) + 1);
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score2 >= 100) {
gotoAndStop((_parent.score2 % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score2 >= 100) {
gotoAndStop((Math.floor(_parent.score2 / 10) % 10) + 1);
} else if (_parent.score2 >= 10) {
gotoAndStop((_parent.score2 % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score2 < 10) {
gotoAndStop(_parent.score2 + 1);
} else if (_parent.score2 < 100) {
gotoAndStop(Math.floor(_parent.score2 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent.score2 / 100) + 1);
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score3 >= 100) {
gotoAndStop((_parent.score3 % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score3 >= 100) {
gotoAndStop((Math.floor(_parent.score3 / 10) % 10) + 1);
} else if (_parent.score3 >= 10) {
gotoAndStop((_parent.score3 % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score3 < 10) {
gotoAndStop(_parent.score3 + 1);
} else if (_parent.score3 < 100) {
gotoAndStop(Math.floor(_parent.score3 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent.score3 / 100) + 1);
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop((_parent._parent.game.seconds % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(Math.floor(_parent._parent.game.seconds / 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop((_parent._parent.game.minutes % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(Math.floor(_parent._parent.game.minutes / 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop((_parent.score1 % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score1 >= 10) {
gotoAndStop((Math.floor(_parent.score1 / 10) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score1 >= 100) {
gotoAndStop((Math.floor(_parent.score1 / 100) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score1 > 1000) {
gotoAndStop(Math.floor(_parent.score1 / 1000) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(((_parent.score2 * 3) % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if ((_parent.score2 * 3) >= 10) {
gotoAndStop((Math.floor((_parent.score2 * 3) / 10) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if ((_parent.score2 * 3) >= 100) {
gotoAndStop((Math.floor((_parent.score2 * 3) / 100) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if ((_parent.score2 * 3) > 1000) {
gotoAndStop(Math.floor((_parent.score2 * 3) / 1000) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(((_parent.score3 * 5) % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if ((_parent.score3 * 5) >= 10) {
gotoAndStop((Math.floor((_parent.score3 * 5) / 10) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if ((_parent.score3 * 5) >= 100) {
gotoAndStop((Math.floor((_parent.score3 * 5) / 100) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if ((_parent.score3 * 5) > 1000) {
gotoAndStop(Math.floor((_parent.score3 * 5) / 1000) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop((Math.floor(_parent.time) % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.time >= 10) {
gotoAndStop((Math.floor(_parent.time / 10) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop((Math.floor(_parent.time / 100) % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop((Math.floor(_parent.scoretemp) % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.scoretemp >= 10) {
gotoAndStop((Math.floor(_parent.scoretemp / 10) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.scoretemp >= 100) {
gotoAndStop((Math.floor(_parent.scoretemp / 100) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.scoretemp >= 1000) {
gotoAndStop((Math.floor(_parent.scoretemp / 1000) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.scoretemp >= 10000) {
gotoAndStop((Math.floor(_parent.scoretemp / 10000) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop((Math.floor(_parent.score) % 10) + 1);
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score >= 10) {
gotoAndStop((Math.floor(_parent.score / 10) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score >= 100) {
gotoAndStop((Math.floor(_parent.score / 100) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score >= 1000) {
gotoAndStop((Math.floor(_parent.score / 1000) % 10) + 1);
} else {
_y = -100;
}
}
Instance of Symbol 180 MovieClip in Symbol 536 MovieClip Frame 4
onClipEvent (load) {
if (_parent.score >= 10000) {
gotoAndStop((Math.floor(_parent.score / 10000) % 10) + 1);
} else {
_y = -100;
}
}
Symbol 536 MovieClip Frame 5
_parent.background.gotoAndStop(level);
score1 = 0;
score2 = 0;
score3 = 0;
seconds = 0;
minutes = 0;
_parent.scorer.gotoAndStop(2);
walls = 0;
boats = 0;
roofs = 0;
floors = 0;
boxes = 0;
stations = 0;
coins = 0;
colls = 0;
docks = 0;
powerups = 0;
buttons = 0;
deaths = 0;
waters = 0;
vents = 0;
ladders = 0;
stopper.stop();
if (level == 1) {
s1.start(0, 999);
s1.setVolume(maxvol * 0.9);
entryx = 135;
entryy = 450;
xsize = 11500;
xstart = -1000;
ysize = 1000;
ystart = -1000;
gotoAndStop (6);
} else if (level == 2) {
entryx = 0;
entryy = 0;
xsize = 9000;
xstart = -2000;
ysize = 9000;
ystart = -10000;
gotoAndStop (7);
} else if (level == 3) {
s2.start(0, 999);
s2.setVolume(maxvol);
walls = 2;
floors = 1;
buttons = 1;
entryx = -7100;
entryy = 350;
xsize = 19500;
xstart = -8000;
ysize = 1000;
ystart = -3000;
gotoAndStop (8);
} else if (level == 4) {
s3.start(0, 999);
s3.setVolume(maxvol);
entryx = 0;
entryy = -20000;
xsize = 9000;
xstart = -3000;
ysize = 4000;
ystart = -21000;
gotoAndStop (9);
} else if (level == 5) {
} else {
gotoAndStop (1);
}
Symbol 536 MovieClip Frame 6
destroy = 0;
Instance of Symbol 257 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 1;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
}
onClipEvent (enterFrame) {
if (_parent.char.power == 2) {
this._alpha = 10;
} else {
this._alpha = 100;
}
}
Instance of Symbol 201 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
count = 1;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
count++;
if (count == 125) {
this._y = -3000;
_parent.air1.air.stop();
_parent.air1.used = 1;
_parent.air1.pic._alpha = 0;
} else if (count == 250) {
count = 0;
this._y = -436.6;
_parent.air1.air.play();
_parent.air1.used = 0;
_parent.air1.pic._alpha = 100;
}
}
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
} else if (_currentframe == 2) {
gotoAndPlay (3);
}
hit = 0;
}
Instance of Symbol 196 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_parent.destroy) {
this._y = 9999;
}
}
Instance of Symbol 345 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 3;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
texted = 1;
}
Instance of Symbol 345 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 3;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
texted = 2;
}
Instance of Symbol 345 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 3;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
texted = 5;
}
Instance of Symbol 345 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 3;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
texted = 6;
}
Instance of Symbol 345 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 3;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
texted = 4;
}
Instance of Symbol 345 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 3;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
texted = 7;
}
Instance of Symbol 345 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 3;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
texted = 8;
}
Instance of Symbol 349 MovieClip "sign" in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
stop();
}
Instance of Symbol 61 MovieClip "grasshold" in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
frame = 0;
}
onClipEvent (enterFrame) {
if ((!_parent.pauser) && (_parent.char.power != 10)) {
if (_parent.minutes < 999) {
frame++;
if (frame == 25) {
_parent.seconds++;
frame = 0;
if (_parent.seconds == 60) {
_parent.minutes++;
_parent.seconds = 0;
}
}
}
}
}
Instance of Symbol 383 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
docked = 0;
thex = 0;
powerup = 2;
they = 0;
isloaded = 0;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
counter = 0;
i = 1;
while (i < (_parent.waters + 1)) {
water = eval ("_parent.water" + i);
if (((((this._y + 200) > water._y) && ((this._y + 35) < (water._y + water._height))) && ((this._x + 30) > water._x)) && (this._x < (water._x + water._width))) {
ypos = water._y - 52;
}
i++;
}
scale = _xscale;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (isloaded == 1) {
guy = eval (_parent.guy1);
if (((((this._x < (guy._x + 5)) && ((this._x + 52) > guy._x)) && (this._y < (guy._y + 50))) && ((this._y + 150) > guy._y)) && (guy.ground)) {
guy.boated = 1;
guy.facing = 1;
guy._xscale = 100;
guy.gotoAndStop(1);
isloaded = 2;
guy._x = this._x + 5;
guy._y = this._y + 28;
}
}
oldx = this._x;
if (isloaded) {
if (_parent.char.power != 5) {
if (isloaded == 1) {
isloaded = 0;
} else if (isloaded == 2) {
if (docked) {
isloaded = 0;
guy = _parent.guy1;
guy.boated = 0;
guy.ground = 0;
guy.jumped = 1;
i = 1;
while (i < (_parent.docks + 1)) {
dock = eval ("_parent.dock" + i);
if (((this._x + 50) > dock._x) && ((this._x + 3) < (dock._x + dock._width))) {
guy._x = (dock._x + (dock._width / 2)) - 7;
guy._y = dock._y - 21;
guy.oldy = guy._y;
guy.oldx = guy._x;
guy.myfloor = -i;
}
i++;
}
} else {
isloaded = 3;
}
}
}
if (isloaded != 3) {
if (Key.isDown(39)) {
thex = thex + 1;
}
if (Key.isDown(37)) {
thex = thex - 1;
}
}
}
if (Math.abs(thex) > 8) {
thex = (thex / Math.abs(thex)) * 8;
}
this._x = this._x + thex;
this._y = ypos + (2 * Math.sin(counter / 6));
counter++;
thex = thex / 1.05;
if (Math.abs(thex) < 0.7) {
thex = 0;
}
if ((((!isloaded) || (isloaded == 3)) && (_parent.char.ground)) && (_parent.char.myfloor > 100)) {
_parent.char._x = _parent.char._x + thex;
}
docked = 0;
i = 1;
while (i < (_parent.docks + 1)) {
dock = eval ("_parent.dock" + i);
if (((this._x + 50) > dock._x) && ((this._x + 3) < (dock._x + dock._width))) {
docked = 1;
}
if (((this._x + 30) > dock._x) && ((oldx + 30) <= dock._x)) {
this._x = dock._x - 30;
thex = 0;
} else if (((this._x + 25) < (dock._x + dock._width)) && ((oldx + 25) >= (dock._x + dock._width))) {
this._x = (dock._x + dock._width) - 25;
thex = 0;
}
i++;
}
if ((isloaded > 1) && (docked)) {
_parent.guy1.exclaim._alpha = 100;
} else {
_parent.guy1.exclaim._alpha = 0;
}
if ((isloaded == 1) || (isloaded == 2)) {
_parent.char._y = this._y + 1.5;
_parent.char._x = this._x + 20;
}
_parent.boat1._x = this._x - 13.7;
_parent.boat1._y = this._y + 44.5;
}
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 2;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 3;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 4;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 5;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 6;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 7;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 8;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 9;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
num = 1;
}
Instance of Symbol 345 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
powerup = 3;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
texted = 3;
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
_parent.sign.gotoAndStop(2);
}
}
Instance of Symbol 488 MovieClip "char" in Symbol 536 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (4);
oldthex = 0;
sideshot = 0;
upshot = 0;
gloves = _parent.gloves;
back = _parent.back;
eyes = _parent.eyes;
thex = 0;
they = 0;
dir = 0;
oldy = this._y;
ground = 0;
upisdown = 0;
downisdown = 0;
delay = 0;
myfloor = 0;
facing = 1;
power = 0;
_parent.pauser = 0;
ledgable = 0;
air = 0;
this._x = _parent.entryx;
this._y = _parent.entryy;
oldx = this._x;
oldy = this._y;
duck = 0;
otherduck = 0;
followed = 0;
buffer = 0;
fuel = 0;
number = 0;
coller = 0;
}
onClipEvent (enterFrame) {
if (power != 10) {
if (Key.isDown(80)) {
if (!_parent.pauser) {
_parent.pauser = 1;
_parent._parent.tester._y = 9999;
} else if (_parent.pauser == 2) {
_parent.pauser = 3;
}
} else if (_parent.pauser == 1) {
_parent.pauser = 2;
} else if (_parent.pauser == 3) {
_parent.pauser = 0;
_parent._parent.tester._y = -1;
}
if (!_parent.pauser) {
if ((power == 2) && (fuel < 0)) {
power = 0;
fuel = 0;
jumped = 0;
upisdown = 1;
ground = 0;
back = _parent.back;
gloves = _parent.gloves;
}
if ((!facing) && (power != 3)) {
this._x = this._x - 30;
}
exclaim.gotoAndStop(41);
if (power != 5) {
if ((power < 2) && ((!ground) || (Key.isDown(38)))) {
i = 1;
while (i <= _parent.ladders) {
if (_parent["ladder" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 10) > _parent["ladder" + i]._y) && ((this._y + 45) < (_parent["ladder" + i]._y + _parent["ladder" + i]._height))) && ((this._x + 10) > _parent["ladder" + i]._x)) && ((this._x + 20) < (_parent["ladder" + i]._x + _parent["ladder" + i]._width))) {
if (!facing) {
facing = 1;
this._xscale = 100;
}
_parent._parent.texted.tick.start(0, 1);
_parent._parent.texted.tick.setVolume(_parent.maxsound);
downisdown = 1;
oldy = this._y - 1;
power = 3;
they = 0;
thex = 0;
jumped = 0;
ground = 0;
delay = 1;
this.gotoAndStop(11);
}
}
i++;
}
}
if ((Math.abs(power) != 1) && (power != 3)) {
if ((((power > 1) && (Key.isDown(32))) && (!spaceisdown)) && (power != 4)) {
back = _parent.back;
gloves = _parent.gloves;
sideshot = 0;
upshot = 0;
this._y--;
oldy--;
power = 0;
this.gotoAndStop(3);
ground = 0;
jumped = 1;
}
if (!duck) {
otherduck = 0;
}
walker = 0;
if (!delay) {
dir = 0;
if (Key.isDown(39)) {
dir++;
}
if (Key.isDown(37)) {
dir--;
}
if (duck) {
dir = 0;
}
if ((((thex && (ground)) || (buffer)) && (!duck)) && (!Key.isDown(40))) {
walker = 1;
} else if (((ground && (!duck)) && (!pusher)) && (!Key.isDown(40))) {
this.gotoAndStop(1);
}
if (power == 2) {
if (!ground) {
if ((Key.isDown(39) && (!Key.isDown(37))) || (Key.isDown(37) && (!Key.isDown(39)))) {
sideshot = 1;
} else {
sideshot = 0;
}
this.gotoAndStop(4);
} else {
sideshot = 0;
}
}
if ((jumped != 1) || (power > 1)) {
if (dir > 0) {
facing = 1;
this._xscale = 100;
} else if (dir < 0) {
facing = 0;
this._xscale = -100;
}
}
if ((!power) || (power == 4)) {
if ((power == 4) && (air)) {
air--;
}
if (Key.isDown(38)) {
if ((ground && (!upisdown)) || (buffer)) {
walker = 0;
this.gotoAndStop(2);
thex = 0;
delay = 5;
} else if (((!upisdown) && (!jumped)) && (!power)) {
this.gotoAndStop(5);
thex = 0;
delay = 3;
} else if (air && (!power)) {
air--;
they = -14;
} else if (((power == 4) && (!air)) && (!upisdown)) {
delay = 2;
they = -6;
air = 10;
}
upisdown = 1;
} else {
if (!power) {
air = 0;
}
upisdown = 0;
}
if (duck != 2) {
if (Key.isDown(40)) {
if (((!ground) && (!downisdown)) && (they > 0)) {
they = 21;
if (power == 4) {
they = 10;
}
} else if (ground && (!duck)) {
this.gotoAndStop(7);
duck = 1;
}
downisdown = 1;
} else {
downisdown = 0;
if (duck == 1) {
this.gotoAndStop(8);
duck = 2;
}
}
}
} else if (power == 2) {
if (Key.isDown(38)) {
upshot = 1;
they = they - 1.6;
ground = 0;
} else {
upshot = 0;
}
}
if (dir && (Math.abs(thex) < 10)) {
thex = thex + (4 * dir);
if ((power == 2) || (power == 4)) {
thex = thex - dir;
}
}
}
if (delay > 0) {
delay--;
}
if ((power == 4) && (inwater > 0)) {
they = Math.abs((5 + _parent["water" + inwater]._y) - this._y) / 20;
this._y = this._y + they;
}
this._x = this._x + thex;
this._y = this._y + they;
oldthex = thex;
oldthey = they;
if (thex > 0) {
thex = thex - 2;
if ((power == 2) || (power == 4)) {
thex++;
}
} else if (thex < 0) {
thex = thex + 2;
if ((power == 2) || (power == 4)) {
thex--;
}
}
if (Math.abs(thex) < 2) {
thex = 0;
}
if (!ground) {
they = they + 1.1;
if (power == 4) {
they = they - 0.7;
}
}
if (they > 21) {
they = 21;
}
if ((power == 2) && (they > 10)) {
they = 10;
}
if ((power == 4) && (they > 7)) {
they = 7;
}
if (they <= -15) {
they = -15;
}
if ((they < -10) && (power == 4)) {
they = -10;
}
i = 1;
while (i <= _parent.vents) {
if (_parent["vent" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 45) > _parent["vent" + i]._y) && (this._y < (_parent["vent" + i]._y + _parent["vent" + i]._height))) && ((this._x + 30) > _parent["vent" + i]._x)) && (this._x < (_parent["vent" + i]._x + _parent["vent" + i]._width))) {
if (_parent["vent" + i].dir == 1) {
they = they - ((10 * ((this._y + 45) - _parent["vent" + i]._y)) / _parent["vent" + i]._height);
if (ground) {
ground = 0;
this.gotoAndStop(4);
}
} else if (_parent["vent" + i].dir == 2) {
thex = thex - (((10 * ((this._x - _parent["vent" + i]._x) - _parent["vent" + i]._width)) / _parent["vent" + i]._width) - 1);
} else if (_parent["vent" + i].dir == 3) {
they = they - ((5 * ((this._y - _parent["vent" + i]._y) - _parent["vent" + i]._height)) / _parent["vent" + i]._height);
} else if (_parent["vent" + i].dir == 4) {
thex = thex - (((10 * ((this._x + 30) - _parent["vent" + i]._x)) / _parent["vent" + i]._width) + 1);
}
}
}
i++;
}
if (power == 4) {
inwater = Math.abs(inwater);
if (!ground) {
gotoAndStop (10);
}
}
i = 1;
while (i <= _parent.waters) {
if (_parent["water" + i].hitTest(_parent._parent.tester)) {
if (((((((this._y + 35) > _parent["water" + i]._y) && (power != 4)) || ((power == 4) && (this._y > _parent["water" + i]._y))) && ((this._y + 35) < (_parent["water" + i]._y + _parent["water" + i]._height))) && ((this._x + 30) > _parent["water" + i]._x)) && (this._x < (_parent["water" + i]._x + _parent["water" + i]._width))) {
if (power != 4) {
if (_currentframe == 4) {
gotoAndStop (13);
}
upisdown = 0;
if (they > -14) {
if (they > 0) {
they = they - ((10 * ((this._y + 35) - _parent["water" + i]._y)) / 100);
} else {
they = (10 * (_parent["water" + i]._y - (this._y + 35))) / 100;
jumped = 1;
}
ground = 0;
if ((this._y < (_parent["water" + i]._y - 20)) && (they < 3.2)) {
jumped = 0;
} else {
jumped = 1;
}
} else {
this._y = _parent["water" + i]._y - 45;
}
} else {
inwater = -i;
}
}
}
i++;
}
i = 1;
while (i <= _parent.roofs) {
if (_parent["roof" + i].hitTest(_parent._parent.tester)) {
if ((((this._y < (_parent["roof" + i]._y + _parent["roof" + i]._height)) && (oldy >= (_parent["roof" + i]._y + _parent["roof" + i]._height))) && ((this._x + 30) > _parent["roof" + i]._x)) && (this._x < (_parent["roof" + i]._x + _parent["roof" + i]._width))) {
this._y = _parent["roof" + i]._y + _parent["roof" + i]._height;
they = 0;
air = 0;
}
}
i++;
}
i = 1;
while (i <= _parent.walls) {
if (_parent["wall" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 45) > _parent["wall" + i]._y) && (this._y < (_parent["wall" + i]._y + _parent["wall" + i]._height))) && ((this._x + 30) > _parent["wall" + i]._x)) && (this._x < (_parent["wall" + i]._x + _parent["wall" + i]._width))) {
test = 1;
j = 1;
while (j <= _parent.floors) {
if (((((this._y + 45) >= _parent["floor" + j]._y) && ((oldy + 45) < _parent["floor" + j]._y)) && ((this._x + 30) > _parent["floor" + j]._x)) && (this._x < (_parent["floor" + j]._x + _parent["floor" + j]._width))) {
test = 0;
}
j++;
}
if ((thex > 0) && (test)) {
this._x = _parent["wall" + i]._x - 30;
thex = 0;
if (ground) {
if (!pusher) {
gotoAndStop (12);
pusher = 1;
}
walker = 0;
}
} else if ((thex < 0) && (test)) {
this._x = _parent["wall" + i]._x + _parent["wall" + i]._width;
thex = 0;
if (ground) {
if (!pusher) {
gotoAndStop (12);
pusher = 1;
}
walker = 0;
}
} else if ((oldthex > 0) && test) {
this._x = _parent["wall" + i]._x - 30;
if (ground) {
if (!pusher) {
gotoAndStop (12);
pusher = 1;
}
walker = 0;
}
} else if ((oldthex < 0) && test) {
this._x = _parent["wall" + i]._x + _parent["wall" + i]._width;
if (ground) {
if (!pusher) {
gotoAndStop (12);
pusher = 1;
}
walker = 0;
}
}
}
}
i++;
}
i = 1;
while (i <= _parent.boxes) {
if (_parent["box" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 40) > _parent["box" + i]._y) && (this._y < (_parent["box" + i]._y + 60))) && ((this._x + 30) > _parent["box" + i]._x)) && (this._x < (_parent["box" + i]._x + 60))) {
tempx = this._x;
tempy = this._y;
if (oldthex || (oldthey)) {
while (((((tempy + 45) > _parent["box" + i]._y) && (tempy < (_parent["box" + i]._y + 60))) && ((tempx + 30) > _parent["box" + i]._x)) && (tempx < (_parent["box" + i]._x + 60))) {
tempx = tempx - (oldthex / 10);
tempy = tempy - (oldthey / 10);
}
} else if (thex || (they)) {
while (((((tempy + 45) > _parent["box" + i]._y) && (tempy < (_parent["box" + i]._y + 60))) && ((tempx + 30) > _parent["box" + i]._x)) && (tempx < (_parent["box" + i]._x + 60))) {
tempx = tempx - (thex / 10);
tempy = tempy - (they / 10);
}
} else if ((oldx + 30) <= _parent["box" + i]._x) {
tempx = _parent["box" + i]._x - 30;
} else if (oldx >= (_parent["box" + i]._x + 60)) {
tempx = _parent["box" + i]._x + 60;
}
if ((tempx + 30) < _parent["box" + i]._x) {
if (ground) {
if (!pusher) {
gotoAndStop (12);
pusher = 1;
}
walker = 0;
_parent["box" + i]._x = _parent["box" + i]._x + (((this._x + 30) - _parent["box" + i]._x) / 2);
j = 1;
while (j <= _parent.walls) {
if (((_parent["box" + i]._y + 60) > _parent["wall" + j]._y) && (_parent["box" + i]._y < (_parent["wall" + j]._y + _parent["wall" + j]._height))) {
if (((_parent["box" + i]._x + 60) > _parent["wall" + j]._x) && ((_parent["box" + i].oldx + 60) <= _parent["wall" + j]._x)) {
_parent["box" + i]._x = _parent["wall" + j]._x - 60;
} else if ((_parent["box" + i]._x < (_parent["wall" + j]._x + _parent["wall" + j]._width)) && (_parent["box" + i].oldx >= (_parent["wall" + j]._x + _parent["wall" + j]._width))) {
_parent["box" + i]._x = _parent["wall" + j]._x + _parent["wall" + j]._width;
}
}
j++;
}
j = 1;
while (j <= _parent.boxes) {
if (!((_parent["box" + i]._x == this._x) && (_parent["box" + i]._y == this._y))) {
if (((_parent["box" + i]._y + 60) > _parent["box" + j]._y) && (_parent["box" + i]._y < (_parent["box" + j]._y + 60))) {
if (((_parent["box" + i]._x + 60) > _parent["box" + j]._x) && ((_parent["box" + i].oldx + 60) <= _parent["box" + j]._x)) {
_parent["box" + i]._x = _parent["box" + j]._x - 60;
} else if ((_parent["box" + i]._x < (_parent["box" + j]._x + 60)) && (_parent["box" + i].oldx >= (_parent["box" + j]._x + 60))) {
_parent["box" + i]._x = _parent["box" + j]._x + 60;
}
}
}
j++;
}
}
this._x = _parent["box" + i]._x - 30;
thex = 0;
} else if (tempx > (_parent["box" + i]._x + 60)) {
if (ground) {
if (!pusher) {
gotoAndStop (12);
pusher = 1;
}
walker = 0;
_parent["box" + i]._x = _parent["box" + i]._x + (((this._x - _parent["box" + i]._x) - 60) / 2);
j = 1;
while (j <= _parent.walls) {
if (((_parent["box" + i]._y + 60) > _parent["wall" + j]._y) && (_parent["box" + i]._y < (_parent["wall" + j]._y + _parent["wall" + j]._height))) {
if (((_parent["box" + i]._x + 60) > _parent["wall" + j]._x) && ((_parent["box" + i].oldx + 60) <= _parent["wall" + j]._x)) {
_parent["box" + i]._x = _parent["wall" + j]._x - 60;
} else if ((_parent["box" + i]._x < (_parent["wall" + j]._x + _parent["wall" + j]._width)) && (_parent["box" + i].oldx >= (_parent["wall" + j]._x + _parent["wall" + j]._width))) {
_parent["box" + i]._x = _parent["wall" + j]._x + _parent["wall" + j]._width;
}
}
j++;
}
j = 1;
while (j <= _parent.boxes) {
if (!((_parent["box" + i]._x == _parent["box" + j]._x) && (_parent["box" + i]._y == _parent["box" + j]._y))) {
if (((_parent["box" + i]._y + 60) > _parent["box" + j]._y) && (_parent["box" + i]._y < (_parent["box" + j]._y + 55))) {
if (((_parent["box" + i]._x + 60) > _parent["box" + j]._x) && ((_parent["box" + i].oldx + 60) <= _parent["box" + j]._x)) {
_parent["box" + i]._x = _parent["box" + j]._x - 60;
} else if ((_parent["box" + i]._x < (_parent["box" + j]._x + 60)) && (_parent["box" + i].oldx >= (_parent["box" + j]._x + 60))) {
_parent["box" + i]._x = _parent["box" + j]._x + 60;
}
}
}
j++;
}
}
this._x = _parent["box" + i]._x + 60;
thex = 0;
}
}
}
i++;
}
i = 1;
while (i <= _parent.boxes) {
if (_parent["box" + i].hitTest(_parent._parent.tester)) {
if ((((this._y < (_parent["box" + i]._y + 60)) && (oldy >= (_parent["box" + i]._y + 60))) && ((this._x + 30) > _parent["box" + i]._x)) && (this._x < (_parent["box" + i]._x + 60))) {
this._y = _parent["box" + i]._y + 60;
they = 0;
}
}
i++;
}
i = 1;
while (i <= _parent.stations) {
if (_parent["station" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 45) > _parent["station" + i]._y) && (this._y < (_parent["station" + i]._y + _parent["station" + i]._height))) && ((this._x + 30) > _parent["station" + i]._x)) && (this._x < (_parent["station" + i]._x + _parent["station" + i]._width))) {
if (exclaim._currentframe == 41) {
exclaim.gotoAndPlay(1);
}
if (Key.isDown(32) && (!spaceisdown)) {
if (power != 4) {
this._y = (_parent["station" + i]._y + _parent["station" + i]._height) - 46;
oldy = this._y;
power = 4;
eyes = 1;
} else {
this._y = _parent["station" + i]._y;
oldy = this._y;
power = 0;
eyes = _parent.eyes;
}
back = _parent.back;
gloves = _parent.gloves;
ground = 0;
thex = 0;
they = 0;
this._x = _parent["station" + i]._x + ((_parent["station" + i]._width - 30) / 2);
}
}
}
i++;
}
if (!ground) {
i = 1;
while (i <= _parent.boats) {
if (_parent["boat" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 42) >= _parent["boat" + i]._y) && ((oldy + 42) < _parent["boat" + i]._y)) && ((this._x + 30) > _parent["boat" + i]._x)) && (this._x < (_parent["boat" + i]._x + _parent["boat" + i]._width))) {
_parent["boat" + i]._alpha = 100;
this._y = _parent["boat" + i]._y - 42;
ground = 1;
they = 0;
jumped = 0;
thex = thex / 1.05;
if (((!power) || (power == 4)) && (!buffer)) {
delay = 6;
_parent._parent.texted.down.start(0, 1);
_parent._parent.texted.down.setVolume(_parent.maxsound);
if (Key.isDown(40)) {
delay = 4;
thex = 0;
this.gotoAndStop(7);
duck = 1;
} else {
this.gotoAndStop(3);
}
}
myfloor = 100 + i;
} else if ((this._y + 42) >= _parent["boat" + i]._y) {
_parent["boat" + i]._alpha = 0;
} else {
_parent["boat" + i]._alpha = 100;
}
}
i++;
}
i = 1;
while (i <= _parent.boxes) {
if (_parent["box" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 45) >= _parent["box" + i]._y) && ((oldy + 45) < _parent["box" + i]._y)) && ((this._x + 30) > _parent["box" + i]._x)) && (this._x < (_parent["box" + i]._x + 60))) {
this._y = _parent["box" + i]._y - 45;
ground = 1;
they = 0;
jumped = 0;
thex = thex / 1.05;
if (((!power) || (power == 4)) && (!buffer)) {
delay = 6;
_parent._parent.texted.down.start(0, 1);
_parent._parent.texted.down.setVolume(_parent.maxsound);
if (Key.isDown(40)) {
delay = 4;
thex = 0;
this.gotoAndStop(7);
duck = 1;
} else {
this.gotoAndStop(3);
}
}
myfloor = -100 - i;
} else if ((((((((!power) && (!ledgable)) && ((this._x + 40) > _parent["box" + i]._x)) && ((this._x + 15) < _parent["box" + i]._x)) && (facing || (jumped == 1))) && (they > -2)) && ((this._y + 15) > _parent["box" + i]._y)) && ((this._y - 10) < _parent["box" + i]._y)) {
checker = 1;
j = 1;
while (j <= _parent.boxes) {
if (!((_parent["box" + i]._x == _parent["box" + j]._x) && (_parent["box" + i]._y == _parent["box" + j]._y))) {
if (((((_parent["box" + i]._x + 20) > _parent["box" + j]._x) && (_parent["box" + i]._x < (_parent["box" + j]._x + 90))) && ((_parent["box" + i]._y + 55) > _parent["box" + j]._y)) && ((_parent["box" + i]._y - 10) < (_parent["box" + j]._y + 60))) {
checker = 0;
}
}
j++;
}
if (checker) {
_parent._parent.texted.tick.start(0, 1);
_parent._parent.texted.tick.setVolume(_parent.maxsound);
facing = 1;
_xscale = 100;
power = 1;
this._x = _parent["box" + i]._x - 30;
this._y = _parent["box" + i]._y;
they = 0;
thex = 0;
ground = 1;
ledgable = 7;
this.gotoAndStop(6);
}
} else if ((((((((!power) && (!ledgable)) && ((this._x - 10) < (_parent["box" + i]._x + 60))) && ((this._x + 10) > (_parent["box" + i]._x + 60))) && ((!facing) || (jumped == 1))) && (they > -2)) && ((this._y + 15) > _parent["box" + i]._y)) && ((this._y - 10) < _parent["box" + i]._y)) {
checker = 1;
j = 1;
while (j <= _parent.boxes) {
if (!((_parent["box" + i]._x == _parent["box" + j]._x) && (_parent["box" + i]._y == _parent["box" + j]._y))) {
if (((((_parent["box" + i]._x + 90) > _parent["box" + j]._x) && ((_parent["box" + i]._x - 20) < _parent["box" + j]._x)) && ((_parent["box" + i]._y + 55) > _parent["box" + j]._y)) && ((_parent["box" + i]._y - 10) < (_parent["box" + j]._y + 60))) {
checker = 0;
}
}
j++;
}
if (checker) {
_parent._parent.texted.tick.start(0, 1);
_parent._parent.texted.tick.setVolume(_parent.maxsound);
facing = 0;
_xscale = -100;
power = -1;
this._x = _parent["box" + i]._x + 60;
this._y = _parent["box" + i]._y;
they = 0;
thex = 0;
ground = 1;
ledgable = 7;
this.gotoAndStop(6);
}
}
}
i++;
}
i = 1;
while (i <= _parent.docks) {
if (_parent["dock" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 45) >= _parent["dock" + i]._y) && ((oldy + 45) < _parent["dock" + i]._y)) && ((this._x + 30) > _parent["dock" + i]._x)) && (this._x < (_parent["dock" + i]._x + _parent["dock" + i]._width))) {
this._y = _parent["dock" + i]._y - 45;
ground = 1;
they = 0;
jumped = 0;
thex = thex / 1.05;
if (((!power) || (power == 4)) && (!buffer)) {
delay = 6;
_parent._parent.texted.down.start(0, 1);
_parent._parent.texted.down.setVolume(_parent.maxsound);
if (Key.isDown(40)) {
delay = 4;
thex = 0;
this.gotoAndStop(7);
duck = 1;
} else {
this.gotoAndStop(3);
}
}
myfloor = -i;
}
}
i++;
}
i = 1;
while (i <= _parent.floors) {
if (_parent["floor" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 45) >= _parent["floor" + i]._y) && ((oldy + 45) < _parent["floor" + i]._y)) && ((this._x + 30) > _parent["floor" + i]._x)) && (this._x < (_parent["floor" + i]._x + _parent["floor" + i]._width))) {
this._y = _parent["floor" + i]._y - 45;
ground = 1;
they = 0;
jumped = 0;
thex = thex / 1.05;
if (((!power) || (power == 4)) && (!buffer)) {
delay = 6;
_parent._parent.texted.down.start(0, 1);
_parent._parent.texted.down.setVolume(_parent.maxsound);
if (Key.isDown(40)) {
delay = 4;
thex = 0;
this.gotoAndStop(7);
duck = 1;
} else {
this.gotoAndStop(3);
}
}
myfloor = i;
} else if ((((((((!power) && (!ledgable)) && ((this._x + 40) > _parent["floor" + i]._x)) && ((this._x + 15) < _parent["floor" + i]._x)) && (facing || (jumped == 1))) && (they > -2)) && ((this._y + 15) > _parent["floor" + i]._y)) && ((this._y - 15) < _parent["floor" + i]._y)) {
checker = 1;
j = 1;
while (j <= _parent.boxes) {
if (((((_parent["floor" + i]._x + 20) > _parent["box" + j]._x) && ((_parent["floor" + i]._x - 90) < _parent["box" + j]._x)) && ((_parent["floor" + i]._y + 55) > _parent["box" + j]._y)) && ((_parent["floor" + i]._y - 10) < (_parent["box" + j]._y + 60))) {
checker = 0;
}
j++;
}
if (checker) {
_parent._parent.texted.tick.start(0, 1);
_parent._parent.texted.tick.setVolume(_parent.maxsound);
facing = 1;
_xscale = 100;
power = 1;
this._x = _parent["floor" + i]._x - 30;
this._y = _parent["floor" + i]._y;
they = 0;
thex = 0;
ground = 1;
ledgable = 7;
this.gotoAndStop(6);
}
} else if ((((((((!power) && (!ledgable)) && ((this._x - 10) < (_parent["floor" + i]._x + _parent["floor" + i]._width))) && ((this._x + 10) > (_parent["floor" + i]._x + _parent["floor" + i]._width))) && ((!facing) || (jumped == 1))) && (they > -2)) && ((this._y + 15) > _parent["floor" + i]._y)) && ((this._y - 15) < _parent["floor" + i]._y)) {
checker = 1;
j = 1;
while (j <= _parent.boxes) {
if ((((((_parent["floor" + i]._x + _parent["floor" + i]._width) + 30) > _parent["box" + j]._x) && (((_parent["floor" + i]._x + _parent["floor" + i]._width) - 20) < (_parent["box" + j]._x + 60))) && ((_parent["floor" + i]._y + 55) > _parent["box" + j]._y)) && ((_parent["floor" + i]._y - 10) < (_parent["box" + j]._y + 60))) {
checker = 0;
}
j++;
}
if (checker) {
_parent._parent.texted.tick.start(0, 1);
_parent._parent.texted.tick.setVolume(_parent.maxsound);
facing = 0;
_xscale = -100;
power = -1;
this._x = _parent["floor" + i]._x + _parent["floor" + i]._width;
this._y = _parent["floor" + i]._y;
they = 0;
thex = 0;
ground = 1;
ledgable = 7;
this.gotoAndStop(6);
}
} else if (((((this._x + 30) > _parent["floor" + i]._x) && ((oldx + 30) <= _parent["floor" + i]._x)) && ((this._y + 45) > _parent["floor" + i]._y)) && (this._y < _parent["floor" + i]._y)) {
this._x = _parent["floor" + i]._x - 30;
thex = 0;
} else if ((((this._x < (_parent["floor" + i]._x + _parent["floor" + i]._width)) && (oldx >= (_parent["floor" + i]._x + _parent["floor" + i]._width))) && ((this._y + 45) > _parent["floor" + i]._y)) && (this._y < _parent["floor" + i]._y)) {
this._x = _parent["floor" + i]._x + _parent["floor" + i]._width;
thex = 0;
}
}
i++;
}
} else if (myfloor > 100) {
if (((this._x + 30) < _parent["boat" + (myfloor - 100)]._x) || (this._x > (_parent["boat" + (myfloor - 100)]._x + _parent["boat" + (myfloor - 100)]._width))) {
ground = 0;
buffer = 2;
} else {
this._y = _parent["boat" + i]._y - 42;
}
} else if (myfloor > 0) {
if (((this._x + 30) < _parent["floor" + myfloor]._x) || (this._x > (_parent["floor" + myfloor]._x + _parent["floor" + myfloor]._width))) {
ground = 0;
buffer = 2;
}
} else if (myfloor > -100) {
if (((this._x + 30) < _parent["dock" + (-myfloor)]._x) || (this._x > (_parent["dock" + (-myfloor)]._x + _parent["dock" + (-myfloor)]._width))) {
ground = 0;
buffer = 2;
}
} else if (((this._x + 30) < _parent["box" + ((-myfloor) - 100)]._x) || (this._x > (_parent["box" + ((-myfloor) - 100)]._x + 60))) {
ground = 0;
buffer = 2;
}
if (ledgable) {
ledgable--;
}
if (this._x < _parent.xstart) {
this._x = _parent.xstart;
} else if (this._x > _parent.xsize) {
this._x = _parent.xsize;
}
checker = 0;
i = 1;
while (i <= _parent.deaths) {
if (_parent["death" + i].hitTest(_parent._parent.tester)) {
if (((((this._x + 30) > _parent["death" + i]._x) && (this._x < ((_parent["death" + i]._x + _parent["death" + i]._width) + 60))) && ((this._y + 45) > _parent["death" + i]._y)) && (this._y < (_parent["death" + i]._y + _parent["death" + i]._height))) {
checker = 1;
}
}
i++;
}
if ((this._y > _parent.ysize) || (checker)) {
this._x = _parent.entryx;
this._y = _parent.entryy;
thex = 0;
they = 0;
ground = 0;
jumped = 0;
power = 0;
gloves = _parent.gloves;
back = _parent.back;
eyes = _parent.eyes;
this.gotoAndStop(3);
}
oldx = this._x;
oldy = this._y;
if (buffer) {
oldy--;
buffer--;
if ((!buffer) && (!ground)) {
this.gotoAndStop(4);
}
}
if (walker) {
gotoAndStop (9);
if (!ground) {
walker = 0;
gotoAndStop (4);
}
}
} else if (power == 3) {
this.climb.left = 0;
this.climb.right = 0;
this.climb.up = 0;
this.climb.down = 0;
if (Key.isDown(38)) {
this.climb.up = 1;
this._y = this._y - 5;
}
if (Key.isDown(40)) {
this.climb.down = 1;
this._y = this._y + 5;
}
if (Key.isDown(37) && (!Key.isDown(39))) {
this.climb.left = 1;
this._x = this._x - 5;
}
if (Key.isDown(39) && (!Key.isDown(37))) {
this.climb.right = 1;
this._x = this._x + 5;
}
checker = 0;
i = 1;
while (i <= _parent.ladders) {
if (_parent["ladder" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 10) > _parent["ladder" + i]._y) && ((this._y + 45) < (_parent["ladder" + i]._y + _parent["ladder" + i]._height))) && ((this._x + 10) > _parent["ladder" + i]._x)) && ((this._x + 20) < (_parent["ladder" + i]._x + _parent["ladder" + i]._width))) {
checker = 1;
} else if ((Key.isDown(38) && ((this._x + 15) > _parent["ladder" + i]._x)) && ((this._x + 15) < (_parent["ladder" + i]._x + _parent["ladder" + i]._width))) {
if (!checker) {
checker = 2;
}
}
}
i++;
}
if (checker == 0) {
_parent._parent.texted.up2.start(0, 1);
_parent._parent.texted.up2.setVolume(_parent.maxsound);
ground = 0;
jumped = 0;
power = 0;
this.gotoAndStop(4);
they = 0;
thex = 0;
} else if (checker == 2) {
_parent._parent.texted.up.start(0, 1);
_parent._parent.texted.up.setVolume(_parent.maxsound);
upisdown = 1;
power = 0;
ground = 0;
jumped = 0;
they = -13;
this.gotoAndStop(4);
}
i = 1;
while (i <= _parent.roofs) {
if (_parent["roof" + i].hitTest(_parent._parent.tester)) {
if ((((this._y < (_parent["roof" + i]._y + _parent["roof" + i]._height)) && (oldy >= (_parent["roof" + i]._y + _parent["roof" + i]._height))) && ((this._x + 30) > _parent["roof" + i]._x)) && (this._x < (_parent["roof" + i]._x + _parent["roof" + i]._width))) {
this._y = _parent["roof" + i]._y + _parent["roof" + i]._height;
}
}
i++;
}
i = 1;
while (i <= _parent.boxes) {
if (_parent["box" + i].hitTest(_parent._parent.tester)) {
if ((((this._y < (_parent["box" + i]._y + _parent["box" + i]._height)) && (oldy >= (_parent["box" + i]._y + _parent["box" + i]._height))) && ((this._x + 30) > _parent["box" + i]._x)) && (this._x < (_parent["box" + i]._x + _parent["box" + i]._width))) {
this._y = _parent["box" + i]._y + _parent["box" + i]._height;
}
}
i++;
}
i = 1;
while (i <= _parent.walls) {
if (_parent["wall" + i].hitTest(_parent._parent.tester)) {
if (((this._y + 45) > _parent["wall" + i]._y) && (this._y < (_parent["wall" + i]._y + _parent["wall" + i]._height))) {
if (((this._x + 30) > _parent["wall" + i]._x) && ((oldx + 30) <= _parent["wall" + i]._x)) {
this._x = _parent["wall" + i]._x - 30;
} else if ((this._x < (_parent["wall" + i]._x + _parent["wall" + i]._width)) && (oldx >= (_parent["wall" + i]._x + _parent["wall" + i]._width))) {
this._x = _parent["wall" + i]._x + _parent["wall" + i]._width;
}
}
}
i++;
}
i = 1;
while (i <= _parent.boxes) {
if (_parent["box" + i].hitTest(_parent._parent.tester)) {
if (((this._y + 45) > _parent["box" + i]._y) && (this._y < (_parent["box" + i]._y + _parent["box" + i]._height))) {
if (((this._x + 30) > _parent["box" + i]._x) && ((oldx + 30) <= _parent["box" + i]._x)) {
this._x = _parent["box" + i]._x - 30;
} else if ((this._x < (_parent["box" + i]._x + _parent["box" + i]._width)) && (oldx >= (_parent["box" + i]._x + _parent["box" + i]._width))) {
this._x = _parent["box" + i]._x + _parent["box" + i]._width;
}
}
}
i++;
}
i = 1;
while (i <= _parent.floors) {
if (_parent["floor" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 45) >= _parent["floor" + i]._y) && ((oldy + 45) < _parent["floor" + i]._y)) && ((this._x + 30) > _parent["floor" + i]._x)) && (this._x < (_parent["floor" + i]._x + _parent["floor" + i]._width))) {
power = 0;
this.gotoAndStop(1);
ground = 1;
jumped = 0;
thex = 0;
they = 0;
this._y = _parent["floor" + i]._y - 45;
myfloor = i;
}
}
i++;
}
i = 1;
while (i <= _parent.boxes) {
if (_parent["box" + i].hitTest(_parent._parent.tester)) {
if (((((this._y + 45) >= _parent["box" + i]._y) && ((oldy + 45) < _parent["box" + i]._y)) && ((this._x + 30) > _parent["box" + i]._x)) && (this._x < (_parent["box" + i]._x + _parent["box" + i]._width))) {
power = 0;
this.gotoAndStop(1);
ground = 1;
jumped = 0;
thex = 0;
they = 0;
this._y = _parent["box" + i]._y - 45;
myfloor = -100 - i;
}
}
i++;
}
} else if (Key.isDown(40)) {
power = 0;
ground = 0;
jumped = 0;
they = 10;
this.gotoAndStop(4);
} else if (Key.isDown(38)) {
_parent._parent.texted.up.start(0, 1);
_parent._parent.texted.up.setVolume(_parent.maxsound);
upisdown = 1;
thex = power * 5;
power = 0;
ground = 0;
jumped = 0;
they = -13;
this.gotoAndStop(4);
} else if ((Key.isDown(37) && (power == 1)) || (Key.isDown(39) && (power == -1))) {
power = 0;
ground = 0;
jumped = 0;
this.gotoAndStop(4);
}
i = 1;
while (i <= _parent.powerups) {
if (_parent["power" + i].hitTest(_parent._parent.tester)) {
if (((((ground && (!power)) && ((this._x + 30) > _parent["power" + i]._x)) && (this._x < ((_parent["power" + i]._x + _parent["power" + i]._width) + 60))) && ((this._y + 45) > _parent["power" + i]._y)) && (this._y < (_parent["power" + i]._y + _parent["power" + i]._height))) {
if (exclaim._currentframe == 41) {
exclaim.gotoAndPlay(1);
}
if (Key.isDown(32) && (!spaceisdown)) {
if (_parent["power" + i].powerup == 1) {
power = 2;
back = 1;
gloves = 1;
fuel = _parent["power" + i].fuel;
} else if (_parent["power" + i].powerup == 2) {
if (!_parent["power" + i].isloaded) {
_parent["power" + i].isloaded = 1;
} else {
_parent["power" + i].isloaded = 2;
}
if (!facing) {
facing = 1;
this._xscale = 100;
}
power = 5;
this.gotoAndStop(1);
} else if (_parent["power" + i].powerup == 3) {
_parent._parent.texted.gotoAndStop(_parent["power" + i].texted + 1);
power = 10;
}
}
}
}
i++;
}
} else if (Key.isDown(32) && (!spaceisdown)) {
power = 0;
jumped = 0;
ground = 0;
fuel = 0;
back = _parent.back;
gloves = _parent.gloves;
upisdown = 1;
}
framex = this._x - 385;
framey = this._y - 280;
if (framex < _parent.xstart) {
framex = _parent.xstart;
} else if (framex > (_parent.xsize - 770)) {
framex = _parent.xsize - 770;
}
if (framey < _parent.ystart) {
framey = _parent.ystart;
} else if (framey > (_parent.ysize - 600)) {
framey = _parent.ysize - 600;
}
_parent._x = _parent._x - ((framex + _parent._x) / 4);
_parent._y = _parent._y - ((framey + _parent._y) / 4);
if (!((Key.isDown(39) && (!Key.isDown(37))) || (Key.isDown(37) && (!Key.isDown(39))))) {
pusher = 0;
}
if (Key.isDown(32)) {
spaceisdown = 1;
} else {
spaceisdown = 0;
}
i = 1;
while (i <= _parent.coins) {
if (_parent["coin" + i].hitTest(_parent._parent.tester)) {
if (((((this._x + 30) > _parent["coin" + i]._x) && (this._x < (_parent["coin" + i]._x + 15))) && ((this._y + 45) > _parent["coin" + i]._y)) && (this._y < (_parent["coin" + i]._y + 15))) {
if (_parent["coin" + i].alive) {
_parent._parent.texted.coin.start(0, 1);
_parent._parent.texted.coin.setVolume(_parent.maxsound);
_parent["score" + _parent["coin" + i].score]++;
_parent["coin" + i].gotoAndPlay(2);
_parent["coin" + i].alive = 0;
}
}
}
i++;
}
i = 1;
while (i <= _parent.colls) {
if (_parent["coll" + i].hitTest(_parent._parent.tester)) {
if (((((this._x + 30) > _parent["coll" + i]._x) && (this._x < (_parent["coll" + i]._x + _parent["coll" + i]._width))) && ((this._y + 45) > _parent["coll" + i]._y)) && (this._y < (_parent["coll" + i]._y + 40))) {
if ((coller + 1) == _parent["coll" + i].num) {
coller++;
_parent["coll" + i].hit = 1;
_parent._parent.texted.number.start(0, 1);
_parent._parent.texted.number.setVolume(_parent.maxsound);
_parent["coll" + i].n.gotoAndPlay(52);
_parent._parent.scorer["n" + coller]._alpha = 100;
if (coller == 9) {
unloadMovie (_parent.finalgate);
if (_parent.level == 1) {
_parent.destroy = 1;
} else if (_parent.level == 3) {
_parent.destroy = 1;
} else if (_parent.level == 4) {
_parent.destroy = 1;
}
}
}
}
}
i++;
}
if (they >= 0) {
i = 1;
while (i <= _parent.buttons) {
if (_parent["button" + i].hitTest(_parent._parent.tester)) {
if (((((this._x + 30) > _parent["button" + i]._x) && (this._x < (_parent["button" + i]._x + _parent["button" + i]._width))) && ((this._y + 45) > _parent["button" + i]._y)) && ((this._y + 25) < _parent["button" + i]._y)) {
_parent["button" + i].hit = 1;
}
}
i++;
}
}
if (_parent.fin.hitTest(_parent._parent.tester)) {
if (((((this._x + 30) > _parent.fin._x) && (this._x < ((_parent.fin._x + _parent.fin._width) + 60))) && ((this._y + 45) > _parent.fin._y)) && (this._y < (_parent.fin._y + _parent.fin._height))) {
_parent._x = 0;
_parent._y = 0;
_parent.gotoAndStop(4);
}
}
if ((!facing) && (power != 3)) {
this._x = this._x + 30;
}
}
} else if (Key.isDown(32)) {
if (!spaceisdown) {
spaceisdown = 1;
power = 0;
_parent._parent.texted.gotoAndStop(1);
}
} else {
spaceisdown = 0;
}
}
Instance of Symbol 257 MovieClip in Symbol 536 MovieClip Frame 7
onClipEvent (load) {
powerup = 1;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
}
onClipEvent (enterFrame) {
if (_parent.char.power == 2) {
this._alpha = 10;
} else {
this._alpha = 100;
}
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 7
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
} else if (_currentframe == 2) {
gotoAndPlay (3);
}
hit = 0;
}
Instance of Symbol 383 MovieClip in Symbol 536 MovieClip Frame 7
onClipEvent (load) {
docked = 0;
thex = 0;
powerup = 2;
they = 0;
isloaded = 0;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
counter = 0;
i = 1;
while (i < (_parent.waters + 1)) {
water = eval ("_parent.water" + i);
if (((((this._y + 200) > water._y) && ((this._y + 35) < (water._y + water._height))) && ((this._x + 30) > water._x)) && (this._x < (water._x + water._width))) {
ypos = water._y - 52;
}
i++;
}
scale = _xscale;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (isloaded == 1) {
guy = eval (_parent.guy1);
if (((((this._x < (guy._x + 5)) && ((this._x + 52) > guy._x)) && (this._y < (guy._y + 50))) && ((this._y + 150) > guy._y)) && (guy.ground)) {
guy.boated = 1;
guy.facing = 1;
guy._xscale = 100;
guy.gotoAndStop(1);
isloaded = 2;
guy._x = this._x + 5;
guy._y = this._y + 28;
}
}
oldx = this._x;
if (isloaded) {
if (_parent.char.power != 5) {
if (isloaded == 1) {
isloaded = 0;
} else if (isloaded == 2) {
if (docked) {
isloaded = 0;
guy = _parent.guy1;
guy.boated = 0;
guy.ground = 0;
guy.jumped = 1;
i = 1;
while (i < (_parent.docks + 1)) {
dock = eval ("_parent.dock" + i);
if (((this._x + 50) > dock._x) && ((this._x + 3) < (dock._x + dock._width))) {
guy._x = (dock._x + (dock._width / 2)) - 7;
guy._y = dock._y - 21;
guy.oldy = guy._y;
guy.oldx = guy._x;
guy.myfloor = -i;
}
i++;
}
} else {
isloaded = 3;
}
}
}
if (isloaded != 3) {
if (Key.isDown(39)) {
thex = thex + 1;
}
if (Key.isDown(37)) {
thex = thex - 1;
}
}
}
if (Math.abs(thex) > 8) {
thex = (thex / Math.abs(thex)) * 8;
}
this._x = this._x + thex;
this._y = ypos + (2 * Math.sin(counter / 6));
counter++;
thex = thex / 1.05;
if (Math.abs(thex) < 0.7) {
thex = 0;
}
if ((((!isloaded) || (isloaded == 3)) && (_parent.char.ground)) && (_parent.char.myfloor > 100)) {
_parent.char._x = _parent.char._x + thex;
}
docked = 0;
i = 1;
while (i < (_parent.docks + 1)) {
dock = eval ("_parent.dock" + i);
if (((this._x + 50) > dock._x) && ((this._x + 3) < (dock._x + dock._width))) {
docked = 1;
}
if (((this._x + 30) > dock._x) && ((oldx + 30) <= dock._x)) {
this._x = dock._x - 30;
thex = 0;
} else if (((this._x + 25) < (dock._x + dock._width)) && ((oldx + 25) >= (dock._x + dock._width))) {
this._x = (dock._x + dock._width) - 25;
thex = 0;
}
i++;
}
if ((isloaded > 1) && (docked)) {
_parent.guy1.exclaim._alpha = 100;
} else {
_parent.guy1.exclaim._alpha = 0;
}
if ((isloaded == 1) || (isloaded == 2)) {
_parent.char._y = this._y + 1.5;
_parent.char._x = this._x + 20;
}
_parent.boat1._x = this._x - 13.7;
_parent.boat1._y = this._y + 44.5;
}
}
Instance of Symbol 61 MovieClip "grasshold" in Symbol 536 MovieClip Frame 7
onClipEvent (load) {
frame = 0;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (_parent.minutes < 999) {
frame++;
if (frame == 25) {
_parent.seconds++;
frame = 0;
if (_parent.seconds == 60) {
_parent.minutes++;
_parent.seconds = 0;
}
}
}
}
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 7
onClipEvent (load) {
num = 1;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 7
onClipEvent (load) {
num = 2;
}
Symbol 536 MovieClip Frame 8
destroy = 0;
Instance of Symbol 257 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
powerup = 1;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
fuel = 100;
}
onClipEvent (enterFrame) {
if (_parent.char.power == 2) {
this._alpha = 10;
} else {
this._alpha = 100;
}
}
Instance of Symbol 257 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
powerup = 1;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
fuel = 130;
}
onClipEvent (enterFrame) {
if (_parent.char.power == 2) {
this._alpha = 10;
} else {
this._alpha = 100;
}
if (_parent.pauser) {
stop();
} else {
play();
}
}
Instance of Symbol 197 MovieClip "floor1" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
n = 1;
}
Instance of Symbol 196 MovieClip "wall2" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
n = 1;
}
onClipEvent (enterFrame) {
if (_parent.button1.hit) {
unloadMovie (this);
}
}
Instance of Symbol 196 MovieClip "wall1" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
n = 1;
}
Instance of Symbol 196 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_parent.destroy) {
this._y = 9999;
}
}
Instance of Symbol 61 MovieClip "grasshold" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
frame = 0;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (_parent.minutes < 999) {
frame++;
if (frame == 25) {
_parent.seconds++;
frame = 0;
if (_parent.seconds == 60) {
_parent.minutes++;
_parent.seconds = 0;
}
}
}
}
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (hit) {
gotoAndStop (2);
_parent.gate.hit = 1;
_parent.wall1._y = -3500;
} else {
if (_currentframe == 2) {
gotoAndPlay (3);
}
_parent.gate.hit = 0;
_parent.wall1._y = -279.8;
}
hit = 0;
}
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
_parent.floor1._width = 1748.2;
unloadMovie (_parent.floorish);
}
}
Instance of Symbol 342 MovieClip "button1" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
unloadMovie (_parent.wall2);
unloadMovie (_parent.gate2);
}
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
hit = 0;
hitted = 0;
}
onClipEvent (enterFrame) {
if (hit) {
if (!hitted) {
hitted = 1;
gotoAndStop (2);
_parent.grad.gotoAndStop(2);
_parent.fin._y = -650;
_parent.sign1._alpha = 0;
_parent.sign2._alpha = 100;
_parent.sign3._alpha = 0;
_parent.sign4._alpha = 100;
_parent.sign5.gotoAndPlay(3);
_parent.net._alpha = 0;
i = 1;
while (i <= _parent.ladders) {
unloadMovie (_parent["ladder" + i]);
i++;
}
}
}
}
Instance of Symbol 330 MovieClip "sign2" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 330 MovieClip "sign4" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
hit = 0;
_parent.air1.air.stop();
_parent.air1.pic._alpha = 0;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (hit) {
gotoAndStop (2);
_parent.vent10._y = -33.6;
_parent.air1.air.play();
_parent.air1.pic._alpha = 100;
} else {
if (_currentframe == 2) {
gotoAndPlay (3);
}
_parent.vent10._y = -3000;
_parent.air1.air.stop();
_parent.air1.pic._alpha = 0;
}
hit = 0;
}
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
hit = 0;
_parent.air2.air.stop();
_parent.air2.pic._alpha = 0;
_parent.air2.used = 1;
_parent.vent16._y = -3000;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
_parent.vent16._y = 501.5;
_parent.air2.air.play();
_parent.air2.used = 0;
_parent.air2.pic._alpha = 100;
}
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
num = 3;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
num = 4;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
num = 5;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
num = 6;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
num = 7;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
num = 8;
}
Instance of Symbol 454 MovieClip in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
num = 9;
}
Instance of Symbol 500 MovieClip "gate" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
frame = 1;
hit = 0;
thing = 0;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (((hit == 1) || (!((frame == 1) || (frame == 15)))) && (!thing)) {
frame++;
if (frame >= 15) {
thing = 1;
frame = 15;
}
} else if (thing && ((!hit) || (!((frame == 1) || (frame == 15))))) {
frame--;
if (frame <= 1) {
thing = 0;
frame = 1;
}
}
gotoAndStop(frame);
}
}
Instance of Symbol 500 MovieClip "gate2" in Symbol 536 MovieClip Frame 8
onClipEvent (load) {
frame = 1;
hit = 0;
thing = 0;
}
onClipEvent (enterFrame) {
if ((hit == 1) && (!thing)) {
frame++;
if (frame >= 15) {
thing = 1;
frame = 15;
}
} else if (thing && (!hit)) {
frame--;
if (frame <= 1) {
thing = 0;
frame = 1;
}
}
gotoAndStop(frame);
}
Symbol 536 MovieClip Frame 9
destroy = 0;
Instance of Symbol 257 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
powerup = 1;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
}
onClipEvent (enterFrame) {
if (_parent.char.power == 2) {
this._alpha = 10;
} else {
this._alpha = 100;
}
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
} else if (_currentframe == 2) {
gotoAndPlay (3);
}
hit = 0;
}
Instance of Symbol 257 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
powerup = 1;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
fuel = 200;
}
onClipEvent (enterFrame) {
if (_parent.char.power == 2) {
this._alpha = 10;
} else {
this._alpha = 100;
}
if (_parent.pauser) {
stop();
} else {
play();
}
}
Instance of Symbol 326 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
count = 1;
}
onClipEvent (enterFrame) {
if (_parent.pauser) {
_parent.air7.air.stop();
_parent.air6.air.stop();
} else {
count++;
if (count == 50) {
this._y = -30000;
_parent.air7.air.stop();
_parent.air7.pic._alpha = 0;
_parent.air6.air.stop();
_parent.air6.pic._alpha = 0;
} else if (count == 100) {
count = 0;
this._y = -11886.8;
_parent.air7.air.play();
_parent.air7.pic._alpha = 100;
_parent.air6.air.play();
_parent.air6.pic._alpha = 100;
}
}
}
Instance of Symbol 327 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
count = 50;
}
onClipEvent (enterFrame) {
if (_parent.pauser) {
_parent.air8.air.stop();
_parent.air9.air.stop();
} else {
count++;
if (count == 50) {
this._y = -30000;
_parent.air8.air.stop();
_parent.air8.pic._alpha = 0;
_parent.air9.air.stop();
_parent.air9.pic._alpha = 0;
} else if (count == 100) {
count = 0;
this._y = -11736.8;
_parent.air8.air.play();
_parent.air8.pic._alpha = 100;
_parent.air9.air.play();
_parent.air9.pic._alpha = 100;
}
}
}
Instance of Symbol 196 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_parent.destroy) {
this._x = 9999;
}
}
Instance of Symbol 197 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_parent.destroy) {
this._x = 6217;
}
}
Instance of Symbol 515 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (enterFrame) {
_alpha = 0;
if (this.hitTest(_parent.char)) {
unloadMovie (this);
_parent.entryy = -14100;
}
}
Instance of Symbol 61 MovieClip "grasshold" in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
frame = 0;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (_parent.minutes < 999) {
frame++;
if (frame == 25) {
_parent.seconds++;
frame = 0;
if (_parent.seconds == 60) {
_parent.minutes++;
_parent.seconds = 0;
}
}
}
}
}
Instance of Symbol 383 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
docked = 0;
thex = 0;
powerup = 2;
they = 0;
isloaded = 0;
if (_parent.powerups <= -1) {
_parent.powerups = 0;
}
_parent.powerups++;
this._name = "power" + _parent.powerups;
counter = 0;
i = 1;
while (i < (_parent.waters + 1)) {
water = eval ("_parent.water" + i);
if (((((this._y + 200) > water._y) && ((this._y + 35) < (water._y + water._height))) && ((this._x + 30) > water._x)) && (this._x < (water._x + water._width))) {
ypos = water._y - 52;
}
i++;
}
scale = _xscale;
}
onClipEvent (enterFrame) {
if (!_parent.pauser) {
if (isloaded == 1) {
guy = eval (_parent.guy1);
if (((((this._x < (guy._x + 5)) && ((this._x + 52) > guy._x)) && (this._y < (guy._y + 50))) && ((this._y + 150) > guy._y)) && (guy.ground)) {
guy.boated = 1;
guy.facing = 1;
guy._xscale = 100;
guy.gotoAndStop(1);
isloaded = 2;
guy._x = this._x + 5;
guy._y = this._y + 28;
}
}
oldx = this._x;
if (isloaded) {
if (_parent.char.power != 5) {
if (isloaded == 1) {
isloaded = 0;
} else if (isloaded == 2) {
if (docked) {
isloaded = 0;
guy = _parent.guy1;
guy.boated = 0;
guy.ground = 0;
guy.jumped = 1;
i = 1;
while (i < (_parent.docks + 1)) {
dock = eval ("_parent.dock" + i);
if (((this._x + 50) > dock._x) && ((this._x + 3) < (dock._x + dock._width))) {
guy._x = (dock._x + (dock._width / 2)) - 7;
guy._y = dock._y - 21;
guy.oldy = guy._y;
guy.oldx = guy._x;
guy.myfloor = -i;
}
i++;
}
} else {
isloaded = 3;
}
}
}
if (isloaded != 3) {
if (Key.isDown(39)) {
thex = thex + 1;
}
if (Key.isDown(37)) {
thex = thex - 1;
}
}
}
if (Math.abs(thex) > 8) {
thex = (thex / Math.abs(thex)) * 8;
}
this._x = this._x + thex;
this._y = ypos + (2 * Math.sin(counter / 6));
counter++;
thex = thex / 1.05;
if (Math.abs(thex) < 0.7) {
thex = 0;
}
if ((((!isloaded) || (isloaded == 3)) && (_parent.char.ground)) && (_parent.char.myfloor > 100)) {
_parent.char._x = _parent.char._x + thex;
}
docked = 0;
i = 1;
while (i < (_parent.docks + 1)) {
dock = eval ("_parent.dock" + i);
if (((this._x + 50) > dock._x) && ((this._x + 3) < (dock._x + dock._width))) {
docked = 1;
}
if (((this._x + 30) > dock._x) && ((oldx + 30) <= dock._x)) {
this._x = dock._x - 30;
thex = 0;
} else if (((this._x + 25) < (dock._x + dock._width)) && ((oldx + 25) >= (dock._x + dock._width))) {
this._x = (dock._x + dock._width) - 25;
thex = 0;
}
i++;
}
if ((isloaded > 1) && (docked)) {
_parent.guy1.exclaim._alpha = 100;
} else {
_parent.guy1.exclaim._alpha = 0;
}
if ((isloaded == 1) || (isloaded == 2)) {
_parent.char._y = this._y + 1.5;
_parent.char._x = this._x + 20;
}
_parent.boat1._x = this._x - 13.7;
_parent.boat1._y = this._y + 44.5;
}
}
Instance of Symbol 500 MovieClip "gate1" in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
frame = 1;
hit = 0;
thing = 0;
}
onClipEvent (enterFrame) {
if (((hit == 1) || (!((frame == 1) || (frame == 15)))) && (!thing)) {
frame++;
if (frame >= 15) {
thing = 1;
frame = 15;
}
} else if (thing && ((!hit) || (!((frame == 1) || (frame == 15))))) {
frame--;
if (frame <= 1) {
thing = 0;
frame = 1;
}
}
gotoAndStop(frame);
}
Instance of Symbol 500 MovieClip "gate2" in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
frame = 1;
hit = 0;
thing = 0;
}
onClipEvent (enterFrame) {
if (((hit == 1) || (!((frame == 1) || (frame == 15)))) && (!thing)) {
frame++;
if (frame >= 15) {
thing = 1;
frame = 15;
}
} else if (thing && ((!hit) || (!((frame == 1) || (frame == 15))))) {
frame--;
if (frame <= 1) {
thing = 0;
frame = 1;
}
}
gotoAndStop(frame);
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit && (_currentframe == 1)) {
gotoAndStop (2);
i = 1;
while (i < 6) {
_parent["air" + i].air.stop();
_parent["air" + i].used = 1;
_parent["air" + i].pic._alpha = 0;
i++;
}
_parent.vent14._y = 5000;
_parent.vent12._y = 5000;
_parent.vent13._y = 5000;
}
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
hit = 0;
}
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
_parent.gate1.hit = 1;
_parent.gate2.hit = 1;
_parent.wall61._y = -20000;
_parent.wall60._y = -20000;
} else {
if (_currentframe == 2) {
gotoAndPlay (3);
}
_parent.gate2.hit = 0;
_parent.gate1.hit = 0;
_parent.wall61._y = -15092;
_parent.wall50._y = -15092;
}
hit = 0;
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (hit) {
gotoAndStop (2);
_parent.power2._y = -15684.7;
}
}
Instance of Symbol 500 MovieClip "floorish1" in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
frame = 1;
hit = 0;
thing = 0;
}
onClipEvent (enterFrame) {
if (((hit == 1) || (!((frame == 1) || (frame == 15)))) && (!thing)) {
frame++;
if (frame >= 15) {
thing = 1;
frame = 15;
}
} else if (thing && ((!hit) || (!((frame == 1) || (frame == 15))))) {
frame--;
if (frame <= 1) {
thing = 0;
frame = 1;
}
}
gotoAndStop(frame);
}
Instance of Symbol 342 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (load) {
hit = 0;
}
onClipEvent (enterFrame) {
if (!_parent.paused) {
if (hit) {
gotoAndStop (2);
_parent.floor53._x = 9000;
_parent.floorish1.hit = 1;
} else {
if (_currentframe == 2) {
gotoAndPlay (3);
}
_parent.floor53._x = 5264.6;
_parent.floorish1.hit = 0;
}
hit = 0;
}
}
Instance of Symbol 534 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_parent.char)) {
_alpha = 30;
} else {
_alpha = 100;
}
}
Instance of Symbol 534 MovieClip in Symbol 536 MovieClip Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_parent.char) && (_parent.char._y > -13060)) {
_alpha = 30;
} else {
_alpha = 100;
}
}
Instance of Symbol 317 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 284 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 301 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_y = -100;
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score1 >= 100) {
gotoAndStop((_parent._parent.game.score1 % 10) + 1);
_y = -2.9;
}
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_y = -100;
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score1 >= 100) {
_y = -2.9;
gotoAndStop((Math.floor(_parent._parent.game.score1 / 10) % 10) + 1);
} else if (_parent._parent.game.score1 >= 10) {
_y = -2.9;
gotoAndStop((_parent._parent.game.score1 % 10) + 1);
}
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent.game.score1 < 10) {
gotoAndStop(_parent._parent.game.score1 + 1);
} else if (_parent._parent.game.score1 < 100) {
gotoAndStop(Math.floor(_parent._parent.game.score1 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent._parent.game.score1 / 100) + 1);
}
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score1 < 10) {
gotoAndStop(_parent._parent.game.score1 + 1);
} else if (_parent._parent.game.score1 < 100) {
gotoAndStop(Math.floor(_parent._parent.game.score1 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent._parent.game.score1 / 100) + 1);
}
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_y = -100;
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score2 >= 100) {
gotoAndStop((_parent._parent.game.score2 % 10) + 1);
_y = 28.9;
}
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_y = -100;
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score2 >= 100) {
_y = 28.9;
gotoAndStop((Math.floor(_parent._parent.game.score2 / 10) % 10) + 1);
} else if (_parent._parent.game.score2 >= 10) {
_y = 28.9;
gotoAndStop((_parent._parent.game.score2 % 10) + 1);
}
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent.game.score2 < 10) {
gotoAndStop(_parent._parent.game.score2 + 1);
} else if (_parent._parent.game.score2 < 100) {
gotoAndStop(Math.floor(_parent._parent.game.score2 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent._parent.game.score2 / 100) + 1);
}
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score2 < 10) {
gotoAndStop(_parent._parent.game.score2 + 1);
} else if (_parent._parent.game.score2 < 100) {
gotoAndStop(Math.floor(_parent._parent.game.score2 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent._parent.game.score2 / 100) + 1);
}
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_y = -100;
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score3 >= 100) {
gotoAndStop((_parent._parent.game.score3 % 10) + 1);
_y = 61.9;
}
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_y = -100;
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score3 >= 100) {
_y = 61.9;
gotoAndStop((Math.floor(_parent._parent.game.score3 / 10) % 10) + 1);
} else if (_parent._parent.game.score3 >= 10) {
_y = 61.9;
gotoAndStop((_parent._parent.game.score3 % 10) + 1);
}
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent.game.score3 < 10) {
gotoAndStop(_parent._parent.game.score3 + 1);
} else if (_parent._parent.game.score3 < 100) {
gotoAndStop(Math.floor(_parent._parent.game.score3 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent._parent.game.score3 / 100) + 1);
}
}
onClipEvent (enterFrame) {
if (_parent._parent.game.score3 < 10) {
gotoAndStop(_parent._parent.game.score3 + 1);
} else if (_parent._parent.game.score3 < 100) {
gotoAndStop(Math.floor(_parent._parent.game.score3 / 10) + 1);
} else {
gotoAndStop(Math.floor(_parent._parent.game.score3 / 100) + 1);
}
}
Instance of Symbol 435 MovieClip "n1" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 437 MovieClip "n2" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 439 MovieClip "n3" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 441 MovieClip "n4" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 443 MovieClip "n5" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 445 MovieClip "n6" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 447 MovieClip "n7" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 449 MovieClip "n8" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 451 MovieClip "n9" in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
_alpha = 20;
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop((_parent._parent.game.seconds % 10) + 1);
}
onClipEvent (enterFrame) {
gotoAndStop((_parent._parent.game.seconds % 10) + 1);
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(Math.floor(_parent._parent.game.seconds / 10) + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(Math.floor(_parent._parent.game.seconds / 10) + 1);
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop((_parent._parent.game.minutes % 10) + 1);
}
onClipEvent (enterFrame) {
gotoAndStop((_parent._parent.game.minutes % 10) + 1);
}
Instance of Symbol 563 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(Math.floor(_parent._parent.game.minutes / 10) + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(Math.floor(_parent._parent.game.minutes / 10) + 1);
}
Instance of Symbol 565 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 80))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent._parent.game._x = 0;
_parent._parent.game._y = 0;
_parent._parent.game.pauser = 0;
_parent._parent.texted.gotoAndStop(1);
_parent._parent.tester._y = -1;
_parent._parent.game.gotoAndStop(5);
}
down = 0;
hit = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 10)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
e._y = e._y - ((e._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
e._y = e._y - ((e._y - 0) / 4);
}
}
Instance of Symbol 159 MovieClip in Symbol 566 MovieClip Frame 2
onClipEvent (load) {
count = 0;
hit = 0;
down = 0;
}
onClipEvent (enterFrame) {
if ((((_parent._xmouse > this._x) && (_parent._xmouse < (this._x + 80))) && (_root._ymouse > this._y)) && (_root._ymouse < (this._y + 22))) {
hit = 1;
} else {
hit = 0;
}
onMouseDown = function () {
if (hit) {
down = 1;
}
};
if (down && (hit)) {
_alpha = 80;
} else {
_alpha = 100;
}
onMouseUp = function () {
if (down && (hit)) {
_parent._parent.game.level = 0;
_parent._parent.game.gotoAndStop(1);
_parent._parent.game._x = 0;
_parent._parent.game._y = 0;
_parent._parent.game.pauser = 0;
_parent._parent.texted.gotoAndStop(1);
_parent._parent.tester._y = -1;
_parent._parent.game.stopper.stop();
_parent._parent.game.sm.start(0, 999);
_parent._parent.game.sm.setVolume(_parent._parent.game.maxvol);
_parent.gotoAndStop(1);
}
down = 0;
hit = 0;
_alpha = 100;
};
if (hit || (down)) {
count++;
if (count == 100) {
count = 0;
}
a._y = a._y - ((a._y - (20 * Math.sin((Math.PI * count) / 50))) / 3);
b._y = b._y - ((b._y - (20 * Math.sin((Math.PI * (count + 10)) / 50))) / 3);
c._y = c._y - ((c._y - (20 * Math.sin((Math.PI * (count + 20)) / 50))) / 3);
d._y = d._y - ((d._y - (20 * Math.sin((Math.PI * (count + 30)) / 50))) / 3);
} else {
a._y = a._y - ((a._y - 0) / 4);
b._y = b._y - ((b._y - 0) / 4);
c._y = c._y - ((c._y - 0) / 4);
d._y = d._y - ((d._y - 0) / 4);
}
}