Frame 1
stop();
Frame 41
tbytes = getBytesTotal();
bloaded = getBytesLoaded();
percent = Math.round((bloaded / tbytes) * 100);
if (bloaded == tbytes) {
gotoAndPlay (43);
}
Instance of Symbol 51 MovieClip "dot" in Frame 41
onClipEvent (load) {
origx = _x;
_root.preloader.moveTo(_x, _y);
}
onClipEvent (enterFrame) {
_root.preloader.lineStyle(3, 10027008, 100);
_root.preloader.lineTo(_x, _y);
_root.preloader.moveTo(_x, _y);
if (yspeed < 0) {
yspeed = -(random(10) + 6);
} else {
yspeed = random(10) + 6;
}
if (_y > _root.bottom._y) {
yspeed = -16;
} else if (_y < _root.top._y) {
yspeed = 16;
}
_y = (_y + yspeed);
_x = (origx + (_root.percent * 2));
}
Frame 42
gotoAndPlay (41);
Frame 47
stop();
Frame 56
gotoAndPlay (58);
Frame 58
Mouse.hide();
startDrag (crosshairs, true);
gravity = 1.6;
Instance of Symbol 139 MovieClip in Frame 58
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.bg.cowboy.right = false;
if (_root.bg.cowboy.hspeed >> 0) {
_root.bg.cowboy.hspeed = 0;
}
}
}
Instance of Symbol 139 MovieClip in Frame 58
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.bg.cowboy.left = false;
if (_root.bg.cowboy.hspeed << 0) {
_root.bg.cowboy.hspeed = 0;
}
}
}
Frame 72
stop();
Frame 79
Mouse.show();
Frame 454
Mouse.hide();
score = 100;
startDrag (crosshairs, true);
gravity = 1.6;
game = none;
stop();
Instance of Symbol 503 MovieClip in Frame 454
onClipEvent (enterFrame) {
this.gotoAndStop(_root.bg.cowboy.lives);
}
Instance of Symbol 139 MovieClip in Frame 454
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.bg.cowboy.right = false;
if (_root.bg.cowboy.hspeed >> 0) {
_root.bg.cowboy.hspeed = 0;
}
}
}
Instance of Symbol 139 MovieClip in Frame 454
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.bg.cowboy.left = false;
if (_root.bg.cowboy.hspeed << 0) {
_root.bg.cowboy.hspeed = 0;
}
}
}
Frame 483
gotoAndStop (533);
Frame 518
gotoAndStop (534);
Frame 533
stop();
Mouse.show();
Frame 534
stop();
Mouse.show();
Symbol 10 Button
on (release) {
getURL ("http://www.onlinegames.net");
}
Symbol 16 MovieClip Frame 105
stop();
_root.play();
Symbol 40 MovieClip Frame 25
stop();
Symbol 57 Button
on (release) {
play();
}
Symbol 61 Button
on (release) {
play();
}
Symbol 62 Button
on (release) {
gotoAndStop (57);
}
Symbol 63 MovieClip Frame 28
stop();
Symbol 71 Button
on (release) {
getURL ("http://www.jimboready.com", "_blank");
}
Symbol 75 Button
on (release) {
gotoAndStop (47);
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 1
on (press) {
_root.play();
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 7
gotoAndStop (1);
Symbol 123 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
function calcRot(myx, myy) {
angle = 270 + (57.2957795130823 * Math.atan2(myy - _ymouse, myx - _xmouse));
return(angle);
}
Instance of Symbol 96 MovieClip "head" in Symbol 129 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = _parent.calcRot(this._x, this._y);
}
Instance of Symbol 106 MovieClip "arm" in Symbol 129 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = _parent.calcRot(this._x, this._y);
}
Symbol 129 MovieClip Frame 16
gotoAndPlay (1);
Symbol 129 MovieClip Frame 21
stop();
Symbol 129 MovieClip Frame 22
_root.bg.cowboy.canshoot = false;
Symbol 129 MovieClip Frame 35
_root.bg.cowboy.canshoot = true;
stop();
Instance of Symbol 96 MovieClip "head" in Symbol 129 MovieClip Frame 35
onClipEvent (enterFrame) {
this._rotation = _parent.calcRot(this._x, this._y);
}
Instance of Symbol 106 MovieClip in Symbol 129 MovieClip Frame 35
onClipEvent (enterFrame) {
this._rotation = _parent.calcRot(this._x, this._y);
}
Instance of Symbol 96 MovieClip "head" in Symbol 129 MovieClip Frame 36
onClipEvent (enterFrame) {
this._rotation = _parent.calcRot(this._x, this._y);
}
Instance of Symbol 106 MovieClip "arm" in Symbol 129 MovieClip Frame 36
onClipEvent (enterFrame) {
this._rotation = _parent.calcRot(this._x, this._y);
}
Symbol 129 MovieClip Frame 42
gotoAndPlay (1);
Symbol 129 MovieClip Frame 48
if (_root.bg.cowboy.lives == 0) {
_root.end.play();
_root.gotoAndPlay("lose");
stop();
}
Symbol 129 MovieClip Frame 52
_root.bg.cowboy._y = -_root.bg._y;
gotoAndStop (35);
_root.bg.cowboy.health = 3;
_root.bg.cowboy.canshoot = true;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.jumpstatus = 3;
_root.bg.cowboy.collided = false;
_root.bg.cowboy.currentplatform = none;
_root.bg.cowboy.falling = false;
Symbol 129 MovieClip Frame 55
_root.bg.cowboy.canshoot = false;
Symbol 129 MovieClip Frame 64
gotoAndPlay (60);
Symbol 129 MovieClip Frame 70
gotoAndPlay (1);
Symbol 129 MovieClip Frame 82
_root.bg.cowboy._y = -_root.bg._y;
gotoAndStop (35);
_root.bg.cowboy.health = 3;
_root.bg.cowboy.canshoot = true;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.jumpstatus = 3;
_root.bg.cowboy.collided = false;
_root.bg.cowboy.currentplatform = none;
_root.bg.cowboy.falling = false;
_root.bg.cowboy.lives = _root.bg.cowboy.lives - 1;
Symbol 130 MovieClip Frame 1
stop();
hit = false;
Symbol 130 MovieClip Frame 2
hit = true;
_root.life.play();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
stop();
Instance of Symbol 81 MovieClip "ground" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
vspeed = 0;
}
onClipEvent (enterFrame) {
if (this != _root.bg.cowboy.currentplatform) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = true;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
}
Instance of Symbol 89 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
}
Instance of Symbol 133 MovieClip "cowboy" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
currentplatform = _root.bg.ground;
origy = 300;
count = 0;
canjump = true;
fgy = _root.fg._y - 1;
hspeed = 0;
canshoot = true;
vspeed = 0;
jumpstatus = 3;
left = true;
right = true;
up = true;
down = true;
go = false;
collided = false;
health = 5;
lives = 3;
falling = false;
candrop = false;
canmove = true;
cowboy.cowboy.gotoAndPlay(17);
}
onClipEvent (mouseDown) {
cowboy.cowboy.arm.gotoAndPlay(2);
}
onClipEvent (enterFrame) {
if (this._y > (500 - _root.bg._Y)) {
if (falling == false) {
life = 100;
_root.life.play();
falling = true;
}
}
if (canshoot == true) {
if ((_root._xmouse - _root.bg._x) < _x) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
cowboy.cowboy.head._x = cowboy.cowboy.headplace._x;
cowboy.cowboy.head._y = cowboy.cowboy.headplace._y;
cowboy.cowboy.arm._x = cowboy.cowboy.armplace._x;
cowboy.cowboy.arm._y = cowboy.cowboy.armplace._y;
if (jumpstatus > 0) {
vspeed = vspeed - _root.gravity;
if (_y < (200 - _root.bg._y)) {
if (_root.fg._y > fgy) {
_root.bg._y = _root.bg._y + vspeed;
_root.fg._y = _root.fg._y + vspeed;
}
if (_root.fg._y < fgy) {
displacement = (fgy + 1) - _root.fg._y;
_root.bg._y = Number(_root.bg._y) + Number(displacement);
_root.fg._y = fgy + 1;
}
}
if (candrop == true) {
if (_y > (300 - _root.bg._y)) {
_root.bg._y = _root.bg._y + vspeed;
_root.fg._y = _root.fg._y + vspeed;
}
}
_y = (_y - vspeed);
}
if (canmove == true) {
if (_y >= origy) {
if ((_x > Number(currentplatform._x)) || (_x < (Number(currentplatform._x) + Number(currentplatform._width)))) {
if (collided == false) {
if (jumpstatus == 3) {
jumpstatus = 0;
collided = true;
if (vspeed < -20) {
this._y = this._y - 10;
}
vspeed = 0;
cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
if (vspeed < 0) {
jumpstatus = 3;
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform.collided = false;
if (currentplatform == _root.bg.boxtop) {
currentplatform = _root.bg.ground2;
} else {
currentplatform = none;
}
collided = false;
if (_root.bg.cowboy.jumpstatus == 0) {
jumpstatus = 3;
cowboy.cowboy.gotoAndPlay(21);
}
if (currentplatform == _root.bg.head) {
_root.bg.head.collided = false;
}
}
if (Key.isDown(87) == true) {
_root.keypad.gotoAndStop(2);
if (canmove == true) {
if (up == true) {
if (jumpstatus == 0) {
if (_y > currentplatform._y) {
cowboy.cowboy.play();
_y = (_y - 10);
down = true;
left = true;
right = true;
}
}
}
}
} else if (Key.isDown(83) == true) {
_root.keypad.gotoAndStop(4);
if (canmove == true) {
if (down == true) {
if (jumpstatus == 0) {
if (_y < (((Number(_root.bg._y) + Number(currentplatform._y)) + Number(currentplatform._height)) - _root.bg._y)) {
cowboy.cowboy.play();
_y = (Number(_y) + 10);
up = true;
left = true;
right = true;
}
}
}
}
}
if (Key.isDown(68) == true) {
_root.keypad.gotoAndStop(5);
if (right == true) {
if ((Number(_root.bg._x) + Number(this._x)) < 300) {
if (hspeed > -16) {
hspeed = hspeed - 4;
}
} else if (go == true) {
hspeed = -8;
bgspeed = 8;
fgspeed = 10;
} else if (hspeed > -16) {
hspeed = hspeed - 4;
}
} else {
hspeed = 0;
}
if (jumpstatus == 0) {
left = true;
up = true;
down = true;
cowboy.cowboy.play();
}
} else if (Key.isDown(65) == true) {
_root.keypad.gotoAndStop(3);
if (left == true) {
if (hspeed < 16) {
hspeed = hspeed + 4;
}
if (jumpstatus == 0) {
cowboy.cowboy.play();
right = true;
up = true;
down = true;
}
} else {
hspeed = 0;
}
}
_x = (_x - hspeed);
_root.bg._x = _root.bg._x - bgspeed;
_root.fg._x = _root.fg._x - fgspeed;
if (fgspeed > 0) {
fgspeed = fgspeed - 2;
}
if (bgspeed > 0) {
bgspeed = bgspeed - 2;
}
if (hspeed > 0) {
hspeed = hspeed - 2;
} else if (hspeed < 0) {
hspeed = hspeed + 2;
} else if (Key.isDown(87) == false) {
if (Key.isDown(83) == false) {
if (cowboy.cowboy._currentframe < 16) {
cowboy.cowboy.stop();
_root.keypad.gotoAndStop(1);
}
}
}
}
on (keyPress "<Space>") {
if (canjump == true) {
if (jumpstatus == 0) {
left = true;
right = true;
vspeed = (-currentplatform.vspeed) + 20;
jumpstatus = 1;
collided = false;
cowboy.cowboy.gotoAndPlay(17);
origy = this._y;
_root.keypad.gotoAndStop(6);
if (currentplatform == _root.bg.head) {
_root.bg.head.collided = false;
}
} else if (jumpstatus == 1) {
vspeed = 20;
jumpstatus = 2;
cowboy.cowboy.gotoAndPlay(21);
_root.keypad.gotoAndStop(7);
}
}
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 170 Button
on (release) {
gotoAndPlay (454);
}
Symbol 226 MovieClip Frame 1
stop();
stop();
Symbol 226 MovieClip Frame 10
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 2
_root.score = _root.score + 5;
stop();
Symbol 231 MovieClip Frame 1
stop();
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 2
onClipEvent (load) {
speed = 30;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 24
onClipEvent (load) {
speed = 20;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 27
onClipEvent (load) {
speed = 15;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 37
onClipEvent (load) {
speed = 30;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 40
onClipEvent (load) {
speed = 20;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 53
onClipEvent (load) {
speed = 15;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 62
onClipEvent (load) {
speed = 20;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 68
onClipEvent (load) {
speed = 10;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 73
onClipEvent (load) {
speed = 25;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 83
onClipEvent (load) {
speed = 30;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 97
onClipEvent (load) {
speed = 14;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 99
onClipEvent (load) {
speed = 20;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Instance of Symbol 230 MovieClip "meteor" in Symbol 231 MovieClip Frame 112
onClipEvent (load) {
speed = 20;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
Symbol 231 MovieClip Frame 130
gotoAndPlay (2);
Symbol 238 Button
on (press) {
gotoAndPlay (253);
_root.score = _root.score + 10;
}
Symbol 321 MovieClip Frame 248
gotoAndPlay (85);
Symbol 321 MovieClip Frame 261
stop();
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
}
Symbol 327 MovieClip Frame 69
stop();
Symbol 333 MovieClip Frame 130
stop();
Instance of Symbol 139 MovieClip "end trigger" in Symbol 362 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.gotoAndPlay("win");
_root.end.play();
play();
}
}
Symbol 373 MovieClip Frame 42
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
stop();
Instance of Symbol 398 MovieClip "head" in Symbol 399 MovieClip Frame 1
onClipEvent (load) {
dead = false;
}
on (press) {
if (dead == false) {
life = 1;
play();
_root.enemy.life.play();
}
}
Symbol 409 MovieClip Frame 1
blown = false;
stop();
Symbol 409 MovieClip Frame 2
blown = true;
Symbol 409 MovieClip Frame 10
stop();
Symbol 412 MovieClip Frame 1
_root.bg.cowboy.enemy = head.head;
_root.enemy.gotoAndPlay(2);
Symbol 412 MovieClip Frame 28
if (_root.bg.cowboy._x > ((Number(_root.bg.monster._x) + Number(_root.bg.monster.monster._x)) + Number(_root.bg.monster.monster.line._x))) {
gotoAndPlay (125);
}
Instance of Symbol 409 MovieClip in Symbol 412 MovieClip Frame 30
onClipEvent (load) {
hspeed = random(40) + 10;
vspeed = random(20) + 10;
collided = false;
}
onClipEvent (enterFrame) {
if (this._y > 130) {
vspeed = -vspeed;
} else {
vspeed = vspeed + 2;
}
this._y = this._y + vspeed;
this._x = this._x - hspeed;
if (hitTest(_root.bg.cowboy)) {
if (blown == false) {
if (_root.bg.cowboy.cowboy.hit == false) {
vspeed = 0;
hspeed = 0;
gotoAndPlay (2);
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
}
Symbol 412 MovieClip Frame 47
if (_root.bg.cowboy._x > ((Number(_root.bg.monster._x) + Number(_root.bg.monster.monster._x)) + Number(_root.bg.monster.monster.line._x))) {
gotoAndPlay (125);
}
Instance of Symbol 409 MovieClip in Symbol 412 MovieClip Frame 49
onClipEvent (load) {
hspeed = random(40) + 10;
vspeed = random(20) + 10;
collided = false;
}
onClipEvent (enterFrame) {
if (this._y > 130) {
vspeed = -vspeed;
} else {
vspeed = vspeed + 2;
}
this._y = this._y + vspeed;
this._x = this._x - hspeed;
if (hitTest(_root.bg.cowboy)) {
if (blown == false) {
if (_root.bg.cowboy.cowboy.hit == false) {
vspeed = 0;
hspeed = 0;
gotoAndPlay (2);
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
}
Symbol 412 MovieClip Frame 65
if (_root.bg.cowboy._x > ((Number(_root.bg.monster._x) + Number(_root.bg.monster.monster._x)) + Number(_root.bg.monster.monster.line._x))) {
gotoAndPlay (125);
}
Symbol 412 MovieClip Frame 86
floor.play();
if (_root.bg.cowboy.jumpstatus == 0) {
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
Symbol 412 MovieClip Frame 105
floor.play();
if (_root.bg.cowboy.jumpstatus == 0) {
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
Symbol 412 MovieClip Frame 114
gotoAndPlay (28);
Symbol 412 MovieClip Frame 125
_root.bg.arm.gotoAndPlay(2);
Symbol 412 MovieClip Frame 140
gotoAndPlay (28);
Symbol 412 MovieClip Frame 216
_root.score = _root.score + 180;
_root.bg.head._x = (_root.bg.monster._x + _root.bg.monster.monster._x) + _root.bg.monster.monster.head._x;
_root.bg.head._y = (_root.bg.monster._y + _root.bg.monster.monster._y) + _root.bg.monster.monster.head._y;
Symbol 412 MovieClip Frame 217
stop();
Symbol 413 MovieClip Frame 1
stop();
Instance of Symbol 412 MovieClip "monster" in Symbol 413 MovieClip Frame 58
onClipEvent (enterFrame) {
if (head.head.dead == true) {
gotoAndPlay (200);
}
}
Symbol 413 MovieClip Frame 114
gotoAndPlay (76);
Symbol 416 MovieClip Frame 1
stop();
Instance of Symbol 226 MovieClip "meteor" in Symbol 416 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy)) {
if (_root.bg.cowboy.cowboy.hit == false) {
if (blown == false) {
blown = true;
play();
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
}
Symbol 416 MovieClip Frame 2
stop();
Symbol 421 MovieClip Frame 1
gone = false;
stop();
Symbol 421 MovieClip Frame 10
if (_root.bg.cowboy.currentplatform == this) {
if (_root.bg.cowboy.jumpstatus == 0) {
_root.bg.cowboy.jumpstatus = 3;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(21);
_root.bg.cowboy.collided = false;
_root.bg.cowboy.currentplatform = none;
}
}
gone = true;
Symbol 421 MovieClip Frame 16
stop();
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 10
done = true;
_root.bg.cowboy.jumpstatus = 3;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(21);
_root.bg.collided = false;
_root.bg.cowboy.go = true;
_root.bg.cowboy.currentplatform = _root.bg.ground3;
_root.bg.cowboy.candrop = true;
_root.bg.cowboy.origy = 550;
_root.bg.cowboy.canmove = true;
Symbol 424 MovieClip Frame 11
stop();
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
Symbol 435 Button
on (press) {
if (dead == true) {
gotoAndPlay (8);
_root.bg.ufo1.triggered = false;
_root.bg.e.play();
} else {
life = 10;
_root.enemy.life.play();
gotoAndPlay (3);
}
}
Symbol 444 MovieClip Frame 2
stop();
Symbol 444 MovieClip Frame 7
gotoAndStop (2);
Symbol 444 MovieClip Frame 8
_root.bg.ufo1.stop();
Symbol 444 MovieClip Frame 22
_root.score = _root.score + 120;
Symbol 444 MovieClip Frame 35
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
blown = true;
Symbol 458 MovieClip Frame 19
stop();
Symbol 458 MovieClip Frame 20
blown = true;
Symbol 458 MovieClip Frame 33
stop();
Symbol 459 MovieClip Frame 1
triggered = false;
stop();
Symbol 459 MovieClip Frame 2
_root.bg.cowboy.enemy = alien;
Instance of Symbol 458 MovieClip in Symbol 459 MovieClip Frame 14
onClipEvent (load) {
blown = false;
vspeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + vspeed;
if (hitTest(_root.bg.cowboy)) {
if (blown == false) {
if (_root.bg.cowboy.cowboy.hit == false) {
vspeed = 0;
gotoAndPlay (2);
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
if (hitTest("../floor")) {
if (blown == false) {
vspeed = 0;
gotoAndPlay (20);
}
}
}
on (press) {
gotoAndPlay (2);
}
Instance of Symbol 458 MovieClip in Symbol 459 MovieClip Frame 33
onClipEvent (load) {
blown = false;
vspeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + vspeed;
if (hitTest(_root.bg.cowboy)) {
if (blown == false) {
if (_root.bg.cowboy.cowboy.hit == false) {
vspeed = 0;
gotoAndPlay (2);
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
if (hitTest("../floor")) {
if (blown == false) {
vspeed = 0;
gotoAndPlay (20);
}
}
}
on (press) {
gotoAndPlay (2);
}
Instance of Symbol 458 MovieClip in Symbol 459 MovieClip Frame 46
onClipEvent (load) {
blown = false;
vspeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + vspeed;
if (hitTest(_root.bg.cowboy)) {
if (blown == false) {
if (_root.bg.cowboy.cowboy.hit == false) {
vspeed = 0;
gotoAndPlay (2);
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
if (hitTest("../floor")) {
if (blown == false) {
vspeed = 0;
gotoAndPlay (20);
}
}
}
on (press) {
gotoAndPlay (2);
}
Instance of Symbol 458 MovieClip in Symbol 459 MovieClip Frame 84
onClipEvent (load) {
blown = false;
vspeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + vspeed;
if (hitTest(_root.bg.cowboy)) {
if (blown == false) {
if (_root.bg.cowboy.cowboy.hit == false) {
vspeed = 0;
gotoAndPlay (2);
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
if (hitTest("../floor")) {
if (blown == false) {
vspeed = 0;
gotoAndPlay (20);
}
}
}
on (press) {
gotoAndPlay (2);
}
Instance of Symbol 458 MovieClip in Symbol 459 MovieClip Frame 91
onClipEvent (load) {
blown = false;
vspeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + vspeed;
if (hitTest(_root.bg.cowboy)) {
if (blown == false) {
if (_root.bg.cowboy.cowboy.hit == false) {
vspeed = 0;
gotoAndPlay (2);
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
if (hitTest("../floor")) {
if (blown == false) {
vspeed = 0;
gotoAndPlay (20);
}
}
}
on (press) {
gotoAndPlay (2);
}
Instance of Symbol 458 MovieClip in Symbol 459 MovieClip Frame 135
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy)) {
if (_root.bg.cowboy.cowboy.hit == false) {
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
Symbol 459 MovieClip Frame 156
gotoAndPlay (2);
Instance of Symbol 139 MovieClip in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (_root.bg.cowboy.jumpstatus == 0) {
_root.bg.cowboy.right = false;
_root.bg.cowboy._x = this._x + _root.bg.box._x;
if (_root.bg.cowboy.hspeed >> 0) {
_root.bg.cowboy.hspeed = 0;
}
}
}
}
Instance of Symbol 139 MovieClip in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (_root.bg.cowboy.jumpstatus == 0) {
_root.bg.cowboy.up = false;
}
}
}
Instance of Symbol 139 MovieClip in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (_root.bg.cowboy.jumpstatus == 0) {
_root.bg.cowboy.left = false;
_root.bg.cowboy._x = (this._x + _root.bg.box._x) + 10;
if (_root.bg.cowboy.hspeed << 0) {
_root.bg.cowboy.hspeed = 0;
}
}
}
}
Symbol 475 MovieClip Frame 12
stop();
Symbol 478 MovieClip Frame 1
stop();
shooting = false;
Symbol 478 MovieClip Frame 2
shooting = true;
Instance of Symbol 475 MovieClip in Symbol 478 MovieClip Frame 13
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy)) {
if (_root.bg.cowboy.cowboy.hit == false) {
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
gotoAndStop (1);
}
}
}
Symbol 485 MovieClip Frame 23
gotoAndPlay (1);
Symbol 485 MovieClip Frame 30
gotoAndPlay (1);
Symbol 485 MovieClip Frame 50
dead = true;
_root.score = _root.score + 20;
Symbol 485 MovieClip Frame 70
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 10
stop();
Instance of Symbol 139 MovieClip in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.bg.cowboy.left = false;
_root.bg.cowboy._x = (this._x + _root.bg.statue._x) + 30;
if (_root.bg.cowboy.hspeed << 0) {
_root.bg.cowboy.hspeed = 0;
}
}
}
Instance of Symbol 139 MovieClip in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.bg.cowboy.down = false;
}
}
Instance of Symbol 139 MovieClip in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.bg.cowboy.right = false;
_root.bg.cowboy._x = this._x + _root.bg.statue._x;
if (_root.bg.cowboy.hspeed >> 0) {
_root.bg.cowboy.hspeed = 0;
}
}
}
Instance of Symbol 139 MovieClip in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
_root.bg.cowboy.up = false;
}
}
Symbol 496 MovieClip Frame 1
stop();
Instance of Symbol 368 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (_root.bg.cowboy.cowboy.cowboy._currentframe < 70) {
if (_root.bg.cowboy.currentplatform != _root.bg.head) {
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(72);
}
}
}
}
Instance of Symbol 139 MovieClip "meteor trigger" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
play();
_root.background.gotoAndPlay(2);
}
}
Instance of Symbol 413 MovieClip "monster" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.bg._x < -3500) {
this.play();
_root.bg.cowboy.go = false;
}
}
Instance of Symbol 415 MovieClip "head" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
hspeed = 12;
vspeed = 0;
collided = false;
}
onClipEvent (enterFrame) {
if (this._y > 500) {
vspeed = -vspeed;
} else {
vspeed = vspeed + 3;
}
this._y = this._y + vspeed;
if (collided == true) {
if (_y < (100 - _root.bg._y)) {
_root.bbg._y = _root.bbg._y - vspeed;
_root.bg._y = _root.bg._y - vspeed;
_root.fg._y = _root.fg._y - vspeed;
}
if (_root.fg._y < _root.bg.cowboy.fgy) {
displacement = (_root.bg.cowboy.fgy + 1) - _root.fg._y;
_root.bbg._y = Number(_root.bbg._y) + Number(displacement);
_root.bg._y = Number(_root.bg._y) + Number(displacement);
_root.fg._y = _root.bg.cowboy.fgy + 1;
}
}
this._x = this._x - hspeed;
if (this._x < (-_root.bg._x)) {
hspeed = -hspeed;
_x = (-_root.bg._x);
} else if (this._x > ((550 - _root.bg._x) - this._width)) {
hspeed = -hspeed;
}
if (collided == true) {
_root.bg.cowboy._y = _y;
_root.bg.cowboy.hspeed = hspeed;
if (this._x > (300 - _root.bg._x)) {
if (hspeed < 0) {
_root.bg.cowboy.hspeed = -12;
_root.bg.cowboy.bbgspeed = 5;
_root.bg.cowboy.bgspeed = 12;
_root.bg.cowboy.fgspeed = 20;
}
}
}
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = false;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
collided = true;
}
}
}
}
}
Instance of Symbol 139 MovieClip "meteor2 trigger" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
play();
_root.bg.meteor._x = this._x;
_root.bg.meteor.meteor.blown = false;
_root.bg.meteor.gotoAndStop(1);
_root.bg.meteor.meteor.gotoAndStop(1);
_root.bg.meteor._y = -140;
_root.bg.meteor.speed = 50;
}
}
Instance of Symbol 139 MovieClip "meteor3 trigger" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
play();
_root.bg.meteor2._x = this._x;
_root.bg.meteor2.meteor.blown = false;
_root.bg.meteor2.gotoAndStop(1);
_root.bg.meteor2.meteor.gotoAndStop(1);
_root.bg.meteor2._y = -140;
_root.bg.meteor2.speed = 30;
}
}
Instance of Symbol 139 MovieClip "meteor4 trigger" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
play();
_root.bg.meteor._x = this._x;
_root.bg.meteor.meteor.blown = false;
_root.bg.meteor.gotoAndStop(1);
_root.bg.meteor.meteor.gotoAndStop(1);
_root.bg.meteor._y = -140;
_root.bg.meteor.speed = 40;
}
}
Instance of Symbol 139 MovieClip "meteor5 trigger" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
play();
_root.bg.meteor2._x = this._x;
_root.bg.meteor2.meteor.blown = false;
_root.bg.meteor2.gotoAndStop(1);
_root.bg.meteor2.meteor.gotoAndStop(1);
_root.bg.meteor2._y = -140;
_root.bg.meteor2.speed = 10;
}
}
Instance of Symbol 139 MovieClip "meteor6 trigger" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
play();
_root.bg.meteor3._x = this._x;
_root.bg.meteor3.meteor.blown = false;
_root.bg.meteor3.gotoAndStop(1);
_root.bg.meteor3.meteor.gotoAndStop(1);
_root.bg.meteor3._y = -140;
_root.bg.meteor3.speed = 20;
}
}
Instance of Symbol 416 MovieClip "meteor" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
speed = 0;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
if (this._y > 500) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
_root.score = _root.score + 30;
}
}
Instance of Symbol 416 MovieClip "meteor2" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
speed = 0;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
if (this._y > 500) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
_root.score = _root.score + 30;
}
}
Instance of Symbol 416 MovieClip "meteor3" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
speed = 0;
meteor.blown = false;
}
onClipEvent (enterFrame) {
this._x = this._x + (speed / 2);
this._y = this._y + speed;
if (meteor.blown == true) {
gotoAndStop (2);
speed = 0;
}
if (this._y > 500) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
}
}
}
on (press) {
if (meteor.blown == false) {
meteor.play();
meteor.blown = true;
_root.score = _root.score + 30;
}
}
Instance of Symbol 81 MovieClip "ground" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
vspeed = 0;
}
onClipEvent (enterFrame) {
if (this != _root.bg.cowboy.currentplatform) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = true;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
}
Instance of Symbol 81 MovieClip "ground2" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
vspeed = 0;
}
onClipEvent (enterFrame) {
if (this != _root.bg.cowboy.currentplatform) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = true;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
if (hitTest(_root.bg.alien4.alien.center)) {
if (Number(_root.bg.alien4._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.alien4.falling == true) {
_root.bg.alien4.falling = false;
_root.bg.alien4.vspeed = 0;
_root.bg.alien4.currentplatform = this;
if (_root.bg.alien4.dead == false) {
_root.bg.alien4.alien.gotoAndPlay(24);
}
}
}
}
}
Instance of Symbol 421 MovieClip "c" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
vspeed = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
if (gone == false) {
play();
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy._y = this._y;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = false;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
}
Instance of Symbol 422 MovieClip "a" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
vspeed = 1;
maxspeed = 15;
down = true;
}
onClipEvent (enterFrame) {
if (down == true) {
if (vspeed < maxspeed) {
vspeed = vspeed + 1;
} else {
down = false;
vspeed = vspeed + 1;
}
}
if (down == false) {
if (vspeed > (-maxspeed)) {
vspeed = vspeed - 1;
} else {
down = true;
}
}
this._y = this._y + vspeed;
if (_root.bg.cowboy.currentplatform == this) {
if (_root.bg.cowboy.jumpstatus == 0) {
_root.bg.cowboy._y = this._y;
_root.bg._y = _root.bg._y - vspeed;
_root.bbg._y = _root.bbg._y - vspeed;
_root.fg._y = _root.fg._y - vspeed;
}
}
if (vspeed > 0) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy._y = this._y;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = false;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
} else {
if (hitTest(_root.bg.cowboy.center)) {
if (_root.bg.cowboy.collided == false) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = false;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
Instance of Symbol 421 MovieClip "d" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
vspeed = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
if (gone == false) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy._y = this._y;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = false;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
}
Instance of Symbol 424 MovieClip "e" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
done = false;
setvariables = false;
vspeed = 0;
}
onClipEvent (enterFrame) {
if (hitalien == true) {
if (_root.bg.alien5._x > _x) {
if (_root.bg.alien5._x < (_x + _width)) {
_root.bg.alien5._y = this._y;
}
}
}
if (_root.bg.ufo1.triggered == true) {
if (_root.bg.cowboy.jumpstatus == 0) {
_root.bg.cowboy.canjump = false;
if (this._y > 120) {
this._y = this._y - 8;
if (this._y < 320) {
_root.bg._y = _root.bg._y + 8;
_root.bbg._y = _root.bbg._y + 8;
_root.fg._y = _root.fg._y + 8;
if (_root.bg.cowboy.cowboy.cowboy._currentframe < 55) {
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(55);
}
}
} else {
_root.bg.cowboy.canjump = true;
if (setvariables == false) {
_root.bg.cowboy.fgy = _root.fg._y - 1;
_root.bg.e.triggered = true;
_root.enemy.gotoAndPlay(2);
_root.enemy.life.gotoAndPlay(2);
setvariables = true;
_root.bg.ufo1.play();
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(65);
_root.bg.cowboy.canshoot = true;
_root.bg.cowboy.left = true;
_root.bg.cowboy.right = true;
}
}
_root.bg._y = _root.bg._y - vspeed;
_root.fg._y = _root.fg._y - vspeed;
_root.bg.cowboy._y = this._y;
}
}
if (hitTest(_root.bg.cowboy.center)) {
if (done == false) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy._y = this._y;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = false;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
if (hitTest(_root.bg.alien5.alien.center)) {
if (Number(_root.bg.alien5._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.alien5.falling == true) {
hitalien = true;
_root.bg.alien5.vspeed = 0;
_root.bg.alien5.falling = false;
_root.bg.alien5.currentplatform = this;
if (_root.bg.alien5.dead == false) {
_root.bg.alien5.alien.gotoAndPlay(24);
}
}
}
}
}
Instance of Symbol 421 MovieClip "b" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
vspeed = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
if (gone == false) {
play();
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy._y = this._y;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = false;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
}
Instance of Symbol 426 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy)) {
play();
_root.bg.cowboy.lives = _root.bg.cowboy.lives + 1;
}
}
Instance of Symbol 427 MovieClip "ground3" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
vspeed = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (_root.bg.e.done == true) {
_root.bg.cowboy.fgy = _root.fg._y - 1;
if (this != _root.bg.cowboy.currentplatform) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = true;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
}
}
Instance of Symbol 427 MovieClip "ground3b" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (_root.bg.e.done == true) {
_root.bg.cowboy.candrop = false;
}
}
}
Instance of Symbol 459 MovieClip "ufo1" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy)) {
if (done == false) {
if (triggered == false) {
_root.bg.cowboy.go = false;
_root.bg.ufo1.triggered = true;
done = true;
}
}
}
}
Instance of Symbol 81 MovieClip "boxtop" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
vspeed = 0;
}
onClipEvent (enterFrame) {
if (this != _root.bg.cowboy.currentplatform) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = true;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
if (hitTest(_root.bg.alien4.center)) {
if (Number(_root.bg.alien4._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.alien4.collided == false) {
_root.bg.alien4.vspeed = 0;
_root.bg.alien4.collided = true;
_root.bg.alien4.currentplatform = this;
if (_root.bg.alien4.dead == false) {
_root.bg.alien4.alien.gotoAndPlay(24);
}
}
}
}
}
Instance of Symbol 139 MovieClip "aliens trigger" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
set1 = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
play();
_root.bg.cowboy.go = false;
_root.bg.alien6.live = true;
_root.bg.alien8.live = true;
_root.bg.alien9.live = true;
_root.bg.alien6.play();
_root.bg.alien8.play();
_root.bg.alien9.play();
}
if (_root.bg.cowboy.count == 3) {
if (set1 == false) {
_root.bg.cowboy.go = true;
set1 = true;
}
}
}
Instance of Symbol 487 MovieClip "alien5" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
alien.alien.dead = false;
collided = false;
falling = true;
vspeed = 0;
live = false;
currentplatform = _root.bg.ground2;
}
onClipEvent (enterFrame) {
if ((Number(_root.bg._x) + Number(this._x)) < 500) {
if ((Number(_root.bg._x) + Number(this._x)) > 0) {
if (live == false) {
if (alien.alien.dead == false) {
live = true;
play();
}
}
}
}
if (this._y > 700) {
live = false;
alien.alien.gotoAndPlay(50);
alien.alien.dead = true;
}
if (live == true) {
if (falling == true) {
vspeed = vspeed - _root.gravity;
_y = (_y - vspeed);
}
if (alien.alien.dead == false) {
if (alien.alien.arm.shooting == false) {
shoot = random(4);
if (shoot == 1) {
alien.alien.arm.gotoAndPlay(2);
}
}
turn = random(8);
if (turn == 1) {
if (this._x > _root.bg.cowboy._x) {
alien.gotoAndStop(1);
hspeed = -3;
} else {
alien.gotoAndStop(2);
hspeed = 3;
}
}
this._x = this._x + hspeed;
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
if (alien.alien.dead == false) {
currentplatform = none;
falling = true;
}
}
}
}
on (press) {
if (alien.alien.dead == false) {
alien.alien.gotoAndPlay(50);
}
}
Instance of Symbol 487 MovieClip "alien6" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
alien.alien.dead = false;
collided = true;
falling = false;
vspeed = 0;
live = false;
currentplatform = _root.bg.ground3;
setdepth = false;
}
onClipEvent (enterFrame) {
if (live == true) {
if (setdepth == false) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (_y < _root.bg.cowboy._y) {
place = 1;
} else {
place = 2;
}
setdepth = true;
}
}
}
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
if (this._y > 700) {
live = false;
alien.alien.gotoAndPlay(50);
alien.alien.dead = true;
}
if (live == true) {
if (falling == true) {
vspeed = vspeed - _root.gravity;
_y = (_y - vspeed);
}
if (alien.alien.dead == false) {
if (alien.alien.arm.shooting == false) {
shoot = random(4);
if (shoot == 1) {
alien.alien.arm.gotoAndPlay(2);
}
}
turn = random(8);
if (turn == 1) {
if (this._x > _root.bg.cowboy._x) {
alien.gotoAndStop(1);
hspeed = -3;
} else {
alien.gotoAndStop(2);
hspeed = 3;
}
}
this._x = this._x + hspeed;
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform = none;
falling = true;
}
}
}
on (press) {
if (alien.alien.dead == false) {
alien.alien.gotoAndPlay(50);
_root.bg.cowboy.count = _root.bg.cowboy.count + 1;
}
}
Instance of Symbol 487 MovieClip "alien9" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
alien.alien.dead = false;
collided = true;
falling = false;
vspeed = 0;
live = false;
currentplatform = _root.bg.ground3;
setdepth = false;
}
onClipEvent (enterFrame) {
if (live == true) {
if (setdepth == false) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (_y < _root.bg.cowboy._y) {
place = 1;
} else {
place = 2;
}
setdepth = true;
}
}
}
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
if (this._y > 700) {
live = false;
alien.alien.gotoAndPlay(50);
alien.alien.dead = true;
}
if (live == true) {
if (falling == true) {
vspeed = vspeed - _root.gravity;
_y = (_y - vspeed);
}
if (alien.alien.dead == false) {
if (alien.alien.arm.shooting == false) {
shoot = random(4);
if (shoot == 1) {
alien.alien.arm.gotoAndPlay(2);
}
}
turn = random(8);
if (turn == 1) {
if (this._x > _root.bg.cowboy._x) {
alien.gotoAndStop(1);
hspeed = -3;
} else {
alien.gotoAndStop(2);
hspeed = 3;
}
}
this._x = this._x + hspeed;
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform = none;
falling = true;
}
}
}
on (press) {
if (alien.alien.dead == false) {
alien.alien.gotoAndPlay(50);
_root.bg.cowboy.count = _root.bg.cowboy.count + 1;
}
}
Instance of Symbol 487 MovieClip "alien8" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
alien.alien.dead = false;
collided = true;
falling = false;
vspeed = 0;
live = false;
currentplatform = _root.bg.ground3;
setdepth = false;
}
onClipEvent (enterFrame) {
if (live == true) {
if (setdepth == false) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (_y < _root.bg.cowboy._y) {
place = 1;
} else {
place = 2;
}
setdepth = true;
}
}
}
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
if (this._y > 700) {
live = false;
alien.alien.gotoAndPlay(50);
alien.alien.dead = true;
}
if (live == true) {
if (falling == true) {
vspeed = vspeed - _root.gravity;
_y = (_y - vspeed);
}
if (alien.alien.dead == false) {
if (alien.alien.arm.shooting == false) {
shoot = random(4);
if (shoot == 1) {
alien.alien.arm.gotoAndPlay(2);
}
}
turn = random(8);
if (turn == 1) {
if (this._x > _root.bg.cowboy._x) {
alien.gotoAndStop(1);
hspeed = -3;
} else {
alien.gotoAndStop(2);
hspeed = 3;
}
}
this._x = this._x + hspeed;
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform = none;
falling = true;
}
}
}
on (press) {
if (alien.alien.dead == false) {
alien.alien.gotoAndPlay(50);
_root.bg.cowboy.count = _root.bg.cowboy.count + 1;
}
}
Instance of Symbol 487 MovieClip "alien4" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
alien.alien.dead = false;
collided = true;
falling = false;
vspeed = 0;
live = false;
currentplatform = _root.bg.boxtop;
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
if ((Number(_root.bg._x) + Number(this._x)) < 500) {
if ((Number(_root.bg._x) + Number(this._x)) > 0) {
if (live == false) {
if (alien.alien.dead == false) {
live = true;
play();
}
}
}
}
if (this._y > 700) {
live = false;
alien.alien.gotoAndPlay(50);
alien.alien.dead = true;
}
if (live == true) {
if (falling == true) {
vspeed = vspeed - _root.gravity;
_y = (_y - vspeed);
}
if (alien.alien.dead == false) {
if (alien.alien.arm.shooting == false) {
shoot = random(4);
if (shoot == 1) {
alien.alien.arm.gotoAndPlay(2);
}
}
turn = random(8);
if (turn == 1) {
if (this._x > _root.bg.cowboy._x) {
alien.gotoAndStop(1);
hspeed = -3;
} else {
alien.gotoAndStop(2);
hspeed = 3;
}
}
if (currentplatform == _root.bg.ground2) {
if (alien._currentframe == 1) {
this._x = this._x + hspeed;
} else if (this._x < 1130) {
this._x = this._x + hspeed;
}
} else {
this._x = this._x + hspeed;
}
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform = none;
falling = true;
}
}
}
on (press) {
if (alien.alien.dead == false) {
alien.alien.gotoAndPlay(50);
}
}
Instance of Symbol 489 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
}
Instance of Symbol 487 MovieClip "alien2" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
alien.alien.dead = false;
collided = true;
falling = false;
vspeed = 0;
live = false;
currentplatform = _root.bg.ground;
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
if ((Number(_root.bg._x) + Number(this._x)) < 500) {
if ((Number(_root.bg._x) + Number(this._x)) > 0) {
if (live == false) {
if (alien.alien.dead == false) {
live = true;
play();
}
}
}
}
if (this._y > 700) {
live = false;
alien.alien.gotoAndPlay(50);
alien.alien.dead = true;
}
if (live == true) {
if (falling == true) {
vspeed = vspeed - _root.gravity;
_y = (_y - vspeed);
}
if (alien.alien.dead == false) {
if (alien.alien.arm.shooting == false) {
shoot = random(4);
if (shoot == 1) {
alien.alien.arm.gotoAndPlay(2);
}
}
turn = random(8);
if (turn == 1) {
if (this._x > _root.bg.cowboy._x) {
alien.gotoAndStop(1);
hspeed = -3;
} else {
alien.gotoAndStop(2);
hspeed = 3;
}
}
this._x = this._x + hspeed;
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform = none;
falling = true;
}
}
}
on (press) {
if (alien.alien.dead == false) {
alien.alien.gotoAndPlay(50);
}
}
Instance of Symbol 133 MovieClip "cowboy" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
currentplatform = _root.bg.ground;
origy = 300;
count = 0;
canjump = true;
fgy = _root.fg._y - 1;
hspeed = 0;
canshoot = true;
vspeed = 0;
jumpstatus = 3;
left = true;
right = true;
up = true;
down = true;
go = true;
collided = false;
health = 5;
lives = 1;
falling = false;
candrop = false;
canmove = true;
cowboy.cowboy.gotoAndPlay(17);
}
onClipEvent (mouseDown) {
cowboy.cowboy.arm.gotoAndPlay(2);
_root.score = _root.score - 1;
}
onClipEvent (enterFrame) {
_root.test = lives;
if (this._y > (500 - _root.bg._Y)) {
if (falling == false) {
life = 100;
_root.life.play();
falling = true;
}
}
if (canshoot == true) {
if ((_root._xmouse - _root.bg._x) < _x) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
cowboy.cowboy.head._x = cowboy.cowboy.headplace._x;
cowboy.cowboy.head._y = cowboy.cowboy.headplace._y;
cowboy.cowboy.arm._x = cowboy.cowboy.armplace._x;
cowboy.cowboy.arm._y = cowboy.cowboy.armplace._y;
if (jumpstatus > 0) {
vspeed = vspeed - _root.gravity;
if (_y < (200 - _root.bg._y)) {
if (_root.fg._y > fgy) {
_root.bbg._y = _root.bbg._y + vspeed;
_root.bg._y = _root.bg._y + vspeed;
_root.fg._y = _root.fg._y + vspeed;
}
if (_root.fg._y < fgy) {
displacement = (fgy + 1) - _root.fg._y;
_root.bbg._y = Number(_root.bbg._y) + Number(displacement);
_root.bg._y = Number(_root.bg._y) + Number(displacement);
_root.fg._y = fgy + 1;
}
}
if (candrop == true) {
if (_y > (300 - _root.bg._y)) {
_root.bbg._y = _root.bbg._y + vspeed;
_root.bg._y = _root.bg._y + vspeed;
_root.fg._y = _root.fg._y + vspeed;
}
}
_y = (_y - vspeed);
}
if (canmove == true) {
if (_y >= origy) {
if ((_x > Number(currentplatform._x)) || (_x < (Number(currentplatform._x) + Number(currentplatform._width)))) {
if (collided == false) {
if (jumpstatus == 3) {
jumpstatus = 0;
collided = true;
if (vspeed < -20) {
this._y = this._y - 10;
}
vspeed = 0;
cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
if (vspeed < 0) {
jumpstatus = 3;
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform.collided = false;
if (currentplatform == _root.bg.boxtop) {
currentplatform = _root.bg.ground2;
} else {
currentplatform = none;
}
collided = false;
if (_root.bg.cowboy.jumpstatus == 0) {
jumpstatus = 3;
cowboy.cowboy.gotoAndPlay(21);
}
if (currentplatform == _root.bg.head) {
_root.bg.head.collided = false;
}
}
if (Key.isDown(87) == true) {
if (canmove == true) {
if (up == true) {
if (jumpstatus == 0) {
if (_y > currentplatform._y) {
cowboy.cowboy.play();
_y = (_y - 10);
down = true;
left = true;
right = true;
}
}
}
}
} else if (Key.isDown(83) == true) {
if (canmove == true) {
if (down == true) {
if (jumpstatus == 0) {
if (_y < (((Number(_root.bg._y) + Number(currentplatform._y)) + Number(currentplatform._height)) - _root.bg._y)) {
cowboy.cowboy.play();
_y = (Number(_y) + 10);
up = true;
left = true;
right = true;
}
}
}
}
}
if (Key.isDown(68) == true) {
if (right == true) {
if ((Number(_root.bg._x) + Number(this._x)) < 300) {
if (hspeed > -16) {
hspeed = hspeed - 4;
}
} else if (go == true) {
hspeed = -8;
bbgspeed = 4;
bgspeed = 8;
fgspeed = 10;
} else if (hspeed > -16) {
hspeed = hspeed - 4;
}
} else {
hspeed = 0;
}
if (jumpstatus == 0) {
left = true;
up = true;
down = true;
cowboy.cowboy.play();
}
} else if (Key.isDown(65) == true) {
if (left == true) {
if (hspeed < 16) {
hspeed = hspeed + 4;
}
if (jumpstatus == 0) {
cowboy.cowboy.play();
right = true;
up = true;
down = true;
}
} else {
hspeed = 0;
}
}
_x = (_x - hspeed);
_root.bbg._x = _root.bbg._x - bbgspeed;
_root.bg._x = _root.bg._x - bgspeed;
_root.fg._x = _root.fg._x - fgspeed;
if (fgspeed > 0) {
fgspeed = fgspeed - 2;
}
if (bbgspeed > 0) {
bbgspeed = bbgspeed - 2;
}
if (bgspeed > 0) {
bgspeed = bgspeed - 2;
}
if (hspeed > 0) {
hspeed = hspeed - 2;
} else if (hspeed < 0) {
hspeed = hspeed + 2;
} else if (Key.isDown(87) == false) {
if (Key.isDown(83) == false) {
if (cowboy.cowboy._currentframe < 16) {
cowboy.cowboy.stop();
}
}
}
}
on (keyPress "<Space>") {
if (canjump == true) {
if (jumpstatus == 0) {
left = true;
right = true;
vspeed = (-currentplatform.vspeed) + 20;
jumpstatus = 1;
collided = false;
cowboy.cowboy.gotoAndPlay(17);
origy = this._y;
if (currentplatform == _root.bg.head) {
_root.bg.head.collided = false;
}
} else if (jumpstatus == 1) {
vspeed = 20;
jumpstatus = 2;
cowboy.cowboy.gotoAndPlay(21);
}
}
}
Instance of Symbol 487 MovieClip "alien3" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
alien.alien.dead = false;
collided = true;
falling = false;
vspeed = 0;
live = false;
currentplatform = _root.bg.ground2;
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
if ((Number(_root.bg._x) + Number(this._x)) < 500) {
if ((Number(_root.bg._x) + Number(this._x)) > 0) {
if (live == false) {
if (alien.alien.dead == false) {
live = true;
play();
}
}
}
}
if (this._y > 700) {
live = false;
alien.alien.gotoAndPlay(50);
alien.alien.dead = true;
}
if (live == true) {
if (falling == true) {
vspeed = vspeed - _root.gravity;
_y = (_y - vspeed);
}
if (alien.alien.dead == false) {
if (alien.alien.arm.shooting == false) {
shoot = random(4);
if (shoot == 1) {
alien.alien.arm.gotoAndPlay(2);
}
}
turn = random(8);
if (turn == 1) {
if (this._x > _root.bg.cowboy._x) {
alien.gotoAndStop(1);
hspeed = -3;
} else {
alien.gotoAndStop(2);
hspeed = 3;
}
}
if (currentplatform == _root.bg.ground2) {
if (alien._currentframe == 1) {
this._x = this._x + hspeed;
} else if (this._x < 1130) {
this._x = this._x + hspeed;
}
} else {
this._x = this._x + hspeed;
}
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform = none;
falling = true;
}
}
}
on (press) {
if (alien.alien.dead == false) {
alien.alien.gotoAndPlay(50);
}
}
Instance of Symbol 487 MovieClip "alien1" in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
alien.alien.dead = false;
collided = true;
falling = false;
vspeed = 0;
live = false;
currentplatform = _root.bg.ground;
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
if ((Number(_root.bg._x) + Number(this._x)) < 500) {
if ((Number(_root.bg._x) + Number(this._x)) > 0) {
if (live == false) {
if (alien.alien.dead == false) {
live = true;
play();
}
}
}
}
if (this._y > 700) {
live = false;
alien.alien.gotoAndPlay(50);
alien.alien.dead = true;
}
if (live == true) {
if (falling == true) {
vspeed = vspeed - _root.gravity;
_y = (_y - vspeed);
}
if (alien.alien.dead == false) {
if (alien.alien.arm.shooting == false) {
shoot = random(4);
if (shoot == 1) {
alien.alien.arm.gotoAndPlay(2);
}
}
turn = random(8);
if (turn == 1) {
if (this._x > _root.bg.cowboy._x) {
alien.gotoAndStop(1);
hspeed = -3;
} else {
alien.gotoAndStop(2);
hspeed = 3;
}
}
this._x = this._x + hspeed;
}
if ((_x < Number(currentplatform._x)) || (_x > (Number(currentplatform._x) + Number(currentplatform._width)))) {
currentplatform = none;
falling = true;
}
}
}
on (press) {
if (alien.alien.dead == false) {
alien.alien.gotoAndPlay(50);
}
}
Instance of Symbol 321 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
if (_y < 300) {
place = 1;
} else {
place = 2;
}
}
onClipEvent (enterFrame) {
if (_root.bg.cowboy.jumpstatus == 0) {
if (place == 2) {
if (Number(this._y) < Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 1;
}
}
if (place == 1) {
if (Number(this._y) > Number(_root.bg.cowboy._y)) {
this.swapDepths("_root.bg.cowboy");
place = 2;
}
}
}
}
Instance of Symbol 495 MovieClip "statuehead" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy.center)) {
if (Number(_root.bg.cowboy._y) < (Number(this._y) + Number(this._height))) {
if (_root.bg.cowboy.collided == false) {
if (_root.bg.cowboy.jumpstatus == 3) {
_root.bg.cowboy.jumpstatus = 0;
_root.bg.cowboy.vspeed = 0;
_root.bg.cowboy.collided = true;
_root.bg.cowboy.currentplatform = this;
_root.bg.cowboy.canmove = false;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(36);
}
}
}
}
}
Instance of Symbol 496 MovieClip "arm" in Symbol 497 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.bg.cowboy)) {
if (_root.bg.cowboy.cowboy.hit == false) {
_root.bg.cowboy.cowboy.gotoAndPlay(2);
_root.bg.cowboy.life = 5;
_root.life.play();
}
}
}
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 503 MovieClip Frame 3
stop();
Symbol 506 MovieClip Frame 1
if (_root.bg.cowboy.go == true) {
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 1
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 2
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 3
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 4
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 5
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 6
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 7
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 8
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 9
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 10
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 11
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 12
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 13
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 14
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 15
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 16
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 17
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 18
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 19
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 20
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 21
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 22
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 23
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 24
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 25
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 26
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 27
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 28
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 29
if (_root.bg.cowboy.life > 0) {
_root.bg.cowboy.life = _root.bg.cowboy.life - 1;
play();
} else {
stop();
}
Symbol 509 MovieClip Frame 30
_root.bg.cowboy.life = 0;
_root.bg.cowboy.cowboy.cowboy.gotoAndPlay(43);
_root.bg.cowboy.lives = _root.bg.cowboy.lives - 1;
Symbol 513 MovieClip Frame 1
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 2
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 3
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 4
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 5
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 6
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 7
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 8
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 9
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 10
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 11
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 12
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 13
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 14
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 15
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 16
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 17
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 18
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 19
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 20
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 21
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 22
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 23
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 24
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 25
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 26
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 27
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 28
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 29
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 30
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 31
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 32
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 33
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 34
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 35
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 36
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 37
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 38
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 39
if (_root.bg.cowboy.enemy.life >> 0) {
_root.bg.cowboy.enemy.life = _root.bg.cowboy.enemy.life - 1;
play();
} else {
stop();
}
Symbol 513 MovieClip Frame 40
_root.bg.cowboy.enemy.dead = true;
_root.bg.cowboy.enemy = none;
_root.enemy.gotoAndStop(1);
Symbol 514 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 11
stop();
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 10
stop();
Symbol 531 Button
on (release) {
_root.gotoAndPlay(453);
}
Symbol 532 MovieClip Frame 3
score = _root.score;
Symbol 532 MovieClip Frame 7
stop();
Symbol 552 MovieClip Frame 12
score = _root.score;
Symbol 552 MovieClip Frame 22
stop();