Frame 1
Stage.showMenu = false;
Frame 2
stop();
Frame 3
stop();
Stage.showMenu = false;
Frame 4
stop();
Instance of Symbol 189 MovieClip "hero" in Frame 4
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.stopye.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
Instance of Symbol 197 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(5);
}
}
Instance of Symbol 209 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Frame 5
stop();
Instance of Symbol 316 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(6);
}
}
Instance of Symbol 189 MovieClip "hero" in Frame 5
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Frame 6
stop();
Instance of Symbol 189 MovieClip "hero" in Frame 6
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Instance of Symbol 327 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 342 MovieClip "doom" in Frame 6
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Frame 7
stop();
Instance of Symbol 319 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(8);
}
}
Instance of Symbol 189 MovieClip "hero" in Frame 7
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.toll)) {
_root.coincollector = Number(_root.coincollector) - 5;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.toll)) {
_root.toll.gotoAndStop(2);
}
}
Frame 8
stop();
Instance of Symbol 189 MovieClip "hero" in Frame 8
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 5;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
Instance of Symbol 327 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(9);
}
}
Instance of Symbol 209 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Frame 9
stop();
Instance of Symbol 189 MovieClip "hero" in Frame 9
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Instance of Symbol 501 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(10);
}
}
Instance of Symbol 209 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Frame 10
stop();
Instance of Symbol 319 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(11);
}
}
Instance of Symbol 189 MovieClip "hero" in Frame 10
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dooropen)) {
_root.door.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dooropen)) {
_root.dooropen.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.lever)) {
_root.lever.gotoAndPlay(2);
}
}
Instance of Symbol 209 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Frame 11
stop();
Instance of Symbol 189 MovieClip "hero" in Frame 11
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.efft.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Instance of Symbol 197 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(12);
}
}
Instance of Symbol 209 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Frame 12
stop();
Instance of Symbol 342 MovieClip "doom" in Frame 12
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(2);
}
}
Instance of Symbol 189 MovieClip "hero" in Frame 12
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Instance of Symbol 197 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(13);
}
}
Instance of Symbol 209 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Frame 13
stop();
Instance of Symbol 189 MovieClip "hero" in Frame 13
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Instance of Symbol 154 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(13);
}
}
Instance of Symbol 209 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 209 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) + 1;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 316 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(14);
}
}
Frame 14
stop();
Instance of Symbol 632 MovieClip "hero" in Frame 14
onClipEvent (load) {
gravity = 20;
scale = _xscale;
walkSpeed = 10;
maxjump = 6;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
Instance of Symbol 632 MovieClip in Frame 25
onClipEvent (load) {
gravity = 20;
scale = _xscale;
walkSpeed = 10;
maxjump = 6;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
Frame 27
stop();
Instance of Symbol 189 MovieClip "hero" in Frame 27
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Instance of Symbol 316 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(28);
}
}
Frame 28
stop();
Instance of Symbol 189 MovieClip "hero" in Frame 28
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Instance of Symbol 316 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(29);
}
}
Instance of Symbol 316 MovieClip "leftbound" in Frame 28
/* no clip actions */
Frame 29
stop();
Instance of Symbol 316 MovieClip "leftbound" in Frame 29
/* no clip actions */
Instance of Symbol 316 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndStop(30);
}
}
Instance of Symbol 189 MovieClip "hero" in Frame 29
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Frame 30
stop();
Instance of Symbol 754 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndPlay(31);
}
}
Instance of Symbol 189 MovieClip "hero" in Frame 30
onClipEvent (load) {
gravity = 12;
scale = _xscale;
walkSpeed = 10;
maxjump = 4;
}
onClipEvent (enterFrame) {
if (air == true) {
_y = (_y + gravity);
state = 3;
}
if (Key.isDown(37) && (!_root.leftbound.hitTest(_x, _y, true))) {
_x = (_x - walkSpeed);
_xscale = (-scale);
}
if (Key.isDown(39) && (!_root.rightbound.hitTest(_x, _y, true))) {
_x = (_x + walkSpeed);
_xscale = scale;
}
if (_root.platforms.hitTest(_x, _y, true)) {
air = false;
} else {
air = true;
}
if (Key.isDown(32) && (jump == true)) {
_y = (_y - jumpSpeed);
}
if (air == false) {
jump = true;
jumpcount = 0;
jumpSpeed = 22;
}
if (Key.isDown(32)) {
jumpcount = jumpcount + 1;
}
if ((jumpcount > maxjump) && (jumpSpeed > -2)) {
jumpSpeed = jumpSpeed - 2;
}
if (((((air == false) && (!Key.isDown(37))) && (!Key.isDown(65))) && (_currentframe < 4)) or ((((air == false) && (!Key.isDown(39))) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 1;
}
if ((((Key.isDown(37) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4)) or (((Key.isDown(39) && (air == false)) && (!Key.isDown(65))) && (_currentframe < 4))) {
state = 2;
}
if (!Key.isDown(65)) {
gotoAndStop(state);
}
_root.statetxt = state;
}
onClipEvent (keyUp) {
if (Key.getCode() == 83) {
jump = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin)) {
_root.coin.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin1)) {
_root.coin1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coincollector = Number(_root.coincollector) + 2;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.coin2)) {
_root.coin2.gotoAndStop(2);
}
}
Frame 47
stop();
Symbol 16 Button
on (release) {
_root.play();
}
Symbol 19 MovieClip Frame 1
stopAllSounds();
_root.stop();
Symbol 19 MovieClip Frame 3
lBytes = _root.getBytesLoaded();
tBytes = _root.getBytesTotal();
percentLoaded = Math.floor((lBytes / tBytes) * 100);
loader.bar._xscale = percentLoaded;
loader.percent.text = ((percentLoaded + "% of ") + Math.floor(tBytes / 1024)) + "K loaded.";
if ((lBytes >= tBytes) && (tBytes > 0)) {
if (count >= 2) {
gotoAndStop ("main");
} else {
count++;
gotoAndPlay ("preload");
}
} else {
gotoAndPlay ("preload");
}
Symbol 19 MovieClip Frame 4
stop();
Symbol 24 Button
on (release) {
getURL ("http://www.flashportal.com", "_blank");
}
Symbol 112 Button
on (rollOver) {
this._parent.gotoAndStop("3");
}
Symbol 113 MovieClip Frame 141
stop();
Symbol 116 Button
on (release) {
this.gotoAndPlay("2");
}
Symbol 131 Button
on (release) {
getURL ("http://www.flashportal.com", "_blank");
}
Symbol 132 Button
on (release) {
getURL ("http://www.westykid.deviantart.com", "_blank");
}
Symbol 133 Button
on (release) {
this.gotoAndPlay("17");
}
Symbol 134 Button
on (release) {
this._parent.gotoAndPlay("3");
}
Symbol 136 Button
on (release) {
this.gotoAndPlay("16");
}
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 16
stop();
Symbol 137 MovieClip Frame 25
stop();
Symbol 188 MovieClip Frame 3
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
stop();
Symbol 189 MovieClip Frame 3
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 47
stop();
Symbol 333 MovieClip Frame 60
stop();
Symbol 340 MovieClip Frame 30
stop();
Symbol 352 MovieClip Frame 235
stop();
Symbol 369 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 456 MovieClip Frame 80
stop();
Symbol 470 MovieClip Frame 1
stop();
Instance of Symbol 462 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.crate.gotoAndPlay(2);
}
}
Symbol 470 MovieClip Frame 20
stop();
Symbol 497 MovieClip Frame 50
stop();
Symbol 499 MovieClip Frame 1
stop();
Instance of Symbol 492 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.platforms.gotoAndStop(2);
}
}
Symbol 499 MovieClip Frame 2
stop();
Symbol 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 4
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 2
stop();
Symbol 526 MovieClip Frame 1
stop();
Symbol 534 Button
on (release) {
this.gotoAndPlay("2");
}
Symbol 554 MovieClip Frame 7
stop();
Symbol 565 MovieClip Frame 17
stop();
Symbol 568 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 4
stop();
Symbol 625 MovieClip Frame 25
stop();
Instance of Symbol 316 MovieClip in Symbol 633 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.gotoAndPlay(14);
}
}
Symbol 633 MovieClip Frame 10
stop();
Symbol 663 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 2
stop();
Symbol 664 MovieClip Frame 1
stop();
Instance of Symbol 663 MovieClip "area" in Symbol 664 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.bird2.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.bird2.area.gotoAndPlay(2);
}
}
Symbol 664 MovieClip Frame 31
stop();
Symbol 731 MovieClip Frame 125
stop();
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 4
stop();
Symbol 749 MovieClip Frame 1
stop();
Instance of Symbol 744 MovieClip "gate" in Symbol 749 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 747 MovieClip in Symbol 749 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.coincollector = Number(_root.coincollector) - 20;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.pay.gotoAndStop(2);
}
}
Symbol 788 MovieClip Frame 35
stop();
Symbol 810 Button
on (release) {
this.gotoAndStop("3");
}
Symbol 815 MovieClip Frame 10
stop();