Frame 1
_root.VolumeOff = false;
Frame 2
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
gotoAndPlay (1);
}
Frame 10
function Initialize() {
var _local1 = _root;
cheat = false;
_local1.cheatcount = 0;
_local1.soundstart++;
_local1.cableSound.start();
_local1.splash._y = 230;
_local1.MenBox._x = 742;
_local1.MenBox._y = 40;
_local1.LevelBox._y = 40;
_local1.Men._xscale = 100;
_local1.Men._yscale = 100;
_local1.Level1._x = 400;
_local1.Level1._y = 300;
_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 = 9;
publishedLevel = 1;
runcount = 24;
RY = 152;
bumcrash = false;
Speed = 5;
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;
insideLevel = 1;
_local1.Level2._y = 2000;
_local1.Level3._y = 2000;
_local1.Level4._y = 2000;
_local1.Level5._y = 2000;
_local1.Level6._y = 2000;
_local1.Level7._y = 2000;
_local1.Level8._y = 2000;
_local1.Level9._y = 2000;
_local1.Level10._y = 2000;
_local1.Level11._y = 2000;
_local1.Level12._y = 2000;
_local1.Level13._y = 2000;
_local1.Level14._y = 2000;
_local1.Level15._y = 2000;
_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) and (smalldown == 0)) and (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) and (wait == false)) {
pause = 0;
speed = 5;
}
if (bumcrash == true) {
speed = 0;
}
RX = RX + speed;
if (RX > 775) {
_local1.runningsound.stop();
_local1.clapSound.start();
if ((publishedLevel < 64) and (level < 4)) {
men = men + 1;
}
FindLevel();
lvlfinished = true;
}
_local1.RMan._x = RX;
_local1.RMan._y = RY;
}
function JumpEngine() {
var _local1 = _root;
if (((lvlfinished == false) and (pause < 1)) and (crashed == false)) {
if ((smalldown > 0) or (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 (cheat == false) {
if ((insideLevel > 0) and (insideLevel < 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 ((insideLevel > 4) and (insideLevel < 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 ((insideLevel > 8) and (insideLevel < 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 ((insideLevel > 12) and (insideLevel < 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 ((insideLevel > 16) and (insideLevel < 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 ((insideLevel > 20) and (insideLevel < 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 ((insideLevel > 24) and (insideLevel < 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 ((insideLevel > 28) and (insideLevel < 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 ((insideLevel > 32) and (insideLevel < 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 ((insideLevel > 36) and (insideLevel < 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 ((insideLevel > 40) and (insideLevel < 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 ((insideLevel > 44) and (insideLevel < 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 ((insideLevel > 48) and (insideLevel < 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();
}
}
if ((insideLevel > 52) and (insideLevel < 57)) {
if (_local1.Level14.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level14.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level14.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level14.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((insideLevel > 56) and (insideLevel < 61)) {
if (_local1.Level15.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level15.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level15.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level15.hitTest(RX + 8, RY - 24, true)) {
Crash();
}
}
if ((insideLevel > 60) and (insideLevel < 65)) {
if (_local1.Level16.hitTest(RX + 12, RY - 1, true)) {
Crash();
}
if (_local1.Level16.hitTest(RX - 10, RY - 1, true)) {
Crash();
}
if (_local1.Level16.hitTest(RX - 8, RY - 14, true)) {
Crash();
}
if (_local1.Level16.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;
insideLevel++;
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) and (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)) {
bumcrash = true;
Crash();
} else if (_local1.Bum.hitTest(_local1.Jman)) {
bumcrash = true;
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 (insideLevel == 4) {
_local1.Level1._y = 2000;
_local1.Level2._visible = true;
_local1.Level2._x = 400;
_local1.Level2._y = 300;
}
if (insideLevel == 8) {
_local1.Level2._y = 2000;
_local1.Level3._visible = true;
_local1.Level3._x = 400;
_local1.Level3._y = 300;
}
if (insideLevel == 12) {
_local1.Level3._y = 2000;
_local1.Level4._visible = true;
_local1.Level4._x = 400;
_local1.Level4._y = 300;
}
if (insideLevel == 16) {
_local1.Level4._y = 2000;
_local1.Level5._visible = true;
_local1.Level5._x = 400;
_local1.Level5._y = 300;
}
if (insideLevel == 20) {
_local1.Level5._y = 2000;
_local1.Level6._visible = true;
_local1.Level6._x = 400;
_local1.Level6._y = 300;
}
if (insideLevel == 24) {
_local1.Level6._visible = false;
_local1.Level6._y = 2000;
_local1.Level7._visible = true;
_local1.Level7._x = 400;
_local1.Level7._y = 300;
}
if (insideLevel == 28) {
_local1.Level7._y = 2000;
_local1.Level8._visible = true;
_local1.Level8._x = 400;
_local1.Level8._y = 300;
}
if (insideLevel == 32) {
_local1.Level8._y = 2000;
_local1.Level9._visible = true;
_local1.Level9._x = 400;
_local1.Level9._y = 300;
}
if (insideLevel == 36) {
_local1.Level9._y = 2000;
_local1.Level10._visible = true;
_local1.Level10._x = 400;
_local1.Level10._y = 300;
}
if (insideLevel == 40) {
_local1.Level10._y = 2000;
_local1.Level11._visible = true;
_local1.Level11._x = 400;
_local1.Level11._y = 300;
}
if (insideLevel == 44) {
_local1.Level11._y = 2000;
_local1.Level12._visible = true;
_local1.Level12._x = 400;
_local1.Level12._y = 300;
}
if (insideLevel == 48) {
_local1.Level12._y = 2000;
_local1.Level13._visible = true;
_local1.Level13._x = 400;
_local1.Level13._y = 300;
}
if (insideLevel == 52) {
_local1.Level13._y = 2000;
_local1.Level14._visible = true;
_local1.Level14._x = 400;
_local1.Level14._y = 300;
}
if (insideLevel == 56) {
_local1.Level14._y = 2000;
_local1.Level15._visible = true;
_local1.Level15._x = 400;
_local1.Level15._y = 300;
}
if (insideLevel == 60) {
_local1.Level15._y = 2000;
_local1.Level16._x = 400;
_local1.Level16._y = 300;
_local1.Level16._visible = true;
}
if (insideLevel == 64) {
_local1.Level16._y = 2000;
_local1.Level1._x = 400;
_local1.Level1._y = 300;
_local1.Level1._visible = true;
insideLevel = 0;
gullChance = 1500;
_local1.NoFreeMen._y = 33;
}
lvlfinished = false;
level = 1;
insideLevel++;
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) or (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) or (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) or (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(200);
if ((((r == 1) and (wait == false)) and (insideLevel > 4)) and (gullLive == false)) {
InitGull();
}
if (gullLive == true) {
GullTime = Gulltime - 1;
rr = random(90);
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) and (gullLive == true)) {
pause = 30;
_local1.cashSound.start();
_local1.men10._x = 720;
_local1.men10._y = 60;
_local1.men10._visible = true;
_local1.men10.play();
men = men + 5;
gullLive = false;
gullwait = true;
}
}
if (initial < 1) {
Initialize();
}
if ((initial > 1) and (lvlfinished == false)) {
JumpEngine();
CollisionCheck();
Running();
Gull();
if (_root.PlayAgain == true) {
initial = 0;
Initialize();
splash._visible = false;
PlayAgain = false;
_root.anykey._y = 300;
}
}
Main();
Instance of Symbol 82 MovieClip "mouse" in Frame 10
onClipEvent (keyDown) {
if (_root.pause < 1) {
if (Key.isDown(37) and (_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) and (_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 199 MovieClip "AnyKey" in Frame 10
onClipEvent (keyDown) {
if (_root.wait == true) {
if (Key.isDown(38)) {
_root.wait = false;
_root.anykey._y = 2000;
_root.speed = 5;
_root.pause = 15;
_root.scoretable._visible = false;
if (_root.initial == 0) {
_root.cableSound.stop();
_root.splash._visible = false;
_root.initial = 2;
}
}
}
}
Frame 11
_root.gotoAndPlay("MainFrame");
Frame 12
stop();
submitButton.onRelease = function () {
var _local1 = _root;
myDate = new Date();
dd = myDate.getDate();
mm = myDate.getMonth();
yyyy = myDate.getFullYear();
TextDate = ((((dd + " ") + mm) + 1) + " ") + yyyy;
TextDate.text = TextDate;
_local1.scoreInput.text = _local1.publishedlevel;
sendData = new LoadVars();
sendData.playerOutput = _local1.playerInput.text;
sendData.scoreOutput = _local1.scoreInput.text;
sendData.dateOutput = _local1.TextDate.text;
statusText.text = "Sending Data...\nPlease wait.";
sendData.onLoad = function () {
var _local1 = _root;
if (sendData.result == "added") {
statusText.text = "Player Score Added.";
_local1.playerInput.text = "";
_local1.scoreInput.text = "";
_local1.TextDate.text = "";
} else {
statusText.text = "Error adding score.";
}
};
sendData.sendAndLoad("http://www.nationlocation.com/CityJumper/insertScore.php", sendData, "POST");
gotoAndPlay ("lastframe");
};
Frame 13
gotoAndPlay ("gameOver");
Frame 14
stop();
_root.scoretable._visible = false;
loadData = new LoadVars();
statusText.text = "Loading scoreboard.\nPlease wait.";
loadData.onLoad = function () {
if (loadData.result == "okay") {
statusText.text = "";
var _local1 = 0;
while (_local1 <= 29) {
positionText.text = positionText.text + ((_local1 + 1) + newline);
playerText.text = playerText.text + (loadData["player" + _local1] + newline);
scoreText.text = scoreText.text + (loadData["score" + _local1] + newline);
_local1++;
}
} else {
statusText.text = "Error loading data.";
}
};
loadData.load("http://www.nationlocation.com/CityJumper/showScores.php?" + Math.round(Math.random() * 1000000));
Symbol 13 MovieClip Frame 1
setProperty(this, _xscale , (_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 100 MovieClip Frame 1
_root.crash1._visible = true;
Symbol 100 MovieClip Frame 30
_root.RX = 19;
_root.smalldown = 0;
_root.bigdown = 0;
_root.Speed = 5;
_root.FindLevel();
_root.Jman._visible = false;
_root.men = _root.men - 1;
_root.Rman.play();
_root.crashcount = 0;
_root.crashed = false;
if (_root.men < 0) {
_root.done = true;
_root.speed = 0;
_root.wait = true;
_root.gotoAndPlay("gameOver");
}
_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 112 MovieClip Frame 1
_root.crash2._visible = true;
Symbol 112 MovieClip Frame 32
_root.RX = 19;
_root.smalldown = 0;
_root.bigdown = 0;
_root.Speed = 5;
_root.FindLevel();
_root.Jman._visible = false;
_root.men = _root.men - 1;
_root.Rman.play();
_root.crashcount = 0;
_root.crashed = false;
if (_root.men < 0) {
_root.done = true;
_root.speed = 0;
_root.wait = true;
_root.gotoAndPlay("gameOver");
}
_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 119 MovieClip Frame 1
_root.crash3._visible = true;
Symbol 119 MovieClip Frame 59
_root.RX = 19;
_root.smalldown = 0;
_root.bigdown = 0;
_root.Speed = 5;
_root.FindLevel();
_root.Jman._visible = false;
_root.men = _root.men - 1;
_root.Rman.play();
_root.crashcount = 0;
_root.crashed = false;
if (_root.men < 0) {
_root.done = true;
_root.speed = 0;
_root.wait = true;
_root.gotoAndPlay("gameOver");
}
_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 124 MovieClip Frame 30
_root.men10._visible = false;
speed = 5;
_root.SeaGullL._visible = false;
_root.SeaGullR._visible = false;
_root.men10.stop();
Symbol 147 Button
on (release) {
_root.loadinginfo._visible = true;
_root.scoretable.filename = "scores/demo.sco";
_root.scoretable.scoresize = 20;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = _root.name;
_root.scoretable.winscore = _root.publishedlevel;
_root.scoretable.loadVariables("http://www.nationlocation.com/cgi-bin/scores.php", "GET");
_root.scoretable._visible = true;
_root.stopscoreload();
_root.deadsplash._visible = false;
_root.soundstart++;
_root.cableSound.start();
_root.splash._visible = true;
_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.initial = 0;
_root.initialize();
}
Symbol 148 MovieClip Frame 1
_root.Rman._visible = false;
_root.Jman._visible = false;
Symbol 168 Button
on (release) {
_root.wait = false;
_root.anykey._y = 2000;
_root.speed = 5;
_root.pause = 30;
_root.cableSound.stop();
_root.splash._visible = false;
_root.initial = 2;
_root.scoretable._visible = false;
_root.scoreload._visible = false;
_root.refreshmovie._visible = false;
unloadMovie (_root.scoreload);
unloadMovie (_root.refreshmovie);
_root.gotoAndPlay("mainframe");
}
Symbol 181 MovieClip Frame 1
stop();
loadData = new LoadVars();
statusText.text = "Loading scoreboard.\nPlease wait.";
loadData.onLoad = function () {
if (loadData.result == "okay") {
statusText.text = "";
var _local1 = 0;
while (_local1 <= 29) {
positionText.text = positionText.text + ((_local1 + 1) + newline);
playerText.text = playerText.text + (loadData["player" + _local1] + newline);
scoreText.text = scoreText.text + (loadData["score" + _local1] + newline);
TextCounter.text = TextCounter.text + _local1;
_local1++;
}
} else {
statusText.text = "Error loading highscore data.";
}
};
loadData.load("http://www.nationlocation.com/CityJumper/showScores.php?" + Math.round(Math.random() * 1000000));
Symbol 209 Button
on (release) {
gotoAndPlay (14);
}
Symbol 229 Button
on (release) {
_root.PlayAgain = true;
_root.deadsplash._visible = false;
_root.soundstart++;
_root.cableSound.start();
_root.splash._visible = true;
_root.splash._y = 230;
_root.AnyKey._y = 530;
_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.gotoAndPlay("mainframe");
}