Frame 1
function Initialize() {
var _local1 = _root;
_local1.loadinginfo._visible = false;
_local1.crash1.stop();
_local1.crash2.stop();
_local1.crash3.stop();
_local1.bum.stop();
_local1.victorysplash.stop();
_local1.men10.stop();
_local1.men10._visible = false;
initial = 0;
done = false;
RX = 19;
crashed = false;
bumLive = false;
spin = false;
men = "infinite";
runcount = 24;
RY = 152;
bumcrash = false;
Speed = 7;
crashcount = 0;
keyjump = 0;
once = 0;
bigjump = 0;
_local1.smalldown = 0;
_local1.bigdown = 0;
sendScale = 100;
lvlfinished = false;
one = 30;
rot = 0;
wait = true;
level = 1;
pause = 15;
gullLive = false;
gulltime = 0;
publishedLevel = 1;
_local1.Rman._visible = true;
gullwait = false;
hornSound = new Sound();
hornSound.attachSound("beachHorn");
hornSound.setVolume(50);
runningSound = new Sound();
runningSound.attachSound("runman");
runningSound.setVolume(70);
ouchSound = new Sound();
ouchSound.attachSound("ouchman");
ouchSound.setVolume(70);
clapSound = new Sound();
clapSound.attachSound("clapman");
clapSound.setVolume(70);
SeagullSound = new Sound();
SeagullSound.attachSound("Sgull");
SeagullSound.setVolume(70);
cashSound = new Sound();
cashSound.attachSound("cashregister");
cashSound.setVolume(70);
cableSound = new Sound();
cableSound.attachSound("tram");
cableSound.setVolume(70);
changeSound = new Sound();
changeSound.attachSound("spare");
changeSound.setVolume(70);
}
function Running() {
var _local1 = _root;
if (((speed == 5) && (smalldown == 0)) && (bigdown == 0)) {
runcount++;
if (runcount > 25) {
runcount = 0;
runningsound.start();
}
}
if (wait == true) {
speed = 0;
}
pause = pause - 1;
if (pause > 0) {
speed = 0;
}
if ((pause < 0) && (wait == false)) {
pause = 0;
speed = 5;
}
if (bumcrash == true) {
speed = 0;
}
RX = RX + speed;
if (RX > 775) {
_local1.runningsound.stop();
_local1.clapSound.start();
FindLevel();
lvlfinished = true;
}
_local1.RMan._x = RX;
_local1.RMan._y = RY;
}
function JumpEngine() {
var _local1 = _root;
if (((lvlfinished == false) && (pause < 1)) && (crashed == false)) {
if ((smalldown > 0) || (bigdown > 0)) {
if (crashed == false) {
runningsound.stop();
}
RY = RY - loft;
loft = loft - gravity;
_local1.Rman._visible = false;
_local1.Jman._alpha = 100;
_local1.Jman._x = RX;
_local1.Jman._y = RY;
_local1.Jman._visible = true;
if (spin == true) {
_local1.Jman._rotation = _local1.Jman._rotation + 11;
}
if (RY >= startRY) {
RY = startRY;
_local1.smalldown = 0;
_local1.bigdown = 0;
loft = 0;
_local1.Jman._visible = false;
_local1.Rman._x = RX;
_local1.Rman._y = RY;
runcount = 30;
_local1.Rman._visible = true;
spin = false;
}
}
}
}
function CollisionCheck() {
var _local1 = _root;
if ((publishedLevel > 0) && (publishedLevel < 5)) {
if (_local1.Level1.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level1.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
if (_local1.Level1.hitTest(RX - 10, RY - 14, true)) {
Crash();
}
if (_local1.Level1.hitTest(RX - 8, RY - 1, true)) {
Crash();
}
}
if ((publishedLevel > 4) && (publishedLevel < 9)) {
if (_local1.Level2.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level2.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level2.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level2.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 8) && (publishedLevel < 13)) {
if (_local1.Level3.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level3.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level3.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level3.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 12) && (publishedLevel < 17)) {
if (_local1.Level4.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level4.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level4.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level4.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 16) && (publishedLevel < 21)) {
if (_local1.Level5.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level5.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level5.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level5.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 20) && (publishedLevel < 25)) {
if (_local1.Level6.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level6.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level6.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level6.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 24) && (publishedLevel < 29)) {
if (_local1.Level7.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level7.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level7.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level7.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 28) && (publishedLevel < 33)) {
if (_local1.Level8.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level8.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level8.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level8.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 32) && (publishedLevel < 37)) {
if (_local1.Level9.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level9.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level9.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level9.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 36) && (publishedLevel < 41)) {
if (_local1.Level10.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level10.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level10.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level10.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 40) && (publishedLevel < 45)) {
if (_local1.Level11.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level11.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level11.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level11.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 44) && (publishedLevel < 49)) {
if (_local1.Level12.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level12.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level12.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level12.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((publishedLevel > 48) && (publishedLevel < 53)) {
if (_local1.Level13.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level13.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level13.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level13.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
}
function Crash() {
var _local1 = _root;
if (crashed == false) {
WhichCrash = random(3);
cx = rx;
cy = ry;
_local1.runningsound.stop();
_local1.ouchsound.start();
if (bumcrash == true) {
changeSound.start();
}
}
_local1.crashed = true;
_local1.speed = 0;
_local1.loft = 0;
_local1.pause = 15;
_local1.Rman._alpha = 50;
_local1.Rman.stop();
_local1.Jman._alpha = 30;
if (whichcrash == 0) {
_local1.crash1._x = cX;
_local1.crash1._y = cY;
_local1.crash1.play();
}
if (whichcrash == 1) {
_local1.crash2._x = cX;
_local1.crash2._y = cY;
_local1.crash2.play();
}
if (whichcrash == 2) {
_local1.crash3._x = cX;
_local1.crash3._y = cY;
_local1.crash3.play();
}
}
function SendBack() {
var _local1 = _root;
_local1.MenBox._visible = true;
_local1.MenBox._xscale = 150;
_local1.MenBox._yscale = 150;
_local1.Rman._visible = false;
_local1.Jman._x = RX;
_local1.Jman._y = RY;
_local1.Jman._visible = true;
speed = 0;
RX = RX - 20;
RY = RY + 3.75;
rot = rot + 14;
Sendscale = SendScale + one;
if (RX < 400) {
one = -30;
}
_local1.Jman._xscale = SendScale;
_local1.Jman._yscale = sendScale;
_local1.Jman._rotation = 0;
_local1.JMan._x = RX;
_local1.JMan._y = RY;
if (RX < 25) {
nextlevel();
}
}
function NextLevel() {
var _local1 = _root;
pause = 15;
level = level + 1;
publishedLevel++;
_local1.Jman._visible = false;
RX = 19;
lvlfinished = false;
_local1.Jman._rotation = 0;
one = 30;
rot = 0;
_local1.smalldown = 0;
_local1.bigdown = 0;
FindLevel();
_local1.startRY = _local1.RY;
_local1.menBox._xscale = 100;
_local1.menBox._yscale = 100;
_local1.MenBox._x = 742;
_local1.MenBox._y = 40;
runcount = 30;
_local1.Rman._x = rx;
_local1.Rman._y = ry;
_local1.Rman._visible = true;
if (bumLive == false) {
BumLaunch();
}
}
function BumLaunch() {
var _local1 = _root;
rb = random(3);
if (rb == 1) {
bumspeed = random(3) + 1;
_local1.bum._x = 780;
_local1.bum._y = ry;
bumlive = true;
_local1.bum._visible = true;
_local1.bum.play();
}
}
function BumEngine() {
var _local1 = _root;
if ((bumcrash == false) && (lvlfinished == false)) {
_local1.Bum._x = _local1.Bum._x - bumspeed;
if (_local1.Bum._x < 105) {
bumlive = false;
_local1.bum._visible = false;
}
if (_local1.Bum.hitTest(_local1.Rman)) {
} else if (_local1.Bum.hitTest(_local1.Jman)) {
Crash();
}
}
}
function FindLevel() {
if (level == 1) {
RY = 152;
}
if (level == 2) {
RY = 290;
}
if (level == 3) {
RY = 435;
}
if (level == 4) {
RY = 580;
}
}
function NewScreen() {
var _local1 = _root;
if (publishedLevel == 4) {
_local1.Level1._visible = false;
_local1.Level1._y = 2000;
_local1.Level2._x = 400;
_local1.Level2._y = 300;
}
if (publishedLevel == 8) {
_local1.Level2._visible = false;
_local1.Level2._y = 2000;
_local1.Level3._x = 400;
_local1.Level3._y = 300;
}
if (publishedLevel == 12) {
_local1.Level3._visible = false;
_local1.Level3._y = 2000;
_local1.Level4._x = 400;
_local1.Level4._y = 300;
}
if (publishedLevel == 16) {
_local1.Level4._visible = false;
_local1.Level4._y = 2000;
_local1.Level5._x = 400;
_local1.Level5._y = 300;
}
if (publishedLevel == 20) {
_local1.Level5._visible = false;
_local1.Level5._y = 2000;
_local1.Level6._x = 400;
_local1.Level6._y = 300;
}
if (publishedLevel == 24) {
_local1.Level6._visible = false;
_local1.Level6._y = 2000;
_local1.Level7._x = 400;
_local1.Level7._y = 300;
}
if (publishedLevel == 28) {
_local1.Level7._visible = false;
_local1.Level7._y = 2000;
_local1.Level8._x = 400;
_local1.Level8._y = 300;
}
if (publishedLevel == 32) {
_local1.Level8._visible = false;
_local1.Level8._y = 2000;
_local1.Level9._x = 400;
_local1.Level9._y = 300;
}
if (publishedLevel == 36) {
_local1.Level9._visible = false;
_local1.Level9._y = 2000;
_local1.Level10._x = 400;
_local1.Level10._y = 300;
}
if (publishedLevel == 40) {
_local1.Level10._visible = false;
_local1.Level10._y = 2000;
_local1.Level11._x = 400;
_local1.Level11._y = 300;
}
if (publishedLevel == 44) {
_local1.Level11._visible = false;
_local1.Level11._y = 2000;
_local1.Level12._x = 400;
_local1.Level12._y = 300;
}
if (publishedLevel == 48) {
_local1.Level12._visible = false;
_local1.Level12._y = 2000;
_local1.Level13._x = 400;
_local1.Level13._y = 300;
}
if (publishedLevel == 52) {
_local1.VictorySplash._y = 280;
Mouse.show();
_local1.VictorySplash._x = 400;
_local1.speed = 0;
publishedlevel = 100;
_local1.wait = true;
}
lvlfinished = false;
level = 1;
publishedLevel++;
_local1.Jman._visible = false;
RX = 19;
_local1.Rman._xscale = 100;
_local1.Rman._yscale = 100;
_local1.Jman._rotation = 0;
one = 30;
rot = 0;
_local1.smalldown = 0;
_local1.bigdown = 0;
FindLevel();
_local1.startRY = _local1.RY;
_local1.Rman._visible = true;
_local1.wait = true;
_local1.anykey._y = 300;
runcount = 24;
_local1.SeaGullL._visible = false;
_local1.SeaGullR._visible = false;
gullLive = false;
gullwait = false;
bumlive = false;
bum._visible = false;
}
function Main() {
var _local1 = _root;
if (_local1.done == false) {
if (bumlive == true) {
bumEngine();
}
if (crashed == true) {
CrashEngine();
}
if (lvlfinished == true) {
if (level == 4) {
NewScreen();
} else {
SendBack();
}
}
}
if (_local1.done == true) {
_local1.bum._visible = false;
_local1.gull._visible = false;
_local1.rman._visible = false;
}
}
function CrashEngine() {
var _local1 = _root;
if (whichcrash == 0) {
if ((smalldown > 0) || (bigdown > 0)) {
cY = cY + 4;
_local1.crash1._x = cX;
_local1.crash1._y = cY;
if (cY >= startRY) {
cY = startRY;
_local1.smalldown = 0;
_local1.bigdown = 0;
loft = 0;
runcount = 30;
spin = false;
}
}
}
if (whichcrash == 1) {
if ((smalldown > 0) || (bigdown > 0)) {
cY = cY + 4;
_local1.crash2._x = cX;
_local1.crash2._y = cY;
if (cY >= startRY) {
cY = startRY;
_local1.smalldown = 0;
_local1.bigdown = 0;
loft = 0;
runcount = 30;
spin = false;
}
}
}
if (whichcrash == 2) {
if ((smalldown > 0) || (bigdown > 0)) {
cY = cY + 4;
_local1.crash3._x = cX;
_local1.crash3._y = cY;
if (cY >= startRY) {
cY = startRY;
_local1.smalldown = 0;
_local1.bigdown = 0;
loft = 0;
runcount = 30;
spin = false;
}
}
}
}
function InitGull() {
var _local1 = _root;
if (gullwait == false) {
GullLive = true;
GullX = random(700) + 50;
GullY = (random(500) + RY) - 100;
if (GullY > 580) {
GullLive = false;
} else {
GUllTime = random(400) + 100;
rightgull = true;
_local1.SeaGullR._visible = true;
_local1.SeaGullR._x = GullX;
_local1.SeaGullR._y = GullY;
SeagullSound.start();
}
}
}
function Gull() {
var _local1 = _root;
r = random(250);
if ((((r == 1) && (wait == false)) && (publishedLevel > 4)) && (gullLive == false)) {
InitGull();
}
if (gullLive == true) {
GullTime = Gulltime - 1;
rr = random(60);
if (rr == 1) {
if (rightgull == true) {
_local1.SeaGullR._visible = false;
_local1.SeaGullL._x = GullX;
_local1.SeaGullL._y = GullY;
_local1.SeaGullL._visible = true;
rightgull = false;
} else {
_local1.SeaGullL._visible = false;
_local1.SeaGullR._x = GullX;
_local1.SeaGullR._y = GullY;
_local1.SeaGullR._visible = true;
rightgull = true;
}
}
if (GullTime < 0) {
GullLive = false;
_local1.SeaGullR._visible = false;
_local1.SeaGullL._visible = false;
}
if (pause < 1) {
if (_local1.SeaGullR.hitTest(_local1.Rman)) {
Cash();
}
if (_local1.SeaGullR.hitTest(_local1.Jman)) {
Cash();
}
if (_local1.SeaGullL.hitTest(_local1.Rman)) {
Cash();
}
if (_local1.SeaGullL.hitTest(_local1.Jman)) {
Cash();
}
}
}
}
function Cash() {
var _local1 = _root;
if ((pause < 1) && (gullLive == true)) {
pause = 30;
_local1.cashSound.start();
_local1.men10._x = 720;
_local1.men10._y = 60;
_local1.men10._visible = true;
_local1.men10.play();
gullLive = false;
gullwait = true;
}
}
if (initial < 1) {
Initialize();
}
if ((initial > 1) && (lvlfinished == false)) {
JumpEngine();
CollisionCheck();
Running();
Gull();
}
Main();
Instance of Symbol 62 MovieClip "mouse" in Frame 1
onClipEvent (keyDown) {
if (_root.pause < 1) {
if (Key.isDown(37) && (_root.bigdown == 0)) {
_root.smalldown = _root.smalldown + 1;
if (_root.smalldown == 1) {
_root.startRY = _root.RY;
_root.loft = 8;
_root.gravity = 0.6;
_root.Jman._rotation = 0;
_root.spin = false;
r = random(36);
if (r == 1) {
_root.spin = true;
}
}
}
if (Key.isDown(39) && (_root.smalldown == 0)) {
_root.bigdown = _root.bigdown + 1;
if (_root.bigdown == 1) {
_root.startRY = _root.RY;
_root.loft = 10.5;
_root.gravity = 0.6;
_root.Jman._rotation = 0;
_root.spin = false;
r = random(36);
if (r == 1) {
_root.spin = true;
}
}
}
}
}
Instance of Symbol 138 MovieClip "AnyKey" in Frame 1
onClipEvent (keyDown) {
if (_root.wait == true) {
if (Key.isDown(38)) {
_root.wait = false;
_root.anykey._y = 2000;
_root.speed = 5;
_root.pause = 15;
if (_root.initial == 0) {
_root.cableSound.stop();
unloadMovie (_root.splash);
_root.initial = 2;
}
}
}
}
Symbol 82 Button
on (release) {
_root.wait = false;
_root.anykey._y = 2000;
_root.speed = 5;
_root.pause = 15;
_root.cableSound.stop();
unloadMovie (_root.splash);
_root.initial = 2;
_root.scoretable._visible = false;
_root.scoreload._visible = false;
_root.refreshmovie._visible = false;
unloadMovie (_root.scoreload);
unloadMovie (_root.refreshmovie);
}
Symbol 88 MovieClip Frame 2
_root.loader._visible = false;
_root.soundstart++;
_root.cableSound.start();
_root.splash._y = 230;
_root.MenBox._x = 742;
_root.MenBox._y = 40;
_root.LevelBox._y = 40;
_root.Men._xscale = 100;
_root.Men._yscale = 100;
_root.Level1._x = 400;
_root.Level1._y = 300;
_root.loader.stop();
Symbol 101 MovieClip Frame 1
_root.crash1._visible = true;
Symbol 101 MovieClip Frame 55
_root.RX = 19;
_root.smalldown = 0;
_root.bigdown = 0;
_root.Speed = 5;
_root.FindLevel();
_root.Jman._visible = false;
_root.Rman.play();
_root.crashcount = 0;
_root.crashed = false;
if (_root.men < 0) {
_root.DeadSplash._y = 280;
_root.done = true;
_root.speed = 0;
_root.wait = true;
}
_root.Rman._alpha = 100;
_root.crash1.stop();
_root.crash1._visible = false;
_root.Rman._x = RX;
_root.Rman._alpha = 100;
_root.Jman._y = 2000;
_root.Rman._visible = true;
if (_root.bumcrash == true) {
_root.bumcrash = false;
_root.bum.stop();
_root.bumlive = false;
_root.bum._visible = false;
}
Symbol 113 MovieClip Frame 1
_root.crash2._visible = true;
Symbol 113 MovieClip Frame 55
_root.RX = 19;
_root.smalldown = 0;
_root.bigdown = 0;
_root.Speed = 5;
_root.FindLevel();
_root.Jman._visible = false;
_root.Rman.play();
_root.crashcount = 0;
_root.crashed = false;
_root.crash2.stop();
_root.crash2._visible = false;
_root.Rman._x = RX;
_root.Rman._visible = true;
_root.Jman._y = 2000;
_root.Rman._alpha = 100;
if (_root.bumcrash == true) {
_root.bumcrash = false;
_root.bumlive = false;
_root.bum.stop();
_root.bum._visible = false;
}
Symbol 120 MovieClip Frame 1
_root.crash3._visible = true;
Symbol 120 MovieClip Frame 85
_root.RX = 19;
_root.smalldown = 0;
_root.bigdown = 0;
_root.Speed = 5;
_root.FindLevel();
_root.Jman._visible = false;
_root.Rman.play();
_root.crashcount = 0;
_root.crashed = false;
_root.crash3.stop();
_root.crash3._visible = false;
_root.Rman._x = RX;
_root.Rman._visible = true;
_root.Jman._y = 2000;
_root.Rman._alpha = 100;
if (_root.bumcrash == true) {
_root.bumcrash = false;
_root.bum.stop();
_root.bumlive = false;
_root.bum._visible = false;
}
Symbol 125 MovieClip Frame 30
_root.men10._visible = false;
speed = 5;
_root.SeaGullL._visible = false;
_root.SeaGullR._visible = false;
_root.men10.stop();
Symbol 158 MovieClip Frame 1
_root.Rman._visible = false;
_root.Jman._visible = false;