Frame 1
Stage.showMenu = false;
_root.mans = 3;
_root.bonusdisplay = 10000;
stop();
Instance of Symbol 100 MovieClip in Frame 1
onClipEvent (load) {
_root.starting = false;
var counter = 0;
_root.playbut._visible = false;
}
onClipEvent (enterFrame) {
if (_root.starting == true) {
if (counter == 0) {
stopAllSounds();
dunSound = new Sound(this);
dunSound.attachSound("dun");
dunSound.start();
}
counter = counter + 1;
if (counter >= 100) {
_root.gotoAndPlay(2);
counter = 0;
_root.starting = false;
}
}
var thing1 = _root.getBytesLoaded();
var thing2 = _root.getBytesTotal();
var perc = Math.round((thing1 / thing2) * 100);
_root.percentage = perc;
if (perc >= 100) {
_root.playbut._visible = true;
_root.loadbox._visible = false;
}
}
Frame 2
stop();
_root.red = false;
_root.orange = false;
_root.blue = true;
_root.score = 0;
_root.rivets = 0;
beepSound = new Sound(this);
beepSound.attachSound("beep");
var guy = _root.jumpman;
_root.numblocks = 26;
_root.numladders = 15;
var numbarrels = 2;
var counter = 0;
_root.masterfloor = 520;
_root.barrelspeed = -7;
_root.barrelcount = 0;
_root.fallcount = 0;
_root.maxfall = 350;
_root.dead = false;
_root.loopcount = 0;
_root.subtracted = false;
_root.maxlevel = 5;
_root.level = 1;
var beendead = false;
var count = 0;
var savedcount = 0;
var cutty = false;
guy.floor = _root.masterfloor;
_root.speed = 5;
_root.gravity = 10;
var jumpheight = 95;
_root.loseaman = function () {
if ((_root.playdead == true) and (_root.subtracted == false)) {
g = 0;
while (g < (_root.arrowcount + 1)) {
var narrows = eval ("_root.arrow" + g);
narrows.unloadMovie();
g++;
}
_root.startjump = false;
zenith = guy.floor - jumpheight;
_root.mans = _root.mans - 1;
_root.subtracted = true;
_root.gotoAndPlay("inbetween");
}
};
_root.levelup = function () {
if ((_root.saved == true) and (_root.level != _root.maxlevel)) {
_root.startjump = false;
_root.playdead = false;
if (_root.bonusdisplay > 0) {
_root.score = _root.score + 25;
_root.bonusdisplay = _root.bonusdisplay - 100;
if (savedcount > 50) {
beepsound.setVolume(30);
beepSound.start();
}
}
if (_root.bonusdisplay < 0) {
_root.bonusdisplay = 0;
}
savedcount = savedcount + 1;
if (((savedcount >= 50) and (_root.bonusdisplay <= 0)) and (cutty == false)) {
g = 0;
while (g < (_root.arrowcount + 1)) {
var narrows = eval ("_root.arrow" + g);
narrows.unloadMovie();
g++;
}
zenith = guy.floor - jumpheight;
_root.createEmptyMovieClip("cutsceneholder", 1);
_root.cutsceneholder.attachMovie("cutscene" + _root.level, "cutscene", 1);
cutty = true;
_root.cutsceneplaying = true;
}
if (_root.cutsceneplaying == true) {
var yash = _root.cutsceneholder.cutscene;
yash.onPress = function () {
_root.cutsceneplaying = false;
};
}
if (((savedcount >= 50) and (_root.bonusdisplay <= 0)) and (_root.cutsceneplaying == false)) {
var whichtounload = eval ("_root.cutsceneholder.cutscene" + _root.level);
whichtounload.unloadMovie();
_root.level = _root.level + 1;
_root.gotoAndPlay(_root.level + 1);
_root.fallcount = 0;
_root.dead = false;
_root.saved = undefined;
_root.savedcount = 0;
_root.bonus = 10000;
_root.vino = false;
_root.sword = false;
_root.spear = false;
_root.axe = false;
_root.cutty = false;
_root.startjump = false;
_root.beendead = false;
_root.playdead = false;
_root.subtracted = false;
_root.jumpman.floor = _root.masterfloor;
_root.zenith = _root.jumpman.floor - _root.maxjump;
}
}
};
_root.platform = function (loc, speed, tlimit, blimit, sideways) {
if (loc.feetsensor.hitTest(_root.jumpman.feethit)) {
_root.ongirder = true;
}
if (loc.jumphelp.hitTest(_root.jumpman.feethit)) {
_root.ongirder = true;
}
if ((_root.saved == false) and (_root.dead != true)) {
if (loc.feetsensor.hitTest(_root.jumpman.feethit)) {
if (_root.fallcount >= _root.maxfall) {
_root.dead = true;
}
_root.jumpman._y = loc._y;
_root.ongirder = true;
_root.fallcount = 0;
}
if (loc.goup == true) {
if (sideways == 1) {
loc._y = loc._y - speed;
} else {
loc._x = loc._x - speed;
}
} else if (sideways == 1) {
loc._y = loc._y + speed;
} else {
loc._x = loc._x + speed;
}
if (sideways == 1) {
if ((loc._y > tlimit) and (loc.zenith == false)) {
loc.goup = true;
}
if (loc._y <= tlimit) {
loc.zenith = true;
}
if ((loc._y < blimit) and (loc.zenith == true)) {
loc.goup = false;
}
if (loc._y >= blimit) {
loc.zenith = false;
loc.goup = true;
}
} else {
if ((loc._x > tlimit) and (loc.zenith == false)) {
loc.goup = true;
}
if (loc._x <= tlimit) {
loc.zenith = true;
}
if ((loc._x < blimit) and (loc.zenith == true)) {
loc.goup = false;
}
if (loc._x >= blimit) {
loc.zenith = false;
loc.goup = true;
}
}
}
};
_root.testladders = function (who) {
t = 0;
while (t < _root.numladders) {
var boing = eval ("_root.lad" + t);
if (who.hitTest(boing) and Key.isDown(38)) {
var climbing = true;
_root.gravity = 0;
guy._y = guy._y - 1;
count = count + 1;
if ((_root.climb2 != true) and (count >= 13)) {
guy.guts.gotoAndStop("climb");
climb1Sound = new Sound(this);
climb1Sound.attachSound("climb1");
climb1Sound.start();
_root.climb2 = true;
count = 0;
} else if (count >= 13) {
climb2Sound = new Sound(this);
climb2Sound.attachSound("climb2");
climb2Sound.start();
guy.guts.gotoAndStop("climb2");
_root.climb2 = false;
count = 0;
}
}
if (who.hitTest(boing.block) and Key.isDown(40)) {
_root.gravity = 0;
who._y = who._y + 10;
guy.guts.gotoAndPlay("climb");
}
if (((((((((((((((!who.hitTest(lad0)) and (!who.hitTest(lad1))) and (!who.hitTest(lad2))) and (!who.hitTest(lad3))) and (!who.hitTest(lad4))) and (!who.hitTest(lad5))) and (!who.hitTest(lad6))) and (!who.hitTest(lad7))) and (!who.hitTest(lad8))) and (!who.hitTest(lad9))) and (!who.hitTest(lad10))) and (!who.hitTest(lad11))) and (!who.hitTest(lad12))) and (!who.hitTest(lad13))) and (!who.hitTest(lad14))) {
_root.gravity = 10;
}
t++;
}
};
_root.testblocks = function (who) {
r = 0;
while (r < numblocks) {
var which = eval ("_root.block" + r);
if (who.feethit.hitTest(which)) {
who.floor = which._y;
}
if (((((((((((((((((((((((((((((((((!who.feethit.hitTest(_root.block1)) and (!who.feethit.hitTest(_root.block0))) and (!who.feethit.hitTest(_root.block2))) and (!who.feethit.hitTest(_root.block3))) and (!who.feethit.hitTest(_root.block4))) and (!who.feethit.hitTest(_root.block5))) and (!who.feethit.hitTest(_root.block6))) and (!who.feethit.hitTest(_root.block7))) and (!who.feethit.hitTest(_root.block8))) and (!who.feethit.hitTest(_root.block9))) and (!who.feethit.hitTest(_root.block10))) and (!who.feethit.hitTest(_root.block11))) and (!who.feethit.hitTest(_root.block12))) and (!who.feethit.hitTest(_root.block13))) and (!who.feethit.hitTest(_root.block14))) and (!who.feethit.hitTest(_root.block15))) and (!who.feethit.hitTest(_root.block16))) and (!who.feethit.hitTest(_root.block17))) and (!who.feethit.hitTest(_root.block18))) and (!who.feethit.hitTest(_root.block19))) and (!who.feethit.hitTest(_root.block20))) and (!who.feethit.hitTest(_root.block21))) and (!who.feethit.hitTest(_root.block22))) and (!who.feethit.hitTest(_root.block23))) and (!who.feethit.hitTest(_root.block24))) and (!who.feethit.hitTest(_root.block25))) and (!who.feethit.hitTest(_root.block26))) and (!who.feethit.hitTest(_root.block27))) and (!who.feethit.hitTest(_root.block28))) and (!who.feethit.hitTest(_root.block29))) and (!who.feethit.hitTest(_root.block30))) and (!who.feethit.hitTest(_root.block31))) and (!who.feethit.hitTest(_root.block32))) {
if (((who == _root.jumpman) and (guy._y != guy.floor)) and (_root.gravity != 0)) {
_root.fallcount = _root.fallcount + 1;
}
who.floor = _root.masterfloor;
}
r++;
}
};
_root.goup = function () {
if (guy._y >= (_root.zenith + 1)) {
_root.ongirder = false;
var _local2 = guy._y - _root.zenith;
guy._y = guy._y - (_local2 / 2);
guy.guts.gotoAndPlay("jump");
}
if (guy._y <= ((_root.zenith + gravity) + 1)) {
_root.fallcount = 0;
_root.startjump = false;
guy.guts.gotoAndStop("walk");
}
};
_root.jumpit = function () {
if ((guy._y == guy.floor) || (_root.ongirder == true)) {
jumpSound = new Sound(this);
jumpSound.attachSound("jump");
jumpSound.start();
_root.startjump = true;
guy.guts.gotoandStop("jump");
_root.zenith = guy._y - _root.jumpheight;
}
};
_root.onEnterFrame = function () {
_root.levelup();
_root.loseaman();
if ((_root.saved == false) and (_root.dead == false)) {
if (_root.rivets >= 6) {
_root.rivetsdone = true;
}
if (((_root.fallcount >= _root.maxfall) and (guy._y == guy.floor)) and (_root.gravity != 0)) {
_root.beendead = false;
_root.dead = true;
}
if ((guy._y == guy.floor) and (_root.fallcount < _root.maxfall)) {
_root.fallcount = 0;
}
if (guy._x > (Stage.width + guy._width)) {
guy._x = -guy._width;
}
if (guy._x < (-guy._width)) {
guy._x = Stage.width + guy._width;
}
if (_root.startjump == true) {
_root.goup();
}
if (Key.isDown(39)) {
guy._x = guy._x + _root.speed;
guy.guts.play();
guy._xscale = 100;
}
if (((!Key.isDown(39)) and (!Key.isDown(37))) and (climbing != true)) {
guy.guts.stop();
}
if (Key.isDown(37)) {
guy._xscale = -100;
guy._x = guy._x - _root.speed;
guy.guts.play();
}
if (guy._y < guy.floor) {
guy._y = guy._y + _root.gravity;
}
if (guy._y > guy.floor) {
guy._y = guy.floor;
}
_root.testladders(_root.jumpman);
_root.testblocks(_root.jumpman);
}
if ((_root.saved == true) || (_root.introplaying == true)) {
guy.guts.stop();
}
if ((_root.dead == true) and (beendead == false)) {
guy.guts.gotoAndPlay("death");
beendead = true;
}
};
Instance of Symbol 164 MovieClip in Frame 2
onClipEvent (load) {
_root.bonus = 10000;
}
onClipEvent (enterFrame) {
if ((_root.dead != true) and (_root.saved == false)) {
_root.bonus = _root.bonus - 5;
_root.bonusdisplay = Math.round(_root.bonus);
}
}
Instance of Symbol 168 MovieClip in Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.cheater == true) {
this._visible = true;
}
}
Instance of Symbol 159 MovieClip in Frame 2
onClipEvent (load) {
var beenplayed = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jumpman) and (beenplayed == false)) {
this._visible = false;
_root.vino = true;
bonusSound = new Sound(this);
bonusSound.attachSound("bonus");
bonusSound.start();
beenplayed = true;
}
}
Instance of Symbol 177 MovieClip in Frame 2
onClipEvent (load) {
_root.vino = false;
_root.attachMovie("introsoundclip", "introsoundclip", 1);
var beenplayed = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jumpman) and (_root.vino == false)) {
_root.dead = true;
}
if ((this.hitTest(_root.jumpman) and (_root.vino == true)) and (beenplayed == false)) {
if (_root.fallcount > _root.maxfall) {
_root.dead = true;
beenplayed = true;
} else {
_root.saved = true;
stopAllSounds();
winSound = new Sound(this);
winSound.attachSound("kongwin");
winSound.start();
beenplayed = true;
}
}
}
Frame 3
stop();
_root.red = true;
_root.orange = false;
_root.blue = false;
Instance of Symbol 203 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (!this.hitTest(_root.cage.hitter)) {
if (this._x < _root.cage.hitter) {
this._x = this._x + 3;
}
if (this._x > _root.cage.hitter) {
this._x = this._x - 3;
}
}
if (this.hitTest(_root.cage.hitter) and (_root.saved != true)) {
var distance = (_root.jumpman._x - this._x);
this._x = this._x + (distance / 100);
}
if (_root.saved == true) {
_root.sword = false;
}
if (_root.jumpman._x > this._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
}
Instance of Symbol 208 MovieClip "cage" in Frame 3
onClipEvent (load) {
_root.attachMovie("introsoundclip", "introsoundclip" + _root.loopcount, _root.loopcount);
var beenplayed = false;
}
onClipEvent (enterFrame) {
if ((this.hitter2.hitTest(_root.jumpman) and (_root.sword == true)) and (beenplayed == false)) {
_root.saved = true;
stopAllSounds();
winSound = new Sound(this);
winSound.attachSound("kongwin");
winSound.start();
beenplayed = true;
}
}
Instance of Symbol 153 MovieClip in Frame 3
onClipEvent (load) {
var beenplayed = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jumpman) and (beenplayed == false)) {
this._visible = false;
_root.sword = true;
bonusSound = new Sound(this);
bonusSound.attachSound("bonus");
bonusSound.start();
beenplayed = true;
}
}
Frame 4
stop();
_root.red = false;
_root.orange = true;
Instance of Symbol 133 MovieClip "block7" in Frame 4
onClipEvent (load) {
var goup = true;
var zenith = false;
}
onClipEvent (enterFrame) {
_root.platform(this, 1, 130, 280, 0);
}
Instance of Symbol 133 MovieClip "block8" in Frame 4
onClipEvent (load) {
var goup = true;
var zenith = false;
}
onClipEvent (enterFrame) {
_root.platform(this, 3, 200, 350, 1);
}
Instance of Symbol 133 MovieClip "block13" in Frame 4
onClipEvent (load) {
var goup = true;
var zenith = false;
}
onClipEvent (enterFrame) {
_root.platform(this, 2, 375, 500, 1);
}
Instance of Symbol 133 MovieClip "block19" in Frame 4
onClipEvent (load) {
var goup = true;
var zenith = false;
}
onClipEvent (enterFrame) {
_root.platform(this, 4, 100, 250, 1);
}
Instance of Symbol 133 MovieClip "block21" in Frame 4
onClipEvent (load) {
var goup = true;
var zenith = false;
}
onClipEvent (enterFrame) {
_root.platform(this, 1, 150, 250, 0);
}
Instance of Symbol 216 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.saved == true) {
_root.axe = false;
}
if (_root.jumpman._x > this._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
}
Instance of Symbol 208 MovieClip "cage" in Frame 4
onClipEvent (load) {
_root.attachMovie("introsoundclip", "introsoundclip", 1);
var beenplayed = false;
}
onClipEvent (enterFrame) {
if ((this.hitter2.hitTest(_root.jumpman) and (_root.axe == true)) and (beenplayed == false)) {
if (_root.fallcount > _root.maxfall) {
_root.dead = true;
beenplayed = true;
} else {
_root.saved = true;
stopAllSounds();
winSound = new Sound(this);
winSound.attachSound("kongwin");
winSound.start();
beenplayed = true;
}
}
}
Instance of Symbol 155 MovieClip in Frame 4
onClipEvent (load) {
var beenplayed = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jumpman) and (beenplayed == false)) {
this._visible = false;
_root.axe = true;
bonusSound = new Sound(this);
bonusSound.attachSound("bonus");
bonusSound.start();
beenplayed = true;
}
}
Frame 5
stop();
_root.red = false;
_root.orange = false;
_root.blue = true;
Instance of Symbol 133 MovieClip "block7" in Frame 5
onClipEvent (load) {
var goup = true;
var zenith = false;
}
onClipEvent (enterFrame) {
_root.platform(this, 5, 150, 400, 0);
}
Instance of Symbol 133 MovieClip "block12" in Frame 5
onClipEvent (load) {
var goup = true;
var zenith = false;
}
onClipEvent (enterFrame) {
_root.platform(this, 5, 150, 400, 0);
}
Instance of Symbol 222 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (!this.hitTest(_root.cage.hitter)) {
if (this._x < _root.cage.hitter) {
this._x = this._x + 3;
}
if (this._x > _root.cage.hitter) {
this._x = this._x - 3;
}
}
if (this.hitTest(_root.cage.hitter) and (_root.saved != true)) {
var distance = (_root.jumpman._x - this._x);
this._x = this._x + (distance / 100);
}
if (_root.saved == true) {
_root.spear = false;
}
if (_root.jumpman._x > this._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
}
Instance of Symbol 157 MovieClip in Frame 5
onClipEvent (load) {
var beenplayed = false;
}
onClipEvent (enterFrame) {
this._x = _root.block7._x;
if (this.hitTest(_root.jumpman) and (beenplayed == false)) {
this._visible = false;
_root.spear = true;
bonusSound = new Sound(this);
bonusSound.attachSound("bonus");
bonusSound.start();
beenplayed = true;
}
}
Instance of Symbol 208 MovieClip "cage" in Frame 5
onClipEvent (load) {
_root.introsoundclip.unloadMovie();
_root.attachMovie("introsoundclip", "introsoundclip", 1);
var beenplayed = false;
}
onClipEvent (enterFrame) {
if ((this.hitter2.hitTest(_root.jumpman) and (_root.spear == true)) and (beenplayed == false)) {
if (_root.fallcount > _root.maxfall) {
_root.dead = true;
beenplayed = true;
} else {
_root.saved = true;
stopAllSounds();
winSound = new Sound(this);
winSound.attachSound("kongwin");
winSound.start();
beenplayed = true;
}
}
}
Frame 6
stop();
_root.red = false;
_root.orange = true;
_root.blue = false;
_root.numblocks = 32;
Instance of Symbol 252 MovieClip in Frame 6
onClipEvent (load) {
var beenplayed = false;
_root.attachMovie("introsoundclip", "introsoundclip", 1);
}
onClipEvent (enterFrame) {
if ((_root.rivetsdone == true) and (beenplayed == false)) {
this.gotoAndPlay(2);
beenplayed = true;
}
if (_root.saved == true) {
if (_root.bonusdisplay > 0) {
_root.score = _root.score + 25;
_root.bonusdisplay = _root.bonusdisplay - 100;
}
if (_root.bonusdisplay < 0) {
_root.bonusdisplay = 0;
}
}
}
Frame 35
if (_root.mans < 0) {
_root.gotoAndPlay("gameover");
}
Frame 64
_root.fallcount = 0;
_root.dead = false;
_root.saved = undefined;
_root.savedcount = 0;
_root.bonus = 10000;
_root.vino = false;
_root.sword = false;
_root.spear = false;
_root.axe = false;
_root.cutty = false;
_root.startjump = false;
_root.beendead = false;
_root.playdead = false;
_root.subtracted = false;
_root.jumpman.floor = _root.masterfloor;
_root.zenith = _root.jumpman.floor - _root.maxjump;
_root.rivets = 0;
_root.gotoAndPlay(_root.level + 1);
Frame 65
Frame 66
stopAllSounds();
_root.fallcount = 0;
_root.dead = false;
_root.saved = undefined;
_root.savedcount = 0;
_root.bonus = 10000;
_root.vino = false;
_root.sword = false;
_root.spear = false;
_root.axe = false;
_root.cutty = false;
_root.startjump = false;
_root.beendead = false;
_root.playdead = false;
_root.subtracted = false;
_root.jumpman.floor = _root.masterfloor;
_root.zenith = _root.jumpman.floor - _root.maxjump;
Frame 106
_root.dunsound.unloadMovie();
_root.saved = undefined;
_root.gotoAndPlay(1);
Instance of Symbol 290 MovieClip in Frame 488
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.cheater == true) {
this._visible = true;
}
}
Frame 494
stop();
Instance of Symbol 12 MovieClip "feethit" in Symbol 13 MovieClip [barrel] Frame 1
onClipEvent (load) {
this._parent.floor = _root.masterfloor;
this._parent.dirr = _root.barrelspeed;
this._parent.touchedair = true;
}
onClipEvent (enterFrame) {
this._parent._x = this._parent._x + this._parent.dirr;
if ((this._parent._x < 0) || (this._parent._x > Stage.width)) {
this._parent.unloadMovie();
}
if (this._parent._y < this._parent.floor) {
this._parent._y = this._parent._y + _root.gravity;
}
if (this._parent._y > this._parent.floor) {
this._parent._y = this._parent.floor;
}
e = 0;
while (e < _root.numblocks) {
var guile = eval ("_root.block" + e);
if (this._parent.hitTest(guile) and (this._parent.touchedair == true)) {
this._parent.touchedair = false;
this._parent.dirr = this._parent.dirr * -1;
}
e++;
}
if ((((((((((((((((((((((((((!this._parent.hitTest(_root.block0)) and (!this._parent.hitTest(_root.block1))) and (!this._parent.hitTest(_root.block2))) and (!this._parent.hitTest(_root.block3))) and (!this._parent.hitTest(_root.block4))) and (!this._parent.hitTest(_root.block5))) and (!this._parent.hitTest(_root.block6))) and (!this._parent.hitTest(_root.block7))) and (!this._parent.hitTest(_root.block8))) and (!this._parent.hitTest(_root.block9))) and (!this._parent.hitTest(_root.block10))) and (!this._parent.hitTest(_root.block11))) and (!this._parent.hitTest(_root.block12))) and (!this._parent.hitTest(_root.block13))) and (!this._parent.hitTest(_root.block14))) and (!this._parent.hitTest(_root.block15))) and (!this._parent.hitTest(_root.block16))) and (!this._parent.hitTest(_root.block17))) and (!this._parent.hitTest(_root.block18))) and (!this._parent.hitTest(_root.block19))) and (!this._parent.hitTest(_root.block20))) and (!this._parent.hitTest(_root.block21))) and (!this._parent.hitTest(_root.block22))) and (!this._parent.hitTest(_root.block23))) and (!this._parent.hitTest(_root.block24))) and (!this._parent.hitTest(_root.block25))) {
this._parent.touchedair = true;
}
r = 0;
while (r < _root.numblocks) {
var which = eval ("_root.block" + r);
if (this.hitTest(which)) {
this._parent.floor = which._y;
}
if ((((((((((((((((((((((((((!this.hitTest(_root.block1)) and (!this.hitTest(_root.block0))) and (!this.hitTest(_root.block2))) and (!this.hitTest(_root.block3))) and (!this.hitTest(_root.block4))) and (!this.hitTest(_root.block5))) and (!this.hitTest(_root.block6))) and (!this.hitTest(_root.block7))) and (!this.hitTest(_root.block8))) and (!this.hitTest(_root.block9))) and (!this.hitTest(_root.block10))) and (!this.hitTest(_root.block11))) and (!this.hitTest(_root.block12))) and (!this.hitTest(_root.block13))) and (!this.hitTest(_root.block14))) and (!this.hitTest(_root.block15))) and (!this.hitTest(_root.block16))) and (!this.hitTest(_root.block17))) and (!this.hitTest(_root.block18))) and (!this.hitTest(_root.block19))) and (!this.hitTest(_root.block20))) and (!this.hitTest(_root.block21))) and (!this.hitTest(_root.block22))) and (!this.hitTest(_root.block23))) and (!this.hitTest(_root.block24))) and (!this.hitTest(_root.block25))) {
this._parent.floor = _root.masterfloor;
}
r++;
}
}
Symbol 16 MovieClip [introsoundclip] Frame 1
stopAllSounds();
this.play();
_root.loopcount = _root.loopcount + 1;
_root.dead = false;
_root.introplaying = true;
Symbol 16 MovieClip [introsoundclip] Frame 57
_root.saved = false;
_root.introplaying = false;
Symbol 16 MovieClip [introsoundclip] Frame 100
stop();
Symbol 17 MovieClip [bgloop] Frame 31
stop();
Instance of Symbol 19 MovieClip in Symbol 22 MovieClip [arrow] Frame 1
onClipEvent (load) {
var beenkilt = false;
}
onClipEvent (enterFrame) {
if ((_root.dead != true) and (_root.saved == false)) {
if (this._parent._xscale == 100) {
this._parent._x = this._parent._x + (_root.speed * 3);
if (this._parent._rotation == -45) {
this._parent._y = this._parent._y - (_root.speed * 3);
}
if (this._parent._rotation == 45) {
this._parent._y = this._parent._y + (_root.speed * 3);
}
} else {
this._parent._x = this._parent._x - (_root.speed * 3);
if (this._parent._rotation == -45) {
this._parent._y = this._parent._y + (_root.speed * 3);
}
if (this._parent._rotation == 45) {
this._parent._y = this._parent._y - (_root.speed * 3);
}
}
if (this._parent.hitarea.hitTest(_root.jumpman) and (beenkilt == false)) {
_root.fallcount = 0;
_root.vino = false;
_root.sword = false;
_root.spear = false;
_root.axe = false;
_root.startjump = false;
_root.jumpman.floor = _root.masterfloor;
_root.zenith = _root.jumpman.floor - _root.maxjump;
_root.beendead = false;
_root.playdead = false;
_root.subtracted = false;
_root.saved = undefined;
_root.rivets = 0;
_root.dead = true;
_root.startjump = false;
_root.jumpman.guts.gotoAndPlay("death");
beenkilt = true;
trace("arrowhit!");
this._parent.unloadMovie();
}
if ((this._parent._x > Stage.width) || (this._parent._x < 0)) {
this._parent.unloadMovie();
}
}
if (_root.savedcount == 50) {
this._parent.unloadMovie;
}
}
Symbol 63 MovieClip [cutscene1] Frame 593
stop();
stopAllSounds();
_root.cutsceneplaying = false;
Symbol 75 MovieClip [cutscene2] Frame 245
stop();
stopAllSounds();
_root.cutsceneplaying = false;
Symbol 84 MovieClip [cutscene3] Frame 295
stop();
stopAllSounds();
_root.cutsceneplaying = false;
Symbol 94 MovieClip [cutscene4] Frame 324
stop();
stopAllSounds();
_root.cutsceneplaying = false;
Symbol 98 Button
on (release) {
if (_root.starting != true) {
_root.starting = true;
}
}
Symbol 108 Button
on (release) {
_root.instr.gotoAndPlay(2);
}
Symbol 113 Button
on (release) {
this._parent.gotoAndPlay("close");
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 12
stop();
Symbol 117 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("theend");
}
Instance of Symbol 125 MovieClip in Symbol 130 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.red == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 127 MovieClip in Symbol 130 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.orange == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 129 MovieClip in Symbol 130 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.blue == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 130 MovieClip "guts" in Symbol 133 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.blocktest(this._parent._y);
}
Instance of Symbol 132 MovieClip "feetsensor" in Symbol 133 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 132 MovieClip "jumphelp" in Symbol 133 MovieClip Frame 1
/* no clip actions */
Symbol 144 MovieClip Frame 1
_root.playdead = false;
stop();
Symbol 144 MovieClip Frame 9
gotoAndPlay (1);
Symbol 144 MovieClip Frame 22
gotoAndPlay (1);
Symbol 144 MovieClip Frame 30
stopAllSounds();
Symbol 144 MovieClip Frame 106
_root.playdead = true;
stop();
Symbol 147 Button
on (keyPress "<Space>") {
if ((_root.dead != true) and (_root.saved != true)) {
_root.jumpit();
}
}
Instance of Symbol 153 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.sword == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 155 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.axe == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 157 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.spear == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 159 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.vino == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 166 Button
on (release) {
_root.cheater = true;
_root.mans = _root.mans + 3;
}
Symbol 175 MovieClip Frame 1
stop();
Instance of Symbol 179 MovieClip in Symbol 184 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.red == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 181 MovieClip in Symbol 184 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.orange == true) {
this._visible = true;
}
}
Instance of Symbol 183 MovieClip in Symbol 184 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.blue == true) {
this._visible = true;
}
}
Instance of Symbol 184 MovieClip "guts" in Symbol 186 MovieClip Frame 1
/* no clip actions */
Symbol 192 MovieClip Frame 8
gotoAndPlay (1);
Symbol 197 MovieClip Frame 1
stop();
Instance of Symbol 192 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
this._parent.goright = false;
this._parent.dirr = 4;
this._parent.counter = 0;
this._parent.ouch = false;
var ouchcount = 0;
var onladder = false;
var inrange = false;
var decisioninterval = 30;
}
onClipEvent (enterFrame) {
var toplimit = (_root.jumpman._y + 10);
var bottomlimit = (_root.jumpman._y - 10);
_root.testblocks(this._parent);
if ((_root.saved == false) and (_root.dead != true)) {
if (this._parent._y < this._parent.floor) {
this._parent._y = this._parent._y + _root.gravity;
}
if (this._parent._y > this._parent.floor) {
this._parent._y = this._parent.floor;
}
if ((this._parent._y < toplimit) and (this._parent._y > bottomlimit)) {
inrange = true;
} else {
inrange = false;
}
t = 0;
while (t < _root.numladders) {
var boing = eval ("_root.lad" + t);
if (this._parent.yowsa.hitTest(boing)) {
if (inrange != true) {
if (_root.jumpman._y < this._parent._y) {
this._parent._y = this._parent._y - 15;
if (this._parent.goright == true) {
this._parent._x = this._parent._x - 4;
}
}
}
}
t++;
}
if (this._parent.ouch == true) {
this.gotoAndPlay(1);
ouchcount = ouchcount + 1;
if (ouchcount >= 30) {
this._parent.ouch = false;
}
}
if (this._parent.yowsa.hitTest(_root.jumpman.feethit)) {
_root.dead = true;
}
if (this._parent.bouncer.hitTest(_root.jumpman.feethit)) {
this.gotoAndPlay("ouch");
jumpSound = new Sound(this);
jumpSound.attachSound("jump");
jumpSound.start();
this._parent.ouch = true;
_root.startjump = false;
_root.startjump = true;
_root.zenith = (_root.jumpman._y - _root.jumpheight) - 5;
}
this.play();
if (((this._parent.goright == false) and (this._parent.ouch == false)) and (onladder == false)) {
this._parent._x = this._parent._x - this._parent.dirr;
}
if (((this._parent.goright == true) and (this._parent.ouch == false)) and (onladder == false)) {
this._parent._x = this._parent._x + this._parent.dirr;
}
this._parent.counter = this._parent.counter + 1;
if (this._parent.counter >= decisioninterval) {
if ((this._parent._x > _root.jumpman._x) || (this._parent._x > Stage.width)) {
this._parent.goright = false;
}
if ((this._parent._x < _root.jumpman._x) || (this._parent._x < 0)) {
this._parent.goright = true;
}
this._parent.counter = 0;
}
} else {
this.stop();
}
if (this._parent.goright == true) {
this._parent._xscale = 100;
} else {
this._parent._xscale = -100;
}
}
Instance of Symbol 200 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.saved != true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.saved == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 205 MovieClip "guts" in Symbol 208 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 175 MovieClip "guts" in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
var counter = 0;
_root.arrowcount = 0;
var randomizer = 20;
}
onClipEvent (enterFrame) {
if ((_root.saved == false) and (_root.dead != true)) {
counter = counter + 1;
if (this.hitTest(_root.jumpman)) {
_root.dead = true;
}
if ((counter > (randomizer - 5)) and (counter < randomizer)) {
this.play();
}
if (counter >= randomizer) {
this.gotoAndStop(1);
_root.attachMovie("arrow", "arrow" + _root.arrowcount, _root.arrowcount);
var thing = eval ("_root.arrow" + _root.arrowcount);
if (this._parent._xscale != 100) {
thing._xscale = -100;
}
thing._x = this._parent._x;
thing._y = this._parent._y;
counter = 0;
shotSound = new Sound(this);
shotSound.attachSound("arrowshot");
shotSound.start();
_root.arrowcount = _root.arrowcount + 1;
randomizer = random(120);
}
}
}
Instance of Symbol 213 MovieClip in Symbol 216 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.saved != true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 215 MovieClip in Symbol 216 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.saved == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 219 MovieClip in Symbol 222 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.saved != true) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 221 MovieClip in Symbol 222 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.saved == true) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
stop();
Symbol 227 MovieClip Frame 3
stop();
Symbol 227 MovieClip Frame 4
stop();
Symbol 227 MovieClip Frame 5
stop();
Symbol 227 MovieClip Frame 6
stop();
Symbol 227 MovieClip Frame 7
stop();
Symbol 231 MovieClip Frame 1
stop();
Instance of Symbol 231 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
var counter = 0;
_root.arrowcount = 0;
var randomizer = 20;
var reachedtheedge = false;
}
onClipEvent (enterFrame) {
if ((_root.saved == false) and (_root.dead != true)) {
if (this._parent._x > _root.jumpman._x) {
this._parent._xscale = -100;
} else {
this._parent._xscale = 100;
}
if ((this._parent._x < Stage.width) and (reachedtheedge == false)) {
this._parent._x = this._parent._x + _root.speed;
}
if ((this._parent._x > 0) and (reachedtheedge == true)) {
this._parent._x = this._parent._x - _root.speed;
}
if (this._parent._x >= Stage.width) {
reachedtheedge = true;
}
if (this._parent._x <= 0) {
reachedtheedge = false;
}
counter = counter + 1;
if (this.hitTest(_root.jumpman)) {
_root.dead = true;
}
if ((counter > (randomizer - 5)) and (counter < randomizer)) {
this.play();
}
if (counter >= randomizer) {
this.gotoAndStop(1);
_root.attachMovie("arrow", "arrow" + _root.arrowcount, _root.arrowcount);
var thing = eval ("_root.arrow" + _root.arrowcount);
if ((this._parent.shootup == true) and (this._parent._xscale == 100)) {
thing._rotation = -45;
}
if ((this._parent.shootdown == true) and (this._parent._xscale == 100)) {
thing._rotation = 45;
}
if ((this._parent.shootup == true) and (this._parent._xscale != 100)) {
thing._rotation = -315;
}
if ((this._parent.shootdown == true) and (this._parent._xscale != 100)) {
thing._rotation = 315;
}
if (this._parent.shootahead == true) {
thing._rotation = 0;
}
if (this._parent._xscale != 100) {
thing._xscale = -100;
}
thing._x = this._parent._x;
thing._y = this._parent._y;
counter = 0;
shotSound = new Sound(this);
shotSound.attachSound("arrowshot");
shotSound.start();
_root.arrowcount = _root.arrowcount + 1;
randomizer = random(120);
}
var noise = (this._parent._y - 20);
if (_root.jumpman._y <= noise) {
this._parent.shootup = true;
} else {
this._parent.shootup = false;
}
var nark = ((this._parent._y + this._parent._height) + 20);
if (_root.jumpman._y >= nark) {
this._parent.shootdown = true;
} else {
this._parent.shootdown = false;
}
if ((this._parent.shootdown != true) and (this._parent.shootup != true)) {
this._parent.shootahead = true;
} else {
this._parent.shootahead = false;
}
if (this._parent.shootup == true) {
this.gotoAndPlay("shootup");
}
if (this._parent.shootahead == true) {
this.gotoAndPlay("shootahead");
}
if (this._parent.shootdown == true) {
this.gotoAndPlay("shootdown");
}
this.feet.play();
}
}
Symbol 235 MovieClip Frame 1
stop();
Instance of Symbol 234 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
this._parent.fir = false;
this._parent.second = false;
var beenplayed = false;
var beenplayed2 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jumpman) and (beenplayed == false)) {
if ((this._parent.second == false) and (this._parent.fir == true)) {
this._parent.second = true;
beenplayed = true;
}
if (this._parent.fir == false) {
this._parent.fir = true;
beenplayed = true;
}
}
if (((this._parent.fir == true) and (this._parent.second == true)) and (beenplayed2 == false)) {
this._parent.gotoAndPlay(2);
_root.rivets = _root.rivets + 1;
bonusSound = new Sound(this);
bonusSound.attachSound("bonus");
bonusSound.start();
beenplayed = true;
beenplayed2 = true;
}
}
Instance of Symbol 234 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
this._parent.fir = false;
this._parent.second = false;
var beenplayed = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jumpman) and (beenplayed == false)) {
if ((this._parent.second == false) and (this._parent.fir == true)) {
this._parent.second = true;
beenplayed = true;
}
if (this._parent.fir == false) {
this._parent.fir = true;
beenplayed = true;
}
}
if ((this._parent.fir == true) and (this._parent.second == true)) {
this._parent.gotoAndPlay(2);
}
}
Symbol 235 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
_root.saved = true;
g = 0;
while (g < (_root.arrowcount + 1)) {
var narrows = eval ("_root.arrow" + g);
narrows.unloadMovie();
g++;
}
stopAllSounds();
Symbol 252 MovieClip Frame 190
stop();
_root.gotoAndPlay("theend");
Symbol 283 Button
on (release) {
getURL ("kong.html");
}
Symbol 287 Button
on (release) {
getURL ("bookofmormoncartoons.html");
}