Frame 1
stop();
Frame 2
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
current_bytes = this.getBytesLoaded();
tot_bytes = this.getBytesTotal();
percent = int((current_bytes / tot_bytes) * 100) + "% ";
if (current_bytes >= tot_bytes) {
gotoAndStop (13);
}
Frame 3
this.gotoAndPlay("loader");
Frame 6
stop();
Frame 13
c1 = _url.indexOf("://") + 3;
c2 = _url.indexOf("/", c1);
domain = _url.substring(c1, c2);
if (((domain == "www.dreamarcade.com") || (domain == "216.55.181.4")) || (domain == "www.ultimatearcade.com")) {
gotoAndStop (24);
} else {
gotoAndStop (24);
}
Frame 24
stop();
Frame 25
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
score = 0;
_root.timer.timer = 0;
stop = "no";
direction = 1;
climb = 0;
ground = 1;
wallreset = 1;
swing = 0;
alive = 0;
kills = 0;
fx = new sound();
fx.attachSound("fx");
eat = new sound();
eat.attachSound("eat");
money = new sound();
money.attachSound("money");
Instance of Symbol 116 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.direction == 1)) {
_root.hero._x = -20;
}
}
Instance of Symbol 116 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.direction == 0)) {
_root.hero._x = 800;
}
}
Instance of Symbol 118 MovieClip "platform0" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.hero._y = 374;
}
}
Instance of Symbol 120 MovieClip "ladder" in Frame 25
onClipEvent (enterFrame) {
if (((_root.hero.hitTest(this) && (_root.hero._x > 630)) && (_root.hero._x < 670)) && (_root.alive == 0)) {
_root.climb = 1;
if (Key.isDown(38)) {
_root.hero._y = _root.hero._y - 5;
_root.hero.gotoAndStop("climb");
_root.hero.climb.gotoAndStop(2);
} else if (Key.isDown(40)) {
_root.hero._y = _root.hero._y + 5;
_root.hero.gotoAndStop("climb");
_root.hero.climb.gotoAndStop(2);
}
} else {
_root.climb = 0;
}
}
onClipEvent (enterFrame) {
if (((_root.hero._y < 374) && (Key.isDown(37))) && (_root.ground == 1)) {
_root.hero.falling = true;
} else if (((_root.hero._y < 374) && (Key.isDown(39))) && (_root.ground == 1)) {
_root.hero.falling = true;
}
}
Instance of Symbol 120 MovieClip "ground1" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.ground = 2;
}
}
Instance of Symbol 120 MovieClip "ground2" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.ground = 1;
}
}
Instance of Symbol 144 MovieClip "cannon" in Frame 25
onClipEvent (enterFrame) {
if (((_root.hero._x <= 500) && (_root.ground == 2)) && (this.cannon == "no")) {
this.gotoAndPlay("out");
} else if (((_root.hero._x >= 500) && (_root.ground == 2)) && (this.cannon == "yes")) {
this.gotoAndPlay("in");
}
}
Instance of Symbol 151 MovieClip "meat" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.ground == 2)) {
_root.eat.start();
_root.health.gotoAndStop(1);
this.gotoAndStop(2);
}
if (((((_root.kills == 10) || (_root.kills == 20)) || (_root.kills == 30)) || (_root.kills == 40)) || (_root.kills == 50)) {
this.gotoAndStop(1);
_root.kills = _root.kills + 1;
}
}
Instance of Symbol 152 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.ground == 1)) {
_root.score = _root.score + 150;
_root.money.start();
this.gotoAndStop(2);
}
}
Instance of Symbol 152 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.ground == 2)) {
_root.score = _root.score + 150;
_root.money.start();
this.gotoAndStop(2);
}
}
Instance of Symbol 152 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.ground == 2)) {
_root.score = _root.score + 150;
_root.money.start();
this.gotoAndStop(2);
_root.cannon.gotoAndPlay("shoot");
}
if (((((((((_root.kills == 11) || (_root.kills == 21)) || (_root.kills == 31)) || (_root.kills == 41)) || (_root.kills == 51)) || (_root.kills == 61)) || (_root.kills == 71)) || (_root.kills == 81)) || (_root.kills == 91)) {
this.gotoAndStop(1);
_root.kills = _root.kills + 1;
}
}
Instance of Symbol 163 MovieClip "shadows" in Frame 25
onClipEvent (enterFrame) {
if (_root.ground == 1) {
this._y = 375;
this._x = _root.hero._x;
if (_root.hero._y == 374) {
this._visible = 1;
} else {
this._visible = 0;
}
}
if (_root.ground == 2) {
this._y = 178;
this._x = _root.hero._x;
if ((_root.hero._y > 177) && (_root.hero._y < 180)) {
this._visible = 1;
} else {
this._visible = 0;
}
}
}
Instance of Symbol 209 MovieClip "hero" in Frame 25
onClipEvent (load) {
move = 0;
hit = "no";
lock = true;
this.mario.gotoAndStop(1);
}
onClipEvent (keyDown) {
this.mario.play();
}
onClipEvent (keyUp) {
this.mario.play();
}
onClipEvent (enterFrame) {
if (move == 0) {
if (lock) {
this._x = this._x + Xstep;
Ystep = 0;
Xstep = 0;
if ((Key.isDown(32) && (_root.alive == 0)) && (_root.swing == 0)) {
hit = "yes";
if (_root.direction == 0) {
this.gotoAndStop("hitleft");
this.alan.gotoAndPlay(2);
} else {
this.gotoAndStop("hitright");
this.alan.gotoAndPlay(2);
}
}
if ((Key.isDown(37) && (hit == "no")) && (_root.alive == 0)) {
Xstep = -12;
Ystep = 0;
this.gotoAndStop("left");
this.mario.play();
} else if ((Key.isDown(39) && (hit == "no")) && (_root.alive == 0)) {
Xstep = 12;
Ystep = 0;
this.gotoAndStop("right");
this.mario.play();
} else if (((Key.isDown(40) && (hit == "no")) && (_root.climb == 0)) && (_root.alive == 0)) {
if (_root.direction == 0) {
this.gotoAndStop("sitleft");
} else {
this.gotoAndStop("sitright");
}
} else {
this.mario.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
render();
}
onClipEvent (enterFrame) {
if (this._x <= 25) {
this._x = 25;
}
if (this._x >= 780) {
this._x = 780;
}
if (this._y <= 0) {
this._y = 0;
}
}
Instance of Symbol 215 MovieClip "heroy" in Frame 25
onClipEvent (enterFrame) {
this.heroy = _root.hero._x;
}
Instance of Symbol 219 MovieClip "guardrandom" in Frame 25
/* no clip actions */
Instance of Symbol 272 MovieClip "guard" in Frame 25
onClipEvent (load) {
this._x = 950;
xmov = speed;
speed = 6;
}
onClipEvent (enterFrame) {
if ((_root.ground == 1) && (_root.guard.alive == 0)) {
if (this._x < _root.hero._x) {
this._x = this._x + xmov;
this.gotoAndStop("right");
this.guard.gotoAndStop("go");
} else {
this._x = this._x - xmov;
this.gotoAndStop("left");
this.guard.gotoAndStop("go");
}
if (_root.hero.hitTest(this.heart)) {
xmov = 0;
this.guard.gotoAndStop("stop");
this.sword._visible = 1;
} else {
xmov = speed;
this.sword._visible = 0;
}
}
}
onClipEvent (enterFrame) {
if ((_root.hero._y < 374) && (_root.guard.alive == 0)) {
xmov = 0;
this.guard.gotoAndStop("stop");
}
}
onClipEvent (enterFrame) {
if ((_root.alive == 1) && (_root.guard.alive == 0)) {
xmov = 0;
this.guard.gotoAndStop("stop");
}
}
onClipEvent (enterFrame) {
if (_root.kills > 50) {
speed = 7;
}
if (_root.kills > 70) {
speed = 8;
}
}
Frame 34
finalscore = 0;
stop();
Instance of Symbol 293 MovieClip "over" in Frame 34
onClipEvent (enterFrame) {
if (_root.direction == 0) {
_root.hero.gotoAndStop("dieright");
} else {
_root.hero.gotoAndStop("dieleft");
}
}
Instance of Symbol 296 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.finalscore = _root.over.score;
}
Frame 35
gotoAndStop (24);
Symbol 27 MovieClip Frame 112
_root.gotoAndPlay("loader");
Symbol 34 Button
on (release) {
getURL ("http://www.ultimatearcade.com", "_blank");
}
Symbol 50 Button
on (release) {
nextFrame();
}
Symbol 51 Button
on (release) {
prevFrame();
}
Symbol 65 MovieClip Frame 1
play();
Symbol 71 MovieClip Frame 1
stop();
Symbol 88 Button
on (release) {
nextFrame();
}
Symbol 95 Button
on (release) {
getURL ("http://www.ultimatearcade.com/", "_blank");
}
Symbol 99 Button
on (release) {
getURL ("http://www.ultimatearcade.com/downloads/", "_blank");
}
Symbol 144 MovieClip Frame 1
cannon = "no";
go = "yes";
stop();
Symbol 144 MovieClip Frame 12
cannon = "yes";
Symbol 144 MovieClip Frame 22
stop();
Instance of Symbol 142 MovieClip in Symbol 144 MovieClip Frame 23
onClipEvent (enterFrame) {
if (_root.guard._x < 400) {
this._x = this._x - 25;
this._y = this._y - 2.2;
} else if (_root.guard._x > 400) {
this._x = this._x - 25;
}
if (_root.hero.hitTest(this)) {
_root.alive = 1;
_root.health.gotoAndStop(50);
}
}
Symbol 144 MovieClip Frame 64
cannon = "yes";
go = "yes";
stop();
Instance of Symbol 139 MovieClip in Symbol 144 MovieClip Frame 64
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
gotoAndStop (1);
}
}
Symbol 144 MovieClip Frame 65
cannon = "no";
Symbol 144 MovieClip Frame 75
cannon = "no";
stop();
go = "yes";
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
stop();
Symbol 163 MovieClip Frame 1
stop();
Instance of Symbol 154 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = 0;
if (_root.hero.shadows == 1) {
_parent.gotoAndStop(1);
} else if (_root.hero.shadows == 2) {
_parent.gotoAndStop(2);
} else if (_root.hero.shadows == 3) {
_parent.gotoAndStop(3);
} else if (_root.hero.shadows == 4) {
_parent.gotoAndStop(4);
} else if (_root.hero.shadows == 5) {
_parent.gotoAndStop(5);
} else if (_root.hero.shadows == 6) {
_parent.gotoAndStop(6);
} else if (_root.hero.shadows == 7) {
_parent.gotoAndStop(7);
} else if (_root.hero.shadows == 8) {
_parent.gotoAndStop(8);
} else if (_root.hero.shadows == 9) {
_parent.gotoAndStop(9);
} else if (_root.hero.shadows == 0) {
_parent.gotoAndStop(10);
}
}
Symbol 170 MovieClip Frame 12
stop();
Symbol 179 MovieClip Frame 14
gotoAndPlay (3);
Symbol 190 MovieClip Frame 1
_root.swing = 0;
stop();
Symbol 190 MovieClip Frame 2
_root.swing = 1;
play();
Instance of Symbol 189 MovieClip "ax" in Symbol 190 MovieClip Frame 13
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (_root.guard.heart.hitTest(this)) {
_root.guard.alive = 1;
if (_root.guard.direction == 1) {
_root.guard.gotoAndStop("dieleft");
} else {
_root.guard.gotoAndStop("dieright");
}
}
}
Symbol 190 MovieClip Frame 15
_root.hero.hit = "no";
_root.swing = 0;
gotoAndStop (1);
Symbol 194 MovieClip Frame 1
rnd = Math.floor(Math.random() * 125);
gotoAndPlay(rnd);
Symbol 201 MovieClip Frame 1
play();
Symbol 201 MovieClip Frame 2
play();
Symbol 201 MovieClip Frame 3
play();
Symbol 201 MovieClip Frame 4
play();
Symbol 201 MovieClip Frame 5
play();
Symbol 201 MovieClip Frame 6
play();
Symbol 201 MovieClip Frame 7
play();
Symbol 201 MovieClip Frame 8
play();
Symbol 201 MovieClip Frame 9
play();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Instance of Symbol 201 MovieClip "two" in Symbol 202 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
stop();
} else if (Key.isDown(40)) {
stop();
} else {
_parent.gotoAndStop(1);
}
}
Symbol 208 MovieClip Frame 20
stop();
Symbol 209 MovieClip Frame 1
function hitPlatforms() {
var i;
var y;
var x;
i = 0;
while (i < _root.maxPlatforms) {
platform = eval ("_root.platform" + i);
y = _y + vertical;
x = _x + horizontal;
if (((_y < platform._y) && (y >= platform._y)) && (platform.hitTest(x, platform._y) == true)) {
_y = platform._y;
falling = false;
vertical = 0;
return(undefined);
}
i++;
}
platform = null;
return(undefined);
}
function render() {
var x;
var y;
x = (y = 0);
if (Math.abs(horizontal) < Math.abs(x)) {
horizontal = x;
} else {
horizontal = horizontal * friction;
if (Math.abs(horizontal) < 1) {
horizontal = 0;
}
}
if ((((vertical == 0) && (Key.isDown(38) == true)) && (_root.climb == 0)) && (_root.alive == 0)) {
vertical = vforce * -1;
horizontal = horizontal + platform.velocity;
platform = null;
rising = true;
if (_root.direction == 0) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
jump.start();
}
if (rising == true) {
vertical = vertical * gravity;
if (Math.abs(vertical) < 1) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
if (_root.direction == 0) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
}
if (falling == true) {
vertical = vertical + accel;
hitPlatforms();
}
lastX = _x;
lastY = _y;
_y = (_y + vertical);
_x = ((_x + horizontal) + platform.velocity);
if ((platform != null) && (platform.hitTest(_x, platform._y, true) == false)) {
vertical = 2;
falling = true;
}
}
vforce = 120;
hforce = 10;
horizontal = 0;
vertical = 5;
friction = 0.8;
gravity = 0.5;
accel = 1.5;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
jump = new sound();
jump.attachSound("jump");
stop();
shadows = 1;
stop();
Symbol 209 MovieClip Frame 2
_root.direction = 1;
shadows = 2;
stop();
Symbol 209 MovieClip Frame 3
_root.direction = 0;
shadows = 3;
stop();
Symbol 209 MovieClip Frame 4
shadows = 4;
stop();
Symbol 209 MovieClip Frame 5
shadows = 5;
stop();
Symbol 209 MovieClip Frame 6
shadows = 6;
stop();
Symbol 209 MovieClip Frame 7
shadows = 7;
stop();
Symbol 209 MovieClip Frame 8
shadows = 8;
stop();
Symbol 209 MovieClip Frame 9
shadows = 9;
stop();
Symbol 209 MovieClip Frame 10
shadows = 0;
stop();
Symbol 209 MovieClip Frame 11
shadows = 0;
stop();
Symbol 209 MovieClip Frame 12
shadows = 0;
stop();
Symbol 219 MovieClip Frame 1
myrandom = 0;
Symbol 219 MovieClip Frame 5
myrandom = 1;
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
stop();
Symbol 227 MovieClip Frame 3
stop();
Symbol 227 MovieClip Frame 4
stop();
Symbol 227 MovieClip Frame 5
stop();
Symbol 227 MovieClip Frame 6
stop();
Symbol 227 MovieClip Frame 7
stop();
Symbol 227 MovieClip Frame 8
stop();
Symbol 227 MovieClip Frame 9
stop();
Symbol 227 MovieClip Frame 10
stop();
Symbol 227 MovieClip Frame 11
stop();
Symbol 227 MovieClip Frame 12
stop();
Symbol 227 MovieClip Frame 13
stop();
Symbol 227 MovieClip Frame 14
stop();
Symbol 227 MovieClip Frame 15
stop();
Symbol 227 MovieClip Frame 16
stop();
Symbol 227 MovieClip Frame 17
stop();
Symbol 227 MovieClip Frame 18
stop();
Symbol 227 MovieClip Frame 19
stop();
Symbol 227 MovieClip Frame 20
stop();
Symbol 227 MovieClip Frame 21
stop();
Symbol 227 MovieClip Frame 22
stop();
Symbol 227 MovieClip Frame 23
stop();
Symbol 227 MovieClip Frame 24
stop();
Symbol 227 MovieClip Frame 25
stop();
Symbol 227 MovieClip Frame 26
stop();
Symbol 227 MovieClip Frame 27
stop();
Symbol 227 MovieClip Frame 28
stop();
Symbol 227 MovieClip Frame 29
stop();
Symbol 227 MovieClip Frame 30
stop();
Symbol 227 MovieClip Frame 31
stop();
Symbol 227 MovieClip Frame 32
stop();
Symbol 227 MovieClip Frame 33
stop();
Symbol 227 MovieClip Frame 34
stop();
Symbol 227 MovieClip Frame 35
stop();
Symbol 227 MovieClip Frame 36
stop();
Symbol 227 MovieClip Frame 37
stop();
Symbol 227 MovieClip Frame 38
stop();
Symbol 227 MovieClip Frame 39
stop();
Symbol 227 MovieClip Frame 40
stop();
Symbol 227 MovieClip Frame 41
stop();
Symbol 227 MovieClip Frame 42
stop();
Symbol 227 MovieClip Frame 43
stop();
Symbol 227 MovieClip Frame 44
stop();
Symbol 227 MovieClip Frame 45
stop();
Symbol 227 MovieClip Frame 46
stop();
Symbol 227 MovieClip Frame 47
stop();
Symbol 227 MovieClip Frame 48
stop();
Symbol 227 MovieClip Frame 49
stop();
Symbol 227 MovieClip Frame 50
_root.alive = 1;
if (_root.direction == 0) {
_root.hero.gotoAndStop("dieright");
} else {
_root.hero.gotoAndStop("dieleft");
}
_root.gotoAndStop("over");
stop();
Symbol 235 Button
on (release) {
gotoAndStop (24);
}
Symbol 262 MovieClip Frame 1
play();
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
stop();
Symbol 271 MovieClip Frame 1
play();
Instance of Symbol 152 MovieClip in Symbol 271 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) && (_root.ground == 1)) {
_root.score = _root.score + 150;
_root.money.start();
this.gotoAndStop(2);
}
}
Symbol 271 MovieClip Frame 51
_root.guard.alive = 0;
if (_root.guardrandom.myrandom == 0) {
_root.guard._x = 950;
} else {
_root.guard._x = 0;
}
_root.guard.gotoAndStop(1);
stop();
Symbol 272 MovieClip Frame 1
alive = 0;
direction = 1;
stop();
Instance of Symbol 236 MovieClip "heart" in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.health.nextFrame();
}
}
Instance of Symbol 64 MovieClip "sword2" in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.sword._visible == 0) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 65 MovieClip "sword" in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 272 MovieClip Frame 2
direction = 2;
stop();
Symbol 272 MovieClip Frame 3
stop();
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
Symbol 272 MovieClip Frame 4
stop();
_root.kills = _root.kills + 1;
_root.score = _root.score + 100;
Symbol 291 Button
on (release) {
_root.gotoAndStop("reset");
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 10
score = _root.score + _root.kills;
stop();