Frame 1
total = getBytesTotal();
Frame 2
loaded = getBytesLoaded();
if (loaded == total) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 5
level = 1;
Frame 263
breakPF.nextFrame();
Frame 285
breakPF.nextFrame();
Frame 308
breakPF.nextFrame();
Frame 332
breakPF.nextFrame();
Frame 358
breakPF.nextFrame();
Frame 384
breakPF.nextFrame();
Instance of Symbol 96 MovieClip "p5" in Frame 684
onClipEvent (load) {
change = 0;
}
Instance of Symbol 97 MovieClip "p8" in Frame 684
onClipEvent (load) {
fall = true;
}
Instance of Symbol 98 MovieClip "p9" in Frame 684
onClipEvent (load) {
(change = 1);
(goHere = 6);
(loc = (-_width) / 2);
}
Instance of Symbol 99 MovieClip "p14" in Frame 684
onClipEvent (load) {
change = 1;
}
Instance of Symbol 99 MovieClip "p18" in Frame 684
onClipEvent (load) {
change = 1;
}
Instance of Symbol 97 MovieClip "p21" in Frame 684
onClipEvent (load) {
fall = true;
}
Instance of Symbol 100 MovieClip "p22" in Frame 684
onClipEvent (load) {
(change = 2);
(goHere = 18);
(loc = (-_width) / 2);
}
Instance of Symbol 101 MovieClip "p26" in Frame 684
onClipEvent (load) {
(change = 2);
(goHere = 14);
(loc = (-_width) / 2);
}
Instance of Symbol 102 MovieClip "p27" in Frame 684
onClipEvent (load) {
change = 2;
}
Instance of Symbol 102 MovieClip "p31" in Frame 684
onClipEvent (load) {
change = 2;
}
Instance of Symbol 97 MovieClip "p34" in Frame 684
onClipEvent (load) {
fall = true;
}
Instance of Symbol 103 MovieClip "p35" in Frame 684
onClipEvent (load) {
(change = 3);
(goHere = 32);
}
Instance of Symbol 104 MovieClip "p39" in Frame 684
onClipEvent (load) {
(change = 3);
(goHere = 27);
(loc = -_width);
}
Instance of Symbol 105 MovieClip "p42" in Frame 684
onClipEvent (load) {
change = 3;
}
Instance of Symbol 105 MovieClip "p44" in Frame 684
onClipEvent (load) {
change = 3;
}
Instance of Symbol 97 MovieClip "p60" in Frame 684
onClipEvent (load) {
fall = true;
}
Instance of Symbol 106 MovieClip "p61" in Frame 684
onClipEvent (load) {
(change = 5);
(goHere = 58);
(loc = (-_width) / 2);
}
Instance of Symbol 97 MovieClip "p47" in Frame 684
onClipEvent (load) {
fall = true;
}
Instance of Symbol 107 MovieClip "p48" in Frame 684
onClipEvent (load) {
change = 4;
}
Instance of Symbol 108 MovieClip "p50" in Frame 684
onClipEvent (load) {
(change = 4);
(goHere = 43);
(loc = -_width);
}
Instance of Symbol 107 MovieClip "p57" in Frame 684
onClipEvent (load) {
change = 4;
}
Instance of Symbol 109 MovieClip "p64" in Frame 684
onClipEvent (load) {
(goHere = 51);
(loc = -53);
}
Instance of Symbol 111 MovieClip "p65" in Frame 684
onClipEvent (load) {
finish = true;
}
Instance of Symbol 125 MovieClip "dkong" in Frame 684
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (40 < (x++)) {
(x = 0);
play();
}
}
Instance of Symbol 127 MovieClip "barrelSound" in Frame 684
onClipEvent (load) {
breakPF = new Sound(this);
breakPF.attachSound("breakPF");
}
Instance of Symbol 153 MovieClip "Mario" in Frame 690
onClipEvent (enterFrame) {
keyControl();
move();
}
Frame 693
for (all in _root) {
delete _root[all];
}
Frame 694
function howHigh() {
gotoAndPlay (553);
}
function createFire() {
_root.attachMovie("fire", "fire", 9999);
_root.fire._x = 20;
_root.fire._y = 248;
_root.fire.currentPlatform = p0;
_root.fire.width = 12;
_root.fire.speed = 0.3;
_root.fire.lspeed = 0.5;
_root.fire.right = true;
_root.fire.pushLevelPlatforms(0);
_root.fire.move = Char.moveOnPlatforms;
_root.Barrels.push(_root.fire);
}
function finishedLevel() {
prinzess.gotoAndStop(1);
gameloop.stop();
dkong.paused = true;
var i = 0;
while (i < _root.Barrels.length) {
_root.Barrels[i].removeMovieClip();
i++;
}
_root.Barrels = new Array();
Mario.gotoAndStop(1);
Mario._xscale = -100;
dkong.gotoAndPlay("takeherback");
gotoAndStop (696);
}
hitRel = 3;
Mario.currentPlatform = p0;
Mario.width = 12;
Mario.speed = 0.8;
Mario.jspeed = 0.2;
Mario.jheight = 3.5;
Mario.lspeed = 0.35;
Mario.ty = Mario._y;
Mario.Sjump = new Sound();
Mario.Sjump.attachSound("Sjump");
Mario.player = true;
dkong.barrelnow = "blueBarrel";
Barrels = new Array();
isScore = 0;
score = "000000";
Platforms0 = new Array(p0, p1, p2, p3, p4, p5, p6, p7, p9);
Platforms1 = new Array(p5, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p22, p26);
Platforms2 = new Array(p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p18, p35, p39, p14);
Platforms3 = new Array(p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p31, p48, p50, p27);
Platforms4 = new Array(p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p61, p44, p42);
Platforms5 = new Array(p60, p61, p62, p63, p64, p65, p57);
Ladders = new Array();
for (var mc in _root) {
if (_root[mc].type == 1) {
Ladders.push(_root[mc]);
}
}
for (var e in Ladders) {
var ld = Ladders[e];
ld.x = ld._x;
ld.yt = ld._y - ld._height;
ld.yb = ld._y;
}
Object.prototype.keyControl = function () {
(left = false);
(right = false);
(up = false);
(down = false);
(space = false);
if (Key.isDown(37)) {
left = true;
}
if (Key.isDown(38)) {
up = true;
}
if (Key.isDown(39)) {
right = true;
}
if (Key.isDown(40)) {
down = true;
}
if (Key.isDown(32)) {
space = true;
}
};
Object.prototype.randomControl = function () {
if (cc < 150) {
cc++;
} else {
cc = 0;
var ran = Math.floor(Math.random() * 4);
(right = false);
(left = false);
(up = false);
(down = false);
if (ran == 0) {
right = true;
} else if (ran == 1) {
left = true;
} else if (ran == 2) {
up = true;
} else if (ran == 3) {
down = true;
}
}
};
Movements = function () {
};
Object.prototype.Char = new Movements();
Movements.prototype.moveOnPlatforms = function () {
getCollideBarrels();
if (right) {
var pf;
if (((pf = collidePF(_x + speed, _y))) != currentPlatform) {
_y = pf._y;
if (pf) {
currentPlatform = pf;
}
}
if (((pf = collidePF(_x + speed, _y + _root.hitRel))) != currentPlatform) {
_y = pf._y;
if (pf) {
currentPlatform = pf;
}
}
transformX(1);
if ((currentPlatform.xr + (width / 2)) < _x) {
ty = _y;
if (player) {
move = Char.fallToDie;
}
}
}
if (left) {
var pf;
if (((pf = collidePF(_x - speed, _y))) != currentPlatform) {
_y = pf._y;
if (pf) {
currentPlatform = pf;
}
}
if (((pf = collidePF(_x - speed, _y + _root.hitRel))) != currentPlatform) {
_y = pf._y;
if (pf) {
currentPlatform = pf;
}
}
transformX(-1);
if (_x < (currentPlatform.xl - (width / 2))) {
ty = _y;
move = Char.fallToDie;
}
}
if (space) {
Sjump.start(0, 1);
isRight = right;
isLeft = left;
ty = _y;
jc = -jheight;
tjc = jc * jc;
move = Char.jump;
}
if (up) {
var ladder = collideLD(_x, _y - 1);
if (ladder) {
_x = ladder._x;
currentLadder = ladder;
move = Char.moveOnLadder;
} else if (this == _root.fire) {
_root.fire.cc = 150;
}
}
if (down) {
var ladder = collideLD(_x, _y + 1);
if (ladder) {
_x = ladder._x;
currentLadder = ladder;
move = Char.moveOnLadder;
} else if (this == _root.fire) {
_root.fire.cc = 150;
}
}
if (((!right) && (!left)) && (_currentframe != 37)) {
this.gotoAndStop(1);
}
};
Movements.prototype.jump = function () {
getCollideBarrels();
this.gotoAndStop(16);
_y = (((jc * jc) - tjc) + ty);
jc = jc + jspeed;
if (jc >= 0) {
var pf = collidePF(_x, _y);
if (pf) {
_y = pf._y;
currentPlatform = pf;
move = Char.moveOnPlatforms;
}
}
if (6 < jc) {
move = Char.die;
}
if (isRight) {
transformX(1);
} else if (isLeft) {
transformX(-1);
}
if ((-3 < jc) && (jc < 3)) {
var overB = 0;
var i = 0;
while (i < _root.Barrels.length) {
if (_root.Barrels[i].hitTest(_x, _y + 8, false) && (!_root.Barrels[i].isJumped)) {
_root.Barrels[i].isJumped = true;
overB++;
}
i++;
}
if (0 < overB) {
getPoints(overB);
}
}
};
Movements.prototype.moveOnLadder = function () {
getCollideBarrels();
if (up) {
if ((currentLadder.yt < _y) && ((currentLadder.yt + 0) >= _y)) {
_y = (_y - lspeed);
this.gotoAndStop(29);
} else if ((currentLadder.yt + 0) < _y) {
_y = (_y - lspeed);
this.gotoAndStop(23);
ladder.nextFrame();
} else if (currentLadder.yt >= _y) {
var currentPlatform = collidePF(_x, _y + 2);
if (currentPlatform) {
if (currentPlatform.finish) {
_root.finishedLevel();
} else {
this.gotoAndStop(37);
if (currentPlatform.change) {
pushLevelPlatforms(currentPlatform.change);
}
move = Char.moveOnPlatforms;
}
}
}
}
if (down) {
if (_y < currentLadder.yb) {
_y = (_y + lspeed);
this.gotoAndStop(23);
ladder.nextFrame();
} else {
this.gotoAndStop(37);
currentPlatform = collidePF(_x, _y + 2);
if (currentPlatform.change) {
pushLevelPlatforms(currentPlatform.change);
}
move = Char.moveOnPlatforms;
}
}
};
Movements.prototype.fallToDie = function () {
if (_y < (ty + 20)) {
_y = (_y + 2);
} else {
move = Char.die;
}
};
Movements.prototype.die = function () {
var i = 0;
while (i < _root.Barrels.length) {
_root.Barrels[i].removeMovieClip();
i++;
}
_root.Barrels = new Array();
_root.gameloop.stop();
barrel = false;
this.gotoAndStop(30);
};
Movements.prototype.dieBarrel = function () {
if (50 < x) {
_root.gameloop.stop();
barrel = true;
var i = 0;
while (i < _root.Barrels.length) {
_root.Barrels[i].removeMovieClip();
i++;
}
_root.Barrels = new Array();
this.gotoAndStop(30);
} else {
x++;
}
};
Movements.prototype.moveBarrelPf = function () {
var cp = _root["p" + currentPlatform];
var dist = (_x - (cp._x + ((cp._width / 2) * dir)));
if ((cp.goHere && (cp.loc < (dist * dir))) && (goHereAvail)) {
my = _root["p" + cp.goHere]._y;
currentPlatform = cp.goHere;
mode.gotoAndStop(2);
move = Char.moveBarrelFall;
}
if (0 < (dist * dir)) {
if (cp.fall) {
currentPlatform = currentPlatform - 1;
my = _root["p" + currentPlatform]._y;
move = Char.moveBarrelFall;
} else {
currentPlatform--;
_y = _root["p" + currentPlatform]._y;
}
}
if (currentPlatform < 1) {
move = Char.moveOutSide;
} else {
_x = (_x + (speed * dir));
}
};
Movements.prototype.moveBarrelFall = function () {
if (my >= _y) {
_y = (_y + speed);
if (mode._currentFrame == 1) {
_x = (_x + (0.75 * dir));
}
} else {
_y = my;
mode.gotoAndStop(1);
dir = dir * -1;
_root.barrelSound.breakPF.start(0, 1);
goHereAvail = Math.random() < 0.5;
move = Char.moveBarrelPf;
}
};
Movements.prototype.moveOutSide = function () {
if (-12 < _x) {
_x = (_x - speed);
} else {
_root.Barrels.kill(this);
this.removeMovieClip();
}
};
Movements.prototype.kongAttack1 = function () {
_root.attachMovie("Barrel", "barrel" + b, b++);
var ba = _root["barrel" + b];
ba._x = 74;
ba._y = 84;
ba.currentPlatform = 64;
ba.speed = 2.5;
ba.dir = 1;
ba.goHereAvail = Math.random() < 0.5;
ba.move = Char.moveBarrelPf;
ba.isJumped = false;
_root.Barrels.push(ba);
};
Movements.prototype.kongAttack2 = function () {
_root.attachMovie(barrelnow, "barrel" + b, b++);
var bt = _root["barrel" + b];
bt._x = 44;
bt._y = 70;
bt.isJumped = false;
_root.Barrels.push(bt);
};
Object.prototype.pushLevelPlatforms = function (level) {
Platforms = new Array();
var PF = _root["Platforms" + level];
var i = 0;
while (i < PF.length) {
Platforms.push(PF[i]);
i++;
}
var e = 0;
while (e < Platforms.length) {
var pf = Platforms[e];
pf.xl = pf._x - (pf._width / 2);
pf.xr = pf._x + (pf._width / 2);
pf.yt = pf._y;
pf.yb = pf._y + _root.hitRel;
e++;
}
};
Object.prototype.collidePF = function (x, y) {
var i = 0;
while (i < Platforms.length) {
var pf = Platforms[i];
if ((((x < pf.xr) && (pf.xl < x)) && (pf.yt < y)) && (y < pf.yb)) {
return(pf);
}
i++;
}
return(false);
};
Object.prototype.collideLD = function (x, y) {
var i = 0;
while (i < _root.Ladders.length) {
var ld = _root.Ladders[i];
if ((((ld.x < (x + 1.5)) && ((x - 1.5) < ld.x)) && (y < ld.yb)) && (ld.yt < y)) {
return(ld);
}
i++;
}
return(false);
};
Object.prototype.getCollideBarrels = function () {
var i = 0;
while (i < _root.Barrels.length) {
if (_root.Barrels[i].hitTest(_root.Mario.hitArea)) {
_root.paused = true;
var i = 0;
while (i < _root.Barrels.length) {
_root.Barrels[i].stop();
_root.Barrels[i].barrel.stop();
_root.Barrels[i].mode.barrel.stop();
_root.Barrels[i].move = null;
i++;
}
_root.Mario.move = Char.dieBarrel;
return;
}
i++;
}
};
Object.prototype.transformX = function (dir) {
if (move.prototype != Char.jump.prototype) {
this.gotoAndStop(9);
}
if ((6 < (_x + (speed * dir))) && ((_x + (speed * dir)) < 218)) {
_x = (_x + (speed * dir));
_xscale = (100 * dir);
run.nextFrame();
} else {
this.gotoAndStop(1);
}
};
Object.prototype.getPoints = function (count) {
_root.isScore = _root.isScore + (100 * count);
if (_root.isScore < 1000) {
_root.score = "000" + _root.isScore;
} else if (_root.isScore < 10000) {
_root.score = "00" + _root.isScore;
} else if (_root.isScore < 100000) {
_root.score = "0" + _root.isScore;
} else {
_root.score = _root.isScore;
}
_root.attachMovie("scoreScreen", "scoreScreen", 10000);
var screen = _root.scoreScreen;
screen.score = 100 * count;
screen._x = _x + 20;
screen._y = _y + 15;
};
Array.prototype.kill = function (elem) {
var i = 0;
while (i < this.length) {
if (this[i] == elem) {
this.splice(i, 1);
return;
}
i++;
}
};
Mario.pushLevelPlatforms(0);
Mario.move = Char.moveOnPlatforms;
Frame 695
gameloop = new Sound(this);
gameloop.attachSound("gameloop1");
gameloop.start(0, 9999);
stop();
Instance of Symbol 162 MovieClip "p5" in Frame 784
onClipEvent (load) {
change = 0;
}
Instance of Symbol 164 MovieClip "p4" in Frame 784
onClipEvent (load) {
conec = true;
}
Instance of Symbol 165 MovieClip "p10" in Frame 784
onClipEvent (load) {
change = 1;
}
Instance of Symbol 164 MovieClip "p11" in Frame 784
onClipEvent (load) {
conec = true;
}
Instance of Symbol 164 MovieClip "p9" in Frame 784
onClipEvent (load) {
conec = true;
}
Instance of Symbol 166 MovieClip "p15" in Frame 784
onClipEvent (load) {
change = 2;
}
Instance of Symbol 164 MovieClip "p16" in Frame 784
onClipEvent (load) {
conec = true;
}
Instance of Symbol 164 MovieClip "p14" in Frame 784
onClipEvent (load) {
conec = true;
}
Instance of Symbol 164 MovieClip "p21" in Frame 784
onClipEvent (load) {
conec = true;
}
Instance of Symbol 164 MovieClip "p19" in Frame 784
onClipEvent (load) {
conec = true;
}
Instance of Symbol 168 MovieClip "p3" in Frame 784
onClipEvent (load) {
change = 0;
}
Instance of Symbol 170 MovieClip "p12" in Frame 784
onClipEvent (load) {
change = 1;
}
Instance of Symbol 170 MovieClip "p8" in Frame 784
onClipEvent (load) {
change = 1;
}
Instance of Symbol 172 MovieClip "p17" in Frame 784
onClipEvent (load) {
change = 2;
}
Instance of Symbol 172 MovieClip "p13" in Frame 784
onClipEvent (load) {
change = 2;
}
Instance of Symbol 168 MovieClip "p7" in Frame 784
onClipEvent (load) {
change = 0;
}
Instance of Symbol 164 MovieClip "p6" in Frame 784
onClipEvent (load) {
conec = true;
}
Instance of Symbol 153 MovieClip "Mario" in Frame 784
onClipEvent (enterFrame) {
keyControl();
move();
}
Frame 798
for (all in _root) {
delete _root[all];
}
Frame 799
function howHigh() {
gotoAndPlay (553);
}
function createEnemy(platf) {
_root.attachMovie("enemy", "enemy" + ec, ec++);
var enemy = _root["enemy" + ec];
enemy._x = platf._x;
enemy._y = platf._y;
enemy.currentPlatform = platf;
enemy.width = 12;
enemy.speed = 0.3;
enemy.lspeed = 0.2;
enemy.pushLevelPlatforms(0);
enemy.player = false;
enemy.right = true;
enemy.down = true;
enemy.where = platf.change;
enemy.move = Char.moveOnPlatforms;
}
function finishedLevel() {
prinzess.gotoAndStop(1);
gameloop.stop();
var i = 0;
while (i < _root.Barrels.length) {
_root.Barrels[i].removeMovieClip();
i++;
}
_root.Barrels = new Array();
Mario.gotoAndStop(1);
Mario._xscale = -100;
dkong.gotoAndPlay("takeherback");
gotoAndStop (801);
}
hitRel = 3;
Mario.pf = p0;
Mario.tc = 200;
Mario.width = 12;
Mario.speed = 0.8;
Mario.jspeed = 0.2;
Mario.jheight = 3.5;
Mario.lspeed = 0.35;
Mario.ty = Mario._y;
Mario.Sjump = new Sound();
Mario.Sjump.attachSound("Sjump");
Mario.player = true;
Mario.where = 0;
isScore = 0;
score = "000000";
Platforms0 = new Array(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
Platforms1 = new Array(p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
Platforms2 = new Array(p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22);
Ladders = new Array();
for (var mc in _root) {
if (_root[mc].type == 1) {
Ladders.push(_root[mc]);
}
}
for (var e in Ladders) {
var ld = Ladders[e];
ld.x = ld._x;
ld.yt = ld._y - ld._height;
ld.yb = ld._y;
}
Object.prototype.keyControl = function () {
timer();
(left = false);
(right = false);
(up = false);
(down = false);
(space = false);
if (Key.isDown(37)) {
left = true;
}
if (Key.isDown(38)) {
up = true;
}
if (Key.isDown(39)) {
right = true;
}
if (Key.isDown(40)) {
down = true;
}
if (Key.isDown(32)) {
space = true;
}
};
Object.prototype.enemyControl = function () {
if ((right && (tx == _x)) || (Math.random() < 0.004)) {
(right = false);
(left = true);
}
if ((left && (tx == _x)) || (Math.random() < 0.004)) {
(left = false);
(right = true);
}
if ((ty == _y) && (Math.random() < 0.1)) {
if (Math.random() < 0.5) {
(up = true);
(down = false);
} else {
(up = false);
(down = true);
}
}
tx = _x;
ty = _y;
};
Object.prototype.timer = function () {
if ((tc < 200) && (ec < 6)) {
tc++;
} else {
tc = 0;
ec++;
_root.createEnemy(_root.AppearsOn[ec]);
}
};
hirRel = 1;
AppearsOn = new Array(p0, p13, p8, p3, p20, p16);
Movements = function () {
};
Object.prototype.Char = new Movements();
Movements.prototype.moveOnPlatforms = function () {
if (right) {
var pf;
if (((pf = collidePF(_x + (speed / 2), _y))) != currentPlatform) {
_y = pf._y;
if (pf) {
currentPlatform = pf;
}
}
if (((pf = collidePF(_x + (speed / 2), _y + _root.hitRel))) != currentPlatform) {
_y = pf._y;
if (pf) {
currentPlatform = pf;
}
}
transformX(1);
if ((currentPlatform.xr + (width / 3)) < _x) {
ty = _y;
if (player) {
move = Char.fallToDie;
} else {
(right = false);
(left = true);
}
}
if (((lastPlatform != currentPlatform) && (lastPlatform)) && (player)) {
eraseConnection(lastPlatform);
} else if (currentPlatform.conec) {
lastPlatform = currentPlatform;
}
}
if (left) {
var pf;
if (((pf = collidePF(_x - (speed / 2), _y))) != currentPlatform) {
_y = pf._y;
if (pf) {
currentPlatform = pf;
}
}
if (((pf = collidePF(_x - (speed / 2), _y + _root.hitRel))) != currentPlatform) {
_y = pf._y;
if (pf) {
currentPlatform = pf;
}
}
transformX(-1);
if (_x < (currentPlatform.xl - (width / 3))) {
ty = _y;
if (player) {
move = Char.fallToDie;
} else {
(right = true);
(left = false);
}
}
if (((lastPlatform != currentPlatform) && (lastPlatform)) && (player)) {
eraseConnection(lastPlatform);
} else if (currentPlatform.conec) {
lastPlatform = currentPlatform;
}
}
if (space) {
Sjump.start(0, 1);
isRight = right;
isLeft = left;
ty = _y;
jc = -jheight;
tjc = jc * jc;
move = Char.jump;
}
if (up) {
var ladder = collideLD(_x, _y - 1);
if (ladder) {
_x = ladder._x;
currentLadder = ladder;
move = Char.moveOnLadder;
}
}
if (down) {
var ladder = collideLD(_x, _y + 1);
if (ladder) {
_x = ladder._x;
currentLadder = ladder;
move = Char.moveOnLadder;
}
}
if ((((!right) && (!left)) && (_currentframe != 37)) && (player)) {
this.gotoAndStop(1);
}
};
Movements.prototype.jump = function () {
this.gotoAndStop(16);
_y = (((jc * jc) - tjc) + ty);
jc = jc + jspeed;
if (jc >= 0) {
var pf = collidePF(_x, _y);
if (pf) {
_y = pf._y;
currentPlatform = pf;
move = Char.moveOnPlatforms;
}
}
if (6 < jc) {
move = Char.die;
}
if (isRight) {
transformX(1);
} else if (isLeft) {
transformX(-1);
}
};
Movements.prototype.moveOnLadder = function () {
if (up) {
if ((currentLadder.yt < _y) && ((currentLadder.yt + 0) >= _y)) {
_y = (_y - lspeed);
if (player) {
this.gotoAndStop(29);
}
} else if ((currentLadder.yt + 0) < _y) {
_y = (_y - lspeed);
if (player) {
this.gotoAndStop(23);
}
ladder.nextFrame();
} else if (currentLadder.yt >= _y) {
var currentPlatform = collidePF(_x, _y + 2);
if (currentPlatform) {
if (currentPlatform.finish) {
_root.finishedLevel();
} else {
if (player) {
this.gotoAndStop(37);
}
if (currentPlatform.change) {
(where = currentPlatform.change);
pushLevelPlatforms(currentPlatform.change);
}
move = Char.moveOnPlatforms;
}
}
}
}
if (down) {
if (_y < currentLadder.yb) {
_y = (_y + lspeed);
if (player) {
this.gotoAndStop(23);
}
ladder.nextFrame();
} else {
if (player) {
this.gotoAndStop(37);
}
currentPlatform = collidePF(_x, _y + 2);
if (currentPlatform.change) {
(where = currentPlatform.change);
pushLevelPlatforms(currentPlatform.change);
}
move = Char.moveOnPlatforms;
}
}
};
Movements.prototype.fallToDie = function () {
if (_y < (ty + 20)) {
_y = (_y + 2);
} else {
move = Char.die;
}
};
Movements.prototype.die = function () {
var i = 0;
while (i < _root.Barrels.length) {
_root.Barrels[i].removeMovieClip();
i++;
}
_root.Barrels = new Array();
_root.gameloop.stop();
barrel = false;
this.gotoAndStop(30);
};
Object.prototype.eraseConnection = function (platform) {
platform.gotoAndStop(2);
_root.Platforms0.kill(platform);
_root.Platforms1.kill(platform);
_root.Platforms2.kill(platform);
pushLevelPlatforms(where);
lastPlatform = false;
};
Object.prototype.pushLevelPlatforms = function (level) {
Platforms = new Array();
var PF = _root["Platforms" + level];
var i = 0;
while (i < PF.length) {
Platforms.push(PF[i]);
i++;
}
var e = 0;
while (e < Platforms.length) {
var pf = Platforms[e];
pf.xl = pf._x - (pf._width / 2);
pf.xr = pf._x + (pf._width / 2);
pf.yt = pf._y;
pf.yb = pf._y + _root.hitRel;
e++;
}
};
Object.prototype.collidePF = function (x, y) {
var i = 0;
while (i < Platforms.length) {
var pf = Platforms[i];
if ((((pf.xr >= x) && (x >= pf.xl)) && (y >= pf.yt)) && (pf.yb >= y)) {
return(pf);
}
i++;
}
return(false);
};
Object.prototype.collideLD = function (x, y) {
var i = 0;
while (i < _root.Ladders.length) {
var ld = _root.Ladders[i];
if ((((ld.x < (x + 1.5)) && ((x - 1.5) < ld.x)) && (y < ld.yb)) && (ld.yt < y)) {
return(ld);
}
i++;
}
return(false);
};
Object.prototype.getCollideBarrels = function () {
var i = 0;
while (i < _root.Barrels.length) {
if (_root.Barrels[i].hitTest(_root.Mario.hitArea)) {
_root.paused = true;
var i = 0;
while (i < _root.Barrels.length) {
_root.Barrels[i].stop();
_root.Barrels[i].barrel.stop();
_root.Barrels[i].mode.barrel.stop();
_root.Barrels[i].move = null;
i++;
}
_root.Mario.move = Char.dieBarrel;
return;
}
i++;
}
};
Object.prototype.transformX = function (dir) {
if ((move.prototype != Char.jump.prototype) && (player)) {
this.gotoAndStop(9);
}
if ((0 < (_x + (speed * dir))) && ((_x + (speed * dir)) < 224)) {
_x = (_x + (speed * dir));
_xscale = (100 * dir);
run.nextFrame();
} else if (player) {
this.gotoAndStop(1);
}
};
Object.prototype.getPoints = function (count) {
_root.isScore = _root.isScore + (100 * count);
if (_root.isScore < 1000) {
_root.score = "000" + _root.isScore;
} else if (_root.isScore < 10000) {
_root.score = "00" + _root.isScore;
} else if (_root.isScore < 100000) {
_root.score = "0" + _root.isScore;
} else {
_root.score = _root.isScore;
}
_root.Mario.attachMovie("scoreScreen", "scoreScreen", 1);
var screen = _root.Mario.scoreScreen;
screen.score = 100 * count;
screen._x = 10;
screen._y = -6;
if (_xscale < 0) {
screen._xscale = -100;
}
};
Array.prototype.kill = function (elem) {
var i = 0;
while (i < this.length) {
if (this[i] == elem) {
this.splice(i, 1);
return;
}
i++;
}
};
Mario.pushLevelPlatforms(0);
Mario.move = Char.moveOnPlatforms;
Frame 800
gameloop = new Sound(this);
gameloop.attachSound("gameloop2");
stop();
Instance of Symbol 7 MovieClip "barrel" in Symbol 8 MovieClip [fire] Frame 1
onClipEvent (enterFrame) {
_parent.move();
_parent.randomControl();
}
Symbol 16 MovieClip Frame 1
stop();
Symbol 17 MovieClip [barrel] Frame 1
move();
Symbol 17 MovieClip [barrel] Frame 2
gotoAndPlay (2);
Symbol 25 MovieClip [blueBarrel] Frame 148
_root.dkong.barrelnow = "brownBarrel";
_root.fireBarrel.play();
_root.createFire();
_root.Barrels.kill(this);
this.removeMovieClip();
Symbol 26 MovieClip [brownBarrel] Frame 156
_root.Barrels.kill(this);
this.removeMovieClip();
Symbol 30 MovieClip [scoreScreen] Frame 51
this.removeMovieClip();
Symbol 34 MovieClip [enemy] Frame 1
enemyControl();
move();
Symbol 34 MovieClip [enemy] Frame 2
gotoAndPlay (1);
Symbol 40 MovieClip Frame 1
type = 0;
Symbol 42 MovieClip Frame 1
type = 0;
Symbol 43 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
type = 1;
Symbol 52 MovieClip Frame 1
type = 0;
Symbol 83 MovieClip Frame 1
type = 1;
Symbol 85 MovieClip Frame 1
type = 1;
Symbol 87 MovieClip Frame 1
type = 1;
Symbol 89 MovieClip Frame 1
type = 1;
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 22
gotoAndPlay (2);
Symbol 109 MovieClip Frame 1
type = 0;
Symbol 111 MovieClip Frame 1
type = 0;
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 3
Char.kongAttack2();
stop();
Symbol 125 MovieClip Frame 4
stop();
Symbol 125 MovieClip Frame 5
Char.kongAttack1();
stop();
Symbol 125 MovieClip Frame 6
stop();
Symbol 125 MovieClip Frame 7
stop();
Symbol 125 MovieClip Frame 8
stop();
Symbol 125 MovieClip Frame 9
stop();
Symbol 125 MovieClip Frame 10
stop();
Symbol 125 MovieClip Frame 11
Char.kongAttack1();
stop();
Symbol 125 MovieClip Frame 12
stop();
Symbol 125 MovieClip Frame 13
Char.kongAttack1();
stop();
Symbol 125 MovieClip Frame 14
stop();
Symbol 125 MovieClip Frame 15
gotoAndStop (1);
Symbol 125 MovieClip Frame 142
_root.prinzess._visible = false;
_root.heart.gotoAndStop(2);
Symbol 125 MovieClip Frame 191
_root.howHigh();
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 26
gotoAndStop (1);
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 26
gotoAndStop (1);
Symbol 151 MovieClip Frame 2
if (_parent.barrel) {
gotoAndPlay (56);
}
Symbol 151 MovieClip Frame 55
gotoAndPlay(_currentframe + 2);
Symbol 151 MovieClip Frame 237
_root.howHigh();
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
type = 1;
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
stop();