Frame 1
Stage.showMenu = false;
NewgroundsAPI.connectMovie(1399);
stop();
Frame 2
stop();
Frame 3
function reset(bgx2, bg2x2) {
_x = parx2;
hero._x = herox2;
hud._x = hudx2;
bg._x = bgx2;
bg2._x = bg2x2;
}
function dupeBullet(who, y2) {
bullets++;
bulletcpy = bullet.duplicateMovieClip("bullet" + bullets, getNextHighestDepth());
bulletcpy.dir = who._xscale;
bulletcpy._x = who._x;
bulletcpy._y = y2;
}
function dupeRock(who) {
rocks++;
rockcpy = rock.duplicateMovieClip("rock" + rocks, getNextHighestDepth());
rockcpy._x = who._x;
rockcpy._y = who._y;
}
function heroCode(who, boss) {
if (who.starte == undefined) {
who.starte = 1;
who.speed = 7;
who.falling = false;
who.jumping = false;
who.fallspd = 0;
who.gravity = 17;
who.maxJump = who.gravity;
who.jumpprev = false;
who.throwing = false;
who._xscale = 100;
who.curx = _x;
who.myx = who._x;
who.cury = who._y;
who.attacking = false;
who.atkpres = false;
}
if (who._currentframe != 8) {
if (who.falling) {
who.fallspd++;
who._y = who._y + who.fallspd;
}
if (who.fallspd > 10) {
who.fallspd = 10;
}
while (ground.hitTest(who._x, who._y, true)) {
who._y--;
who.curx = _x;
who.bgx = bg._x;
who.bg2x = bg2._x;
who.hudx = hud._x;
who.myx = who._x;
who.cury = who._y;
if (who.jumpprev) {
who.attacking = false;
who.gotoAndStop("idle");
who.jumpprev = false;
}
who.falling = false;
who.fallspd = 0;
if (((Key.isDown(38) && (!who.throwing)) && (who._currentframe != 6)) && (!who.attacking)) {
who.jumping = true;
who.gotoAndStop("jump");
}
}
if (!ground.hitTest(who._x, who._y, true)) {
who.falling = true;
}
if (who._y > Stage.height) {
who.hp = who.hp - 15;
_x = who.curx;
bg._x = who.bgx;
bg2._x = who.bg2x;
hud._x = who.hudx;
who._x = who.myx;
who._y = who.cury;
who.gotoAndStop("hurt");
}
if (who.jumping) {
who.falling = false;
who.gravity--;
who._y = who._y - who.gravity;
}
if ((who.gravity <= 0) || (ground.hitTest(who._x, who._y - who._height, true))) {
who.jumping = false;
who.falling = true;
who.jumpprev = true;
who.gravity = who.maxJump;
}
if (((Key.isDown(39) && (!ground.hitTest(who._x + (who._width / 2), who._y - (who._height / 2), true))) && (!who.throwing)) && (who._currentframe != 6)) {
if (boss == undefined) {
_x = (_x - who.speed);
bg._x = bg._x + who.speed;
bg2._x = bg2._x + who.speed;
hud._x = hud._x + who.speed;
}
who._x = who._x + who.speed;
if (((!who.attacking) && (!who.jumping)) && (!who.jumpprev)) {
who.gotoAndStop("walk");
}
who._xscale = 100;
who.walking = true;
} else if (((Key.isDown(37) && (!ground.hitTest(who._x - (who._width / 2), who._y - (who._height / 2), true))) && (!who.throwing)) && (who._currentframe != 6)) {
if (boss == undefined) {
_x = (_x + who.speed);
bg._x = bg._x - who.speed;
bg2._x = bg2._x - who.speed;
hud._x = hud._x - who.speed;
}
who._x = who._x - who.speed;
if (((!who.attacking) && (!who.jumping)) && (!who.jumpprev)) {
who.gotoAndStop("walk");
}
who._xscale = -100;
who.walking = true;
} else {
who.walking = false;
}
if (((Key.isDown(32) && (!who.atkpres)) && (!who.throwing)) && (who._currentframe != 6)) {
who.gotoAndStop("attack");
who.attacking = true;
who.atkpres = true;
}
if (!Key.isDown(32)) {
who.atkpres = false;
}
if (((((((Key.isDown(90) && (!who.walking)) && (!who.jumping)) && (!who.jumpprev)) && (!who.attacking)) && (bombs > 0)) && (!bomb._visible)) && (who._currentframe != 6)) {
who.throwing = true;
who.gotoAndStop("throwing");
}
if ((((((Key.isDown(40) && (!who.attacking)) && (!who.jumping)) && (!who.jumpprev)) && (!who.walking)) && (!who.attacking)) && (!who.throwing)) {
who.gotoAndStop("ducking");
who.ducking = true;
} else {
who.ducking = false;
}
if (((((((!who.walking) && (!who.jumping)) && (!who.jumpprev)) && (!who.attacking)) && (!who.throwing)) && (!who.ducking)) && (who._currentframe != 6)) {
who.gotoAndStop("idle");
}
if (hp <= 0) {
who.gotoAndStop("death");
lives--;
hp = 100;
}
if (lives <= 0) {
_root.gotoAndStop("gameover");
}
}
}
function fish(who) {
if (who.starte == undefined) {
who.starte = 1;
who.cury = who._y;
who.grav = 20;
who.maxGrav = who.grav;
who.fall = 0;
who.dir = 1;
who.curframe = _currentframe;
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
if (who.dir == 1) {
who.grav--;
who._y = who._y - who.grav;
} else if (who.dir == 2) {
who.fall++;
who._y = who._y + who.fall;
}
if (who.grav <= 0) {
who.dir = 2;
who.grav = who.maxGrav;
}
if (who._y >= who.cury) {
who.dir = 1;
who.fall = 0;
}
if (who.hitTest(hero) && (hero._currentframe == 3)) {
who.gotoAndStop("dead");
}
if (who.hitTest(bomb) && (bomb._visible)) {
who.gotoAndStop("dead");
bomb.play();
}
if ((who.hitTest(hero) && (hero._currentframe != 3)) && (hero._currentframe != 8)) {
hp = hp - 6;
hero.attacking = false;
hero.throwing = false;
hero.gotoAndStop("hurt");
}
}
function guard(who) {
if (who.starte == undefined) {
who.starte = 1;
who.dir = 1;
who.speed = 3;
who.patrol = true;
who.engage = false;
who.goingaway = false;
who.attack = false;
who.begun = true;
who.hp = 3;
who.curframe = _currentframe;
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
if (((who.hitTest(hero) && (hero._currentframe == 3)) && (who._currentframe != 3)) && (who._currentframe != 4)) {
who.hp--;
who.gotoAndStop("hurt");
}
if ((who.hitTest(bomb._x, bomb._y, true) && (bomb._visible)) && (who._currentframe != 3)) {
who.hp = who.hp - 3;
who.gotoAndStop("hurt");
bomb.play();
}
if ((who._currentframe != 3) && (who.hp > 0)) {
who.dist = Math.abs(who._x - hero._x);
who.ydist = Math.abs(who._y - hero._y);
if ((who.dist <= 100) && (who.ydist < 5)) {
who.engage = true;
who.patrol = false;
who.i = 1;
while (who.i < who.dist) {
if ((hero._x < who._x) && (!ground.hitTest(who._x - who.i, who._y, true))) {
who.engage = false;
who.patrol = true;
break;
}
if ((hero._x > who._x) && (!ground.hitTest(who._x + who.i, who._y, true))) {
who.engage = false;
who.patrol = true;
break;
}
who.i++;
}
} else {
who.engage = false;
who.patrol = true;
}
if (who.patrol) {
who.begun = true;
who.attack = false;
if (who.dir == 1) {
who._x = who._x - who.speed;
who._xscale = 100;
if ((!ground.hitTest(who._x - 10, who._y, true)) || (ground.hitTest(who._x - 10, who._y - (who._height / 2), true))) {
who.dir = 2;
}
} else if (who.dir == 2) {
who._x = who._x + who.speed;
who._xscale = -100;
if ((!ground.hitTest(who._x + 10, who._y, true)) || (ground.hitTest(who._x + 10, who._y - (who._height / 2), true))) {
who.dir = 1;
}
}
} else if (who.engage) {
if ((hero._x > (who._x + who._width)) && (ground.hitTest(who._x + 10, who._y, true))) {
who._x = who._x + who.speed;
who._xscale = -100;
who.dir = 2;
} else if ((hero._x < (who._x - who._width)) && (ground.hitTest(who._x - 10, who._y, true))) {
who._x = who._x - who.speed;
who._xscale = 100;
who.dir = 1;
}
if (Math.abs(hero._x - who._x) < who._width) {
if (who.begun) {
setTimeout(function () {
who.attack = true;
}, 300);
who.begun = false;
}
if (who.attack) {
who.gotoAndStop("attacking");
who.attack = false;
if (who.hitTest(hero) && (hero._currentframe != 8)) {
hp = hp - 10;
hero.gotoAndStop("hurt");
hero.throwing = false;
hero.attacking = false;
}
setTimeout(function () {
who.attack = true;
}, 700);
}
} else {
who.begun = true;
who.attack = false;
}
}
}
if ((who.hp <= 0) && (who._currentframe != 4)) {
who.gotoAndStop("death");
}
}
function march(who) {
if (who.starte == undefined) {
who.starte = 1;
who.dir = 1;
who.speed = 3;
who.hp = 5;
who.curframe = _currentframe;
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
if (who._currentframe != 10) {
if (who.dir == 1) {
who._x = who._x - who.speed;
who._xscale = 100;
if (!ground.hitTest(who._x - 5, who._y, true)) {
who.dir = 2;
}
} else if (who.dir == 2) {
who._x = who._x + who.speed;
who._xscale = -100;
if (!ground.hitTest(who._x + 5, who._y, true)) {
who.dir = 1;
}
}
if (who.hitTest(hero) && (hero._currentframe != 8)) {
hp = hp - 7;
hero.attacking = false;
hero.throwing = false;
hero.gotoAndStop("hurt");
if (hero._xscale == 100) {
hero._x = hero._x - 5;
bg._x = bg._x - 5;
bg2._x = bg2._x - 5;
hud._x = hud._x - 5;
_x = (_x + 5);
} else {
hero._x = hero._x + 5;
bg._x = bg._x + 5;
bg2._x = bg2._x + 5;
hud._x = hud._x + 5;
_x = (_x - 5);
}
}
if (who.hitTest(bomb._x, bomb._y, true) && (bomb._visible)) {
who.hp = who.hp - 5;
who.gotoAndStop("hurt");
bomb.play();
}
}
if (who.hp <= 0) {
who.gotoAndStop("dead");
}
}
function flyer(who) {
if (who.curframe == undefined) {
who.curframe = _currentframe;
}
if (who.hitTest(hero) && (hero._currentframe == 3)) {
who.gotoAndStop("dead");
}
if (who.hitTest(bomb._x, bomb._y, true) && (bomb._visible)) {
who.gotoAndStop("dead");
bomb.play();
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
}
function horse(who) {
if (who.curframe == undefined) {
who.curframe = _currentframe;
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
if ((((who.hitTest(hero) && (who._currentframe >= 25)) && (hero._currentframe != 8)) && (hero._currentframe != 3)) && (who._currentframe != 46)) {
hp = hp - 7;
hero.attacking = false;
hero.throwing = false;
hero.gotoAndStop("hurt");
if (hero._xscale == 100) {
hero._x = hero._x - 5;
bg._x = bg._x - 5;
bg2._x = bg2._x - 5;
hud._x = hud._x - 5;
_x = (_x + 5);
} else {
hero._x = hero._x + 5;
bg._x = bg._x + 5;
bg2._x = bg2._x + 5;
hud._x = hud._x + 5;
_x = (_x - 5);
}
}
if ((who.hitTest(hero) && (hero._currentframe == 3)) && (who._currentframe >= 25)) {
who.gotoAndStop("death");
}
if ((who.hitTest(bomb) && (bomb._visible)) && (who._currentframe >= 25)) {
who.gotoAndStop("death");
bomb.play();
}
}
function spike(who) {
if (who.curframe == undefined) {
who.curframe = _currentframe;
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
if (who.hitTest(hero) && (hero._currentframe != 8)) {
hp = hp - 7;
hero.attacking = false;
hero.throwing = false;
hero.gotoAndStop("hurt");
if (hero._xscale == 100) {
hero._x = hero._x - 5;
bg._x = bg._x - 5;
bg2._x = bg2._x - 5;
hud._x = hud._x - 5;
_x = (_x + 5);
} else {
hero._x = hero._x + 5;
bg._x = bg._x + 5;
bg2._x = bg2._x + 5;
hud._x = hud._x + 5;
_x = (_x - 5);
}
}
}
function totem(who) {
if (who.curframe == undefined) {
who.curframe = _currentframe;
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
who.dist = Math.abs(hero._x - who._x);
if ((who.dist <= 300) && (who._currentframe == 1)) {
who.play();
}
if (who.dist > 300) {
who.gotoAndStop(1);
}
if (hero._x > who._x) {
who._xscale = -100;
} else {
who._xscale = 100;
}
if (who.hitTest(hero) && (hero._currentframe == 3)) {
who.gotoAndStop("death");
}
if (who.hitTest(bomb) && (bomb._visible)) {
who.gotoAndStop("death");
bomb.play();
}
}
function shooter(who) {
if (who.curframe == undefined) {
who.curframe = _currentframe;
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
who.dist = Math.abs(hero._x - who._x);
if ((who.dist <= 300) && (who._currentframe == 1)) {
who.play();
}
if (who.dist > 300) {
who.gotoAndStop(1);
}
if (hero._x > who._x) {
who._xscale = -100;
} else {
who._xscale = 100;
}
if (who.hitTest(hero) && (hero._currentframe == 3)) {
who.gotoAndStop("dead");
}
if (who.hitTest(bomb._x, bomb._y, true) && (bomb._visible)) {
who.gotoAndStop("dead");
bomb.play();
}
}
function fist(who) {
if (who.curframe == undefined) {
who.curframe = _currentframe;
}
if (_currentframe != who.curframe) {
who.swapDepths(getNextHighestDepth());
who.removeMovieClip();
}
if (who.hitTest(hero._x, hero._y, true) && (hero._currentframe != 8)) {
hp = hp - 10;
hero.attacking = false;
hero.throwing = false;
hero.gotoAndStop("hurt");
}
}
stop();
bullets = 0;
rocks = 0;
hp = 100;
lives = 3;
bombs = 3;
parx2 = _x;
herox2 = hero._x;
hudx2 = hud._x;
Instance of Symbol 66 MovieClip in Frame 3
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.nextFrame();
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 88 MovieClip "hud" in Frame 3
onClipEvent (load) {
timer = 0;
score = 0;
timepls = setInterval(function () {
timer++;
}, 1000);
}
onClipEvent (enterFrame) {
health._width = _root.hp / 2;
bombs.gotoAndStop(_root.bombs + 1);
lives.gotoAndStop(_root.lives + 1);
}
Instance of Symbol 114 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 114 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 147 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 147 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 155 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 155 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 147 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 114 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 147 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 155 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 114 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 147 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 147 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 114 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 155 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 155 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 155 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 155 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 155 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 140 MovieClip in Frame 3
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 193 MovieClip "hero" in Frame 3
onClipEvent (enterFrame) {
_root.heroCode(_root.hero);
}
Instance of Symbol 203 MovieClip "bomb" in Frame 3
onClipEvent (load) {
_visible = false;
dir = 0;
speed = 10;
exploded = false;
}
onClipEvent (enterFrame) {
if (!_visible) {
_x = _root.hero._x;
_y = (_root.hero._y - (_root.hero._height / 2));
} else {
if ((dir == -100) && (_currentframe == 1)) {
_x = (_x - speed);
} else if ((dir == 100) && (_currentframe == 1)) {
_x = (_x + speed);
}
if (((_root.ground.hitTest(_x, _y, true) || (_x < (-_parent._x))) || (_x > (Stage.width - _parent._x))) && (_currentframe == 1)) {
play();
}
}
if (_root.hero.throwing) {
if (!_visible) {
gotoAndStop (1);
}
setTimeout(function () {
_visible = true;
}, 300);
dir = _root.hero._xscale;
}
}
Instance of Symbol 208 MovieClip "bullet" in Frame 3
onClipEvent (load) {
speed = 10;
if (_name == "bullet") {
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_name != "bullet") {
if (dir == 100) {
_x = (_x - speed);
} else if (dir == -100) {
_x = (_x + speed);
}
if (((_x < (-_parent._x)) || (_x > (Stage.width - _parent._x))) || (_root.ground.hitTest(_x, _y, true))) {
this.removeMovieClip();
}
if (this.hitTest(_root.hero) && (hero._currentframe != 8)) {
_root.hp = _root.hp - 7;
_root.hero.attacking = false;
_root.hero.throwing = false;
_root.hero.gotoAndStop("hurt");
this.removeMovieClip();
}
}
}
Instance of Symbol 210 MovieClip "rock" in Frame 3
onClipEvent (load) {
speed = 10;
if (_name == "rock") {
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_name != "rock") {
_y = (_y + speed);
if (_root.ground.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
if ((this.hitTest(_root.hero) && (_root.hero._currentframe != 6)) && (_root.hero._currentframe != 8)) {
_root.hp = _root.hp - 8;
_root.hero.attacking = false;
_root.hero.throwing = false;
_root.hero.gotoAndStop("hurt");
}
}
}
Frame 4
stop();
reset(bg._x, bg2._x);
won = false;
onEnterFrame = function () {
if (won) {
_alpha = (_alpha - 3);
}
if (_alpha <= 0) {
_alpha = 100;
won = false;
bombs = bombs + Math.round(hud.score % 1000);
lives = lives + Math.round(hud.score % 1000);
if (lives > 5) {
lives = 5;
}
if (bombs > 5) {
bombs = 5;
}
hp = 100;
nextFrame();
}
};
Instance of Symbol 59 MovieClip "bg2" in Frame 4
onClipEvent (load) {
ready = true;
}
Instance of Symbol 61 MovieClip "bg" in Frame 4
onClipEvent (load) {
ready = true;
}
Instance of Symbol 227 MovieClip "boss" in Frame 4
onClipEvent (load) {
speed = 0;
falling = true;
attack = 0;
hits = 0;
hp = 25;
shot = false;
_xscale = 100;
}
onClipEvent (enterFrame) {
if (_currentframe != 5) {
if (falling) {
_y = (_y + 35);
}
while (_root.ground.hitTest(_x, _y, true)) {
falling = false;
_y = (_y-1);
if (attack == 0) {
setTimeout(function () {
attack = 1;
}, 1000);
} else if (attack == 2) {
attack = 3;
}
}
if ((attack == 1) && (_currentframe != 4)) {
gotoAndStop (3);
if (_xscale == 100) {
if (_root.ground.hitTest(_x + ((_width / 2) + 10), _y - (_height / 2), true)) {
if (speed != 0) {
hits++;
}
speed = 0;
gotoAndStop (1);
setTimeout(function () {
_xscale = -100;
gotoAndStop (3);
}, 1000);
} else {
speed++;
}
} else if (_root.ground.hitTest(_x - ((_width / 2) + 10), _y - (_height / 2), true)) {
if (speed != 0) {
hits++;
}
speed = 0;
gotoAndStop (1);
setTimeout(function () {
_xscale = 100;
gotoAndStop (3);
}, 1000);
} else {
speed--;
}
_x = (_x + speed);
if (hits == 3) {
attack = 2;
speed = 0;
hits = 0;
}
} else if ((attack == 2) && (_currentframe != 4)) {
gotoAndStop (1);
if ((_y > -20) && (!falling)) {
_y = (_y - 30);
} else if (!falling) {
_x = random(Stage.width);
setTimeout(function () {
falling = true;
}, 2000);
}
} else if ((attack == 3) && (_currentframe != 4)) {
if ((!shot) && (_currentframe == 1)) {
if (_root.hero._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
setTimeout(function () {
gotoAndStop (2);
}, 1000);
shot = true;
}
}
if (this.hitTest(_root.hero) && (attack != 3)) {
_root.hp = _root.hp - 7;
_root.hero._x = _root.hero._x - 5;
_root.hero.gotoAndStop("hurt");
_root.hero.throwing = false;
_root.hero.attacking = false;
}
if ((this.hitTest(_root.bomb) && (_root.bomb._currentframe == 1)) && (_root.bomb._visible)) {
hp = hp - 5;
gotoAndStop ("hurt");
_root.bomb.play();
}
if (hp <= 0) {
gotoAndStop (5);
}
}
}
Instance of Symbol 229 MovieClip "hand" in Frame 4
onClipEvent (load) {
_visible = false;
speed = 3;
}
onClipEvent (enterFrame) {
if (!_visible) {
_x = (_root.boss._x + _root.boss.haxxer._x);
_y = (_root.boss._y + _root.boss.haxxer._y);
} else {
xd = _root.hero._x - _x;
yd = _root.hero._y - _y;
angle = Math.atan2(yd, xd);
_rotation = (((angle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
if (_rotation > 180) {
_y = (_y + (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (speed * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (speed * Math.sin((Math.PI/180) * _rotation)));
}
if (_root.hero.hitTest(this) && (_root.hero._currentframe != 8)) {
_root.hp = _root.hp - 20;
_root.hero.gotoAndStop("hurt");
_root.hero.throwing = false;
_root.hero.attacking = false;
_visible = false;
_root.boss.attack = 1;
_root.boss.shot = false;
}
if (_root.ground.hitTest(_x, _y, true)) {
_visible = false;
_root.boss.attack = 1;
_root.boss.shot = false;
}
if (this.hitTest(_root.boss) && (_root.boss._currentframe != 2)) {
_root.boss.hp = _root.boss.hp - 5;
_root.boss.gotoAndStop("hurt");
_visible = false;
_root.boss.attack = 1;
_root.boss.shot = false;
}
}
}
Instance of Symbol 193 MovieClip "hero" in Frame 4
onClipEvent (enterFrame) {
_root.heroCode(_root.hero, true);
}
Frame 5
stop();
reset(bg._x, bg2._x);
Instance of Symbol 239 MovieClip in Frame 5
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.nextFrame();
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 147 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 257 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.fish(this);
}
Instance of Symbol 257 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.fish(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 140 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 155 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 147 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 155 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.spike(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 257 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.fish(this);
}
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 147 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 257 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.fish(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 140 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 257 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.fish(this);
}
Instance of Symbol 257 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.fish(this);
}
Instance of Symbol 140 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 147 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 252 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 126 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 140 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 147 MovieClip in Frame 5
onClipEvent (load) {
ready = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 193 MovieClip "hero" in Frame 5
onClipEvent (enterFrame) {
_root.heroCode(_root.hero);
}
Frame 6
stop();
reset(bg._x, bg2._x);
won = false;
onEnterFrame = function () {
if (won) {
_alpha = (_alpha - 3);
}
if (_alpha <= 0) {
_alpha = 100;
won = false;
bombs = bombs + Math.round(hud.score % 1000);
lives = lives + Math.round(hud.score % 1000);
if (lives > 5) {
lives = 5;
}
if (bombs > 5) {
bombs = 5;
}
hp = 100;
nextFrame();
}
};
Instance of Symbol 232 MovieClip "bg2" in Frame 6
onClipEvent (load) {
ready = true;
}
Instance of Symbol 235 MovieClip "bg" in Frame 6
onClipEvent (load) {
ready = true;
}
Instance of Symbol 267 MovieClip in Frame 6
onClipEvent (load) {
mvy = _y;
speed = 4;
hp = 3;
attack = 1;
begin = false;
ready = false;
}
onClipEvent (enterFrame) {
if (hp > 0) {
if (this.hitTest(_root.hero) && (attack != 3)) {
_root.hp = _root.hp - 10;
_root.hero._x = _root.hero._x - 5;
_root.hero.gotoAndStop("hurt");
_root.hero.throwing = false;
_root.hero.attacking = false;
attack = 2;
}
if (attack == 1) {
if (_root.hero._x > _x) {
_xscale = 100;
_x = (_x + speed);
} else {
_xscale = -100;
_x = (_x - speed);
}
if ((this.hitTest(_root.flame._x, _root.flame._y, true) && (_root.flame.moving)) && (attack == 1)) {
hp--;
play();
attack = 2;
}
} else if ((_y < ((Stage.height + _height) + 5)) && (!begin)) {
_y = (_y + 20);
} else {
if (!begin) {
setTimeout(function () {
ready = false;
}, 5000);
begin = true;
ready = true;
i = 1;
while (i <= 10) {
rck = _root.rock.duplicateMovieClip("rock" + i, _root.getNextHighestDepth());
rck._x = random(Stage.width);
rck._y = -random(200);
i++;
}
}
if (!ready) {
i = 1;
while (i <= 10) {
_root["rock" + i].removeMovieClip();
i++;
}
if (_y >= mvy) {
_y = (_y - 20);
}
if (_y <= mvy) {
_y = mvy;
ready = false;
begin = false;
attack = 1;
}
}
}
} else {
gotoAndStop ("dead");
}
}
Instance of Symbol 270 MovieClip "flame" in Frame 6
onClipEvent (load) {
moving = false;
speed = 0;
dir = 0;
mvy = _y;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.hero) && (_root.hero.attacking)) && (_y == mvy)) {
if (_root.hero._xscale == 100) {
dir = 1;
} else {
dir = 2;
}
moving = true;
}
if (moving) {
if (dir == 1) {
speed++;
} else {
speed--;
}
if (_root.ground.hitTest(_x, _y, true)) {
_y = -5;
_x = (Stage.width / 2);
moving = false;
speed = 0;
}
_x = (_x + speed);
}
if (_y < mvy) {
_y = (_y + 20);
}
if (_y > mvy) {
_y = mvy;
}
}
Instance of Symbol 210 MovieClip "rock" in Frame 6
onClipEvent (load) {
speed = 10;
if (_name == "rock") {
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_name != "rock") {
_y = (_y + speed);
if (_root.ground.hitTest(_x, _y, true)) {
_x = random(Stage.width);
_y = (-random(200));
}
if ((this.hitTest(_root.hero) && (_root.hero._currentframe != 6)) && (_root.hero._currentframe != 8)) {
_root.hp = _root.hp - 2;
_root.hero.attacking = false;
_root.hero.throwing = false;
_root.hero.gotoAndStop("hurt");
}
}
}
Instance of Symbol 193 MovieClip "hero" in Frame 6
onClipEvent (enterFrame) {
_root.heroCode(_root.hero, true);
}
Frame 7
stop();
reset(bg._x, bg2._x);
Instance of Symbol 278 MovieClip in Frame 7
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.nextFrame();
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 140 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 287 MovieClip in Frame 7
onClipEvent (enterFrame) {
_root.march(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 298 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.fist(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 252 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.horse(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 257 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.fish(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 140 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 298 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.fist(this);
}
Instance of Symbol 257 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.fish(this);
}
Instance of Symbol 287 MovieClip in Frame 7
onClipEvent (enterFrame) {
_root.march(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 287 MovieClip in Frame 7
onClipEvent (enterFrame) {
_root.march(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 147 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.shooter(this);
}
Instance of Symbol 140 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 140 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.flyer(this);
}
Instance of Symbol 114 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.totem(this);
}
Instance of Symbol 126 MovieClip in Frame 7
onClipEvent (load) {
ready2 = true;
}
onClipEvent (enterFrame) {
_root.guard(this);
}
Instance of Symbol 193 MovieClip "hero" in Frame 7
onClipEvent (enterFrame) {
_root.heroCode(_root.hero);
}
Frame 8
stop();
reset(bg._x, bg2._x);
won = false;
onEnterFrame = function () {
if (won) {
_alpha = (_alpha - 3);
}
if (_alpha <= 0) {
_alpha = 100;
won = false;
nextFrame();
}
};
Instance of Symbol 273 MovieClip "bg" in Frame 8
onClipEvent (load) {
ready = true;
}
Instance of Symbol 274 MovieClip "bg2" in Frame 8
onClipEvent (load) {
ready = true;
}
Instance of Symbol 312 MovieClip "dracula" in Frame 8
onClipEvent (load) {
_alpha = 0;
speed = 5;
attack = 0;
hits = 0;
hp = 30;
count = 0;
ready = false;
}
onClipEvent (enterFrame) {
if (hp > 0) {
if (attack == 0) {
_alpha = (_alpha + 5);
if (_alpha >= 100) {
attack = 1;
}
} else if ((attack == 1) && (_currentframe != 3)) {
dist = Math.abs(_root.hero._x - _x);
if (dist <= (_width - 20)) {
gotoAndStop (2);
}
if (_root.hero._x > _x) {
_xscale = -100;
if (dist > (_width - 20)) {
_x = (_x + speed);
}
} else {
_xscale = 100;
if (dist > (_width - 20)) {
_x = (_x - speed);
}
}
if (this.hitTest(_root.hero) && (_root.hero.attacking)) {
gotoAndStop (3);
hits++;
hp--;
}
if ((this.hitTest(_root.bomb) && (_root.bomb._currentframe == 1)) && (_root.bomb._visible)) {
hp = hp - 5;
hits = hits + 5;
gotoAndStop (3);
_root.bomb.play();
}
if (hits >= 10) {
hits = 0;
attack = 2;
}
} else if (attack == 2) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
_root.bat._visible = true;
}
} else if (attack == 3) {
if (!ready) {
i = 1;
while (i <= 5) {
_root.bat2.duplicateMovieClip("bat2" + i, _root.getNextHighestDepth());
i++;
}
ready = true;
}
if (count == 5) {
count = 0;
_alpha = 100;
ready = false;
attack = 1;
}
}
} else {
gotoAndStop (4);
}
}
Instance of Symbol 316 MovieClip "bat2" in Frame 8
onClipEvent (load) {
speed = 10;
if (_name != "bat2") {
_x = (Stage.width + random(200));
_y = random(Stage.height);
}
}
onClipEvent (enterFrame) {
if (_name != "bat2") {
_x = (_x - speed);
if ((this.hitTest(_root.hero) && (_root.hero._currentframe != 6)) && (_root.hero._currentframe != 8)) {
_root.hp = _root.hp - 10;
_root.hero.attacking = false;
_root.hero.throwing = false;
_root.hero.gotoAndStop("hurt");
}
if (_x < 0) {
_root.dracula.count++;
this.removeMovieClip();
}
}
}
Instance of Symbol 324 MovieClip "bat" in Frame 8
onClipEvent (load) {
_visible = false;
speed = 5;
hits = 0;
}
onClipEvent (enterFrame) {
if (!_visible) {
_x = _root.dracula._x;
_y = (_root.dracula._y - (_root.dracula._height / 2));
} else if (_root.hero._currentframe != 6) {
xdist = _root.hero._x - _x;
ydist = (_root.hero._y - (_root.hero._height / 2.5)) - _y;
if (xdist > 5) {
_x = (_x + speed);
} else if (xdist < -5) {
_x = (_x - speed);
}
if (ydist > 5) {
_y = (_y + speed);
} else if (ydist < -5) {
_y = (_y - speed);
}
if ((this.hitTest(_root.hero) && (_root.hero.attacking)) && (_currentframe != 8)) {
gotoAndStop (8);
hits++;
}
if ((this.hitTest(_root.bomb) && (_root.bomb._currentframe == 1)) && (_root.bomb._visible)) {
hits = hits + 10;
gotoAndStop ("hurt");
_root.bomb.play();
}
if ((this.hitTest(_root.hero) && (!_root.hero.attacking)) && (_currentframe != 8)) {
_root.hp = _root.hp - 2;
_root.hero.gotoAndStop("hurt");
_root.hero._x = _root.hero._x - 10;
_root.hero.throwing = false;
_root.hero.attacking = false;
}
if (hits >= 10) {
hits = 0;
_visible = false;
_root.dracula.attack = 3;
}
}
}
Instance of Symbol 193 MovieClip "hero" in Frame 8
onClipEvent (enterFrame) {
_root.heroCode(_root.hero, true);
}
Frame 9
stop();
reset(0, 0);
Frame 10
stop();
reset(bg._x, bg2._x);
Symbol 17 MovieClip Frame 40
stop();
Symbol 31 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 32 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 7 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 33 MovieClip Frame 101
play();
Symbol 33 MovieClip Frame 165
stop();
Symbol 39 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 45 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 47 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 348 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 54 Button
on (release) {
gotoAndStop ("intro");
}
Symbol 101 MovieClip Frame 18
_root.dupeBullet(_parent, ((_parent._y + _y) + head._y) + 7);
Symbol 101 MovieClip Frame 24
_parent.play();
Symbol 113 MovieClip Frame 9
_root.hud.score = _root.hud.score + 100;
_parent.swapDepths(_root.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 3
stop();
Symbol 114 MovieClip Frame 5
stop();
Symbol 114 MovieClip Frame 7
stop();
Symbol 114 MovieClip Frame 12
gotoAndPlay (1);
Symbol 123 MovieClip Frame 5
_parent.gotoAndStop("walking");
Symbol 125 MovieClip Frame 9
_parent.gotoAndStop("walking");
Symbol 126 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 17
_root.dupeRock(this);
Symbol 140 MovieClip Frame 24
gotoAndPlay (1);
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
_root.dupeBullet(this, (_y - (_height / 2)) + 7);
Symbol 147 MovieClip Frame 22
gotoAndPlay (1);
Symbol 169 MovieClip Frame 11
_root.hero.walking = false;
Symbol 175 MovieClip Frame 10
_root.hero.attacking = false;
if (_root.hero.jumping || (_root.hero.jumpprev)) {
_root.hero.gotoAndStop(4);
} else {
_root.hero.gotoAndStop("idle");
}
Symbol 182 MovieClip Frame 11
stop();
Symbol 187 MovieClip Frame 1
_root.bombs--;
Symbol 187 MovieClip Frame 18
_root.hero.throwing = false;
Symbol 189 MovieClip Frame 5
_parent.gotoAndStop("idle");
Symbol 192 MovieClip Frame 9
_root.hero._y = 0;
_root.hero.gotoAndStop("idle");
Symbol 193 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 7
stop();
onEnterFrame = function () {
if (_currentframe == 7) {
_visible = false;
}
};
Symbol 219 MovieClip Frame 12
_root.hand._visible = true;
Symbol 219 MovieClip Frame 25
stop();
_parent.gotoAndStop(1);
_parent.shot = true;
Symbol 224 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 226 MovieClip Frame 30
_root.won = true;
_parent.swapDepths(_root.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 227 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 45
gotoAndPlay (1);
Symbol 257 MovieClip Frame 4
gotoAndPlay (1);
Symbol 266 MovieClip Frame 13
_root.won = true;
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 10
gotoAndPlay (1);
Symbol 286 MovieClip Frame 15
_parent.gotoAndPlay(1);
Symbol 287 MovieClip Frame 9
gotoAndPlay (1);
Symbol 287 MovieClip Frame 11
_root.hud.score = _root.hud.score + 400;
Symbol 305 MovieClip Frame 1
if (_parent.hitTest(_root.hero)) {
_root.hp = _root.hp - 2;
_root.hero.gotoAndStop("hurt");
_root.hero.throwing = false;
_root.hero.attacking = false;
}
Symbol 305 MovieClip Frame 16
_parent.gotoAndStop(1);
Symbol 309 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 311 MovieClip Frame 30
_root.won = true;
_parent.swapDepths(_root.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 312 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 10
_parent.gotoAndPlay(1);
Symbol 324 MovieClip Frame 7
gotoAndPlay (1);
Symbol 331 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 344 MovieClip Frame 528
_root.gotoAndStop("game");
Symbol 347 Button
on (release) {
gotoAndStop ("game");
}