Combined Code
movieClip 3 {
}
movieClip 6 swingHook {
#initclip
Object.registerClass('swingHook', swingHook);
#endinitclip
}
movieClip 7 {
}
movieClip 8 ropeHook {
#initclip
Object.registerClass('ropeHook', ropeHook);
#endinitclip
frame 11 {
this.removeMovieClip();
}
}
movieClip 11 rightRing {
#initclip
Object.registerClass('rightRing', rightRing);
#endinitclip
}
movieClip 12 rightHook {
#initclip
Object.registerClass('rightHook', rightHook);
#endinitclip
}
movieClip 15 {
}
movieClip 17 {
}
movieClip 20 player {
#initclip
Object.registerClass('player', player);
#endinitclip
}
movieClip 21 leftHook {
#initclip
Object.registerClass('leftHook', leftHook);
#endinitclip
}
movieClip 24 greenman {
#initclip
Object.registerClass('greenman', greenman);
#endinitclip
}
movieClip 26 leftRing {
#initclip
Object.registerClass('leftRing', leftRing);
#endinitclip
}
movieClip 28 roofRing {
#initclip
Object.registerClass('roofRing', roofRing);
#endinitclip
}
movieClip 30 deathBox {
#initclip
Object.registerClass('deathBox', deathBox);
#endinitclip
}
movieClip 33 brCorner {
#initclip
Object.registerClass('brCorner', brCorner);
#endinitclip
}
movieClip 36 blCorner {
#initclip
Object.registerClass('blCorner', blCorner);
#endinitclip
}
movieClip 39 roofBlock {
#initclip
Object.registerClass('roofBlock', roofBlock);
#endinitclip
}
movieClip 42 goal {
#initclip
Object.registerClass('goal', goal);
#endinitclip
}
movieClip 45 tlCorner {
#initclip
Object.registerClass('tlCorner', tlCorner);
#endinitclip
}
movieClip 48 leftBlock {
#initclip
Object.registerClass('leftBlock', leftBlock);
#endinitclip
}
movieClip 51 trCorner {
#initclip
Object.registerClass('trCorner', trCorner);
#endinitclip
}
movieClip 54 rightBlock {
#initclip
Object.registerClass('rightBlock', rightBlock);
#endinitclip
}
movieClip 56 ground {
#initclip
Object.registerClass('ground', ground);
#endinitclip
}
frame 1 {
function onEnterFrame() {
if (_root.playah.hitTest(_root.Goal)) {
_root.playah.removeMovieClip();
nextFrame();
}
}
stop();
theplayer = attachMovie('player', 'playah', _root.getNextHighestDepth());
_root.playah.spawnX = 150;
_root.playah.spawnY = 200;
onMouseDown = function () {
if (!_root.ropeHook && !_root.swingHook) {
_root.attachMovie('ropeHook', 'ropeHook', _root.getNextHighestDepth());
}
};
}
// unknown tag 88 length 75
movieClip 103 __Packages.ropeHook {
#initclip
if (!_global.ropeHook) {
var v1 = function () {
super();
};
_global.ropeHook = v1;
_global.ropeHook extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
this._rotation = 57 * Math.atan2(this._parent._ymouse - this._y, this._parent._xmouse - this._x) + 90;
};
ASSetPropFlags(_global.ropeHook.prototype, null, 1);
}
#endinitclip
}
movieClip 104 __Packages.rightRing {
#initclip
if (!_global.rightRing) {
var v1 = function () {
super();
};
_global.rightRing = v1;
_global.rightRing extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.ropeHook.hook)) {
_root.ropeHook.removeMovieClip();
_root.attachMovie('rightHook', 'swingHook', _root.getNextHighestDepth());
_root.swingHook._x = this._x + 6;
_root.swingHook._y = this._y - 4;
_root.playah.swinging = true;
_root.playah.xSpeed = 0;
_root.playah.ySpeed = 0;
}
};
ASSetPropFlags(_global.rightRing.prototype, null, 1);
}
#endinitclip
}
movieClip 105 __Packages.rightHook {
#initclip
if (!_global.rightHook) {
var v1 = function () {
super();
};
_global.rightHook = v1;
_global.rightHook extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(_global.rightHook.prototype, null, 1);
}
#endinitclip
}
movieClip 106 __Packages.player {
#initclip
if (!_global.player) {
var v1 = function () {
super();
};
_global.player = v1;
_global.player extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.playah.stillFeet._visible = true;
_root.playah.runningFeet._visible = false;
this.xSpeed = 0;
this.standing = false;
this.swinging = false;
this.ySpeed = 0;
_root._x = 0;
_root._y = 0;
this.jump = 16;
this.hops = 0;
this.gravity = 1;
this._x = this.spawnX;
this._y = this.spawnY;
};
v2.die = function () {
this.onLoad();
_root.gotoAndStop(_root._currentframe);
};
v2.onEnterFrame = function () {
if (_root._x + this._x > 350) {
_root._x = this._x * -1 + 350;
}
if (_root._x + this._x < 200) {
_root._x = this._x * -1 + 200;
}
_root._y = this._y * -1 + 200;
if (this.swinging == false) {
this._rotation = 0;
this._x += this.xSpeed;
if (Key.isDown(39)) {
_root.playah.stillFeet._visible = false;
_root.playah.runningFeet._visible = true;
_root.playah.runningFeet._xscale = 100;
_root.playah.runningFeet._x = 18;
if (this.xSpeed < 10) {
this.xSpeed += 2;
}
if (this.xSpeed >= 10) {
this.xSpeed = 10;
}
} else {
if (Key.isDown(37)) {
_root.playah.stillFeet._visible = false;
_root.playah.runningFeet._visible = true;
_root.playah.runningFeet._xscale = -100;
_root.playah.runningFeet._x = -18;
if (this.xSpeed > -10) {
this.xSpeed -= 2;
}
if (this.xSpeed <= -10) {
this.xSpeed = -10;
}
} else {
_root.playah.stillFeet._visible = true;
_root.playah.runningFeet._visible = false;
}
}
if (this.xSpeed > 0) {
this.xSpeed -= 0.25;
}
if (this.xSpeed < 0) {
this.xSpeed += 0.25;
}
this.ySpeed += this.gravity;
if (Key.isDown(38) && this.hops > 0) {
this._y += 1;
this.ySpeed = -this.jump;
this.hops -= 1;
this.standing = false;
}
this._y += this.ySpeed;
}
_root.ropeHook._x = _root.playah._x + 13;
_root.ropeHook._y = _root.playah._y;
if (this.swinging == true) {
this._x = _root.swingHook.swingRope._x + _root.swingHook._x;
this._y = _root.swingHook.swingRope._y + _root.swingHook._y;
this._rotation = _root.swingHook.swingRope._rotation + 60;
if (Key.isDown(38)) {
this._y += 1;
this.ySpeed = -this.jump;
this.hops -= 1;
this.standing = false;
this.swinging = false;
_root.swingHook.removeMovieClip();
}
}
};
ASSetPropFlags(_global.player.prototype, null, 1);
}
#endinitclip
}
movieClip 107 __Packages.leftHook {
#initclip
if (!_global.leftHook) {
var v1 = function () {
super();
};
_global.leftHook = v1;
_global.leftHook extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(_global.leftHook.prototype, null, 1);
}
#endinitclip
}
movieClip 108 __Packages.greenman {
#initclip
if (!_global.greenman) {
var v1 = function () {
super();
};
_global.greenman = v1;
_global.greenman extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.xSpeed = -3;
this.standing = true;
};
v2.onEnterFrame = function () {
if (this._visible == true) {
this._x += this.xSpeed;
if (this.hitTest(_root.turner) == false) {
this.standing = false;
}
if (this.hitTest(_root.turner) == true) {
this.standing = true;
}
if (this.standing == false) {
this.xSpeed *= -1;
this._xscale *= -1;
}
if (this.hitTest(_root.playah)) {
if (_root.playah.ySpeed < 0) {
_root.playah.die();
}
if (_root.playah.ySpeed > 0) {
this._visible = false;
_root.playah.ySpeed = -10;
}
}
}
};
ASSetPropFlags(_global.greenman.prototype, null, 1);
}
#endinitclip
}
movieClip 109 __Packages.leftRing {
#initclip
if (!_global.leftRing) {
var v1 = function () {
super();
};
_global.leftRing = v1;
_global.leftRing extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.ropeHook.hook)) {
_root.ropeHook.removeMovieClip();
_root.attachMovie('leftHook', 'swingHook', _root.getNextHighestDepth());
_root.swingHook._x = this._x - 6;
_root.swingHook._y = this._y + 4;
_root.playah.swinging = true;
_root.playah.xSpeed = 0;
_root.playah.ySpeed = 0;
}
};
ASSetPropFlags(_global.leftRing.prototype, null, 1);
}
#endinitclip
}
movieClip 110 __Packages.roofRing {
#initclip
if (!_global.roofRing) {
var v1 = function () {
super();
};
_global.roofRing = v1;
_global.roofRing extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.ropeHook.hook)) {
_root.ropeHook.removeMovieClip();
_root.attachMovie('swingHook', 'swingHook', _root.getNextHighestDepth());
_root.swingHook._x = this._x;
_root.swingHook._y = this._y + 124;
_root.playah.swinging = true;
_root.playah.xSpeed = 0;
_root.playah.ySpeed = 0;
}
};
ASSetPropFlags(_global.roofRing.prototype, null, 1);
}
#endinitclip
}
movieClip 111 __Packages.deathBox {
#initclip
if (!_global.deathBox) {
var v1 = function () {
super();
};
_global.deathBox = v1;
_global.deathBox extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah)) {
_root.playah.die();
}
};
ASSetPropFlags(_global.deathBox.prototype, null, 1);
}
#endinitclip
}
movieClip 112 __Packages.brCorner {
#initclip
if (!_global.brCorner) {
var v1 = function () {
super();
};
_global.brCorner = v1;
_global.brCorner extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah)) {
if (_root.playah._x >= this._x + 8 && _root.playah.xSpeed < 0 && _root.playah._y <= this._y + 10) {
_root.playah.xSpeed = 1;
}
if (_root.playah.ySpeed < 0) {
if (_root.playah._x < this._x + 5) {
_root.playah.ySpeed = 0;
}
}
}
};
ASSetPropFlags(_global.brCorner.prototype, null, 1);
}
#endinitclip
}
movieClip 113 __Packages.blCorner {
#initclip
if (!_global.blCorner) {
var v1 = function () {
super();
};
_global.blCorner = v1;
_global.blCorner extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah)) {
if (_root.playah._x <= this._x - 8 && _root.playah.xSpeed > 0 && _root.playah._y <= this._y + 10) {
_root.playah.xSpeed = -1;
}
if (_root.playah.ySpeed < 0) {
if (_root.playah._x > this._x - 5) {
_root.playah.ySpeed = 0;
}
}
}
};
ASSetPropFlags(_global.blCorner.prototype, null, 1);
}
#endinitclip
}
movieClip 114 __Packages.roofBlock {
#initclip
if (!_global.roofBlock) {
var v1 = function () {
super();
};
_global.roofBlock = v1;
_global.roofBlock extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah)) {
_root.playah.ySpeed = -1;
_root.playah._y = this._y + 23;
}
};
ASSetPropFlags(_global.roofBlock.prototype, null, 1);
}
#endinitclip
}
movieClip 115 __Packages.goal {
#initclip
if (!_global.goal) {
var v1 = function () {
super();
};
_global.goal = v1;
_global.goal extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(_global.goal.prototype, null, 1);
}
#endinitclip
}
movieClip 116 __Packages.tlCorner {
#initclip
if (!_global.tlCorner) {
var v1 = function () {
super();
};
_global.tlCorner = v1;
_global.tlCorner extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah)) {
_root.playah.standing = true;
if (_root.playah._x <= this._x - 8 && _root.playah.xSpeed > 0 && _root.playah._y <= this._y + 10) {
_root.playah.xSpeed = -1;
}
if (_root.playah.ySpeed > -1) {
if (_root.playah._x > this._x - 5) {
_root.playah.ySpeed = 0;
_root.playah.hops = 1;
_root.playah._y = this._y - 35;
}
}
}
};
ASSetPropFlags(_global.tlCorner.prototype, null, 1);
}
#endinitclip
}
movieClip 117 __Packages.leftBlock {
#initclip
if (!_global.leftBlock) {
var v1 = function () {
super();
};
_global.leftBlock = v1;
_global.leftBlock extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah) && _root.playah.xSpeed > 0) {
_root.playah.xSpeed = -1;
}
};
ASSetPropFlags(_global.leftBlock.prototype, null, 1);
}
#endinitclip
}
movieClip 118 __Packages.trCorner {
#initclip
if (!_global.trCorner) {
var v1 = function () {
super();
};
_global.trCorner = v1;
_global.trCorner extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah)) {
_root.playah.standing = true;
if (_root.playah._x >= this._x + 8 && _root.playah.xSpeed < 0 && _root.playah._y <= this._y + 10) {
_root.playah.xSpeed = 1;
}
if (_root.playah.ySpeed > -1) {
if (_root.playah._x < this._x + 5) {
_root.playah.ySpeed = 0;
_root.playah.hops = 1;
_root.playah._y = this._y - 35;
}
}
}
};
ASSetPropFlags(_global.trCorner.prototype, null, 1);
}
#endinitclip
}
movieClip 119 __Packages.rightBlock {
#initclip
if (!_global.rightBlock) {
var v1 = function () {
super();
};
_global.rightBlock = v1;
_global.rightBlock extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah) && _root.playah.xSpeed < 0) {
_root.playah.xSpeed = 1;
}
};
ASSetPropFlags(_global.rightBlock.prototype, null, 1);
}
#endinitclip
}
movieClip 120 __Packages.ground {
#initclip
if (!_global.ground) {
var v1 = function () {
super();
};
_global.ground = v1;
_global.ground extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this.hitTest(_root.playah)) {
_root.playah.standing = true;
if (_root.playah.ySpeed > -1) {
_root.playah._y = this._y - 50;
_root.playah.ySpeed = 0;
_root.playah.hops = 1;
}
if (_root.playah.xSpeed > 0 && Key.isDown(39) == false) {
_root.playah.xSpeed -= 1;
} else {
if (_root.playah.xSpeed < 0 && Key.isDown(37) == false) {
_root.playah.xSpeed += 1;
}
}
}
};
ASSetPropFlags(_global.ground.prototype, null, 1);
}
#endinitclip
}
movieClip 121 __Packages.swingHook {
#initclip
if (!_global.swingHook) {
var v1 = function () {
super();
};
_global.swingHook = v1;
_global.swingHook extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(_global.swingHook.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
_root.attachMovie('player', 'playah', _root.getNextHighestDepth());
_root.playah.spawnX = 140;
_root.playah.spawnY = 350;
onMouseDown = function () {
if (!_root.ropeHook && !_root.swingHook) {
_root.attachMovie('ropeHook', 'ropeHook', _root.getNextHighestDepth());
}
};
if (_root.playah.hitTest(_root.Goal)) {
nextFrame();
}
}
frame 3 {
stop();
_root.attachMovie('player', 'playah', _root.getNextHighestDepth());
_root.playah.spawnX = 140;
_root.playah.spawnY = 200;
onMouseDown = function () {
if (!_root.ropeHook && !_root.swingHook) {
_root.attachMovie('ropeHook', 'ropeHook', _root.getNextHighestDepth());
}
};
if (_root.playah.hitTest(_root.Goal)) {
nextFrame();
}
}
movieClip 75 {
}
frame 4 {
stop();
}