Frame 4
tb = getBytesTotal();
lb = getBytesLoaded();
v = int((lb / tb) * 100);
_preloader.bar._xscale = v;
_preloader._pretxtPercent.text = v + "%";
if (lb < tb) {
gotoAndPlay(_currentframe - 1);
} else {
play();
}
Frame 85
stop();
Frame 86
stop();
Frame 87
mcsound1 = new Sound(this);
mcsound1.attachSound("sound1");
mcsound1.start(0, 99);
stop();
_root.movenum = 0;
Instance of Symbol 57 MovieClip "hero" in Frame 87
onClipEvent (load) {
gravity = 1.5;
velocity = 0;
falling = true;
stop();
speed = 7;
}
onClipEvent (enterFrame) {
if (falling == true) {
velocity = velocity + gravity;
_y = (_y + velocity);
}
i = 0;
while (i < 99) {
if (this.feet.hitTest("_root.platform" + i)) {
platform = eval ("_root.platform" + i);
}
i++;
}
if (this.feet.hitTest(platform)) {
if (falling == true) {
_y = platform._y;
velocity = 0;
falling = false;
}
} else {
falling = true;
}
if (Key.isDown(37)) {
this._xscale = -100;
this.gotoAndStop(2);
_x = (_x - speed);
}
if (Key.isDown(39)) {
this._xscale = 100;
this.gotoAndStop(2);
_x = (_x + speed);
}
if (Key.isDown(38)) {
if (falling == false) {
velocity = velocity - 10;
falling = true;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37) or Key.isDown(39)) {
play();
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.vartime.time == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (enterFrame) {
if (_root.score == 12) {
_root.door.gotoAndStop(2);
}
}
Instance of Symbol 59 MovieClip "platform3" in Frame 87
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._x = this._x - 1;
} else {
this._x = this._x + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 59 MovieClip "platform4" in Frame 87
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 76 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (_root.platform3.hitTest(this)) {
_root.movenum = 1;
}
}
Instance of Symbol 76 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (_root.platform3.hitTest(this)) {
_root.movenum = 0;
}
}
Instance of Symbol 79 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop("lose");
}
}
Instance of Symbol 57 MovieClip "hero" in Frame 89
onClipEvent (load) {
gravity = 1.5;
velocity = 0;
falling = true;
stop();
speed = 7;
}
onClipEvent (enterFrame) {
if (falling == true) {
velocity = velocity + gravity;
_y = (_y + velocity);
}
i = 0;
while (i < 99) {
if (this.feet.hitTest("_root.platform" + i)) {
platform = eval ("_root.platform" + i);
}
i++;
}
if (this.feet.hitTest(platform)) {
if (falling == true) {
_y = platform._y;
velocity = 0;
falling = false;
}
} else {
falling = true;
}
if (Key.isDown(37)) {
this._xscale = -100;
this.gotoAndStop(2);
_x = (_x - speed);
}
if (Key.isDown(39)) {
this._xscale = 100;
this.gotoAndStop(2);
_x = (_x + speed);
}
if (Key.isDown(38)) {
if (falling == false) {
velocity = velocity - 10;
falling = true;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37) or Key.isDown(39)) {
play();
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.vartime.time == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (enterFrame) {
if (_root.score == 24) {
_root.door.gotoAndStop(2);
}
}
Instance of Symbol 59 MovieClip "platform3" in Frame 89
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._y = this._y - 1;
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 59 MovieClip "platform4" in Frame 89
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 76 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.platform3.hitTest(this)) {
_root.movenum = 1;
}
}
Instance of Symbol 76 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (_root.platform3.hitTest(this)) {
_root.movenum = 0;
}
}
Frame 90
stopAllSounds();
Instance of Symbol 57 MovieClip "hero" in Frame 91
onClipEvent (load) {
gravity = 1.5;
velocity = 0;
falling = true;
stop();
speed = 7;
}
onClipEvent (enterFrame) {
if (falling == true) {
velocity = velocity + gravity;
_y = (_y + velocity);
}
i = 0;
while (i < 99) {
if (this.feet.hitTest("_root.platform" + i)) {
platform = eval ("_root.platform" + i);
}
i++;
}
if (this.feet.hitTest(platform)) {
if (falling == true) {
_y = platform._y;
velocity = 0;
falling = false;
}
} else {
falling = true;
}
if (Key.isDown(37)) {
this._xscale = -100;
this.gotoAndStop(2);
_x = (_x - speed);
}
if (Key.isDown(39)) {
this._xscale = 100;
this.gotoAndStop(2);
_x = (_x + speed);
}
if (Key.isDown(38)) {
if (falling == false) {
velocity = velocity - 10;
falling = true;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37) or Key.isDown(39)) {
play();
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.vartime.time == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (enterFrame) {
if (_root.score == 36) {
_root.door.gotoAndStop(2);
}
}
Instance of Symbol 59 MovieClip "platform3" in Frame 91
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._y = this._y - 1;
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 59 MovieClip "platform4" in Frame 91
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 57 MovieClip "hero" in Frame 93
onClipEvent (load) {
gravity = 1.5;
velocity = 0;
falling = true;
stop();
speed = 7;
}
onClipEvent (enterFrame) {
if (falling == true) {
velocity = velocity + gravity;
_y = (_y + velocity);
}
i = 0;
while (i < 99) {
if (this.feet.hitTest("_root.platform" + i)) {
platform = eval ("_root.platform" + i);
}
i++;
}
if (this.feet.hitTest(platform)) {
if (falling == true) {
_y = platform._y;
velocity = 0;
falling = false;
}
} else {
falling = true;
}
if (Key.isDown(37)) {
this._xscale = -100;
this.gotoAndStop(2);
_x = (_x - speed);
}
if (Key.isDown(39)) {
this._xscale = 100;
this.gotoAndStop(2);
_x = (_x + speed);
}
if (Key.isDown(38)) {
if (falling == false) {
velocity = velocity - 10;
falling = true;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37) or Key.isDown(39)) {
play();
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.vartime.time == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (enterFrame) {
if (_root.score == 48) {
_root.door.gotoAndStop(2);
}
}
Instance of Symbol 59 MovieClip "platform3" in Frame 93
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._y = this._y - 1;
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 59 MovieClip "platform2" in Frame 93
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 59 MovieClip "platform4" in Frame 93
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 59 MovieClip "platform5" in Frame 93
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._y = this._y - 1;
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 105 MovieClip "door" in Frame 93
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop("t4");
}
}
Frame 94
stopAllSounds();
Instance of Symbol 57 MovieClip "hero" in Frame 95
onClipEvent (load) {
gravity = 1.5;
velocity = 0;
falling = true;
stop();
speed = 7;
}
onClipEvent (enterFrame) {
if (falling == true) {
velocity = velocity + gravity;
_y = (_y + velocity);
}
i = 0;
while (i < 99) {
if (this.feet.hitTest("_root.platform" + i)) {
platform = eval ("_root.platform" + i);
}
i++;
}
if (this.feet.hitTest(platform)) {
if (falling == true) {
_y = platform._y;
velocity = 0;
falling = false;
}
} else {
falling = true;
}
if (Key.isDown(37)) {
this._xscale = -100;
this.gotoAndStop(2);
_x = (_x - speed);
}
if (Key.isDown(39)) {
this._xscale = 100;
this.gotoAndStop(2);
_x = (_x + speed);
}
if (Key.isDown(38)) {
if (falling == false) {
velocity = velocity - 10;
falling = true;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37) or Key.isDown(39)) {
play();
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.vartime.time == 0) {
_root.gotoAndStop("lose");
}
}
onClipEvent (enterFrame) {
if (_root.score == 60) {
_root.door.gotoAndStop(2);
}
}
Instance of Symbol 59 MovieClip "platform3" in Frame 95
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._y = this._y - 1;
} else {
this._y = this._y + 1;
}
}
Instance of Symbol 59 MovieClip "platform2" in Frame 95
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 59 MovieClip "platform4" in Frame 95
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 61 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
_root.score = _root.score + 1;
}
}
Instance of Symbol 59 MovieClip "platform5" in Frame 95
onClipEvent (enterFrame) {
if (_root.movenum == 0) {
this._y = this._y - 1;
} else {
this._y = this._y + 1;
}
}
Symbol 10 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 13 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 24 Button
on (release) {
gotoAndStop (87);
stopAllSounds();
}
Symbol 28 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 32 Button
on (release) {
gotoAndStop (86);
}
Symbol 34 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 57 MovieClip Frame 1
function hitPlatforms() {
var i;
var y;
var x;
i = 0;
while (i < _root.maxPlatforms) {
platform = eval ("_root.platform" + i);
y = _y + vertical;
x = _x + horizontal;
if (((_y < platform._y) && (y >= platform._y)) && (platform.hitTest(x, platform._y) == true)) {
_y = platform._y;
falling = false;
vertical = 0;
return(undefined);
}
i++;
}
platform = null;
return(undefined);
}
function render() {
var _local1;
var y;
_local1 = (y = 0);
if (Math.abs(horizontal) < Math.abs(_local1)) {
horizontal = _local1;
} else {
horizontal = horizontal * friction;
if (Math.abs(horizontal) < 1) {
horizontal = 0;
}
}
if ((vertical == 0) && (Key.isDown(38) == true)) {
vertical = vforce * -1;
horizontal = horizontal + platform.velocity;
platform = null;
rising = true;
}
if (rising == true) {
vertical = vertical * gravity;
if (Math.abs(vertical) < 1) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
if (falling == true) {
vertical = vertical * accel;
hitPlatforms();
}
lastX = _x;
lastY = _y;
_y = (_y + vertical);
_x = ((_x + horizontal) + platform.velocity);
if ((platform != null) && (platform.hitTest(_x, platform._y, true) == false)) {
vertical = 2;
falling = true;
}
}
vforce = 80;
hforce = 10;
horizontal = 0;
vertical = 5;
friction = 0.8;
gravity = 0.8;
accel = 0.7;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
stop();
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 3
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 1
_root.vartime.time = 60;
Symbol 69 MovieClip Frame 14
_root.vartime.time = _root.vartime.time - 1;
gotoAndPlay (2);
Symbol 72 MovieClip Frame 1
stop();
Instance of Symbol 71 MovieClip in Symbol 72 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop("t2");
}
}
Symbol 74 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 83 Button
on (release) {
gotoAndStop ("2");
}
Symbol 89 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop("t3");
}
}
Symbol 92 Button
on (release) {
gotoAndStop ("3");
}
Symbol 96 MovieClip Frame 1
stop();
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop("t4");
}
}
Symbol 100 Button
on (release) {
gotoAndStop ("4");
}
Symbol 105 MovieClip Frame 1
stop();
Instance of Symbol 104 MovieClip in Symbol 105 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop("t5");
}
}
Symbol 108 Button
on (release) {
gotoAndStop ("5");
}
Symbol 113 MovieClip Frame 1
stop();
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop("fin");
}
}
Symbol 116 Button
on (release) {
gotoAndStop (87);
_root.score = 0;
stopAllSounds();
}
Symbol 119 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 122 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 126 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}