Frame 1
_root.learn_tricks_url = "http://www.stickee.net";
swears = new Array("ASS", "TIT", "COK", "COC", "DIK", "NOB", "BUM", "FUC", "WNK", "PIS", "SHT", "FUK", "DIC", "PIZ", "ARS", "CNT", "POO", "WEE");
Stage.align = "LT";
Stage.scaleMode = "noScale";
scr_wid = 700;
scr_hei = 399;
music = 1;
timer1 = 50;
timer2 = 50;
timer3 = 60;
timer4 = 45;
timer5 = 50;
timer6 = 60;
timer7 = 15;
timer8 = 20;
timer9 = 25;
timer10 = 20;
timer11 = 15;
timer12 = 20;
stop();
function score(count) {
var _local1 = _root;
_local1["score" + _local1.currentplayer] = _local1["score" + _local1.currentplayer] + count;
_local1.slider.score = _local1.slider.score + count;
}
function keycheck() {
var _local1 = _root;
if (_local1.platforms.keycount == 0) {
_local1.platforms[_local1.platforms.door].door.gotoAndStop(2);
}
}
function donebonus() {
var _local1 = _root;
trace((_local1.platforms.count + " ") + _local1.platforms.totalobj);
if (_local1.platforms.count == _local1.platforms.totalobj) {
if (_local1.platforms.keychecker._currentframe > 1) {
if (_local1.level > 6) {
trace("DONE BONUS");
if ((_local1.slider._currentframe == 27) and (_local1.level > 6)) {
_local1.slider.mode = 3;
_local1["level" + _local1.currentplayer] = _local1.levelfrom;
_local1.slider.outoftime.gotoAndPlay("welldone");
}
} else {
trace("bonus life");
if (_local1["lives" + _local1.currentplayer] < 9) {
_local1["lives" + _local1.currentplayer]++;
_local1.slider.lives = "x " + _local1["lives" + _local1.currentplayer];
_local1.slider.heart.gotoAndPlay(2);
}
}
}
}
}
Instance of Symbol 5 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaderout = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loader = loaderout + "%";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 5 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaderout = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loader = loaderout + "%";
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndStop(3);
}
}
Frame 6
level = _root["level" + _root.currentplayer];
if (level > 6) {
feedback = "Bonus Level";
} else {
feedback = "Level " + level;
}
lives = "x " + _root["lives" + _root.currentplayer];
playerfeedback = ("Player " + _root.currentplayer) + " ready?";
_root[(("c" + _root.currentplayer) + "_") + _root.level] = _root["timer" + _root.level];
stop();
Instance of Symbol 306 MovieClip in Frame 6
onClipEvent (enterFrame) {
n++;
if (n > 200) {
_root.gotoAndStop(9 + Number(_root.level));
}
}
Frame 7
gop = "Player " + _root.currentplayer;
uscore = _root["score" + _root.currentplayer];
uname = "";
Instance of Symbol 350 MovieClip "tryagain" in Frame 7
onClipEvent (enterFrame) {
_parent.uname = substring(_parent.uname.toUpperCase(), 1, 3);
}
Frame 10
stop();
Frame 16
Frame 24
stopAllSounds();
loadMovie (("tricks/trick" + _root.level) + ".swf", "box");
Instance of Symbol 858 MovieClip "box" in Frame 24
onClipEvent (enterFrame) {
_parent.loader = int((getBytesLoaded() / getBytesTotal()) * 100) + "%";
if ((this._currentframe == this._totalframes) and (this._currentframe > 10)) {
_root.gotoAndStop(6);
}
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Symbol 76 MovieClip Frame 1
if (_root["player" + _root.currentplayer] == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 108 Button
on (release) {
gotoAndPlay (11);
}
Symbol 109 MovieClip Frame 1
play();
Symbol 109 MovieClip Frame 10
stop();
Symbol 109 MovieClip Frame 20
_root.gotoAndStop(4);
Symbol 114 MovieClip Frame 1
if (_root.music > 0) {
stopAllSounds();
gotoAndStop (2);
} else {
stop();
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 16
_root.gotoAndStop(4);
Symbol 129 Button
on (release) {
if (box._currentframe == 1) {
box.gotoAndPlay(2);
}
}
Symbol 174 MovieClip Frame 1
if (_root["player" + _root.currentplayer] == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 174 MovieClip Frame 2
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
play();
Symbol 208 Button
on (release) {
_root.music = 0;
stopAllSounds();
_root.musicmov.gotoAndStop(1);
gotoAndStop (2);
}
Symbol 213 Button
on (release) {
_root.musicmov.gotoAndStop(2);
_root.music = 1;
gotoAndStop (1);
}
Symbol 216 MovieClip Frame 1
if (_root.music > 0) {
stop();
} else {
gotoAndStop (2);
}
Symbol 227 Button
on (release) {
mode = 2;
gotoAndPlay (26);
}
Symbol 228 Button
on (release) {
mode = 8;
gotoAndPlay (26);
}
Symbol 229 Button
on (release) {
mode = 9;
gotoAndPlay (26);
}
Symbol 230 Button
on (release) {
mode = 23;
_root.hiscoreskip = 1;
gotoAndPlay (26);
}
Symbol 231 Button
on (release) {
mode = 5;
gotoAndPlay (26);
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 2
play();
Instance of Symbol 203 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 235 MovieClip Frame 10
gotoAndPlay (18);
Instance of Symbol 203 MovieClip in Symbol 235 MovieClip Frame 18
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 235 MovieClip Frame 25
stop();
Symbol 235 MovieClip Frame 26
gotoAndPlay (30);
Instance of Symbol 234 MovieClip in Symbol 235 MovieClip Frame 26
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 235 MovieClip Frame 40
_root.gotoAndStop(mode);
Symbol 243 Button
on (release) {
mode = 4;
gotoAndPlay (11);
}
Symbol 244 Button
on (release) {
_root.players = 1;
mode = 1;
gotoAndPlay (11);
}
Symbol 245 Button
on (release) {
_root.players = 2;
mode = 2;
gotoAndPlay (11);
}
Symbol 251 Button
on (release) {
_root.player1 = 1;
_parent.mode = 1;
_parent.gotoAndPlay(31);
}
Symbol 253 Button
on (release) {
_root.player1 = 2;
_parent.mode = 1;
_parent.gotoAndPlay(31);
}
Symbol 279 MovieClip Frame 59
gotoAndPlay (20);
Symbol 286 Button
on (release) {
mode = 4;
gotoAndPlay (31);
}
Symbol 287 Button
on (release) {
item1 = 1;
item2 = 2;
this[1].gotoAndStop(2);
this[2].gotoAndStop(1);
done.gotoAndPlay(2);
}
Symbol 289 Button
on (release) {
item1 = 2;
item2 = 1;
this[1].gotoAndStop(1);
this[2].gotoAndStop(2);
done.gotoAndPlay(2);
}
Symbol 290 Button
on (release) {
item1 = 2;
item2 = 1;
this[3].gotoAndStop(2);
this[4].gotoAndStop(1);
done.gotoAndPlay(2);
}
Symbol 291 Button
on (release) {
item1 = 1;
item2 = 2;
this[3].gotoAndStop(1);
this[4].gotoAndStop(2);
done.gotoAndPlay(2);
}
Symbol 295 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
play();
Symbol 302 MovieClip Frame 11
_root.player1 = _parent.item1;
_root.player2 = _parent.item2;
_parent._parent.mode = 1;
_parent._parent.gotoAndPlay(51);
Symbol 303 MovieClip Frame 1
mode = 0;
Symbol 304 Button
on (release) {
mode = 4;
gotoAndPlay (51);
}
Symbol 305 MovieClip Frame 1
_root.currentplayer = 1;
_root.score1 = 0;
_root.score2 = 0;
_root.level1 = 1;
_root.level2 = 1;
_root.lives1 = 4;
_root.lives2 = 4;
n = 1;
while (n <= (_root._totalframes - 9)) {
_root["c1_" + n] = _root["timer" + n];
_root["p1_" + n] = new Array();
_root["c2_" + n] = _root["timer" + n];
_root["p2_" + n] = new Array();
n++;
}
play();
Symbol 305 MovieClip Frame 10
stop();
Symbol 305 MovieClip Frame 20
if (mode == 1) {
gotoAndPlay (21);
} else if (mode == 2) {
gotoAndPlay (41);
} else if (mode == 4) {
_root.gotoAndStop(mode);
}
Symbol 305 MovieClip Frame 21
play();
Symbol 305 MovieClip Frame 30
stop();
Symbol 305 MovieClip Frame 40
if (mode == 4) {
_root.gotoAndStop(mode);
} else {
_root.gotoAndStop(6);
}
Symbol 305 MovieClip Frame 41
play();
Symbol 305 MovieClip Frame 50
stop();
Symbol 305 MovieClip Frame 60
if (mode == 4) {
_root.gotoAndStop(mode);
} else {
_root.gotoAndStop(6);
}
Symbol 310 MovieClip Frame 1
if (_root.level > 6) {
gotoAndStop (3);
} else if (_root["player" + _root.currentplayer] == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 317 Button
on (release) {
_root.gotoAndStop(9 + Number(_root.level));
}
Symbol 335 Button
on (release, keyPress "<Enter>") {
swe = 0;
n = 0;
while (n < _root.swears.length) {
if (_root.uname eq swears[n]) {
_root.uname = "";
swe = 1;
tryagain.gotoAndPlay(2);
}
n++;
}
if (swe < 1) {
_root.gotoAndStop(23);
}
}
Symbol 338 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 341 Button
on (release) {
if (_root.currentplayer == 2) {
_root.currentplayer = 1;
} else {
_root.currentplayer = 2;
}
_root.gotoAndStop(6);
}
Symbol 344 MovieClip Frame 1
if ((_root.players > 1) and ((_root.lives1 > 0) or (_root.lives2 > 0))) {
gotoAndStop (2);
} else {
stop();
}
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 2
play();
Symbol 355 MovieClip Frame 1
if (_root["player" + _root.currentplayer] == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 355 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 59
gotoAndPlay (20);
Symbol 372 Button
on (release) {
getURL ("downloads/foyer_800_600.jpg", "_blank");
}
Symbol 373 Button
on (release) {
getURL ("downloads/foyer_1024_768.jpg", "_blank");
}
Symbol 378 Button
on (release) {
getURL ("downloads/foyer_1280_1024.jpg", "_blank");
}
Symbol 381 Button
on (release) {
getURL ("downloads/splash_800_600.jpg", "_blank");
}
Symbol 382 Button
on (release) {
getURL ("downloads/splash_1024_768.jpg", "_blank");
}
Symbol 383 Button
on (release) {
getURL ("downloads/splash_1280_1024.jpg", "_blank");
}
Symbol 384 Button
on (release) {
getURL ("downloads/baddies_800_600.jpg", "_blank");
}
Symbol 385 Button
on (release) {
getURL ("downloads/baddies_1024_768.jpg", "_blank");
}
Symbol 386 Button
on (release) {
getURL ("downloads/baddies_1280_1024.jpg", "_blank");
}
Symbol 387 Button
on (release) {
getURL ("downloads/girl_800_600.jpg", "_blank");
}
Symbol 388 Button
on (release) {
getURL ("downloads/girl_1024_768.jpg", "_blank");
}
Symbol 389 Button
on (release) {
getURL ("downloads/girl_1280_1024.jpg", "_blank");
}
Symbol 390 Button
on (release) {
getURL ("downloads/boy_800_600.jpg", "_blank");
}
Symbol 391 Button
on (release) {
getURL ("downloads/boy_1280_1024.jpg", "_blank");
}
Symbol 393 Button
on (release) {
gotoAndPlay (11);
}
Symbol 394 MovieClip Frame 1
play();
Instance of Symbol 203 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 394 MovieClip Frame 10
stop();
Instance of Symbol 234 MovieClip in Symbol 394 MovieClip Frame 11
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 394 MovieClip Frame 20
_root.gotoAndStop(4);
Symbol 395 Button
on (release) {
gotoAndPlay (11);
}
Symbol 406 MovieClip Frame 1
stop();
Instance of Symbol 402 MovieClip in Symbol 406 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(200) == 4) {
_parent.gotoAndPlay(2);
}
}
Symbol 412 MovieClip Frame 16
_parent.remove();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 2
play();
Symbol 415 MovieClip Frame 1
function remove() {
if (doneonce < 2) {
_parent.count++;
_root.donebonus();
doneonce = 2;
this._visible--;
}
}
if (doneonce < 1) {
obj = "flask";
isanobj = 1;
doneonce = 1;
_parent.total++;
_parent.totalobj++;
this._name = _parent.total;
if (_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] > 0) {
remove();
}
}
stop();
Symbol 415 MovieClip Frame 2
_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] = 1;
_root.score(300);
Instance of Symbol 414 MovieClip in Symbol 415 MovieClip Frame 2
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 417 MovieClip Frame 1
stop();
Instance of Symbol 402 MovieClip in Symbol 417 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(200) == 4) {
_parent.gotoAndPlay(2);
}
}
Symbol 417 MovieClip Frame 2
play();
Symbol 419 MovieClip Frame 1
function remove() {
if (doneonce < 2) {
doneonce = 2;
_parent.count++;
_root.donebonus();
this._visible--;
}
}
if (doneonce < 1) {
obj = "crystal";
isanobj = 1;
doneonce = 1;
_parent.total++;
_parent.totalobj++;
this._name = _parent.total;
if (_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] > 0) {
remove();
}
}
stop();
Symbol 419 MovieClip Frame 2
_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] = 1;
_root.score(400);
Instance of Symbol 414 MovieClip in Symbol 419 MovieClip Frame 2
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 421 MovieClip Frame 1
stop();
Instance of Symbol 402 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(200) == 4) {
_parent.gotoAndPlay(2);
}
}
Symbol 421 MovieClip Frame 2
play();
Symbol 423 MovieClip Frame 1
function remove() {
if (doneonce < 2) {
doneonce = 2;
_parent.count++;
_root.donebonus();
this._visible = 0;
}
}
if (doneonce < 1) {
obj = "coins";
isanobj = 1;
doneonce = 1;
_parent.total++;
_parent.totalobj++;
this._name = _parent.total;
if (_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] > 0) {
remove();
}
}
stop();
Symbol 423 MovieClip Frame 2
_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] = 1;
_root.score(100);
Instance of Symbol 414 MovieClip in Symbol 423 MovieClip Frame 2
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 428 MovieClip Frame 1
stop();
Instance of Symbol 402 MovieClip in Symbol 428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(200) == 4) {
_parent.gotoAndPlay(2);
}
}
Symbol 428 MovieClip Frame 2
play();
Symbol 430 MovieClip Frame 1
function remove() {
if (doneonce < 2) {
doneonce = 2;
_parent.keycount--;
if (_parent.keychecker._currentframe == 2) {
_root.keycheck();
}
this._visible--;
}
}
if (doneonce < 1) {
obj = "key";
isanobj = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
_parent.keycount++;
if (_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] > 0) {
remove();
}
}
stop();
Symbol 430 MovieClip Frame 2
_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] = 1;
_root.score(100);
Instance of Symbol 414 MovieClip in Symbol 430 MovieClip Frame 2
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 440 MovieClip Frame 1
stop();
Instance of Symbol 402 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(200) == 4) {
_parent.gotoAndPlay(2);
}
}
Symbol 440 MovieClip Frame 2
play();
Symbol 442 MovieClip Frame 1
function remove() {
if (doneonce < 2) {
doneonce = 2;
_parent.count++;
_root.donebonus();
this._visible--;
}
}
if (doneonce < 1) {
isanobj = 1;
obj = "book";
doneonce = 1;
_parent.total++;
_parent.totalobj++;
this._name = _parent.total;
if (_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] > 0) {
remove();
}
}
stop();
Symbol 442 MovieClip Frame 2
_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] = 1;
_root.score(500);
Instance of Symbol 414 MovieClip in Symbol 442 MovieClip Frame 2
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 2
play();
Symbol 470 MovieClip Frame 1
if (_root["player" + _root.currentplayer] == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 470 MovieClip Frame 2
stop();
Symbol 476 MovieClip Frame 1
stop();
Instance of Symbol 465 MovieClip in Symbol 476 MovieClip Frame 2
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 476 MovieClip Frame 12
if (_root.slider._currentframe == 27) {
if (_root.level == 6) {
_root.slider.mode = 5;
_root.slider.outoftime.gotoAndPlay("welldone");
} else {
_root.slider.mode = 3;
_root["level" + _root.currentplayer]++;
_root.slider.outoftime.gotoAndPlay("welldone");
}
}
Symbol 477 MovieClip Frame 1
if (doneonce < 1) {
obj = "door";
isanobj = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
_parent.door = _name;
}
stop();
Symbol 477 MovieClip Frame 2
if (door._currentframe == 2) {
_parent.player._visible = 0;
door.gotoAndPlay(3);
} else {
gotoAndStop (1);
}
Symbol 488 MovieClip Frame 1
play();
Instance of Symbol 203 MovieClip in Symbol 488 MovieClip Frame 1
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 488 MovieClip Frame 10
stop();
Instance of Symbol 234 MovieClip in Symbol 488 MovieClip Frame 11
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 488 MovieClip Frame 20
_root.gotoAndStop(4);
Symbol 501 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 502 MovieClip Frame 2
_root.keycheck();
stop();
Symbol 510 MovieClip Frame 1
if (doneonce < 1) {
rope = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 517 MovieClip Frame 1
if (doneonce < 1) {
ladder = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 519 MovieClip Frame 1
if (doneonce < 1) {
rope = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 2
play();
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 2
play();
Instance of Symbol 523 MovieClip in Symbol 524 MovieClip Frame 2
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 526 MovieClip Frame 27
_parent.checker();
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
play();
Symbol 529 MovieClip Frame 1
function checker() {
if ((random(delay) == 1) and (visiblemode < 1)) {
trace("hat");
visiblemode = 1;
flash.gotoAndPlay(2);
hatbox._alpha = 100;
val = random(4);
counter.gotoAndStop(1);
if (val < 1) {
} else {
_x = _parent["hat" + val]._x;
_y = _parent["hat" + val]._y;
}
}
}
function remove() {
var _local1 = _root;
if (doneonce < 2) {
doneonce = 2;
if (_local1.slider._currentframe == 27) {
_local1.slider.mode = 3;
_local1.levelfrom = _local1.level;
_local1.level = (_local1["level" + _local1.currentplayer] = Number(targ) + 6);
_local1.gotoAndStop(9 + Number(_local1.level));
}
this._visible--;
}
}
if (doneonce < 1) {
visiblemode = 0;
isanobj = 1;
obj = "hat";
doneonce = 1;
_parent.total++;
this._name = _parent.total;
if (_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] > 0) {
visiblemode = 1;
counter.gotoAndStop(1);
remove();
}
}
if (visiblemode < 1) {
hatbox._alpha = 0;
}
stop();
Symbol 529 MovieClip Frame 2
if (visiblemode < 1) {
gotoAndStop (1);
} else {
_root[(("p" + _root.currentplayer) + "_") + _root.level][_name] = 1;
_root.score(200);
remove();
hatsound.gotoAndPlay(2);
}
Symbol 531 MovieClip Frame 2
stop();
Instance of Symbol 538 MovieClip "box" in Symbol 548 MovieClip Frame 3
onClipEvent (enterFrame) {
acc = _parent._parent.xacc;
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= this._totalframes) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Instance of Symbol 538 MovieClip "box" in Symbol 548 MovieClip Frame 4
onClipEvent (enterFrame) {
acc = -_parent._parent.xacc;
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= this._totalframes) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Instance of Symbol 547 MovieClip in Symbol 548 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_parent._parent.yacc < 0) {
acc = -_parent._parent.yacc;
} else {
acc = _parent._parent.yacc;
}
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= this._totalframes) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Symbol 551 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
function move(val) {
var _local1 = val;
var _local2 = this;
var _local3 = _root;
if (_parent.player.pause < 1) {
spaced = box.kdsp;
jumper = 107;
shift = speed;
climbspeed = 1.5;
if (flying < 1) {
if (_local1 == "left") {
if (xacc > 0) {
xacc = 0;
} else {
xacc = xacc - (shift * 2.6);
}
} else if (_local1 == "right") {
if (xacc < 0) {
xacc = 0;
} else {
xacc = xacc + (shift * 2.6);
}
} else if (_local1 == "jump") {
yacc = (-shift) * jumper;
}
} else if (climbing > 0) {
if (_local1 == "left") {
if ((spaced == 1) or ((_currentframe == 1) and Key.isDown(32))) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
left = 1;
xacc = xacc - (shift * xjump);
climbmode = 0;
climbanim = 0;
player.facing = 0;
} else if (_local1 == "right") {
if ((spaced == 1) or ((_currentframe == 1) and Key.isDown(32))) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
right = 1;
xacc = xacc + (shift * xjump);
player.facing = 1;
climbmode = 0;
climbanim = 0;
} else if (((_local1 == "jump") and (box.up < 1)) and (climbanim == 1)) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
} else if (flying > 0) {
if (_local1 == "left") {
xacc = xacc - (shift / 5);
} else if (_local1 == "right") {
xacc = xacc + (shift / 5);
}
}
if (climbing > 0) {
if (_local1 == "up") {
box.up = 1;
top = _local3.ropes[climbing]._y;
if ((_local2._y - (_local2._height / 2)) > (top + 1)) {
if (climbanim > 0) {
yacc = -climbspeed;
}
xacc = 0;
climbmode = 1;
} else {
yacc = 0;
}
} else if (_local1 == "down") {
box.up = 1;
btm = _local3.ropes[climbing]._y + _local3.ropes[climbing]._height;
if (_local2._y >= (btm - 15)) {
climbmode = 0;
climbanim = 0;
} else {
yacc = climbspeed;
xacc = 0;
climbmode = 1;
}
}
}
}
}
xp = -7;
yp = -39;
wp = 25;
hp = 35;
squ._x = xp;
squ._y = yp;
squ._width = wp;
squ._height = hp;
if (doneonce < 1) {
doneonce = 1;
speed = speed * 2;
pause = pause / 2;
char = 1;
_parent.total++;
this._name = _parent.total;
}
function doit() {
var _local1 = _root;
var _local2 = this;
if (_parent.player.pause < 1) {
lp = _local2._x - 22;
rp = _local2._x + 22;
tp = _local2._y - (_local2._height / 2);
bp = _local2._y;
if (climbmode < 1) {
yacc = yacc + g;
}
if (climbing < 1) {
climbmode = 0;
climbanim = 0;
} else if (flying == 1) {
if ((left < 1) and (right < 1)) {
}
}
if (yacc > 3) {
yacc = 3;
}
yhit = 0;
flying = 1;
if ((xpos >= (_local1.scr_wid - (_width / 2))) and (xacc > 0)) {
xacc = -xacc;
}
if ((xpos <= (_width / 2)) and (xacc < 0)) {
xacc = -xacc;
}
if (ypos >= _local1.scr_hei) {
yhit = 1000;
flying = 0;
}
climbing = 0;
rwid = 18;
n = 1;
while (n <= _local1.platforms.total) {
if (_local1.platforms[n].isanobj == 1) {
} else if (_local1.platforms[n].char > 0) {
} else {
lp = _local1.platforms[n]._x;
rp = lp + _local1.platforms[n]._width;
if ((xpos < (rp + 3)) and (xpos > (lp - 3))) {
if ((ypos > (_local1.platforms[n]._y - 1)) and (ypos < (_local1.platforms[n]._y + 4))) {
if (ypos >= _local1.platforms[n]._y) {
yhit = n;
}
flying = 0;
}
}
}
n++;
}
if (yhit > 0) {
if ((yacc > 0) and (yacc < 0.01)) {
yacc = 0;
} else if (yacc > 0) {
yacc = 0;
}
}
if (flying == 0) {
if (mover > 0) {
if (yhit == 1000) {
xacc = xacc * 0.94;
} else {
xacc = xacc * 0.98;
}
} else if (_currentframe == 4) {
xacc = 0;
} else if (yhit == 1000) {
xacc = xacc * 0.83;
} else {
xacc = xacc * 0.85;
}
if ((xacc > ((-shift) / 2)) and (xacc < (shift / 2))) {
xacc = 0;
}
} else {
xacc = xacc * 0.992;
}
if (((yhit > 0) and (yhit < 1000)) and (ypos > _local1.platforms[yhit]._y)) {
ypos = _local1.platforms[yhit]._y;
} else {
ypos = ypos + yacc;
}
if (ypos >= _local1.scr_hei) {
ypos = _local1.scr_hei;
flying = 0;
}
mmax = 5;
if (xacc > mmax) {
xacc = mmax;
}
if (xacc < (-mmax)) {
xacc = -mmax;
}
xpos = xpos + xacc;
player.shiftdir = 0;
if (climbmode > 0) {
targx = _local1.ropes[climbing]._x;
if ((xpos < (targx - 1)) and (left < 1)) {
xpos++;
player.shiftdir = 1;
} else if ((xpos > (targx + 1)) and (right < 1)) {
xpos--;
player.shiftdir = 2;
} else if (((jump < 1) and (left < 1)) and (right < 1)) {
climbanim = 1;
} else {
climbanim = 0;
}
}
_x = xpos;
_y = ypos;
if (flying > 0) {
dflying++;
} else {
dflying = 0;
}
}
}
g = 0.19;
yacc = 0;
xacc = 0;
ypos = _y;
xpos = _x;
climbmode = 0;
Instance of Symbol 548 MovieClip "player" in Symbol 553 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.player.pause < 1) {
_root.tracer = shiftdir;
acc = _parent.xacc;
if (_parent.climbanim > 0) {
gotoAndStop (7);
} else if (((_parent.dflying > 2) and (acc < 0)) or (shiftdir == 2)) {
gotoAndStop (6);
facing = 0;
} else if (((_parent.dflying > 2) and (acc > 0)) or (shiftdir == 1)) {
facing = 1;
gotoAndStop (5);
} else if ((_parent.dflying > 2) and (acc == 0)) {
if (_parent.right > 0) {
gotoAndStop (5);
} else if (facing == 1) {
gotoAndStop (5);
} else if (facing == 0) {
gotoAndStop (6);
}
} else if ((acc == 0) and ((_currentframe == 4) or (_currentframe == 2))) {
gotoAndStop (2);
} else if (acc == 0) {
gotoAndStop (1);
} else if (acc > 0) {
facing = 1;
gotoAndStop (3);
} else {
facing = 0;
gotoAndStop (4);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 552 MovieClip "box" in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
mode = _parent.direction;
_parent.move("right");
}
onClipEvent (enterFrame) {
function left() {
_parent.move("left");
_parent.mover = 1;
}
function right() {
_parent.move("right");
_parent.mover = 1;
}
function up() {
_parent.move("up");
}
function down() {
_parent.move("down");
}
function jump() {
_parent.move("jump");
}
_parent.left = 0;
_parent.right = 0;
_parent.jump = 0;
this.up = 0;
_parent.mover = 0;
if (_parent.yhit < 1) {
_parent.move(mode);
} else if (mode eq "left") {
if (_root.platforms[_parent.yhit]._x < (_parent._x - (_parent._width / 2))) {
left();
} else {
submode = "right";
count = 0;
mode = "pause";
}
} else if (mode eq "right") {
if ((_root.platforms[_parent.yhit]._x + _root.platforms[_parent.yhit]._width) > (_parent._x + (_parent._width / 2))) {
right();
} else {
submode = "left";
count = 0;
mode = "pause";
}
} else if (mode eq "pause") {
if (count >= _parent.pause) {
mode = submode;
} else {
count++;
}
}
}
Instance of Symbol 563 MovieClip "box" in Symbol 577 MovieClip Frame 3
onClipEvent (enterFrame) {
acc = _parent._parent.xacc;
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= this._totalframes) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Instance of Symbol 563 MovieClip "box" in Symbol 577 MovieClip Frame 4
onClipEvent (enterFrame) {
acc = -_parent._parent.xacc;
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= this._totalframes) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Instance of Symbol 576 MovieClip in Symbol 577 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_parent._parent.yacc < 0) {
acc = -_parent._parent.yacc;
} else {
acc = _parent._parent.yacc;
}
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= this._totalframes) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Symbol 578 MovieClip Frame 1
function move(val) {
var _local1 = val;
var _local2 = this;
var _local3 = _root;
if (_parent.player.pause < 1) {
spaced = box.kdsp;
jumper = 60;
shift = speed;
if (flying < 1) {
if (_local1 == "left") {
if (xacc > 0) {
xacc = 0;
} else {
xacc = xacc - (shift * 2.6);
}
} else if (_local1 == "right") {
if (xacc < 0) {
xacc = 0;
} else {
xacc = xacc + (shift * 2.6);
}
} else if (_local1 == "jump") {
yacc = (-shift) * jumper;
}
} else if (climbing > 0) {
if (_local1 == "left") {
if ((spaced == 1) or ((_currentframe == 1) and Key.isDown(32))) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
left = 1;
xacc = xacc - (shift * xjump);
climbmode = 0;
climbanim = 0;
player.facing = 0;
} else if (_local1 == "right") {
if ((spaced == 1) or ((_currentframe == 1) and Key.isDown(32))) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
right = 1;
xacc = xacc + (shift * xjump);
player.facing = 1;
climbmode = 0;
climbanim = 0;
} else if (((_local1 == "jump") and (box.up < 1)) and (climbanim == 1)) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
} else if (flying > 0) {
if (_local1 == "left") {
xacc = xacc - (shift / 5);
} else if (_local1 == "right") {
xacc = xacc + (shift / 5);
}
}
if (climbing > 0) {
if (_local1 == "up") {
box.up = 1;
top = _local3.platforms[climbing]._y;
if ((_local2._y - (_local2._height / 2)) > (top + 1)) {
if (climbanim > 0) {
yacc = -climbspeed;
}
xacc = 0;
climbmode = 1;
} else {
yacc = 0;
}
} else if (_local1 == "down") {
box.up = 1;
btm = _local3.platforms[climbing]._y + _local3.platforms[climbing]._height;
if (_local2._y >= (btm - 15)) {
climbmode = 0;
climbanim = 0;
} else {
yacc = climbspeed;
xacc = 0;
climbmode = 1;
}
}
}
}
}
xp = -10;
yp = -39;
wp = 20;
hp = 32;
squ._x = xp;
squ._y = yp;
squ._width = wp;
squ._height = hp;
if (doneonce < 1) {
speed = speed * 2;
pause = pause / 2;
toppause = toppause / 2;
climbspeed = climbspeed * 1.3;
doneonce = 1;
char = 1;
_parent.total++;
this._name = _parent.total;
}
function doit() {
var _local1 = _root;
var _local2 = this;
if (_parent.player.pause < 1) {
lp = _local2._x - 22;
rp = _local2._x + 22;
tp = _local2._y - (_local2._height / 2);
bp = _local2._y;
if (climbmode < 1) {
yacc = yacc + g;
}
if (climbing < 1) {
climbmode = 0;
climbanim = 0;
} else if (flying == 1) {
if ((left < 1) and (right < 1)) {
}
}
if (yacc > 3) {
yacc = 3;
}
yhit = 0;
flying = 1;
if ((xpos >= (_local1.scr_wid - (_width / 2))) and (xacc > 0)) {
xacc = -xacc;
}
if ((xpos <= (_width / 2)) and (xacc < 0)) {
xacc = -xacc;
}
if (ypos >= _local1.scr_hei) {
yhit = 1000;
flying = 0;
}
climbing = 0;
rwid = 18;
n = 1;
while (n <= _local1.platforms.total) {
if (_local1.platforms[n].isanobj == 1) {
} else if (_local1.platforms[n].char > 0) {
} else if ((_local1.platforms[n].rope == 1) or (_local1.platforms[n].ladder == 1)) {
lr = _local1.platforms[n]._x - rwid;
rr = _local1.platforms[n]._x + rwid;
tr = _local1.platforms[n]._y + (_local2._height / 2);
br = (tr + _local1.platforms[n]._height) - (_local2._height / 2);
if ((((xpos >= lr) and (xpos < rr)) and (ypos >= (tr - 2))) and (ypos <= (br + 2))) {
climbing = n;
if (climbmode > 0) {
yacc = yacc * 0.9;
}
}
} else {
lp = _local1.platforms[n]._x;
rp = lp + _local1.platforms[n]._width;
if ((xpos < (rp + 3)) and (xpos > (lp - 3))) {
if ((ypos > (_local1.platforms[n]._y - 1)) and (ypos < (_local1.platforms[n]._y + 4))) {
if (ypos >= _local1.platforms[n]._y) {
yhit = n;
}
flying = 0;
}
}
}
n++;
}
if (yhit > 0) {
if ((yacc > 0) and (yacc < 0.01)) {
yacc = 0;
} else if (yacc > 0) {
yacc = 0;
}
}
if (flying == 0) {
if (mover > 0) {
if (yhit == 1000) {
xacc = xacc * 0.94;
} else {
xacc = xacc * 0.98;
}
} else if (_currentframe == 4) {
xacc = 0;
} else if (yhit == 1000) {
xacc = xacc * 0.83;
} else {
xacc = xacc * 0.85;
}
if ((xacc > ((-shift) / 2)) and (xacc < (shift / 2))) {
xacc = 0;
}
} else {
xacc = xacc * 0.992;
}
if (((yhit > 0) and (yhit < 1000)) and (ypos > _local1.platforms[yhit]._y)) {
ypos = _local1.platforms[yhit]._y;
} else {
ypos = ypos + yacc;
}
if (ypos >= _local1.scr_hei) {
ypos = _local1.scr_hei;
flying = 0;
}
mmax = 5;
if (xacc > mmax) {
xacc = mmax;
}
if (xacc < (-mmax)) {
xacc = -mmax;
}
xpos = xpos + xacc;
player.shiftdir = 0;
if (climbmode > 0) {
targx = _local1.platforms[climbing]._x;
if ((xpos < (targx - 1)) and (left < 1)) {
xpos++;
player.shiftdir = 1;
} else if ((xpos > (targx + 1)) and (right < 1)) {
xpos--;
player.shiftdir = 2;
} else if (((jump < 1) and (left < 1)) and (right < 1)) {
climbanim = 1;
} else {
climbanim = 0;
}
}
_x = xpos;
_y = ypos;
if (flying > 0) {
dflying++;
} else {
dflying = 0;
}
}
}
g = 0.19;
yacc = 0;
xacc = 0;
ypos = _y;
xpos = _x;
climbmode = 0;
Instance of Symbol 577 MovieClip "player" in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.player.pause < 1) {
_root.tracer = shiftdir;
acc = _parent.xacc;
if (_parent.climbanim > 0) {
gotoAndStop (7);
} else if (((_parent.dflying > 2) and (acc < 0)) or (shiftdir == 2)) {
gotoAndStop (6);
facing = 0;
} else if (((_parent.dflying > 2) and (acc > 0)) or (shiftdir == 1)) {
facing = 1;
gotoAndStop (5);
} else if ((_parent.dflying > 2) and (acc == 0)) {
if (facing == 1) {
gotoAndStop (5);
} else if (facing == 0) {
gotoAndStop (6);
}
} else if ((acc == 0) and ((_currentframe == 4) or (_currentframe == 2))) {
gotoAndStop (2);
} else if (acc == 0) {
gotoAndStop (1);
} else if (acc > 0) {
facing = 1;
gotoAndStop (3);
} else {
facing = 0;
gotoAndStop (4);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 552 MovieClip "box" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
mode = _parent.direction;
_parent.move("right");
}
onClipEvent (enterFrame) {
function left() {
_parent.move("left");
_parent.mover = 1;
}
function right() {
_parent.move("right");
_parent.mover = 1;
}
function goup() {
_parent.move("up");
}
function down() {
_parent.move("down");
}
function jump() {
_parent.move("jump");
}
_parent.left = 0;
_parent.right = 0;
_parent.jump = 0;
this.up = 0;
_parent.mover = 0;
_root.tracer1 = _parent.climbing;
if ((_parent.climbing > 0) and (walkmode != "walk")) {
if ((climbmode != "down") and (climbmode != "pause")) {
if (_root.platforms[_parent.climbing]._y < (_parent._y - _parent._height)) {
goup();
} else {
climbmode = "pause";
pcount = 0;
}
} else if (climbmode eq "pause") {
if (pcount < _parent.toppause) {
pcount++;
} else {
climbmode = "down";
}
} else if (_parent.flying > 0) {
down();
} else {
walkmode = "walk";
}
} else if (_parent.yhit < 1) {
_parent.move(mode);
} else if (mode eq "left") {
if (_root.platforms[_parent.yhit]._x < ((_parent._x - (_parent._width / 2)) - (_parent.speed * 160))) {
left();
} else {
submode = "right";
count = 0;
mode = "pause";
}
} else if (mode eq "right") {
if ((_root.platforms[_parent.yhit]._x + _root.platforms[_parent.yhit]._width) > ((_parent._x + (_parent._width / 2)) + (_parent.speed * 160))) {
right();
} else {
submode = "left";
count = 0;
mode = "pause";
}
} else if (mode eq "pause") {
walkmode = "";
climbmode = "";
if (count >= _parent.pause) {
mode = submode;
} else {
count++;
}
}
}
Symbol 594 MovieClip Frame 1
if (_root["player" + _root.currentplayer] == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 594 MovieClip Frame 2
stop();
Symbol 597 MovieClip Frame 1
play();
Symbol 597 MovieClip Frame 18
gotoAndPlay (13);
Symbol 603 MovieClip Frame 1
if (_root["player" + _root.currentplayer] == 1) {
stop();
} else {
gotoAndStop (2);
}
Instance of Symbol 584 MovieClip in Symbol 606 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(Number(_parent.countout) + 1);
}
onClipEvent (enterFrame) {
if (_parent._parent.flying < 1) {
acc = _parent._parent.xacc;
} else {
acc = _parent._parent.xacc / 2;
}
if (acc > 0.7) {
_parent.count = _parent.count + (acc / 2);
} else if ((_parent.countout != 7) and (_parent.countout != 38)) {
_parent.count = _parent.count + 0.5;
}
_parent.countout = int(_parent.count);
if (_parent.countout >= this._totalframes) {
_parent.countout = 0;
_parent.count = 0;
}
gotoAndStop(Number(_parent.countout) + 1);
}
Instance of Symbol 180 MovieClip "box" in Symbol 606 MovieClip Frame 3
onClipEvent (enterFrame) {
acc = _parent._parent.xacc;
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= 66) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Instance of Symbol 584 MovieClip in Symbol 606 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(Number(_parent.countout) + 1);
}
onClipEvent (enterFrame) {
if (_parent._parent.flying < 1) {
acc = -_parent._parent.xacc;
} else {
acc = (-_parent._parent.xacc) / 2;
}
if (acc > 0.7) {
_parent.count = _parent.count + (acc / 2);
} else if ((_parent.countout != 7) and (_parent.countout != 38)) {
_parent.count = _parent.count + 0.5;
}
_parent.countout = int(_parent.count);
if (_parent.countout >= this._totalframes) {
_parent.countout = 0;
_parent.count = 0;
}
gotoAndStop(Number(_parent.countout) + 1);
}
Instance of Symbol 180 MovieClip "box" in Symbol 606 MovieClip Frame 4
onClipEvent (enterFrame) {
acc = -_parent._parent.xacc;
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= 66) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Instance of Symbol 584 MovieClip in Symbol 606 MovieClip Frame 5
onClipEvent (load) {
ystart = _y;
gotoAndStop(Number(_parent.countout) + 1);
}
onClipEvent (enterFrame) {
n++;
if (n < 12) {
_y = (ystart - (n / 6));
}
}
Instance of Symbol 584 MovieClip "m" in Symbol 606 MovieClip Frame 6
onClipEvent (load) {
ystart = _y;
gotoAndStop(Number(_parent.countout) + 1);
}
onClipEvent (enterFrame) {
n++;
if (n < 12) {
_y = (ystart - (n / 6));
}
}
Instance of Symbol 598 MovieClip in Symbol 606 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_parent._parent.yacc < 0) {
acc = -_parent._parent.yacc;
} else {
acc = _parent._parent.yacc;
}
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= this._totalframes) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Symbol 608 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 2
play();
Symbol 612 MovieClip Frame 1
function move(val) {
var _local1 = val;
var _local2 = this;
var _local3 = _root;
if (hit < 1) {
spaced = box.kdsp;
jumper = 5;
shift = 1.94;
xjump = 4.2;
climbspeed = 4.9;
if (flying < 1) {
if (_local1 == "left") {
if (xacc > 0) {
xacc = 0;
} else {
xacc = xacc - (shift * 1.6);
}
} else if (_local1 == "right") {
if (xacc < 0) {
xacc = 0;
} else {
xacc = xacc + (shift * 1.6);
}
} else if (_local1 == "jump") {
jumpsounds.gotoAndPlay(2);
yacc = (-shift) * jumper;
}
} else if (climbing > 0) {
if (_local1 == "left") {
if ((spaced == 1) or ((_currentframe == 1) and Key.isDown(32))) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
left = 1;
xacc = xacc - (shift * xjump);
climbmode = 0;
climbanim = 0;
player.facing = 0;
} else if (_local1 == "right") {
if ((spaced == 1) or ((_currentframe == 1) and Key.isDown(32))) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
right = 1;
xacc = xacc + (shift * xjump);
player.facing = 1;
climbmode = 0;
climbanim = 0;
} else if (((_local1 == "jump") and (box.up < 1)) and (climbanim == 1)) {
jumpsounds.gotoAndPlay(2);
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
} else if (flying > 0) {
if (_local1 == "left") {
xacc = xacc - 0.82;
} else if (_local1 == "right") {
xacc = xacc + 0.82;
}
}
if (climbing > 0) {
if (_local1 == "up") {
box.up = 1;
top = _local3.platforms[climbing]._y;
if ((_local2._y - (_local2._height / 2)) > (top + 1)) {
if (climbanim > 0) {
yacc = -climbspeed;
}
xacc = 0;
climbmode = 1;
} else {
yacc = -7;
}
} else if (_local1 == "down") {
box.up = 1;
btm = _local3.platforms[climbing]._y + _local3.platforms[climbing]._height;
if (_local2._y >= (btm - 15)) {
climbmode = 0;
climbanim = 0;
} else {
yacc = climbspeed;
xacc = 0;
climbmode = 1;
}
}
}
}
}
stop();
xp = -12;
yp = -37;
wp = 25;
hp = 29;
squ._x = xp;
squ._y = yp;
squ._width = wp;
squ._height = hp;
function doit() {
var _local1 = _root;
var _local2 = this;
var _local3 = _parent;
if (((_local1.slider.outoftime._currentframe == 1) or (_local1.slider.outoftime._currentframe > 179)) and (_local1.slider.areyousure._currentframe == 1)) {
pause = 0;
} else {
pause = 1;
}
if (pause < 1) {
lp = _local2._x - 22;
rp = _local2._x + 22;
tp = _local2._y - (_local2._height / 2);
bp = _local2._y;
if (hit > 10) {
hit--;
} else if ((hit == 10) and (_local1.slider.outoftime._currentframe < 180)) {
_local1.slider.mode = 2;
_local1.slider.outoftime.gotoAndPlay("badluck");
}
if (climbmode < 1) {
yacc = yacc + g;
}
if (climbing < 1) {
climbmode = 0;
climbanim = 0;
} else if (flying == 1) {
if ((left < 1) and (right < 1)) {
}
}
if (yacc > ystepmax) {
yacc = ystepmax;
}
yhit = 0;
flying = 1;
if (hit < 1) {
if ((xpos >= (_local1.scr_wid - (_width / 2))) and (xacc > 0)) {
xacc = -xacc;
}
if ((xpos <= (_width / 2)) and (xacc < 0)) {
xacc = -xacc;
}
if (ypos >= _local1.scr_hei) {
yhit = 1000;
flying = 0;
}
}
climbing = 0;
rwid = 18;
if (hit < 1) {
n = 1;
while (n <= _local1.platforms.total) {
if (_local1.platforms[n].char > 0) {
xpc = _local2._x + xp;
ypc = _local2._y + yp;
wpc = xpc + wp;
hpc = ypc + hp;
xpo = _local3[n]._x + _local3[n].xp;
ypo = _local3[n]._y + _local3[n].yp;
wpo = xpo + _local3[n].wp;
hpo = ypo + _local3[n].hp;
if ((((xpc < wpo) and (wpc > xpo)) and ((ypc < hpo) and (hpc > ypo))) and (hit < 1)) {
_local3[n].squ.gotoAndStop(2);
hit = 40;
if (_local1.music > 0) {
footsounds.gotoAndPlay(2);
}
if (xacc > 0) {
xacc = -20;
} else {
xacc = 20;
}
} else {
_local3[n].squ.gotoAndStop(1);
}
} else if (_local1.platforms[n].isanobj > 0) {
if (hit < 1) {
lp = _local2._x - 22;
rp = _local2._x + 22;
tp = _local2._y - (_local2._height / 2);
bp = _local2._y;
if (n == _local3.door) {
lr = (_local1.platforms[n]._x - 5) + 1;
rr = (lr + 10) - 1;
tr = _local1.platforms[n]._y + 1;
br = (tr + 10) - 1;
} else {
lr = (_local1.platforms[n]._x - (_local1.platforms[n]._width / 2)) + 1;
rr = (lr + _local1.platforms[n]._width) - 1;
tr = _local1.platforms[n]._y + 1;
br = (tr + _local1.platforms[n]._height) - 1;
}
if (((rp > rr) and (lp < rr)) or ((rp > lr) and (rp < rr))) {
if (((bp > br) and (tp < br)) or ((bp > tr) and (bp < br))) {
if (_local1.platforms[n]._visible > 0) {
_local1.platforms[n].gotoAndStop(2);
}
}
}
}
} else if ((_local1.platforms[n].rope == 1) or (_local1.platforms[n].ladder == 1)) {
lr = _local1.platforms[n]._x - rwid;
rr = _local1.platforms[n]._x + rwid;
tr = _local1.platforms[n]._y + (_local2._height / 2);
br = (tr + _local1.platforms[n]._height) - (_local2._height / 2);
if ((((xpos >= lr) and (xpos < rr)) and (ypos >= (tr - 2))) and (ypos <= (br + 2))) {
climbing = n;
if (climbmode > 0) {
yacc = yacc * 0.9;
}
}
} else {
lp = _local1.platforms[n]._x;
rp = lp + _local1.platforms[n]._width;
if ((xpos < (rp + 3)) and (xpos > (lp - 3))) {
if ((ypos > (_local1.platforms[n]._y - 1)) and (ypos < (_local1.platforms[n]._y + ystepmax))) {
if (ypos >= _local1.platforms[n]._y) {
yhit = n;
}
flying = 0;
}
}
}
n++;
}
}
if (yhit > 0) {
if ((yacc > 0) and (yacc < 0.01)) {
yacc = 0;
} else if (yacc > 0) {
yacc = 0;
}
}
if (hit < 1) {
if (flying == 0) {
if (mover > 0) {
if (yhit == 1000) {
xacc = xacc * 0.94;
} else {
xacc = xacc * 0.98;
}
} else if (_currentframe == 4) {
xacc = 0;
} else if (yhit == 1000) {
xacc = xacc * 0.83;
} else {
xacc = xacc * 0.85;
}
if ((xacc > ((-shift) / 2)) and (xacc < (shift / 2))) {
xacc = 0;
}
} else {
xacc = xacc * 0.992;
}
}
if (((yhit > 0) and (yhit < 1000)) and (ypos > _local1.platforms[yhit]._y)) {
ypos = _local1.platforms[yhit]._y;
} else {
ypos = ypos + yacc;
}
if (hit < 1) {
if (ypos >= _local1.scr_hei) {
ypos = _local1.scr_hei;
flying = 0;
}
}
mmax = 7;
if (xacc > mmax) {
xacc = mmax;
}
if (xacc < (-mmax)) {
xacc = -mmax;
}
xpos = xpos + xacc;
player.shiftdir = 0;
if (climbmode > 0) {
targx = _local1.platforms[climbing]._x;
if ((xpos < (targx - 1)) and (left < 1)) {
xpos = xpos + 2;
player.shiftdir = 1;
} else if ((xpos > (targx + 1)) and (right < 1)) {
xpos = xpos - 2;
player.shiftdir = 2;
} else if (((jump < 1) and (left < 1)) and (right < 1)) {
climbanim = 1;
} else {
climbanim = 0;
}
}
_x = xpos;
_y = ypos;
if (flying > 0) {
dflying++;
} else {
dflying = 0;
}
}
}
g = 0.77;
yacc = 0;
xacc = 0;
ypos = _y;
xpos = _x;
climbmode = 0;
char = 1;
ystepmax = 7;
Instance of Symbol 606 MovieClip "player" in Symbol 612 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.pause < 1) {
acc = _parent.xacc;
if (_parent.hit > 0) {
if (acc > 0) {
gotoAndStop (12);
} else {
gotoAndStop (11);
}
} else if (_parent.climbanim > 0) {
gotoAndStop (7);
} else if (((_parent.dflying > 16) and (acc < 0)) or (shiftdir == 2)) {
gotoAndStop (6);
facing = 0;
} else if (((_parent.dflying > 16) and (acc > 0)) or (shiftdir == 1)) {
facing = 1;
gotoAndStop (5);
} else if ((_parent.dflying > 16) and (acc == 0)) {
if (_parent.right > 0) {
gotoAndStop (5);
} else if (facing == 1) {
gotoAndStop (5);
} else if (facing == 0) {
gotoAndStop (6);
}
} else if ((acc == 0) and ((_currentframe == 4) or (_currentframe == 2))) {
gotoAndStop (2);
} else if (acc == 0) {
gotoAndStop (1);
} else if (acc > 0) {
facing = 1;
gotoAndStop (3);
} else {
facing = 0;
gotoAndStop (4);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 552 MovieClip "box" in Symbol 612 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.left = 0;
_parent.right = 0;
_parent.jump = 0;
this.up = 0;
_parent.mover = 0;
if (Key.isDown(37)) {
_parent.move("left");
_parent.mover = 1;
}
if (Key.isDown(39)) {
_parent.move("right");
_parent.mover = 1;
}
if (Key.isDown(38)) {
_parent.move("up");
}
if (Key.isDown(40)) {
_parent.move("down");
}
if (Key.isDown(32)) {
if (kdsp < 1) {
kdsp = 1;
_parent.move("jump");
}
} else {
kdsp = 0;
}
}
Symbol 613 MovieClip Frame 1
total = 0;
Instance of Symbol 529 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
delay = 20;
targ = 1;
}
Instance of Symbol 553 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 60;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 578 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
speed = 0.05;
pause = 10;
toppause = 10;
climbspeed = 2.2;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 10;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 612 MovieClip "player" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 2
play();
Symbol 622 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 2
play();
play();
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 2
play();
Symbol 626 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 2
stopAllSounds();
if (_root.level < 7) {
_root["lives" + _root.currentplayer]--;
lives = _root["lives" + _root.currentplayer];
if (((lives == 0) and ((_root.lives2 > 0) or (_root.lives1 > 0))) and (_root.players > 1)) {
gameover = "Game Over Player " + _root.currentplayer;
} else {
gameover = "";
}
_parent.lives = "x " + lives;
}
play();
Instance of Symbol 617 MovieClip in Symbol 626 MovieClip Frame 2
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 626 MovieClip Frame 73
if (reset == 1) {
_root[(("c" + _root.currentplayer) + "_") + _root.level] = _root["timer" + _root.level];
}
_parent.gotoAndPlay(28);
stop();
Symbol 626 MovieClip Frame 74
timeb = _root[(("c" + _root.currentplayer) + "_") + _root.level];
timul = timeb * 100;
timebonus = (("Time Bonus: " + timeb) + " x 100 = ") + timul;
_parent.score = _parent.score + (timeb * 100);
_root["score" + _root.currentplayer] = _root["score" + _root.currentplayer] + (timeb * 100);
stopAllSounds();
play();
Instance of Symbol 622 MovieClip in Symbol 626 MovieClip Frame 74
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 626 MovieClip Frame 179
_parent.gotoAndPlay(28);
Symbol 626 MovieClip Frame 180
stopAllSounds();
_root["lives" + _root.currentplayer]--;
lives = _root["lives" + _root.currentplayer];
gameover = "";
_parent.lives = "x " + lives;
play();
Instance of Symbol 625 MovieClip in Symbol 626 MovieClip Frame 180
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 626 MovieClip Frame 285
_parent.gotoAndPlay(28);
Symbol 637 Button
on (release) {
areyousure.gotoAndStop(2);
}
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 2
play();
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 2
play();
Instance of Symbol 642 MovieClip in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
stopAllSounds();
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 643 MovieClip Frame 451
if (_root.music > 0) {
_root.musicmov.gotoAndStop(2);
}
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 2
play();
Symbol 647 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 2
play();
Symbol 647 MovieClip Frame 5
play();
Instance of Symbol 646 MovieClip in Symbol 647 MovieClip Frame 5
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 647 MovieClip Frame 19
play();
Symbol 647 MovieClip Frame 33
play();
Symbol 647 MovieClip Frame 47
play();
Symbol 657 Button
on (release) {
_parent.mode = 4;
_parent.gotoAndPlay(28);
}
Symbol 658 Button
on (release) {
gotoAndStop (1);
}
Symbol 659 MovieClip Frame 1
stop();
Symbol 661 MovieClip Frame 1
gotoAndPlay (15);
Symbol 661 MovieClip Frame 15
play();
Instance of Symbol 203 MovieClip in Symbol 661 MovieClip Frame 15
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 661 MovieClip Frame 27
level = "Level " + _root.level;
if (_root.level > 6) {
level = "Bonus Level";
} else {
level = "Level " + _root.level;
}
player = "Player " + _root.currentplayer;
lives = "x " + _root["lives" + _root.currentplayer];
score = _root["score" + _root.currentplayer];
stop();
Instance of Symbol 644 MovieClip "timer" in Symbol 661 MovieClip Frame 27
onClipEvent (load) {
clock = _root[(("c" + _root.currentplayer) + "_") + _root.level];
}
onClipEvent (enterFrame) {
if (_root.platforms.player.pause < 1) {
n++;
}
if (n > 20) {
if (_root[(("c" + _root.currentplayer) + "_") + _root.level] > 0) {
_root[(("c" + _root.currentplayer) + "_") + _root.level]--;
clock = _root[(("c" + _root.currentplayer) + "_") + _root.level];
if (clock == 8) {
clocksound.gotoAndPlay(2);
}
} else if (_root.level > 6) {
if ((_parent.outoftime._currentframe == 1) and (_parent.areyousure._currentframe == 1)) {
_root["level" + _root.currentplayer] = _root.levelfrom;
_parent.mode = 3;
_parent.outoftime.gotoAndPlay(2);
}
} else if ((_parent.outoftime._currentframe == 1) and (_parent.areyousure._currentframe == 1)) {
_parent.outoftime.reset = 1;
_parent.mode = 2;
_parent.outoftime.gotoAndPlay(2);
}
n = 0;
}
}
Symbol 661 MovieClip Frame 28
play();
gotoAndPlay (40);
Symbol 661 MovieClip Frame 40
play();
Instance of Symbol 234 MovieClip in Symbol 661 MovieClip Frame 40
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 661 MovieClip Frame 54
if (mode == 5) {
_root.gotoAndStop(22);
} else if (mode == 4) {
_root.gotoAndStop(4);
} else if (mode == 2) {
if (_root["lives" + _root.currentplayer] < 1) {
_root.gotoAndStop(7);
} else {
if (_root.players == 1) {
} else if (_root.currentplayer == 2) {
if (_root.lives1 > 0) {
_root.currentplayer = 1;
}
} else if (_root.lives2 > 0) {
_root.currentplayer = 2;
}
_root.gotoAndStop(6);
}
} else if (mode == 3) {
if (_parent._currentframe < 16) {
_root.gotoAndStop(24);
} else {
_root.gotoAndStop(6);
}
}
Symbol 664 MovieClip Frame 1
if (_root.music > 0) {
stopAllSounds();
gotoAndStop (2);
} else {
stop();
}
Symbol 669 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 671 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 672 MovieClip Frame 1
if (doneonce < 1) {
ladder = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 673 MovieClip Frame 1
if (doneonce < 1) {
ladder = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 674 MovieClip Frame 1
if (doneonce < 1) {
ladder = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 675 MovieClip Frame 1
total = 0;
total = 0;
Instance of Symbol 529 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (load) {
delay = 20;
targ = 2;
}
Instance of Symbol 578 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (load) {
speed = 0.05;
pause = 10;
toppause = 10;
climbspeed = 2.2;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 578 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (load) {
speed = 0.05;
pause = 10;
toppause = 10;
climbspeed = 2.2;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 60;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 612 MovieClip "player" in Symbol 675 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 60;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 60;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 679 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 680 MovieClip Frame 1
total = 0;
mode = 6;
total = 0;
total = 0;
total = 0;
Instance of Symbol 529 MovieClip in Symbol 680 MovieClip Frame 1
onClipEvent (load) {
delay = 20;
targ = 3;
}
Instance of Symbol 553 MovieClip in Symbol 680 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 80;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 612 MovieClip "player" in Symbol 680 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 578 MovieClip in Symbol 680 MovieClip Frame 1
onClipEvent (load) {
speed = 0.05;
pause = 30;
toppause = 10;
climbspeed = 2.2;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 680 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 80;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 680 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 80;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 689 MovieClip Frame 1
if (doneonce < 1) {
ladder = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 690 MovieClip Frame 1
if (doneonce < 1) {
rope = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Instance of Symbol 706 MovieClip "box" in Symbol 716 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(Number(_parent.countout) + 1);
}
onClipEvent (enterFrame) {
acc = _parent._parent.xacc;
_parent.count = _parent.count + (acc * 2);
_parent.countout = int(_parent.count);
if (_parent.countout >= this._totalframes) {
_parent.countout = 0;
_parent.count = 0;
}
gotoAndStop(Number(_parent.countout) + 1);
}
Instance of Symbol 706 MovieClip "box" in Symbol 716 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(Number(_parent.countout) + 1);
}
onClipEvent (enterFrame) {
acc = -_parent._parent.xacc;
_parent.count = _parent.count + (acc * 2);
_parent.countout = int(_parent.count);
if (_parent.countout >= this._totalframes) {
_parent.countout = 0;
_parent.count = 0;
}
gotoAndStop(Number(_parent.countout) + 1);
}
Instance of Symbol 715 MovieClip in Symbol 716 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_parent._parent.yacc < 0) {
acc = -_parent._parent.yacc;
} else {
acc = _parent._parent.yacc;
}
if (acc > 0) {
count = count + (acc / 2);
}
countout = int(count);
if (countout >= this._totalframes) {
countout = 0;
count = 0;
}
gotoAndStop(Number(countout) + 1);
}
Symbol 718 MovieClip Frame 1
stop();
Symbol 718 MovieClip Frame 2
play();
Symbol 719 MovieClip Frame 1
function move(val) {
var _local1 = val;
var _local2 = this;
var _local3 = _root;
if (_parent.player.pause < 1) {
spaced = box.kdsp;
jumper = 130;
shift = speed;
climbspeed = 1.5;
xjump = 3.9;
if (flying < 1) {
if (_local1 == "left") {
if (xacc > 0) {
xacc = 0;
} else {
xacc = xacc - (shift * 2.6);
}
} else if (_local1 == "right") {
if (xacc < 0) {
xacc = 0;
} else {
xacc = xacc + (shift * 2.6);
}
} else if (_local1 == "jump") {
yacc = (-shift) * jumper;
jumpsoounds.gotoAndPlay(2);
}
} else if (climbing > 0) {
if (_local1 == "left") {
if ((spaced == 1) or ((_currentframe == 1) and Key.isDown(32))) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
left = 1;
xacc = xacc - (shift * xjump);
climbmode = 0;
climbanim = 0;
player.facing = 0;
} else if (_local1 == "right") {
if ((spaced == 1) or ((_currentframe == 1) and Key.isDown(32))) {
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
right = 1;
xacc = xacc + (shift * xjump);
player.facing = 1;
climbmode = 0;
climbanim = 0;
} else if (((_local1 == "jump") and (box.up < 1)) and (climbanim == 1)) {
jumpsoounds.gotoAndPlay(2);
yacc = (-shift) * jumper;
climbmode = 0;
climbanim = 0;
jump = 1;
}
} else if (flying > 0) {
if (_local1 == "left") {
xacc = xacc - (shift / 5);
} else if (_local1 == "right") {
xacc = xacc + (shift / 5);
}
}
if (climbing > 0) {
if (_local1 == "up") {
box.up = 1;
top = _local3.platforms[climbing]._y;
if ((_local2._y - (_local2._height / 2)) > (top + 1)) {
if (climbanim > 0) {
yacc = -climbspeed;
}
xacc = 0;
climbmode = 1;
} else {
yacc = 0;
}
} else if (_local1 == "down") {
box.up = 1;
btm = _local3.platforms[climbing]._y + _local3.platforms[climbing]._height;
if (_local2._y >= (btm - 15)) {
climbmode = 0;
climbanim = 0;
} else {
yacc = climbspeed;
xacc = 0;
climbmode = 1;
}
}
}
}
}
xp = -9;
yp = -23;
wp = 20;
hp = 22;
squ._x = xp;
squ._y = yp;
squ._width = wp;
squ._height = hp;
if (doneonce < 1) {
speed = speed * 2;
pause = pause / 2;
toppause = toppause / 2;
climbspeed = climbspeed / 2;
doneonce = 1;
char = 1;
_parent.total++;
this._name = _parent.total;
}
function doit() {
var _local1 = _root;
var _local2 = this;
if (_parent.player.pause < 1) {
lp = _local2._x - 22;
rp = _local2._x + 22;
tp = _local2._y - (_local2._height / 2);
bp = _local2._y;
if (climbmode < 1) {
yacc = yacc + g;
}
if (climbing < 1) {
climbmode = 0;
climbanim = 0;
} else if (flying == 1) {
if ((left < 1) and (right < 1)) {
}
}
if (yacc > 3) {
yacc = 3;
}
yhit = 0;
flying = 1;
if ((xpos >= (_local1.scr_wid - (_width / 2))) and (xacc > 0)) {
xacc = -xacc;
}
if ((xpos <= (_width / 2)) and (xacc < 0)) {
xacc = -xacc;
}
if (ypos >= _local1.scr_hei) {
yhit = 1000;
flying = 0;
}
climbing = 0;
rwid = 18;
n = 1;
while (n <= _local1.platforms.total) {
if (_local1.platforms[n].isanobj == 1) {
} else if (_local1.platforms[n].char > 0) {
} else if ((_local1.platforms[n].rope == 1) or (_local1.platforms[n].ladder == 1)) {
lr = _local1.platforms[n]._x - rwid;
rr = _local1.platforms[n]._x + rwid;
tr = _local1.platforms[n]._y + (_local2._height / 2);
br = (tr + _local1.platforms[n]._height) - (_local2._height / 2);
if ((((xpos >= lr) and (xpos < rr)) and (ypos >= (tr - 2))) and (ypos <= (br + 2))) {
climbing = n;
if (climbmode > 0) {
yacc = yacc * 0.9;
}
}
} else {
lp = _local1.platforms[n]._x;
rp = lp + _local1.platforms[n]._width;
if ((xpos < (rp + 3)) and (xpos > (lp - 3))) {
if ((ypos > (_local1.platforms[n]._y - 1)) and (ypos < (_local1.platforms[n]._y + 4))) {
if (ypos >= _local1.platforms[n]._y) {
yhit = n;
}
flying = 0;
}
}
}
n++;
}
if (yhit > 0) {
if ((yacc > 0) and (yacc < 0.01)) {
yacc = 0;
} else if (yacc > 0) {
yacc = 0;
}
}
if (flying == 0) {
if (mover > 0) {
if (yhit == 1000) {
xacc = xacc * 0.94;
} else {
xacc = xacc * 0.98;
}
} else if (_currentframe == 4) {
xacc = 0;
} else if (yhit == 1000) {
xacc = xacc * 0.83;
} else {
xacc = xacc * 0.85;
}
if ((xacc > ((-shift) / 2)) and (xacc < (shift / 2))) {
xacc = 0;
}
} else {
xacc = xacc * 0.992;
}
if (((yhit > 0) and (yhit < 1000)) and (ypos > _local1.platforms[yhit]._y)) {
ypos = _local1.platforms[yhit]._y;
} else {
ypos = ypos + yacc;
}
if (ypos >= _local1.scr_hei) {
ypos = _local1.scr_hei;
flying = 0;
}
mmax = 5;
if (xacc > mmax) {
xacc = mmax;
}
if (xacc < (-mmax)) {
xacc = -mmax;
}
xpos = xpos + xacc;
player.shiftdir = 0;
if (climbmode > 0) {
targx = _local1.platforms[climbing]._x;
if ((xpos < (targx - 1)) and (left < 1)) {
xpos++;
player.shiftdir = 1;
} else if ((xpos > (targx + 1)) and (right < 1)) {
xpos--;
player.shiftdir = 2;
} else if (((jump < 1) and (left < 1)) and (right < 1)) {
climbanim = 1;
} else {
climbanim = 0;
}
}
_x = xpos;
_y = ypos;
if (flying > 0) {
dflying++;
} else {
dflying = 0;
}
}
}
g = 0.25;
yacc = 0;
xacc = 0;
ypos = _y;
xpos = _x;
climbmode = 0;
Instance of Symbol 716 MovieClip "player" in Symbol 719 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.player.pause < 1) {
acc = _parent.xacc;
if (_parent.climbanim > 0) {
gotoAndStop (7);
} else if (((_parent.dflying > 2) and (acc < 0)) or (shiftdir == 2)) {
gotoAndStop (6);
facing = 0;
} else if (((_parent.dflying > 2) and (acc > 0)) or (shiftdir == 1)) {
facing = 1;
gotoAndStop (5);
} else if ((_parent.dflying > 2) and (acc == 0)) {
if (_parent.right > 0) {
} else if (facing == 1) {
gotoAndStop (5);
} else if (facing == 0) {
gotoAndStop (6);
}
} else if ((acc == 0) and ((_currentframe == 4) or (_currentframe == 2))) {
gotoAndStop (2);
} else if (acc == 0) {
if (facing == 1) {
gotoAndStop (1);
} else if (facing == 0) {
gotoAndStop (2);
}
} else if (acc > 0) {
facing = 1;
gotoAndStop (3);
} else {
facing = 0;
gotoAndStop (4);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 552 MovieClip "box" in Symbol 719 MovieClip Frame 1
onClipEvent (load) {
mode = _parent.direction;
_parent.move("right");
}
onClipEvent (enterFrame) {
function left() {
_parent.move("left");
_parent.mover = 1;
}
function right() {
_parent.move("right");
_parent.mover = 1;
}
function goup() {
_parent.move("up");
}
function down() {
_parent.move("down");
}
function jump() {
_parent.move("jump");
}
_parent.left = 0;
_parent.right = 0;
_parent.jump = 0;
this.up = 0;
_parent.mover = 0;
if ((_parent.climbing > 0) and (walkmode != "walk")) {
if ((climbmode != "down") and (climbmode != "pause")) {
if (_root.platforms[_parent.climbing]._y < (_parent._y - 60)) {
goup();
} else {
mm = random(3);
if (mm == 1) {
_parent.xacc = 10;
jump();
} else if (mm == 2) {
_parent.xacc = -10;
jump();
} else {
mode = "pause";
}
climbmode = "pause";
pcount = 0;
}
} else if (climbmode eq "pause") {
if (pcount < _parent.toppause) {
pcount++;
} else {
climbmode = "down";
}
} else if (_parent.flying > 0) {
down();
} else {
walkmode = "walk";
}
} else if (_parent.yhit < 1) {
_parent.move(mode);
} else if (mode eq "left") {
if (_root.platforms[_parent.yhit]._x < ((_parent._x - (_parent._width / 2)) - (_parent.speed * 160))) {
left();
} else {
submode = "right";
count = 0;
if (random(2) == 1) {
_parent.xacc = -10;
jump();
} else {
mode = "pause";
}
}
} else if (mode eq "right") {
if ((_root.platforms[_parent.yhit]._x + _root.platforms[_parent.yhit]._width) > ((_parent._x + (_parent._width / 2)) + (_parent.speed * 160))) {
right();
} else {
submode = "left";
count = 0;
if (random(2) == 1) {
_parent.xacc = 10;
jump();
} else {
mode = "pause";
}
}
} else if (mode eq "pause") {
walkmode = "";
climbmode = "";
if (count >= _parent.pause) {
mode = submode;
} else {
count++;
}
}
}
Symbol 720 MovieClip Frame 1
total = 0;
mode = 6;
total = 0;
total = 0;
total = 0;
Instance of Symbol 529 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
delay = 20;
targ = 4;
}
Instance of Symbol 612 MovieClip "player" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 719 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 10;
toppause = 100;
climbspeed = 0.9;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 578 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
speed = 0.05;
pause = 10;
toppause = 10;
climbspeed = 2.2;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 80;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 80;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 724 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 726 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 727 MovieClip Frame 1
total = 0;
mode = 6;
total = 0;
total = 0;
total = 0;
Instance of Symbol 529 MovieClip in Symbol 727 MovieClip Frame 1
onClipEvent (load) {
delay = 20;
targ = 5;
}
Instance of Symbol 612 MovieClip "player" in Symbol 727 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 719 MovieClip in Symbol 727 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 10;
toppause = 10;
climbspeed = 0.9;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 727 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 40;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 727 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 40;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 727 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 60;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 731 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 733 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 734 MovieClip Frame 1
if (doneonce < 1) {
rope = 1;
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 735 MovieClip Frame 1
total = 0;
mode = 6;
total = 0;
total = 0;
total = 0;
Instance of Symbol 529 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
delay = 20;
targ = 6;
}
Instance of Symbol 612 MovieClip "player" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 578 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
speed = 0.05;
pause = 10;
toppause = 10;
climbspeed = 2.2;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 553 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 0;
direction = "left";
gotoAndStop (2);
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 578 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
speed = 0.05;
pause = 10;
toppause = 10;
climbspeed = 2.2;
direction = "right";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 719 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 10;
toppause = 100;
climbspeed = 0.9;
direction = "left";
}
onClipEvent (enterFrame) {
doit();
}
Instance of Symbol 719 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
speed = 0.02;
pause = 10;
toppause = 100;
climbspeed = 0.9;
direction = "left";
}
onClipEvent (enterFrame) {
doit();
}
Symbol 740 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 742 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 743 MovieClip Frame 1
total = 0;
Instance of Symbol 612 MovieClip "player" in Symbol 743 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 748 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 2
play();
Symbol 749 MovieClip Frame 1
stopAllSounds();
play();
Instance of Symbol 748 MovieClip in Symbol 749 MovieClip Frame 1
onClipEvent (load) {
if (_root.music > 0) {
gotoAndPlay (2);
} else {
stop();
}
}
Symbol 749 MovieClip Frame 71
stop();
Symbol 752 MovieClip Frame 1
if (_root.music > 0) {
stopAllSounds();
gotoAndStop (2);
} else {
stop();
}
Symbol 755 MovieClip Frame 1
if (doneonce < 1) {
doneonce = 1;
_parent.total++;
this._name = _parent.total;
}
stop();
Symbol 756 MovieClip Frame 1
total = 0;
Instance of Symbol 612 MovieClip "player" in Symbol 756 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 758 MovieClip Frame 1
total = 0;
Instance of Symbol 612 MovieClip "player" in Symbol 758 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 760 MovieClip Frame 1
total = 0;
Instance of Symbol 612 MovieClip "player" in Symbol 760 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 763 MovieClip Frame 1
total = 0;
Instance of Symbol 612 MovieClip "player" in Symbol 763 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 765 MovieClip Frame 1
total = 0;
Instance of Symbol 612 MovieClip "player" in Symbol 765 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
doit();
}
Symbol 770 MovieClip Frame 4183
gotoAndPlay (1);
Symbol 781 MovieClip Frame 1
stop();
Symbol 795 Button
on (release) {
gotoAndPlay (11);
}
Symbol 804 Button
on (release) {
getURL ("http://www.bbc.co.uk/cbbc/spellbook/", "_blank");
}
Symbol 805 MovieClip Frame 1
play();
Symbol 805 MovieClip Frame 10
stop();
Symbol 805 MovieClip Frame 20
if (_root.players < 2) {
_root.gotoAndStop(7);
} else {
_root["lives" + _root.currentplayer] = 0;
if (_root.currentplayer == 1) {
if (_root.lives2 > 0) {
_root.currentplayer = 2;
_root.gotoAndStop(6);
} else {
_root.gotoAndStop(7);
}
} else if (_root.lives1 > 0) {
_root.currentplayer = 1;
_root.gotoAndStop(6);
} else {
_root.gotoAndStop(7);
}
}
Symbol 847 Button
on (release) {
_parent.gotoAndPlay(11);
}
Symbol 848 Button
on (release) {
if (_root.currentplayer == 2) {
_root.currentplayer = 1;
} else {
_root.currentplayer = 2;
}
_root.gotoAndStop(6);
}
Symbol 851 MovieClip Frame 1
if (((_root.players > 1) and ((_root.lives1 > 0) or (_root.lives2 > 0))) and (_parent.skipper < 1)) {
gotoAndStop (2);
} else {
stop();
}
Symbol 852 MovieClip Frame 1
function encrypt(mystring) {
var _local2 = mystring;
var _local3 = "";
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + String.fromCharCode(_local2.charCodeAt(_local1) ^ 21);
_local1++;
}
return(_local3);
}
_machine = 1;
_table = "mansion";
if ((_root.hiscoreskip == 1) or (_root.uname == "")) {
_root.hiscoreskip = 0;
skipper = 1;
uname = "";
uscore = 0;
} else {
uname = _root.uname;
uscore = _root.uscore;
}
uemail = "null@void.com";
uscore = uscore + "";
var name = encrypt(uname);
var score = encrypt(uscore);
var email = encrypt(uemail);
trace("name = " + uname);
trace("score = " + uscore);
loadVariables ("http://www.bbc.co.uk/apps/ifl/cbbc/highscores", "results", "GET");
stop();
Instance of Symbol 846 MovieClip "results" in Symbol 852 MovieClip Frame 1
onClipEvent (data) {
n = 1;
while (n <= 10) {
this["name" + n] = substring(this["name" + n].toUpperCase(), 1, 3);
_parent.gotoAndPlay(2);
n++;
}
}
Symbol 852 MovieClip Frame 2
play();
Symbol 852 MovieClip Frame 10
stop();
Symbol 852 MovieClip Frame 20
_root.gotoAndStop(4);
Symbol 859 Button
on (release) {
_root.gotoAndStop(6);
}