Frame 1
function playSound1(what) {
if (music) {
if (this[what] == undefined) {
this[what] = new Sound();
this[what].attachSound(what);
}
this[what].start();
}
}
function playSound(what, mc) {
var _local5 = {x:0, y:0};
mc.localToGlobal(_local5);
if (music) {
if (mc != undefined) {
if (mc != _root) {
if (mc.sound == undefined) {
mc.sound = new Sound(mc);
mc.sound.attachSound(what);
}
if (_local5 != undefined) {
var _local6 = -Math.round((300 - _local5.x) / 3);
mc.sound.setPan(_local6);
}
if (_root.game.soundRegister[what] == undefined) {
_root.game.soundRegister[what] = 1;
}
mc.sound.setVolume(Math.round(100 / _root.game.soundRegister[what]));
_root.game.soundRegister[what]++;
_root.game.sound.push(mc.sound);
}
} else if (this[what] == undefined) {
this[what] = new Sound();
this[what].attachSound(what);
this[what].start();
}
}
}
function stopSound(what) {
_root[what].stop(what);
}
function playMusic(what) {
if (_root.music) {
if (_root[what] == undefined) {
_root[what] = new Sound();
_root[what].attachSound(what);
}
if (_root.nowMusic != what) {
_root.nowMusic = what;
stopAllSounds();
_root[what].start(0, 999);
}
}
_root.nowMusic = what;
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
music = true;
__com_mochibot__("a8ad78c3", this, 10301, true);
stop();
Frame 6
fscommand ("allowscale", true);
fscommand ("showmenu", false);
_quality = "MEDIUM";
_root._xscale = (_root._yscale = 130);
_root.playMusic("OP");
Frame 36
_global.go = false;
Frame 96
stop();
Frame 120
stopAllSounds();
_root.playMusic("intro");
Frame 294
stop();
Frame 368
stop();
Frame 506
stop();
Frame 532
stop();
Instance of Symbol 220 MovieClip "ghost" in Frame 532
onClipEvent (load) {
function move(dir) {
movespeed = movespeed + ((dir * 1) / 2);
if ((dir * movespeed) > xspeed) {
movespeed = dir * xspeed;
}
screenspeed1 = screenspeed1 + ((dir * 1) / 10);
if ((dir * screenspeed1) > xspeed) {
screenspeed1 = dir * xspeed;
}
if (((dir == -1) && ((_x - _root.STAGE._x) > ((190 + rightend) + 50))) || ((dir == 1) && ((_x - _root.STAGE._x) < ((190 + leftend) - 50)))) {
screenspeed1 = 0;
}
if (((_root.STAGE._x <= (-rightend)) && (dir == 1)) || ((_root.STAGE._x >= (-leftend)) && (dir == -1))) {
screenspeed = 0;
screenspeed1 = 0;
}
if (_root.STAGE == _root.S3) {
screenspeed = 0;
screenspeed1 = 0;
}
if (((!_root.STAGE.PLATFORM.hitTest(_x - 18, _y + 3, true)) && (dir == -1)) || ((!_root.STAGE.PLATFORM.hitTest(_x + 18, _y + 3, true)) && (dir == 1))) {
_root.STAGE._x = _root.STAGE._x - screenspeed1;
this._x = this._x + (movespeed - screenspeed1);
}
if (State != "attack2") {
if (State != "attack2") {
_xscale = (dir * 60);
}
}
}
function rush(key) {
if (RUSH == 0) {
timer3 = 0;
timer4 = 0;
}
if (((keydown == key) && (Key.isDown(key))) && (RUSH == 0)) {
RUSH = 1;
}
if ((timer3 < 4) && (RUSH == 1)) {
timer3++;
if (((RUSH == 1) && (keyup == key)) && (!Key.isDown(key))) {
RUSH = 2;
timer3 = 0;
}
}
if ((timer3 >= 4) && (RUSH == 1)) {
RUSH = 0;
timer3 = 0;
}
if ((RUSH == 2) && (timer4 < 4)) {
timer4++;
if (((RUSH == 2) && (keydown == key)) && (Key.isDown(key))) {
RUSH = 3;
}
}
if ((timer4 >= 4) && (RUSH == 2)) {
RUSH = 0;
timer4 = 0;
}
if ((RUSH == 3) && (!Key.isDown(key))) {
RUSH = 0;
}
return(RUSH);
}
function rush2(key) {
if (RUSH2 == 0) {
timer5 = 0;
timer6 = 0;
}
if (((keydown == key) && (Key.isDown(key))) && (RUSH2 == 0)) {
RUSH2 = 1;
}
if ((timer5 < 4) && (RUSH2 == 1)) {
timer5++;
if (((RUSH2 == 1) && (keyup == key)) && (!Key.isDown(key))) {
RUSH2 = 2;
timer5 = 0;
}
}
if ((timer5 >= 4) && (RUSH2 == 1)) {
RUSH2 = 0;
timer5 = 0;
}
if ((RUSH2 == 2) && (timer6 < 4)) {
timer6++;
if (((RUSH2 == 2) && (keydown == key)) && (Key.isDown(key))) {
RUSH2 = 3;
}
}
if ((timer6 >= 4) && (RUSH2 == 2)) {
RUSH2 = 0;
timer6 = 0;
}
if ((RUSH2 == 3) && (!Key.isDown(key))) {
RUSH2 = 0;
}
return(RUSH2);
}
gravity = 0.8;
yspeed = 0;
xspeed = 8;
movespeed = 0;
jumping = 0;
dir = 1;
ydir = 1;
moveleft = 1;
moveright = 1;
keydown = 0;
attack1 = 0;
attack2 = 0;
SP = 0;
RUSH = 0;
RUSH2 = 0;
timer1 = 0;
keyup = 0;
screenspeed1 = 0;
tempspeed = yspeed;
tempset = false;
HP = 100;
MP = 0;
MPADD = 0.1;
washit = false;
hittimer = 0;
kill = false;
flytime = 0;
xmovespeed = 0;
ymovespeed = 0;
this.swapDepths(3000);
b = 0;
turntowalk = false;
leftend = -50;
rightend = 500;
upend = -50;
downend = 150;
score = 0;
life = 3;
var keyListener = new Object();
keyListener.onKeyDown = function () {
kpress = true;
keydown = Key.getCode();
};
keyListener.onKeyUp = function () {
kpress = false;
keyup = Key.getCode();
};
Key.addListener(keyListener);
}
onClipEvent (enterFrame) {
if ((_name == "ghost1") && (_global.go)) {
if (HP <= 0) {
if (State != "dead") {
gotoAndPlay ("dead");
}
} else {
if (((State != "kill") && (!fly)) && (!turntowalk)) {
MP = MP + MPADD;
if (MP >= 100) {
MP = 100;
}
if (washit) {
if (State != "washit") {
gotoAndPlay ("washit");
hittimer = 0;
_alpha = 70;
}
} else {
if (hittimer <= 20) {
hittimer++;
if (hittimer > 0) {
_alpha = (_alpha+1);
_alpha = (_alpha+1);
} else {
_alpha = 70;
}
} else {
_alpha = 100;
}
if ((((State != "attack") && (!attack2)) && (State != "RUSH2")) && (State != "rush")) {
if ((yspeed > 0) && (jumping != 0)) {
gotoAndPlay ("fall");
}
}
if ((((!Key.isDown(65)) && (!Key.isDown(68))) && (!Key.isDown(37))) && (!Key.isDown(39))) {
movespeed = movespeed * 0.8;
if ((movespeed > 0.1) || (movespeed < -0.1)) {
_x = (_x + movespeed);
} else {
movespeed = 0;
}
screenspeed1 = 0;
if ((((State != "attack") && (State != "attack2")) && (State != "jump")) && (State != "fall")) {
gotoAndPlay ("stand");
}
if (State != "attack2") {
attack2 = 0;
}
}
if (_root.STAGE != _root.S3) {
if (((dir == -1) && ((_x - _root.STAGE._x) < ((190 + rightend) + 50))) || ((dir == 1) && ((_x - _root.STAGE._x) > ((190 + leftend) - 50)))) {
screenspeed = ((190 - (dir * 50)) - this._x) / 10;
if (Math.abs(screenspeed) < 0.1) {
screenspeed = 0;
}
if (((_root.STAGE._x <= (-rightend)) && (dir == 1)) || ((_root.STAGE._x >= (-leftend)) && (dir == -1))) {
screenspeed = 0;
screenspeed1 = 0;
}
_root.STAGE._x = _root.STAGE._x + screenspeed;
this._x = this._x + screenspeed;
}
if (!_root.STAGE.WALL.hitTest(_x, _y - 100, true)) {
yscreenspeed = (170 - this._y) / 10;
if (Math.abs(yscreenspeed) < 0.1) {
yscreenspeed = 0;
}
_root.STAGE._y = _root.STAGE._y + yscreenspeed;
this._y = this._y + yscreenspeed;
}
}
if ((!Key.isDown(68)) && (!Key.isDown(39))) {
movingright = false;
}
if ((!Key.isDown(65)) && (!Key.isDown(37))) {
movingleft = false;
}
if (MP > 0.5) {
if (dir == 1) {
R1 = rush(68);
if (R1 == 3) {
MP = MP - 0.5;
xspeed = 20;
movespeed = 15;
move(dir);
if (State != "rush") {
gotoAndPlay ("rush");
}
}
if ((((((R1 == 0) && (State != "attack")) && (State != "attack2")) && (State != "jump")) && (State != "fall")) && (State != "run")) {
xspeed = 8;
gotoAndPlay ("stand");
}
} else if (dir == -1) {
R2 = rush(65);
if (R2 == 3) {
MP = MP - 0.5;
xspeed = 20;
movespeed = -15;
move(dir);
if (State != "rush") {
gotoAndPlay ("rush");
}
}
if ((((((R2 == 0) && (State != "attack")) && (State != "attack2")) && (State != "jump")) && (State != "fall")) && (State != "run")) {
gotoAndPlay ("stand");
}
}
} else {
RUSH = 0;
RUSH2 = 0;
xspeed = 8;
movespeed = dir * 10;
gotoAndPlay ("stand");
}
if (MP == 100) {
if (State == "stand") {
if (Key.isDown(76) || (Key.isDown(67))) {
MP = MP - 100;
gotoAndPlay ("kill");
kill = true;
_root.attachMovie("kill", "kill", 1400);
_root.kill._xscale = 60;
_root.kill._yscale = 60;
_root.kill._x = 30;
_root.kill._y = 142;
q = 0;
kill.gotoAndPlay(1);
timer7 = 0;
}
}
}
if (MP == 100) {
if (jumping) {
if (Key.isDown(76) || (Key.isDown(67))) {
MP = MP - 100;
fly = true;
flytime = 100;
State = "turntofly";
gotoAndPlay ("turntofly");
_xscale = 60;
timer7 = 0;
attack1 = 0;
}
}
}
if ((((Key.isDown(76) || (Key.isDown(67))) && (State != "attack2")) && (!kill)) && (!fly)) {
if (MP > 8) {
gotoAndPlay ("attack2");
MP = MP - 8;
}
timer2 = 0;
SP = 0;
attack2 = 1;
}
if ((!kill) && (!fly)) {
if (timer > 12) {
timer = 12;
}
if (((!Key.isDown(74)) && (keyup == 74)) || ((!Key.isDown(88)) && (keyup == 88))) {
attackkey = 0;
}
if ((((Key.isDown(74) || (Key.isDown(88))) && (!attackkey)) && (!attack2)) && (State != "rush")) {
if (timer >= 12) {
gotoAndPlay ("attack");
this.attack1 = 1;
timer = 0;
attackkey = 1;
}
}
timer++;
if ((State != "rush") && (!Key.isDown(32))) {
if ((Key.isDown(65) || (Key.isDown(37))) && (!movingright)) {
if (!_root.STAGE.PLATFORM.hitTest(_x - 18, _y + 3, true)) {
if (dir != -1) {
RUSH = 0;
dir = -1;
}
movingleft = true;
move(dir);
if (((((State != "attack") && (State != "attack2")) && (State != "jump")) && (State != "fall")) && (State != "run")) {
gotoAndPlay ("run");
}
}
}
if ((Key.isDown(68) || (Key.isDown(39))) && (!movingleft)) {
if (!_root.STAGE.PLATFORM.hitTest(_x + 18, _y + 3, true)) {
if (dir != 1) {
RUSH = 0;
dir = 1;
}
if (((((State != "attack") && (State != "attack2")) && (State != "jump")) && (State != "fall")) && (State != "run")) {
gotoAndPlay ("run");
}
movingright = true;
move(dir);
}
}
if ((((Key.isDown(75) || (Key.isDown(90))) || (Key.isDown(87))) || (Key.isDown(38))) && (!jumping)) {
yspeed = -12;
_y = (_y + yspeed);
jumping = 1;
if (!attack2) {
gotoAndPlay ("jump");
}
}
}
yspeed = yspeed + gravity;
if (yspeed > 12) {
yspeed = 12;
}
tempspeed = yspeed;
tempset = false;
while (_root.STAGE.PLATFORM.hitTest(_x, _y + 12, true)) {
_y = (_y-1);
_y = (_y-1);
yspeed = 0;
jumping = 0;
tempset = true;
}
while (_root.STAGE.PLATFORM.hitTest(_x + 16, _y + 3, true) || ((_x + 16) > 380)) {
_x = (_x-1);
_x = (_x-1);
movespeed = 0;
}
while (_root.STAGE.PLATFORM.hitTest(_x - 16, _y + 3, true) || ((_x - 16) < 0)) {
_x = (_x+1);
_x = (_x+1);
movespeed = 0;
}
while (_root.STAGE.WALL.hitTest(_x + 16, _y + 3, true)) {
_x = (_x-1);
_x = (_x-1);
movespeed = 0;
}
while (_root.STAGE.WALL.hitTest(_x - 16, _y + 3, true)) {
_x = (_x+1);
_x = (_x+1);
movespeed = 0;
}
while (_root.STAGE.WALL.hitTest(_x, _y + 16, true)) {
_y = (_y-1);
_y = (_y-1);
yspeed = 0;
}
while (_root.STAGE.WALL.hitTest(_x, _y - 16, true)) {
_y = (_y+1);
_y = (_y+1);
yspeed = 0;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, _y + 13, true)) || (yspeed < 0)) {
_y = (_y + yspeed);
} else {
yspeed = 0;
jumping = 0;
tempset = true;
}
if (((State != "attack") && (State != "attack2")) && (State != "rush")) {
if ((tempspeed > 4) && (tempset)) {
gotoAndPlay ("hitground");
tempset = false;
tempspeed = 0;
}
}
}
}
}
if (fly && (!turntowalk)) {
if (Key.isDown(32) || (flytime <= 0)) {
fly = false;
gotoAndPlay ("turntowalk");
} else {
flytime = flytime - 0.15;
if (flytime <= 0) {
flytime = 0;
}
MP = MP + MPADD;
if (MP >= 100) {
MP = 100;
}
if (washit) {
if (State != "flywashit") {
gotoAndPlay ("flywashit");
hittimer = 0;
_alpha = 70;
}
} else {
if (hittimer <= 20) {
hittimer++;
if (hittimer > 0) {
_alpha = (_alpha+1);
_alpha = (_alpha+1);
} else {
_alpha = 70;
}
} else {
_alpha = 100;
}
if (State != "turntofly") {
if ((((((((!Key.isDown(87)) && (!Key.isDown(83))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(37))) && (!Key.isDown(39))) && (!Key.isDown(38))) && (!Key.isDown(40))) {
if (((State != "flystay") && (State != "turntofly")) && (!attack1)) {
gotoAndPlay ("flystay");
}
}
xspeed = 10;
if ((!Key.isDown(68)) && (!Key.isDown(39))) {
movingright = false;
}
if ((!Key.isDown(65)) && (!Key.isDown(37))) {
movingleft = false;
}
if ((!Key.isDown(87)) && (!Key.isDown(38))) {
movingup = false;
}
if ((!Key.isDown(83)) && (!Key.isDown(40))) {
movingdown = false;
}
if (timer > 8) {
timer = 8;
}
if (((((!Key.isDown(74)) && (keyup == 74)) || ((!Key.isDown(76)) && (keyup == 76))) || ((!Key.isDown(67)) && (keyup == 67))) || ((!Key.isDown(88)) && (keyup == 88))) {
attackkey = 0;
}
if (((((Key.isDown(74) || (Key.isDown(88))) && (!Key.isDown(76))) && (!Key.isDown(67))) && (!attack)) && (!attackkey)) {
if (timer >= 8) {
attack1 = true;
var tmp = _root.attachMovie("bullet3", "bullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
tmp._x = _x + ((34 * _xscale) / 100);
tmp._y = (_y + 13) + random(4);
tmp.gotoAndStop(1);
tmp.xs = (20 * _xscale) / 100;
if (State == "flystay") {
gotoAndPlay ("shootstay");
}
if (State == "flyf") {
gotoAndPlay ("shootf");
}
if (State == "flyb") {
gotoAndPlay ("shootb");
}
if (State == "flyup") {
gotoAndPlay ("shootup");
}
if (State == "flydown") {
gotoAndPlay ("shootdown");
}
timer = 0;
attackkey = 1;
}
}
if (((((!Key.isDown(74)) && (!Key.isDown(88))) && (Key.isDown(76) || (Key.isDown(67)))) && (!attack)) && (!attackkey)) {
if ((timer >= 8) && (MP > 8)) {
attack1 = true;
MP = MP - 8;
var tmp = _root.attachMovie("bullet4", "bullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
tmp._x = _x + ((34 * _xscale) / 100);
tmp._y = _y + 15;
tmp.gotoAndStop(1);
tmp.xs = (4 * _xscale) / 100;
if (State == "flystay") {
gotoAndPlay ("shootstay");
}
if (State == "flyf") {
gotoAndPlay ("shootf");
}
if (State == "flyb") {
gotoAndPlay ("shootb");
}
if (State == "flyup") {
gotoAndPlay ("shootup");
}
if (State == "flydown") {
gotoAndPlay ("shootdown");
}
timer = 0;
attackkey = 1;
}
}
timer++;
if ((((!Key.isDown(65)) && (!Key.isDown(68))) && (!Key.isDown(37))) && (!Key.isDown(39))) {
xmovespeed = xmovespeed * 0.8;
if ((xmovespeed > 0.1) || (xmovespeed < -0.1)) {
_x = (_x + xmovespeed);
} else {
xmovespeed = 0;
}
}
if ((((!Key.isDown(87)) && (!Key.isDown(83))) && (!Key.isDown(40))) && (!Key.isDown(38))) {
ymovespeed = ymovespeed * 0.8;
if ((ymovespeed > 0.1) || (ymovespeed < -0.1)) {
_y = (_y + ymovespeed);
} else {
ymovespeed = 0;
}
}
if (_root.STAGE != _root.S3) {
if (((dir == -1) && ((_x - _root.STAGE._x) < (100 + rightend))) || ((dir == 1) && ((_x - _root.STAGE._x) > (100 + leftend)))) {
screenspeed = (((100 - this._x) + 90) - this._xscale) / 5;
if (Math.abs(screenspeed) < 0.1) {
screenspeed = 0;
}
if (((_root.STAGE._x <= (-rightend)) && (dir == 1)) || ((_root.STAGE._x >= (-leftend)) && (dir == -1))) {
screenspeed = 0;
}
_root.STAGE._x = _root.STAGE._x + screenspeed;
this._x = this._x + screenspeed;
}
if (((ydir == -1) && ((_y - _root.STAGE._y) < (100 + downend))) || ((ydir == 1) && ((_y - _root.STAGE._y) > (100 + upend)))) {
yscreenspeed = (100 - this._y) / 5;
if (Math.abs(yscreenspeed) < 0.1) {
yscreenspeed = 0;
}
if (((_root.STAGE._y <= (-downend)) && (ydir == 1)) || ((_root.STAGE._y >= (-upend)) && (ydir == -1))) {
yscreenspeed = 0;
}
_root.STAGE._y = _root.STAGE._y + yscreenspeed;
this._y = this._y + yscreenspeed;
}
}
if ((Key.isDown(87) || (Key.isDown(38))) && (!movingdown)) {
ymovespeed = ymovespeed - 0.8;
if (ymovespeed <= (-xspeed)) {
ymovespeed = -xspeed;
}
ydir = -1;
_y = (_y + ymovespeed);
movingup = true;
if (!attack1) {
if ((State != "flyup") && (State != "shootup")) {
gotoAndPlay ("flyup");
}
}
}
if ((Key.isDown(83) || (Key.isDown(40))) && (!movingup)) {
ymovespeed = ymovespeed + 0.8;
if (ymovespeed >= xspeed) {
ymovespeed = xspeed;
}
ydir = 1;
_y = (_y + ymovespeed);
movingdown = true;
if (!attack1) {
if ((State != "flydown") && (State != "shootdown")) {
gotoAndPlay ("flydown");
}
}
}
if ((Key.isDown(65) || (Key.isDown(37))) && (!movingright)) {
xmovespeed = xmovespeed - 0.8;
if (xmovespeed <= -8) {
xmovespeed = -8;
}
_x = (_x + xmovespeed);
movingleft = true;
dir = -1;
if (!attack1) {
if (State != "flyb") {
if (_xscale > 0) {
gotoAndPlay ("flyb");
} else {
gotoAndPlay ("flyf");
}
}
if (movingup) {
gotoAndPlay ("flyup");
}
if (movingdown) {
gotoAndPlay ("flydown");
}
}
}
if ((Key.isDown(68) || (Key.isDown(39))) && (!movingleft)) {
xmovespeed = xmovespeed + 0.8;
if (xmovespeed >= xspeed) {
xmovespeed = xspeed;
}
_x = (_x + xmovespeed);
movingright = true;
dir = 1;
if (!attack1) {
if (State != "flyf") {
if (_xscale > 0) {
gotoAndPlay ("flyf");
} else {
gotoAndPlay ("flyb");
}
}
if (movingup) {
gotoAndPlay ("flyup");
}
if (movingdown) {
gotoAndPlay ("flydown");
}
}
}
while (_root.STAGE.PLATFORM.hitTest(_x + 16, _y + 3, true) || ((_x + 16) > 380)) {
_x = (_x-1);
_x = (_x-1);
xmovespeed = 0;
}
while (_root.STAGE.PLATFORM.hitTest(_x - 16, _y + 3, true) || ((_x - 16) < 0)) {
_x = (_x+1);
_x = (_x+1);
xmovespeed = 0;
}
while (_root.STAGE.PLATFORM.hitTest(_x, _y + 16, true) || ((_y + 16) > 280)) {
_y = (_y-1);
_y = (_y-1);
ymovespeed = 0;
}
while (_root.STAGE.PLATFORM.hitTest(_x, _y - 16, true) || ((_y - 16) < 0)) {
_y = (_y+1);
_y = (_y+1);
ymovespeed = 0;
}
while (_root.STAGE.WALL.hitTest(_x + 16, _y + 3, true)) {
_x = (_x-1);
_x = (_x-1);
xmovespeed = 0;
}
while (_root.STAGE.WALL.hitTest(_x - 16, _y + 3, true)) {
_x = (_x+1);
_x = (_x+1);
xmovespeed = 0;
}
while (_root.STAGE.WALL.hitTest(_x, _y + 16, true)) {
_y = (_y-1);
_y = (_y-1);
ymovespeed = 0;
}
while (_root.STAGE.WALL.hitTest(_x, _y - 16, true)) {
_y = (_y+1);
_y = (_y+1);
ymovespeed = 0;
}
if (Key.isDown(75) || (Key.isDown(90))) {
if (!this.k75d) {
this.k75d = true;
this._xscale = this._xscale * -1;
}
} else {
this.k75d = false;
}
}
}
}
}
}
}
}
Instance of Symbol 324 MovieClip in Frame 532
onClipEvent (keyDown) {
stopAllSounds();
_root.play();
}
onClipEvent (mouseUp) {
stopAllSounds();
_root.play();
}
Frame 536
_global.go = true;
_global.enemyNum = 0;
_global.enemyMax = 5;
_global.enemyHole = 0;
_global.enemyHoleMax = 12;
_global.enemydepths = 0;
_global.bdepths = 0;
_global.stage = 1;
duplicateMovieClip ("ghost", "ghost1", 3001);
_root.ghost1._x = 190;
_root.ghost1._y = 140;
_root.ghost1.swapDepths(3001);
_root.STAGE = _root.S1;
_root.STAGE.PLATFORM = _root.S1.P1;
_root.STAGE.WALL = _root.S1.W1;
_root.attachMovie("STAGE1", "STAGE1", 7997);
_root.STAGE1._x = 70;
_root.STAGE1._y = 90;
_root.attachMovie("GHOSTLIFE", "GHOSTLIFE", 7998);
_root.GHOSTLIFE._x = 290;
_root.GHOSTLIFE._y = 248;
_root.attachMovie("SCORE", "SCORE", 7999);
_root.SCORE._x = 223;
_root.SCORE._y = 10;
_root.attachMovie("HPMP", "HPMP", 8000);
_root.HPMP._x = 12;
_root.HPMP._y = 10;
_root.HPMP._xscale = 80;
_root.HPMP._yscale = 80;
_root.playMusic("stagemusic1");
stop();
Instance of Symbol 254 MovieClip [zl] "zl" in Frame 536
onClipEvent (load) {
function range() {
if ((_x - (dir * 10)) >= ((_root.ghost1.rightend + _root.STAGE._x) + 380)) {
dir = 1;
} else if ((_x - (dir * 10)) <= ((_root.ghost1.leftend + _root.STAGE._x) - 10)) {
dir = -1;
}
while (_y > ((_root.ghost1.downend + _root.STAGE._y) + 290)) {
_y = (_y-1);
_y = (_y-1);
}
while (_y < ((_root.ghost1.upend + _root.STAGE._y) - 10)) {
_y = (_y+1);
_y = (_y+1);
}
}
function zlmove(dir) {
xpos = xpos + (((-dir) * xs) * Math.random());
this._xscale = dir * Math.abs(_xscale);
if (State != "run") {
gotoAndPlay ("run");
}
}
HP = 60;
canhit = true;
exist = true;
yspeed = 5;
gravity = 0.8;
xs = 4;
xpos = this._x - _root.STAGE._x;
ypos = this._y - _root.STAGE._y;
this._xscale = 60;
this._yscale = 60;
if (this._x > _root.ghost1._x) {
dir = -1;
} else {
dir = 1;
}
AR = 40;
randomNum = Math.round(Math.random() * 100) - 50;
}
onClipEvent (enterFrame) {
if ((_name != "zl") && (_global.go)) {
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
range();
if (disappear) {
this._alpha = this._alpha - 1;
if (int(this._alpha) == 90) {
rand = Math.round(Math.random() * 50);
if (rand < 20) {
if (rand == 5) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 70;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 70;
}
temp._xscale = 80;
temp._yscale = 80;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand < 8) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 10;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 10;
}
temp._xscale = 60;
temp._yscale = 60;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand == 15) {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 100;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 20;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp.gotoAndStop("silver");
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
}
}
} else if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 8;
this.removeMovieClip();
}
}
if (this.hitTest(_root.actcheck)) {
if (HP <= 0) {
if (State != "dead") {
this.gotoAndPlay("dead");
}
}
if (((!_root.ghost1.kill) && (State != "washit")) && (State != "dead")) {
yspeed = yspeed + gravity;
if (yspeed > 10) {
}
yspeed = 10;
while (_root.STAGE.PLATFORM.hitTest(_x - ((dir * _width) / 5), (_y + (_height / 4)) - 5, true)) {
ypos--;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
yspeed = 0;
}
if (_root.STAGE.PLATFORM.hitTest(_x - ((dir * _width) / 4), _y, true)) {
dir = dir * -1;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, (_y + (_height / 4)) - 4, true)) || (yspeed < 0)) {
ypos = ypos + yspeed;
} else {
yspeed = 0;
}
if (this.hitTest(_root.ghost1.bullet2)) {
gotoAndPlay ("washit");
HP = HP - 20;
} else if (this.hitTest(_root.ghost1.bullet1)) {
gotoAndPlay ("washit");
HP = HP - 10;
}
if (Math.abs(this._x - _root.ghost1._x) < (150 + randomNum)) {
if ((this._x - _root.ghost1._x) < 0) {
dir = -1;
} else {
dir = 1;
}
if (Math.round(Math.random() * AR) == 1) {
duplicateMovieClip (_root.shit, "shi" + _global.bdepths, 4500 + _global.bdepths);
_root["shi" + _global.bdepths]._x = this._x + (dir * 20);
_root["shi" + _global.bdepths]._y = this._y - 10;
_global.bdepths++;
}
if (timer1 < 5) {
zlmove(dir);
timer1++;
} else if (State != "stay") {
gotoAndPlay ("stay");
}
} else {
timer1 = 0;
zlmove(dir);
}
if ((((_root.ghost1.hittimer > 20) && (this.hitTest(_root.ghost1._x, _root.ghost1._y, true))) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
_root.ghost1.washit = true;
_root.ghost1.HP = _root.ghost1.HP - 5;
}
}
}
}
}
Instance of Symbol 670 MovieClip "shit" in Frame 536
onClipEvent (load) {
function move(xs) {
n = n + 0.5;
ypos = ypos + n;
xpos = xpos + xs;
}
function checkdir() {
xspeed = (_root.ghost1._x - this._x) / 20;
}
dir = 0;
n = -5;
xspeed = -1000;
}
onClipEvent (enterFrame) {
if ((_name != "shit") && (_global.go)) {
if (fly) {
if (this._x > 400) {
removeMovieClip(this);
}
if (xspeed == -1000) {
checkdir();
}
if (this.hitTest(_root.ghost1) && (fly)) {
if (((((_root.ghost1.hittimer > 15) && (!_root.ghost1.washit)) && (!_root.ghost1.kill)) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
_root.ghost1.HP = _root.ghost1.HP - 10;
_root.ghost1.washit = true;
}
this.gotoAndPlay("hit");
fly = false;
} else if (_root.STAGE.PLATFORM.hitTest(_x, _y, true) && (fly)) {
_rotation = 0;
this.gotoAndPlay("hit");
fly = false;
}
if ((!this.hitTest(_root.ghost1)) && (!_root.STAGE.PLATFORM.hitTest(_x, _y, true))) {
_rotation = (_rotation + 15);
move(xspeed);
}
}
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
}
}
Instance of Symbol 683 MovieClip "tj" in Frame 536
onClipEvent (load) {
function range() {
if (_x >= ((_root.ghost1.rightend + _root.STAGE._x) + 380)) {
dir = -1;
} else if (_x <= (_root.ghost1.leftend + _root.STAGE._x)) {
dir = 1;
}
while ((_y < ((_root.ghost1.upend + _root.STAGE._y) - 10)) || (_root.STAGE.WALL.hitTest(_x, _y, true))) {
_y = (_y+1);
_y = (_y+1);
}
}
exist = true;
yspeed = 0;
stayCount = 0;
gravity = 0.8;
xs = 0;
timer = 0;
xpos = this._x - _root.STAGE._x;
ypos = this._y - _root.STAGE._y;
if (this._x > _root.ghost1._x) {
dir = -1;
} else {
dir = 1;
}
}
onClipEvent (enterFrame) {
if ((_name != "tj") && (_global.go)) {
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
range();
if (disappear) {
this._alpha--;
if (int(this._alpha) == 90) {
rand = random(50);
if (rand < 20) {
if (rand == 5) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 70;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 70;
}
temp._xscale = 80;
temp._yscale = 80;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand < 8) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 10;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 10;
}
temp._xscale = 60;
temp._yscale = 60;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand == 15) {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 100;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 20;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp.gotoAndStop("silver");
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
}
}
} else if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 3;
this.removeMovieClip();
}
}
if (State == "dead") {
yspeed = yspeed + gravity;
if (yspeed > 10) {
yspeed = 10;
}
while (_root.STAGE.PLATFORM.hitTest(_x, (ypos + 1) + _root.STAGE._y, true)) {
ypos--;
yspeed = 0;
disappear = true;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, (ypos + 2) + _root.STAGE._y, true)) || (yspeed < 0)) {
ypos = ypos + yspeed;
} else {
yspeed = 0;
disappear = true;
}
}
if (this.hitTest(_root.actcheck)) {
if (((!_root.ghost1.kill) && (State != "washit")) && (State != "dead")) {
if (_root.STAGE.PLATFORM.hitTest(_x + (dir * 10), (ypos - 10) + _root.STAGE._y, true)) {
dir = dir * -1;
}
if ((_x < -5) || (_x > 385)) {
dir = dir * -1;
}
if (_root.STAGE.PLATFORM.hitTest(_x, (ypos + 1) + _root.STAGE._y, true) && (!_root.STAGE.PLATFORM.hitTest(_x, ypos + _root.STAGE._y, true))) {
hitground = 1;
yspeed = 0;
if (stayCount == 0) {
stayCount = 45;
}
} else {
yspeed = yspeed + gravity;
if (yspeed > 10) {
yspeed = 10;
}
}
while (_root.STAGE.PLATFORM.hitTest(_x, ypos + _root.STAGE._y, true)) {
ypos--;
yspeed = 0;
hitground = 1;
gotoAndPlay ("stay");
if (stayCount == 0) {
stayCount = 45;
}
}
if (stayCount > 0) {
if ((--stayCount) < 15) {
if ((stayCount % 3) == 0) {
this._x = this._x + 1;
} else if ((stayCount % 3) == 1) {
this._x = this._x - 1;
}
}
if (stayCount == 1) {
hitground = 0;
gotoAndPlay ("jump");
yspeed = -12;
}
} else {
xpos = xpos + (dir * 3);
_xscale = ((-dir) * 100);
}
ypos = ypos + yspeed;
if (this.hitTest(_root.ghost1.bullet2)) {
gotoAndPlay ("washit");
} else if (this.hitTest(_root.ghost1.bullet1)) {
gotoAndPlay ("washit");
}
if ((((_root.ghost1.hittimer > 20) && (_root.ghost1.hitTest(this._x, this._y, true))) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
_root.ghost1.HP = _root.ghost1.HP - 5;
_root.ghost1.washit = true;
}
}
}
_y = (ypos + _root.STAGE._y);
}
}
Instance of Symbol 683 MovieClip "tj1" in Frame 536
onClipEvent (load) {
function range() {
if (_x >= ((_root.ghost1.rightend + _root.STAGE._x) + 380)) {
dir = -1;
} else if (_x <= (_root.ghost1.leftend + _root.STAGE._x)) {
dir = 1;
}
while ((_y < ((_root.ghost1.upend + _root.STAGE._y) - 10)) || (_root.STAGE.WALL.hitTest(_x, _y, true))) {
_y = (_y+1);
_y = (_y+1);
}
}
exist = true;
yspeed = 0;
gravity = 0.8;
xs = 0;
timer = 0;
just = 1;
xpos = this._x - _root.STAGE._x;
ypos = this._y - _root.STAGE._y;
this._xscale = 70;
this._yscale = 70;
if (this._x > _root.ghost1._x) {
dir = -1;
} else {
dir = 1;
}
}
onClipEvent (enterFrame) {
if ((_name != "tj1") && (_global.go)) {
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
range();
if (disappear) {
this._alpha--;
if (int(this._alpha) == 90) {
rand = random(50);
if (rand < 20) {
if (rand == 5) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 70;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 70;
}
temp._xscale = 80;
temp._yscale = 80;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand < 8) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 10;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 10;
}
temp._xscale = 60;
temp._yscale = 60;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand == 15) {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 100;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 20;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp.gotoAndStop("silver");
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
}
}
} else if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 3;
this.removeMovieClip();
}
}
if (State == "dead") {
yspeed = yspeed + gravity;
if (yspeed > 10) {
yspeed = 10;
}
while (_root.STAGE.PLATFORM.hitTest(_x, _y + 1, true)) {
ypos--;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
yspeed = 0;
disappear = true;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, _y + 2, true)) || (yspeed < 0)) {
ypos = ypos + yspeed;
} else {
yspeed = 0;
disappear = true;
}
}
if (this.hitTest(_root.actcheck)) {
if (((!_root.ghost1.kill) && (State != "washit")) && (State != "dead")) {
yspeed = yspeed + gravity;
if (yspeed > 10) {
yspeed = 10;
}
if (_root.STAGE.PLATFORM.hitTest(_x + (dir * 10), _y - 10, true)) {
dir = dir * -1;
}
if ((_x < -5) || (_x > 385)) {
dir = dir * -1;
}
xpos = xpos + (dir * 3);
_xscale = ((-dir) * 70);
if (_root.STAGE.T.hitTest(_x, _y, true)) {
just = 0;
} else {
just = 1;
}
while (_root.STAGE.PLATFORM.hitTest(_x, _y + 1, true) && (just)) {
ypos--;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
yspeed = 0;
hitground = 1;
gotoAndPlay ("stay");
}
turnaround = 0;
if (hitground) {
gotoAndPlay ("jump");
yspeed = -12;
hitground = 0;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, _y + 1, true)) || (yspeed < 0)) {
ypos = ypos + yspeed;
} else {
yspeed = 0;
}
if (this.hitTest(_root.ghost1.bullet2)) {
gotoAndPlay ("washit");
} else if (this.hitTest(_root.ghost1.bullet1)) {
_root.my_sound.start();
gotoAndPlay ("washit");
}
if ((((_root.ghost1.hittimer > 20) && (_root.ghost1.hitTest(this._x, this._y, true))) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
_root.ghost1.HP = _root.ghost1.HP - 5;
_root.ghost1.washit = true;
}
}
}
}
}
Instance of Symbol 308 MovieClip "wz" in Frame 536
onClipEvent (load) {
function range() {
while (_x >= ((_root.ghost1.rightend + _root.STAGE._x) + 380)) {
_x = (_x-1);
_x = (_x-1);
}
while (_x <= (_root.ghost1.leftend + _root.STAGE._x)) {
_x = (_x+1);
_x = (_x+1);
}
while (_y >= ((_root.ghost1.downend + _root.STAGE._y) + 280)) {
_y = (_y-1);
_y = (_y-1);
}
while (_y <= (_root.ghost1.upend + _root.STAGE._y)) {
_y = (_y+1);
_y = (_y+1);
}
}
function setdir() {
if ((this._x - _root.ghost1._x) > 0) {
dir = 1;
} else {
dir = -1;
}
}
function wzmove(dir, xspeed, yspeed) {
_xscale = (dir * 60);
xpos = xpos + xspeed;
ypos = ypos + yspeed;
}
function hitcheck() {
}
function sting() {
if (stingstart) {
if (Math.sqrt(Math.pow(this._x - _root.ghost1._x, 2) + Math.pow(this._y - _root.ghost1._y, 2)) < 250) {
if (Math.sqrt(Math.pow(this._x - _root.ghost1._x, 2) + Math.pow(this._y - _root.ghost1._y, 2)) > 100) {
if ((this._x - _root.ghost1._x) > 10) {
wzmove(dir, -2, 0);
} else {
wzmove(dir, 2, 0);
}
if ((this._y - _root.ghost1._y) > 5) {
wzmove(dir, 0, -1);
} else {
wzmove(dir, 0, 1);
}
} else {
if (rushstart) {
tempx = (-(_x - _root.ghost1._x)) / 20;
tempy = (-(_y - _root.ghost1._y)) / 20;
timer = 0;
rushstart = false;
}
if ((timer < 20) && (rushstart == false)) {
if ((State != "run") && (State != "blood")) {
gotoAndPlay ("run");
}
wzmove(dir, tempx, tempy);
}
timer++;
if (timer > 20) {
rushstart = true;
backstart = true;
}
}
}
}
}
function back() {
if (backstart) {
if ((State != "stay") && (State != "blood")) {
gotoAndPlay ("stay");
}
if (Math.sqrt(Math.pow(this._x - _root.ghost1._x, 2) + Math.pow(this._y - _root.ghost1._y, 2)) < 150) {
if ((_x >= ((_root.ghost1.rightend + _root.STAGE._x) + 380)) && (!TEMP)) {
tempdir = -1;
TEMP = true;
} else if ((_x <= ((_root.ghost1.leftend + _root.STAGE._x) - 10)) && (!TEMP)) {
tempdir = 1;
TEMP = true;
} else if (!TEMP) {
tempdir = dir;
}
if (_y > 30) {
wzmove(dir, 0, -10);
}
wzmove(dir, tempdir * 5, 0);
stingstart = false;
rushstart = false;
} else {
stingstart = true;
backstart = false;
rushstart = true;
TEMP = false;
}
}
}
exist = true;
yspeed = -8;
gravity = 0.8;
xs = 0;
timer = 0;
xpos = this._x - _root.STAGE._x;
ypos = this._y - _root.STAGE._y;
this._xscale = 60;
this._yscale = 60;
if (this._x > _root.ghost1._x) {
dir = -1;
} else {
dir = 1;
}
timer = 0;
rushstart = true;
stingstart = true;
backstart = false;
TEMP = false;
}
onClipEvent (enterFrame) {
if ((_name != "wz") && (_global.go)) {
if (disappear) {
this._alpha--;
if (int(this._alpha) == 90) {
rand = Math.round(Math.random() * 50);
if (rand < 20) {
if (rand == 5) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 70;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 70;
}
temp._xscale = 80;
temp._yscale = 80;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand < 8) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 10;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 10;
}
temp._xscale = 60;
temp._yscale = 60;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand == 15) {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 100;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 20;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp.gotoAndStop("silver");
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
}
}
} else if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 4;
this.removeMovieClip();
}
}
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
setdir();
if (State == "dead") {
yspeed = yspeed + gravity;
if (yspeed > 10) {
yspeed = 10;
}
while (_root.STAGE.PLATFORM.hitTest(_x, _y + 2, true)) {
ypos--;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
yspeed = 0;
disappear = true;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, _y + 3, true)) || (yspeed < 0)) {
ypos = ypos + yspeed;
} else {
yspeed = 0;
disappear = true;
}
}
if (this.hitTest(_root.actcheck)) {
if ((((!_root.ghost1.kill) && (State != "washit")) && (State != "dead")) && (State != "washit2")) {
sting();
back();
if (this.hitTest(_root.ghost1.bullet2) || (this.hitTest(_root.ghost1.bullet1))) {
gotoAndPlay ("washit");
}
if ((((_root.ghost1.hittimer > 20) && (this.hitTest(_root.ghost1._x, _root.ghost1._y, true))) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
gotoAndPlay ("blood");
_root.ghost1.HP = _root.ghost1.HP - 8;
_root.ghost1.washit = true;
}
}
}
}
}
Instance of Symbol 698 MovieClip "wz1" in Frame 536
onClipEvent (load) {
function range() {
while (_x >= ((_root.ghost1.rightend + _root.STAGE._x) + 380)) {
_x = (_x-1);
_x = (_x-1);
}
while (_x <= (_root.ghost1.leftend + _root.STAGE._x)) {
_x = (_x+1);
_x = (_x+1);
}
while (_y >= ((_root.ghost1.downend + _root.STAGE._y) + 280)) {
_y = (_y-1);
_y = (_y-1);
}
while (_y <= (_root.ghost1.upend + _root.STAGE._y)) {
_y = (_y+1);
_y = (_y+1);
}
}
function setdir() {
if ((this._x - _root.ghost1._x) > 0) {
dir = 1;
} else {
dir = -1;
}
}
function wzmove(dir, xspeed, yspeed) {
_xscale = (dir * 60);
xpos = xpos + xspeed;
ypos = ypos + yspeed;
}
function hitcheck() {
}
function sting() {
if (stingstart) {
if (Math.sqrt(Math.pow(this._x - _root.ghost1._x, 2) + Math.pow(this._y - _root.ghost1._y, 2)) < 250) {
if (Math.sqrt(Math.pow(this._x - _root.ghost1._x, 2) + Math.pow(this._y - _root.ghost1._y, 2)) > 100) {
if ((this._x - _root.ghost1._x) > 10) {
wzmove(dir, -3, 0);
} else {
wzmove(dir, 3, 0);
}
if ((this._y - _root.ghost1._y) > 5) {
wzmove(dir, 0, -2);
} else {
wzmove(dir, 0, 2);
}
} else {
if (rushstart) {
tempx = (-(_x - _root.ghost1._x)) / 12;
tempy = (-(_y - _root.ghost1._y)) / 12;
timer = 0;
rushstart = false;
}
if ((timer < 20) && (rushstart == false)) {
if ((State != "run") && (State != "blood")) {
gotoAndPlay ("run");
}
wzmove(dir, tempx, tempy);
}
timer++;
if (timer > 20) {
rushstart = true;
backstart = true;
}
}
}
}
}
function back() {
if (backstart) {
if ((State != "stay") && (State != "blood")) {
gotoAndPlay ("stay");
}
if (Math.sqrt(Math.pow(this._x - _root.ghost1._x, 2) + Math.pow(this._y - _root.ghost1._y, 2)) < 150) {
if ((_x >= ((_root.ghost1.rightend + _root.STAGE._x) + 380)) && (!TEMP)) {
tempdir = -1;
TEMP = true;
} else if ((_x <= ((_root.ghost1.leftend + _root.STAGE._x) - 10)) && (!TEMP)) {
tempdir = 1;
TEMP = true;
} else if (!TEMP) {
tempdir = dir;
}
if (_y > 30) {
wzmove(dir, 0, -10);
}
wzmove(dir, tempdir * 5, 0);
stingstart = false;
rushstart = false;
} else {
stingstart = true;
backstart = false;
rushstart = true;
TEMP = false;
}
}
}
exist = true;
yspeed = -8;
gravity = 0.8;
xs = 0;
timer = 0;
xpos = this._x - _root.STAGE._x;
ypos = this._y - _root.STAGE._y;
this._xscale = 60;
this._yscale = 60;
if (this._x > _root.ghost1._x) {
dir = -1;
} else {
dir = 1;
}
timer = 0;
rushstart = true;
stingstart = true;
backstart = false;
TEMP = false;
}
onClipEvent (enterFrame) {
if ((_name != "wz1") && (_global.go)) {
if (disappear) {
this._alpha--;
if (int(this._alpha) == 90) {
rand = Math.round(Math.random() * 50);
if (rand < 20) {
if (rand == 5) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 70;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 70;
}
temp._xscale = 80;
temp._yscale = 80;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand < 8) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 10;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 10;
}
temp._xscale = 60;
temp._yscale = 60;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand == 15) {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 100;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 20;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp.gotoAndStop("silver");
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
}
}
} else if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 4;
this.removeMovieClip();
}
}
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
setdir();
if (State == "dead") {
yspeed = yspeed + gravity;
if (yspeed > 10) {
yspeed = 10;
}
while (_root.STAGE.PLATFORM.hitTest(_x, _y + 2, true)) {
ypos--;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
yspeed = 0;
disappear = true;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, _y + 3, true)) || (yspeed < 0)) {
ypos = ypos + yspeed;
} else {
yspeed = 0;
disappear = true;
}
}
if (this.hitTest(_root.actcheck)) {
if ((((!_root.ghost1.kill) && (State != "washit")) && (State != "dead")) && (State != "washit2")) {
sting();
back();
if (this.hitTest(_root.ghost1.bullet2) || (this.hitTest(_root.ghost1.bullet1))) {
gotoAndPlay ("washit");
}
if ((((_root.ghost1.hittimer > 20) && (this.hitTest(_root.ghost1._x, _root.ghost1._y, true))) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
gotoAndPlay ("blood");
_root.ghost1.HP = _root.ghost1.HP - 8;
_root.ghost1.washit = true;
}
}
}
}
}
Instance of Symbol 274 MovieClip "cy" in Frame 536
onClipEvent (load) {
function range() {
while (_x > ((_root.ghost1.rightend + _root.STAGE._x) + 390)) {
_x = (_x-1);
_x = (_x-1);
}
while (_x < ((_root.ghost1.leftend + _root.STAGE._x) - 10)) {
_x = (_x+1);
_x = (_x+1);
}
while (_y > ((_root.ghost1.downend + _root.STAGE._y) + 290)) {
_y = (_y-1);
_y = (_y-1);
}
while (_y < ((_root.ghost1.upend + _root.STAGE._y) - 10)) {
_y = (_y+1);
_y = (_y+1);
}
}
function cymove(dir) {
xpos = xpos + ((-dir) * 1.5);
this._xscale = dir * 60;
}
function setdir() {
if ((this._x - _root.ghost1._x) > 0) {
dir = 1;
} else {
dir = -1;
}
}
HP = 50;
exist = true;
yspeed = -8;
gravity = 0.8;
xs = 0;
xpos = this._x - _root.STAGE._x;
ypos = this._y - _root.STAGE._y;
this._xscale = 60;
this._yscale = 60;
if (this._x > _root.ghost1._x) {
dir = -1;
} else {
dir = 1;
}
}
onClipEvent (enterFrame) {
if ((_name != "cy") && (_global.go)) {
range();
if (disappear) {
this._alpha = this._alpha - 1;
if (int(this._alpha) == 90) {
rand = Math.round(Math.random() * 50);
if (rand < 20) {
if (rand == 5) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 70;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 70;
}
temp._xscale = 80;
temp._yscale = 80;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand < 8) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 10;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 10;
}
temp._xscale = 60;
temp._yscale = 60;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand == 15) {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 100;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 20;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp.gotoAndStop("silver");
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
}
}
} else if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 5;
this.removeMovieClip();
}
}
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
if (State == "deadloop") {
yspeed = yspeed + gravity;
if (yspeed > 10) {
yspeed = 10;
}
while (_root.STAGE.PLATFORM.hitTest(_x, _y + 2, true)) {
ypos--;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
yspeed = 0;
disappear = true;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, _y + 3, true)) || (yspeed < 0)) {
ypos = ypos + yspeed;
} else {
yspeed = 0;
disappear = true;
}
}
if (this.hitTest(_root.actcheck)) {
if (HP <= 0) {
if ((State != "dead") && (State != "deadloop")) {
this.gotoAndPlay("dead");
}
}
if ((((!_root.ghost1.kill) && (State != "washit")) && (State != "dead")) && (State != "deadloop")) {
if (_root.STAGE.PLATFORM.hitTest(_x - (dir * 10), _y, true) || (_root.STAGE.WALL.hitTest(_x - (dir * 10), _y, true))) {
dir = dir * -1;
}
if (this.hitTest(_root.ghost1.bullet2)) {
gotoAndPlay ("washit");
HP = HP - 20;
} else if (this.hitTest(_root.ghost1.bullet1)) {
gotoAndPlay ("washit");
HP = HP - 10;
}
if (Math.abs(this._x - _root.ghost1._x) < 10) {
if ((this._x - _root.ghost1._x) < 0) {
dir = -1;
} else {
dir = 1;
}
if (!random(60)) {
duplicateMovieClip (_root.shit, "shi" + _global.bdepths, 4500 + _global.bdepths);
_root["shi" + _global.bdepths]._x = this._x + (dir * 20);
_root["shi" + _global.bdepths]._y = this._y - 10;
_global.bdepths++;
}
}
if (Math.abs(this._x - _root.ghost1._x) < 250) {
setdir();
if (Math.abs(this._x - _root.ghost1._x) > 5) {
cymove(dir);
}
}
if ((((_root.ghost1.hittimer > 20) && (this.hitTest(_root.ghost1._x, _root.ghost1._y, true))) && (!this.hitTest(_root.ghost1.bullet2))) && (!this.hitTest(_root.ghost1.bullet1))) {
_root.ghost1.HP = _root.ghost1.HP - 5;
_root.ghost1.washit = true;
}
}
}
}
}
Instance of Symbol 711 MovieClip "cy1" in Frame 536
onClipEvent (load) {
function range() {
while (_x > ((_root.ghost1.rightend + _root.STAGE._x) + 390)) {
_x = (_x-1);
_x = (_x-1);
}
while (_x < ((_root.ghost1.leftend + _root.STAGE._x) - 10)) {
_x = (_x+1);
_x = (_x+1);
}
while (_y > ((_root.ghost1.downend + _root.STAGE._y) + 290)) {
_y = (_y-1);
_y = (_y-1);
}
while (_y < ((_root.ghost1.upend + _root.STAGE._y) - 10)) {
_y = (_y+1);
_y = (_y+1);
}
}
function cymove(dir) {
xpos = xpos + ((-dir) * 3);
this._xscale = dir * 60;
}
function setdir() {
if ((this._x - _root.ghost1._x) > 0) {
dir = 1;
} else {
dir = -1;
}
}
HP = 50;
exist = true;
yspeed = -8;
gravity = 0.8;
xs = 0;
xpos = this._x - _root.STAGE._x;
ypos = this._y - _root.STAGE._y;
this._xscale = 60;
this._yscale = 60;
if (this._x > _root.ghost1._x) {
dir = -1;
} else {
dir = 1;
}
}
onClipEvent (enterFrame) {
if ((_name != "cy1") && (_global.go)) {
range();
if (disappear) {
this._alpha = this._alpha - 1;
if (int(this._alpha) == 90) {
rand = Math.round(Math.random() * 50);
if (rand < 20) {
if (rand == 5) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 70;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 70;
}
temp._xscale = 80;
temp._yscale = 80;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand < 8) {
var nextDepth = _root.getNextHighestDepth();
if (Math.round(Math.random() * 5) > 2.5) {
temp = _root.STAGE.attachMovie("AHP", "NEWAHP" + this.getDepth(), nextDepth);
temp.HP = 10;
} else {
temp = _root.STAGE.attachMovie("AMP", "NEWAMP" + this.getDepth(), nextDepth);
temp.MP = 10;
}
temp._xscale = 60;
temp._yscale = 60;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else if (rand == 15) {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 100;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
} else {
var nextDepth = _root.getNextHighestDepth();
temp = _root.STAGE.attachMovie("coin", "NEWAHP" + this.getDepth(), nextDepth);
temp.score = 20;
temp._xscale = 15;
temp._yscale = 15;
temp.swapDepths(this.getDepth());
temp.gotoAndStop("silver");
temp._x = this._x - _root.STAGE._x;
temp._y = (this._y - _root.STAGE._y) - 15;
}
}
} else if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 5;
this.removeMovieClip();
}
}
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
if (State == "deadloop") {
yspeed = yspeed + gravity;
if (yspeed > 10) {
yspeed = 10;
}
while (_root.STAGE.PLATFORM.hitTest(_x, _y + 2, true)) {
ypos--;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
yspeed = 0;
disappear = true;
}
if ((!_root.STAGE.PLATFORM.hitTest(_x, _y + 3, true)) || (yspeed < 0)) {
ypos = ypos + yspeed;
} else {
yspeed = 0;
disappear = true;
}
}
if (this.hitTest(_root.actcheck)) {
if (HP <= 0) {
if ((State != "dead") && (State != "deadloop")) {
this.gotoAndPlay("dead");
}
}
if ((((!_root.ghost1.kill) && (State != "washit")) && (State != "dead")) && (State != "deadloop")) {
if (_root.STAGE.PLATFORM.hitTest(_x - (dir * 10), _y, true) || (_root.STAGE.WALL.hitTest(_x - (dir * 10), _y, true))) {
dir = dir * -1;
}
if (this.hitTest(_root.ghost1.bullet2)) {
gotoAndPlay ("washit");
HP = HP - 20;
} else if (this.hitTest(_root.ghost1.bullet1)) {
gotoAndPlay ("washit");
HP = HP - 10;
}
if (Math.abs(this._x - _root.ghost1._x) < 10) {
if ((this._x - _root.ghost1._x) < 0) {
dir = -1;
} else {
dir = 1;
}
if (Math.round(Math.random() * 40) == 1) {
duplicateMovieClip (_root.shit, "shi" + _global.bdepths, 4500 + _global.bdepths);
_root["shi" + _global.bdepths]._x = this._x + (dir * 20);
_root["shi" + _global.bdepths]._y = this._y - 10;
_global.bdepths++;
}
}
if (Math.abs(this._x - _root.ghost1._x) < 250) {
setdir();
if (Math.abs(this._x - _root.ghost1._x) > 5) {
cymove(dir);
}
}
if ((((_root.ghost1.hittimer > 20) && (this.hitTest(_root.ghost1._x, _root.ghost1._y, true))) && (!this.hitTest(_root.ghost1.bullet2))) && (!this.hitTest(_root.ghost1.bullet1))) {
_root.ghost1.HP = _root.ghost1.HP - 5;
_root.ghost1.washit = true;
}
}
}
}
}
Instance of Symbol 670 MovieClip "shit1" in Frame 536
onClipEvent (load) {
function move(xs) {
n = n + 0.5;
ypos = ypos + n;
xpos = xpos + xs;
}
dir = 0;
n = -3;
}
onClipEvent (enterFrame) {
if ((_name != "shit1") && (_global.go)) {
if (fly) {
if (this._x > 400) {
removeMovieClip(this);
}
if (_root.ghost1.hitTest(this._x, this._y, true) && (fly)) {
if (((((_root.ghost1.hittimer > 15) && (!_root.ghost1.washit)) && (!_root.ghost1.kill)) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
_root.ghost1.HP = _root.ghost1.HP - 10;
_root.ghost1.washit = true;
}
this.gotoAndPlay("hit");
fly = false;
} else if (_root.STAGE.PLATFORM.hitTest(_x, _y, true) && (fly)) {
this.gotoAndPlay("hit");
fly = false;
}
if ((!this.hitTest(_root.ghost1)) && (!_root.STAGE.PLATFORM.hitTest(_x, _y, true))) {
move(0);
}
}
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
}
}
Instance of Symbol 283 MovieClip "zz" in Frame 536
onClipEvent (load) {
function range() {
while (_x > ((_root.ghost1.rightend + _root.STAGE._x) + 390)) {
_x = (_x-1);
_x = (_x-1);
}
while (_x < ((_root.ghost1.leftend + _root.STAGE._x) - 10)) {
_x = (_x+1);
_x = (_x+1);
}
while (_y > ((_root.ghost1.downend + _root.STAGE._y) + 290)) {
_y = (_y-1);
_y = (_y-1);
}
while (_y < ((_root.ghost1.upend + _root.STAGE._y) - 10)) {
_y = (_y+1);
_y = (_y+1);
}
}
function slide() {
if (((S <= (D - 120)) && (!arv)) && (!bk)) {
ypos = ypos + 2;
S = S + 2;
}
if (((S >= (D - 120)) && (!arv)) && (!bk)) {
s = s + 1;
ypos = ypos + s;
S = S + s;
}
if (((S > D) && (!arv)) && (!bk)) {
arv = true;
}
a = D - S;
if (arv && (!bk)) {
s = s + a;
s = s * 0.85;
ypos = ypos + s;
S = S + s;
}
if (arv && (Math.abs(s) < 0.01)) {
bk = true;
}
}
function back() {
if (bk) {
a = 0;
arv = false;
if ((S > 0) && (this._y > 0)) {
ypos = ypos - 10;
S = S - 10;
} else {
bk = false;
timer = 0;
D = Math.abs(this._y - _root.ghost1._y) + 20;
}
}
}
timer = 0;
HP = 10;
exist = true;
this._y = 0;
this._xscale = 60;
this._yscale = 60;
a = 0.5;
s = 0;
S = 0;
D = Math.abs(this._y - _root.ghost1._y) + 20;
arv = false;
bk = false;
State = "stay";
}
onClipEvent (enterFrame) {
if ((_name != "zz") && (_global.go)) {
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
range();
if (State == "dead") {
bk = true;
back();
this._alpha = this._alpha - 1;
if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 2;
this.removeMovieClip();
}
}
if (!_root.ghost1.kill) {
if (timer <= 50) {
timer++;
}
if ((Math.abs(_x - _root.ghost1._x) < 50) && (timer > 50)) {
go = true;
}
if (go) {
slide();
}
back();
if (((((State == "stay") && (_root.ghost1.hittimer > 20)) && (this.hitzone.hitTest(_root.ghost1._x, _root.ghost1._y, true))) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
_root.ghost1.HP = _root.ghost1.HP - 5;
_root.ghost1.washit = true;
}
if ((State == "washit") || (State == "dead")) {
go = false;
} else if (this.hitzone.hitTest(_root.ghost1.bullet2)) {
gotoAndPlay ("washit");
} else if (this.hitzone.hitTest(_root.ghost1.bullet1)) {
gotoAndPlay ("washit");
}
}
}
}
Instance of Symbol 717 MovieClip "zz1" in Frame 536
onClipEvent (load) {
function range() {
while (_x > ((_root.ghost1.rightend + _root.STAGE._x) + 390)) {
_x = (_x-1);
_x = (_x-1);
}
while (_x < ((_root.ghost1.leftend + _root.STAGE._x) - 10)) {
_x = (_x+1);
_x = (_x+1);
}
while (_y > ((_root.ghost1.downend + _root.STAGE._y) + 290)) {
_y = (_y-1);
_y = (_y-1);
}
while (_y < ((_root.ghost1.upend + _root.STAGE._y) - 10)) {
_y = (_y+1);
_y = (_y+1);
}
}
function slide() {
if (((S <= (D - 120)) && (!arv)) && (!bk)) {
ypos = ypos + 2;
S = S + 2;
}
if (((S >= (D - 120)) && (!arv)) && (!bk)) {
s = s + 6;
ypos = ypos + s;
S = S + s;
}
if (((S > D) && (!arv)) && (!bk)) {
arv = true;
}
a = D - S;
if (arv && (!bk)) {
s = s + a;
s = s * 0.85;
ypos = ypos + s;
S = S + s;
}
if (arv && (Math.abs(s) < 0.01)) {
bk = true;
}
}
function back() {
if (bk) {
a = 0;
arv = false;
if ((S > 0) && (this._y > 0)) {
ypos = ypos - 4;
S = S - 4;
} else {
bk = false;
timer = 0;
D = Math.abs(this._y - _root.ghost1._y) + 20;
}
}
}
timer = 0;
HP = 10;
exist = true;
this._y = 0;
this._xscale = 60;
this._yscale = 60;
a = 0.5;
s = 0;
S = 0;
D = Math.abs(this._y - _root.ghost1._y) + 20;
arv = false;
bk = false;
State = "stay";
}
onClipEvent (enterFrame) {
if ((_name != "zz1") && (_global.go)) {
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
range();
if (State == "dead") {
bk = true;
back();
this._alpha = this._alpha - 1;
if (this._alpha < 5) {
_global.enemyNum--;
_root.ghost1.score = _root.ghost1.score + 2;
this.removeMovieClip();
}
}
if (!_root.ghost1.kill) {
if (timer <= 50) {
timer++;
}
if ((Math.abs(_x - _root.ghost1._x) < 50) && (timer > 50)) {
go = true;
}
if (go) {
slide();
}
back();
if (((((State == "stay") && (_root.ghost1.hittimer > 20)) && (this.hitzone.hitTest(_root.ghost1._x, _root.ghost1._y, true))) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
_root.ghost1.HP = _root.ghost1.HP - 5;
_root.ghost1.washit = true;
}
if ((State == "washit") || (State == "dead")) {
go = false;
} else if (this.hitzone.hitTest(_root.ghost1.bullet2)) {
gotoAndPlay ("washit");
} else if (this.hitzone.hitTest(_root.ghost1.bullet1)) {
gotoAndPlay ("washit");
}
}
}
}
Instance of Symbol 727 MovieClip "PAUSE" in Frame 536
onClipEvent (load) {
this.swapDepths(9001);
}
onClipEvent (enterFrame) {
if (Key.isDown(80) && (_global.go)) {
_global.go = false;
this.gotoAndPlay(2);
}
}
Frame 544
stopAllSounds();
_global.go = false;
_root.attachMovie("BRIDGE1", "BRI", 9000);
_root.BRI._x = -10;
_root.BRI._y = -10;
removeMovieClip(_root.boss1);
removeMovieClip(_root.HPMP);
removeMovieClip(_root.GHOSTLIFE);
removeMovieClip(_root.SCORE);
removeMovieClip(_root.BOSSHP);
removeMovieClip(_root.STAGE3);
removeMovieClip(_root.STAGE2);
removeMovieClip(_root.STAGE1);
stop();
Frame 555
_root.ghost1.HP = 100;
_root.ghost1.MP = 0;
_root.ghost1.fly = 0;
_root.ghost1.flytime = 0;
_root.ghost1.hittimer = -50;
_root.ghost1.washit = false;
_root.ghost1._x = 190;
_root.ghost1._y = 140;
_root.ghost1.rightend = 300;
_root.ghost1.leftend = -50;
_root.ghost1.downend = 300;
_root.ghost1.upend = -100;
_root.ghost1.swapDepths(3001);
_root.STAGE = _root.S2;
_root.STAGE.PLATFORM = _root.S2.P2;
_root.STAGE.WALL = _root.S2.W2;
STAGE1.removeMovieClip();
_root.attachMovie("STAGE2", "STAGE2", 7997);
_root.STAGE2._x = -40;
_root.STAGE2._y = 70;
_root.attachMovie("GHOSTLIFE", "GHOSTLIFE", 7998);
_root.GHOSTLIFE._x = 290;
_root.GHOSTLIFE._y = 248;
_root.attachMovie("SCORE", "SCORE", 7999);
_root.SCORE._x = 223;
_root.SCORE._y = 10;
_root.attachMovie("HPMP", "HPMP", 8000);
_root.HPMP._x = 12;
_root.HPMP._y = 10;
_root.HPMP._xscale = 80;
_root.HPMP._yscale = 80;
_global.go = true;
_global.enemyMax = 4;
_global.stage = 2;
_root.playMusic("stagemusic2");
stop();
Frame 566
_global.go = false;
stopAllSounds();
_root.attachMovie("BRIDGE2", "BRI", 9000);
_root.BRI._x = -140;
_root.BRI._y = 13;
removeMovieClip(_root.boss1);
removeMovieClip(_root.HPMP);
removeMovieClip(_root.GHOSTLIFE);
removeMovieClip(_root.SCORE);
removeMovieClip(_root.BOSSHP);
removeMovieClip(_root.STAGE3);
removeMovieClip(_root.STAGE2);
removeMovieClip(_root.STAGE1);
stop();
Frame 575
_global.go = false;
_root.attachMovie("INTRO STAGE3", "BRI", 9000);
_root.BRI._x = 0;
_root.BRI._y = 0;
stop();
Frame 590
_root.ghost1.HP = 100;
_root.ghost1.MP = 0;
_root.ghost1.fly = 0;
_root.ghost1.flytime = 0;
_root.ghost1.hittimer = -50;
_root.ghost1.washit = false;
_root.ghost1._x = 100;
_root.ghost1._y = 140;
_root.ghost1.rightend = 20;
_root.ghost1.leftend = 20;
_root.ghost1.downend = 0;
_root.ghost1.upend = 0;
_root.ghost1.swapDepths(3001);
_root.STAGE = _root.S3;
_root.STAGE.PLATFORM = _root.S3.P3;
_root.STAGE.WALL = _root.S3.W3;
STAGE2.removeMovieClip();
STAGE1.removeMovieClip();
_root.attachMovie("STAGE3", "STAGE3", 7997);
_root.STAGE3._x = -40;
_root.STAGE3._y = 70;
duplicateMovieClip ("BOSS", "boss1", 1997);
_root.boss1._x = 280;
_root.boss1._y = 86;
_global.enemyNum++;
_root.attachMovie("BOSS HP", "BOSSHP", 7995);
_root.BOSSHP._xscale = 55;
_root.BOSSHP._yscale = 55;
_root.BOSSHP._x = 20;
_root.BOSSHP._y = 258;
_root.attachMovie("GHOSTLIFE", "GHOSTLIFE", 7998);
_root.GHOSTLIFE._x = 290;
_root.GHOSTLIFE._y = 248;
_root.attachMovie("SCORE", "SCORE", 7999);
_root.SCORE._x = 223;
_root.SCORE._y = 10;
_root.attachMovie("HPMP", "HPMP", 8000);
_root.HPMP._x = 12;
_root.HPMP._y = 10;
_root.HPMP._xscale = 80;
_root.HPMP._yscale = 80;
_global.go = true;
_global.enemyMax = 5;
_global.stage = 3;
_root.playMusic("bossmusic");
stop();
Instance of Symbol 790 MovieClip "BOSS" in Frame 590
onClipEvent (load) {
function setghost1() {
while (this.hitzone.hitTest(_root.ghost1._x + 17, _root.ghost1._y, true)) {
_root.ghost1._x--;
_root.ghost1.xmovespeed = 0;
_root.ghost1.movespeed = 0;
}
while (this.hitzone.hitTest(_root.ghost1._x - 17, _root.ghost1._y, true)) {
_root.ghost1._x++;
_root.ghost1.xmovespeed = 0;
_root.ghost1.movespeed = 0;
}
while (this.hitzone.hitTest(_root.ghost1._x, _root.ghost1._y + 17, true)) {
_root.ghost1._y--;
_root.ghost1.ymovespeed = 0;
_root.ghost1.yspeed = 0;
}
while (this.hitzone.hitTest(_root.ghost1._x, _root.ghost1._y - 17, true)) {
_root.ghost1._y++;
_root.ghost1.ymovespeed = 0;
_root.ghost1.yspeed = 0;
}
if (_root.ghost1._x > (this._x + 20)) {
_root.ghost1._x = this._x + 20;
}
}
function walk(point) {
canhit = false;
if (this._x > point) {
if (State != "walk") {
this.gotoAndPlay("walk");
}
this._x = this._x - 5;
return(true);
}
gotoAndPlay ("stay");
return(false);
}
function back(point) {
canhit = false;
if (this._x < point) {
if (State != "back") {
this.gotoAndPlay("back");
}
this._x = this._x + 5;
return(true);
}
gotoAndPlay ("stay");
return(false);
}
function whistle() {
if (STEP == 0) {
if (!walk(250)) {
STEP = 1;
}
return(true);
}
if (STEP == 1) {
if (!wait(10)) {
STEP = 2;
}
return(true);
}
if (STEP == 2) {
if (temp && (State != "whistle")) {
temp = false;
return(false);
}
if (State != "whistle") {
gotoAndPlay ("whistle");
temp = true;
}
return(true);
}
if (STEP == 3) {
if (!wait(10)) {
STEP = 4;
}
return(true);
}
if (STEP == 4) {
if (!back(300)) {
STEP = 0;
return(false);
}
return(true);
}
}
function wait(time) {
if (timer < time) {
timer++;
return(true);
}
timer = 0;
return(false);
}
function wait2(time2) {
if (timer2 < time2) {
timer2++;
return(true);
}
timer2 = 0;
return(false);
}
function attack1() {
if (STEP == 0) {
if (!walk(190)) {
STEP = 1;
}
return(true);
}
if (STEP == 1) {
if (!wait(10)) {
STEP = 2;
}
return(true);
}
if (STEP == 2) {
if ((State != "attack1") && (temp)) {
STEP = 3;
temp = false;
}
if (State != "attack1") {
gotoAndPlay ("attack1");
temp = true;
}
return(true);
}
if (STEP == 3) {
if (!wait(10)) {
STEP = 4;
}
return(true);
}
if (STEP == 4) {
if (!back(300)) {
STEP = 0;
return(false);
}
return(true);
}
}
function attack2() {
if (STEP == 0) {
if (!walk(220)) {
STEP = 1;
}
return(true);
}
if (STEP == 1) {
if (!wait(5)) {
STEP = 2;
}
return(true);
}
if (STEP == 2) {
if ((State != "attack2") && (temp)) {
temp = false;
STEP = 3;
}
if ((State != "attack2") && (STEP == 2)) {
gotoAndPlay ("attack2");
temp = true;
}
return(true);
}
if (STEP == 3) {
if (!wait(10)) {
STEP = 4;
}
return(true);
}
if (STEP == 4) {
if (!back(300)) {
STEP = 0;
return(false);
}
return(true);
}
}
canhit = false;
attackstart = false;
canwait = true;
randtime = 0;
STEP = 0;
temp = false;
timer = 0;
timer2 = 0;
HP = 1000;
}
onClipEvent (enterFrame) {
if (_name == "boss1") {
if (HP <= 0) {
if (State != "dead") {
this.gotoAndPlay("dead");
}
}
if ((_global.go && (!_root.ghost1.kill)) && (State != "dead")) {
randtime = Math.round(Math.random() * 10) + 50;
if (canwait) {
if (!wait2(randtime)) {
attackstart = true;
canhit = false;
randattack = Math.round(Math.random() * 4);
canwait = false;
}
}
if (canhit) {
if (_root.ghost1.washit) {
laugh = true;
}
if (laugh) {
if (State != "laugh") {
gotoAndPlay ("laugh");
}
laugh = false;
}
if (State != "washit") {
if (this.hitzone.hitTest(_root.ghost1.bullet2)) {
gotoAndPlay ("washit");
HP = HP - 20;
} else if (this.hitzone.hitTest(_root.ghost1.bullet1)) {
gotoAndPlay ("washit");
HP = HP - 10;
}
}
}
if (attackstart) {
switch (randattack) {
case 0 :
case 1 :
if (!canhit) {
if (!whistle()) {
canhit = true;
attackstart = false;
canwait = true;
}
}
break;
case 2 :
if (!canhit) {
if (!attack1()) {
canhit = true;
attackstart = false;
canwait = true;
}
}
break;
case 3 :
case 4 :
if (canhit) {
break;
}
if (attack2()) {
break;
}
canhit = true;
attackstart = false;
canwait = true;
}
}
}
setghost1();
}
}
Frame 600
_root.boss1.removeMovieClip();
_global.score = _root.ghost1.score;
_root.ghost1.removeMovieClip();
_root.HPMP.removeMovieClip();
_root.GHOSTLIFE.removeMovieClip();
_root.SCORE.removeMovieClip();
_root.BOSSHP.removeMovieClip();
_root.STAGE3.removeMovieClip();
_root.STAGE2.removeMovieClip();
_root.STAGE1.removeMovieClip();
i = 0;
while (i < _global.enemyMax) {
removeMovieClip(_root["enemy" + i]);
i++;
}
i = 0;
while (i < _global.enemyMax) {
removeMovieClip(_root["boss" + i]);
i++;
}
_global.enemyNum = 0;
stop();
stop();
Frame 608
_root.boss1.removeMovieClip();
_root.HPMP.removeMovieClip();
_root.GHOSTLIFE.removeMovieClip();
_root.SCORE.removeMovieClip();
_root.BOSSHP.removeMovieClip();
_root.STAGE3.removeMovieClip();
_root.STAGE2.removeMovieClip();
_root.STAGE1.removeMovieClip();
i = 0;
while (i < _global.enemyMax) {
removeMovieClip(_root["enemy" + i]);
i++;
}
i = 0;
while (i < _global.enemyMax) {
removeMovieClip(_root["boss" + i]);
i++;
}
_global.enemyNum = 0;
stop();
Symbol 6 Button
on (release) {
getURL ("http://www.freeaddictinggames.com/?utm_source=games&utm_medium=ghostvsbugspr");
}
Symbol 19 MovieClip Frame 54
stop();
Symbol 33 Button
on (release) {
play();
}
Symbol 35 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
this.loadtext = Math.round(PercentLoaded * 100) + "%";
Symbol 35 MovieClip Frame 2
gotoAndPlay (1);
Symbol 35 MovieClip Frame 20
stop();
Symbol 35 MovieClip Frame 31
_root.gotoAndPlay("START");
Symbol 76 MovieClip [AHP] Frame 1
this.onLoad = function () {
HP = 50;
};
go = true;
this.stop();
this.onEnterFrame = function () {
if (((this.hitTest(_root.ghost1) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) && (go)) {
go = false;
if (_root.ghost1.HP >= (100 - HP)) {
_root.ghost1.HP = 100;
} else {
_root.ghost1.HP = _root.ghost1.HP + HP;
}
this.gotoAndPlay(2);
}
};
Symbol 76 MovieClip [AHP] Frame 2
_root.playSound1("\u52A0\u5C0F\u8840");
Symbol 76 MovieClip [AHP] Frame 33
stop();
this.removeMovieClip();
Symbol 81 MovieClip [AMP] Frame 1
this.onLoad = function () {
MP = 50;
};
go = true;
this.stop();
this.onEnterFrame = function () {
if (((this.hitTest(_root.ghost1) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) && (go)) {
go = false;
if (_root.ghost1.MP >= (100 - MP)) {
_root.ghost1.MP = 100;
} else {
_root.ghost1.MP = _root.ghost1.MP + MP;
}
this.gotoAndPlay(2);
}
};
Symbol 81 MovieClip [AMP] Frame 2
_root.playSound1("\u52A0\u5C0F\u8840");
Symbol 81 MovieClip [AMP] Frame 33
stop();
this.removeMovieClip();
Instance of Symbol 86 MovieClip in Symbol 88 MovieClip [BOSS HP] Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.boss1.HP / 10;
if (_root.boss1.HP <= 0) {
this._xscale = 0;
}
}
Symbol 130 MovieClip [bullet2] Frame 2
_root.playSound1("\u54E7");
Symbol 130 MovieClip [bullet2] Frame 16
stop();
Symbol 220 MovieClip Frame 1
play();
State = "stand";
Symbol 220 MovieClip Frame 10
gotoAndPlay ("stand");
Symbol 220 MovieClip Frame 11
play();
State = "run";
Symbol 220 MovieClip Frame 33
gotoAndPlay ("run");
Symbol 220 MovieClip Frame 34
play();
State = "hitground";
Symbol 220 MovieClip Frame 38
gotoAndPlay ("stand");
Symbol 220 MovieClip Frame 39
play();
State = "jump";
_root.playSound1("\u8DF3");
Symbol 220 MovieClip Frame 47
stop();
Symbol 220 MovieClip Frame 49
play();
State = "fall";
turntowalk = false;
Symbol 220 MovieClip Frame 54
gotoAndPlay ("fall");
Symbol 220 MovieClip Frame 55
play();
washit = true;
State = "washit";
_root.playSound1("\u54CE\u5440");
Symbol 220 MovieClip Frame 68
washit = false;
gotoAndPlay ("stand");
Symbol 220 MovieClip Frame 69
play();
State = "attack";
_root.playSound1("\u563F");
Symbol 220 MovieClip Frame 80
attack1 = 0;
gotoAndPlay ("stand");
Symbol 220 MovieClip Frame 81
play();
State = "attack2";
Symbol 220 MovieClip Frame 99
attack2 = 0;
gotoAndPlay ("stand");
Symbol 220 MovieClip Frame 100
play();
State = "turntofly";
_root.playSound1("\u563F");
Symbol 220 MovieClip Frame 118
gotoAndPlay ("flystay");
Symbol 220 MovieClip Frame 120
play();
State = "flystay";
turntowalk = false;
Symbol 220 MovieClip Frame 126
gotoAndPlay ("flystay");
Symbol 220 MovieClip Frame 127
attack1 = false;
play();
State = "flyf";
turntowalk = false;
Symbol 220 MovieClip Frame 131
gotoAndPlay ("flyf");
Symbol 220 MovieClip Frame 132
attack1 = false;
play();
State = "flyb";
turntowalk = false;
Symbol 220 MovieClip Frame 136
gotoAndPlay ("flyb");
Symbol 220 MovieClip Frame 137
attack1 = false;
play();
State = "flyup";
turntowalk = false;
Symbol 220 MovieClip Frame 141
gotoAndPlay ("flyup");
Symbol 220 MovieClip Frame 142
attack1 = false;
play();
State = "flydown";
turntowalk = false;
Symbol 220 MovieClip Frame 147
gotoAndPlay ("flydown");
Symbol 220 MovieClip Frame 148
play();
State = "shootstay";
turntowalk = false;
_root.playSound1("\u673A\u67AA");
Symbol 220 MovieClip Frame 151
attack1 = false;
gotoAndPlay ("flystay");
Symbol 220 MovieClip Frame 155
play();
State = "shootf";
turntowalk = false;
_root.playSound1("\u673A\u67AA");
Symbol 220 MovieClip Frame 158
attack1 = false;
Symbol 220 MovieClip Frame 161
play();
State = "shootb";
turntowalk = false;
_root.playSound1("\u673A\u67AA");
Symbol 220 MovieClip Frame 164
attack1 = false;
gotoAndPlay ("flyb");
Symbol 220 MovieClip Frame 167
play();
State = "shootup";
turntowalk = false;
_root.playSound1("\u673A\u67AA");
Symbol 220 MovieClip Frame 170
attack1 = false;
gotoAndPlay ("flyup");
Symbol 220 MovieClip Frame 174
play();
State = "shootdown";
turntowalk = false;
_root.playSound1("\u673A\u67AA");
Symbol 220 MovieClip Frame 177
attack1 = false;
gotoAndPlay ("flydown");
Symbol 220 MovieClip Frame 183
play();
washit = true;
State = "flywashit";
turntowalk = false;
_root.playSound1("\u54CE\u5440");
Symbol 220 MovieClip Frame 203
washit = false;
gotoAndPlay ("flystay");
Symbol 220 MovieClip Frame 204
play();
State = "turntowalk";
fly = false;
flytime = 0;
xspeed = 8;
turntowalk = true;
Symbol 220 MovieClip Frame 223
gotoAndPlay ("fall");
Symbol 220 MovieClip Frame 224
play();
State = "rush";
Symbol 220 MovieClip Frame 228
gotoAndPlay ("rush");
Symbol 220 MovieClip Frame 229
play();
State = "kill";
Symbol 220 MovieClip Frame 234
gotoAndPlay ("kill");
Symbol 220 MovieClip Frame 235
play();
State = "dead";
_root.playSound1("\u6B7B");
Symbol 220 MovieClip Frame 309
if (life > 0) {
life--;
HP = 100;
MP = 0;
fly = 0;
flytime = 0;
hittimer = -50;
washit = false;
yspeed = 0;
xspeed = 8;
movespeed = 0;
jumping = 0;
moveleft = 1;
moveright = 1;
keydown = 0;
attack1 = 0;
attack2 = 0;
SP = 0;
RUSH = 0;
RUSH2 = 0;
timer1 = 0;
timer2 = 0;
keyup = 0;
screenspeed1 = 0;
tempspeed = yspeed;
tempset = false;
MPADD = 0.1;
kill = false;
xmovespeed = 0;
ymovespeed = 0;
turntowalk = false;
gotoAndPlay ("stand");
stop();
}
Symbol 220 MovieClip Frame 319
if (life <= 0) {
this._x = -100;
this._y = -100;
}
Symbol 220 MovieClip Frame 374
life = 3;
score = 0;
_root.gotoAndPlay("GAMEOVER");
stop();
Symbol 254 MovieClip [zl] Frame 1
stop();
State = "stay";
Symbol 254 MovieClip [zl] Frame 6
stop();
State = "run";
Symbol 254 MovieClip [zl] Frame 13
play();
State = "washit";
_root.playSound1("hithit");
Symbol 254 MovieClip [zl] Frame 29
gotoAndPlay ("stay");
Symbol 254 MovieClip [zl] Frame 30
play();
State = "dead";
_root.playSound1("hithit");
Symbol 254 MovieClip [zl] Frame 37
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 254 MovieClip [zl] Frame 53
disappear = true;
Symbol 254 MovieClip [zl] Frame 69
gotoAndPlay ("deadloop");
Symbol 274 MovieClip Frame 1
play();
State = "stay";
Symbol 274 MovieClip Frame 19
gotoAndPlay ("stay");
Symbol 274 MovieClip Frame 20
play();
State = "dead";
_root.playSound1("hithit");
Symbol 274 MovieClip Frame 27
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 274 MovieClip Frame 34
play();
State = "deadloop";
Symbol 274 MovieClip Frame 47
gotoAndPlay ("deadloop");
Symbol 274 MovieClip Frame 49
State = "washit";
_root.playSound1("hithit");
Symbol 274 MovieClip Frame 64
gotoAndPlay ("stay");
Symbol 283 MovieClip Frame 1
stop();
State = "stay";
Symbol 283 MovieClip Frame 6
State = "washit";
play();
Symbol 283 MovieClip Frame 7
_root.playSound1("hithit");
Symbol 283 MovieClip Frame 14
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 283 MovieClip Frame 17
State = "dead";
stop();
Symbol 304 MovieClip Frame 9
stop();
Symbol 308 MovieClip Frame 1
State = "stay";
Symbol 308 MovieClip Frame 10
gotoAndPlay ("stay");
Symbol 308 MovieClip Frame 11
stop();
State = "run";
_root.playSound1("\u868A\u5B50");
Symbol 308 MovieClip Frame 20
State = "blood";
Symbol 308 MovieClip Frame 30
gotoAndPlay ("blood");
Symbol 308 MovieClip Frame 31
if (State == "blood") {
gotoAndPlay ("washit2");
} else {
State = "washit";
play();
}
_root.playSound1("hithit");
Symbol 308 MovieClip Frame 37
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 308 MovieClip Frame 48
State = "dead";
Symbol 308 MovieClip Frame 65
gotoAndPlay ("dead");
Symbol 308 MovieClip Frame 66
State = "washit";
_root.playSound1("hithit");
Symbol 308 MovieClip Frame 73
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 308 MovieClip Frame 83
gotoAndPlay ("loop");
this._alpha = this._alpha - 3;
if (this._alpha < 5) {
_global.enemyNum--;
this.removeMovieClip();
}
Symbol 318 Button
on (release) {
this.nextFrame();
}
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 3
stop();
Symbol 322 MovieClip Frame 4
_parent.play();
Instance of Symbol 220 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 1
onClipEvent (enterFrame) {
if (State != "run") {
this.gotoAndPlay("run");
}
}
Instance of Symbol 220 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 90
onClipEvent (enterFrame) {
if (State != "stand") {
this.gotoAndPlay("stand");
}
}
Instance of Symbol 254 MovieClip [zl] in Symbol 325 MovieClip [BRIDGE1] Frame 110
onClipEvent (enterFrame) {
if (State != "run") {
this.gotoAndPlay("run");
}
}
Instance of Symbol 274 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 110
onClipEvent (enterFrame) {
if (State != "stay") {
this.gotoAndPlay("stay");
}
}
Instance of Symbol 308 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 110
onClipEvent (enterFrame) {
if (State != "run") {
this.gotoAndPlay("run");
}
}
Instance of Symbol 254 MovieClip [zl] in Symbol 325 MovieClip [BRIDGE1] Frame 150
onClipEvent (enterFrame) {
if (State != "stay") {
this.gotoAndPlay("stay");
}
}
Instance of Symbol 283 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 150
onClipEvent (enterFrame) {
if (State != "stay") {
this.gotoAndPlay("stay");
}
}
Instance of Symbol 308 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 150
onClipEvent (enterFrame) {
if (State != "stay") {
this.gotoAndPlay("stay");
}
}
Instance of Symbol 254 MovieClip [zl] in Symbol 325 MovieClip [BRIDGE1] Frame 186
onClipEvent (enterFrame) {
if (State != "run") {
this.gotoAndPlay("run");
}
}
Instance of Symbol 308 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 186
onClipEvent (enterFrame) {
if (State != "run") {
this.gotoAndPlay("run");
}
}
Instance of Symbol 220 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 197
onClipEvent (enterFrame) {
if (State != "kill") {
this.gotoAndPlay("kill");
}
}
Symbol 325 MovieClip [BRIDGE1] Frame 217
_root.playSound1("\u6ED1\u8FC7");
Instance of Symbol 254 MovieClip [zl] in Symbol 325 MovieClip [BRIDGE1] Frame 249
onClipEvent (enterFrame) {
if (!no) {
this.gotoAndPlay("dead");
no = true;
}
}
Instance of Symbol 274 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 249
onClipEvent (enterFrame) {
if (!no) {
this.gotoAndPlay("dead");
no = true;
}
}
Instance of Symbol 283 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 249
onClipEvent (enterFrame) {
if (!no) {
this.gotoAndPlay("dead");
no = true;
}
}
Instance of Symbol 308 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 249
onClipEvent (enterFrame) {
if (!no) {
this.gotoAndPlay("washit");
no = true;
}
}
Instance of Symbol 220 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 264
onClipEvent (enterFrame) {
if (State != "stand") {
this.gotoAndPlay("stand");
}
}
Symbol 325 MovieClip [BRIDGE1] Frame 314
stop();
Instance of Symbol 322 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 314
onClipEvent (keyDown) {
if (Key.isDown(32)) {
nextFrame();
}
}
Symbol 325 MovieClip [BRIDGE1] Frame 377
stop();
Instance of Symbol 324 MovieClip in Symbol 325 MovieClip [BRIDGE1] Frame 377
onClipEvent (keyDown) {
_root.gotoAndPlay("STAGE2");
_parent.removeMovieClip();
}
onClipEvent (mouseUp) {
_root.gotoAndPlay("STAGE2");
_parent.removeMovieClip();
}
Symbol 332 Button
on (release) {
_root.playSound1("click");
this.nextFrame();
}
Symbol 336 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 2
stop();
Symbol 336 MovieClip Frame 3
stop();
Symbol 336 MovieClip Frame 4
stop();
Symbol 336 MovieClip Frame 5
_parent.play();
Symbol 345 Button
on (release) {
_root.playSound1("click");
this.nextFrame();
}
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 3
stop();
Symbol 348 MovieClip Frame 4
_parent.play();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 3
stop();
Symbol 352 MovieClip Frame 4
_parent.play();
Symbol 368 MovieClip [BRIDGE2] Frame 35
stop();
Symbol 368 MovieClip [BRIDGE2] Frame 36
_root.playSound1("\u9634\u98CE");
Symbol 368 MovieClip [BRIDGE2] Frame 87
stop();
Instance of Symbol 220 MovieClip in Symbol 368 MovieClip [BRIDGE2] Frame 112
onClipEvent (enterFrame) {
if (State != "run") {
this.gotoAndPlay("run");
}
}
Instance of Symbol 220 MovieClip in Symbol 368 MovieClip [BRIDGE2] Frame 135
onClipEvent (enterFrame) {
if (State != "stand") {
this.gotoAndPlay("stand");
}
}
Symbol 368 MovieClip [BRIDGE2] Frame 137
stop();
Symbol 368 MovieClip [BRIDGE2] Frame 249
stop();
Instance of Symbol 324 MovieClip in Symbol 368 MovieClip [BRIDGE2] Frame 249
onClipEvent (keyDown) {
_root.gotoAndPlay("INTRO STAGE3");
_parent.removeMovieClip();
}
onClipEvent (mouseUp) {
_root.gotoAndPlay("INTRO STAGE3");
_parent.removeMovieClip();
}
Symbol 374 MovieClip [bullet3] Frame 1
fly = true;
this.counter = 0;
this.onLoad = function () {
};
this.onEnterFrame = function () {
if (_global.go) {
if ((++this.counter) > 50) {
this.removeMovieClip();
}
i = 0;
while (i < _global.enemyMax) {
if ((((this.hitTest(_root["enemy" + i].hitzone) && (fly)) && (_root["enemy" + i].State != "washit")) && (_root["enemy" + i].State != "deadloop")) && (_root["enemy" + i].State != "dead")) {
_root["enemy" + i].gotoAndPlay("washit");
_root["enemy" + i].HP = _root["enemy" + i].HP - 10;
this.gotoAndPlay("hit");
fly = false;
}
i++;
}
i = 0;
while (i < _global.enemyMax) {
if (((((_root["boss" + i].canhit && (_root["boss" + i].hitzone.hitTest(_x, _y, true))) && (fly)) && (_root["boss" + i].State != "washit")) && (_root["boss" + i].State != "deadloop")) && (_root["boss" + i].State != "dead")) {
_root["boss" + i].gotoAndPlay("washit");
_root["boss" + i].HP = _root["boss" + i].HP - 10;
this.gotoAndPlay("hit");
fly = false;
}
i++;
}
if (_root.STAGE.PLATFORM.hitTest(_x, _y, true) && (fly)) {
this.gotoAndPlay("hit");
fly = false;
}
if (fly) {
_rotation = (_rotation + 10);
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
xpos = xpos + xs;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
}
}
};
stop();
Symbol 374 MovieClip [bullet3] Frame 6
play();
_root.playSound1("\u5B50\u5F39\u51FB\u4E2D");
Symbol 374 MovieClip [bullet3] Frame 10
this.removeMovieClip();
Symbol 391 MovieClip [bullet4] Frame 1
this.onLoad = function () {
};
this.counter = 0;
this.onEnterFrame = function () {
if (_global.go) {
if ((++this.counter) > 60) {
this.removeMovieClip();
}
i = 0;
while (i < _global.enemyMax) {
if ((((this.hitTest(_root["enemy" + i].hitzone) && (fly)) && (_root["enemy" + i].State != "washit")) && (_root["enemy" + i].State != "deadloop")) && (_root["enemy" + i].State != "dead")) {
_root["enemy" + i].gotoAndPlay("washit");
_root["enemy" + i].HP = _root["enemy" + i].HP - 20;
this.gotoAndPlay("hit");
fly = false;
}
i++;
}
i = 0;
while (i < _global.enemyMax) {
if (((((_root["boss" + i].canhit && (_root["boss" + i].hitzone.hitTest(_x, _y, true))) && (fly)) && (_root["boss" + i].State != "washit")) && (_root["boss" + i].State != "deadloop")) && (_root["boss" + i].State != "dead")) {
_root["boss" + i].gotoAndPlay("washit");
_root["boss" + i].HP = _root["boss" + i].HP - 10;
this.gotoAndPlay("hit");
fly = false;
}
i++;
}
if (_root.STAGE.PLATFORM.hitTest(_x, _y, true) && (fly)) {
_rotation = 0;
this.gotoAndPlay("hit");
fly = false;
}
if (fly) {
_rotation = (_rotation + 15);
n = n + 0.5;
ypos = ypos + n;
_y = (ypos + _root.STAGE._y);
ypos = _y - _root.STAGE._y;
xpos = xpos + xs;
_x = (xpos + _root.STAGE._x);
xpos = _x - _root.STAGE._x;
}
}
};
fly = true;
n = -8;
stop();
Symbol 391 MovieClip [bullet4] Frame 5
play();
this._rotation = 0;
_root.STAGE._x = _root.STAGE._x + 2;
_root.STAGE._y = _root.STAGE._y + 2;
_root.playSound1("\u7206\u70B8");
Symbol 391 MovieClip [bullet4] Frame 6
_root.STAGE._x = _root.STAGE._x - 4;
_root.STAGE._y = _root.STAGE._y - 4;
Symbol 391 MovieClip [bullet4] Frame 7
_root.STAGE._x = _root.STAGE._x + 4;
_root.STAGE._y = _root.STAGE._y + 4;
Symbol 391 MovieClip [bullet4] Frame 8
_root.STAGE._x = _root.STAGE._x - 2;
_root.STAGE._y = _root.STAGE._y - 2;
Symbol 391 MovieClip [bullet4] Frame 16
this.removeMovieClip();
Symbol 414 MovieClip [coin] Frame 1
State = "gold";
stop();
go = true;
this.stop();
this.onEnterFrame = function () {
if (((this.hitTest(_root.ghost1) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) && (go)) {
go = false;
_root.ghost1.score = _root.ghost1.score + score;
if (State == "gold") {
this.gotoAndPlay(3);
} else {
this.gotoAndPlay("s2");
}
}
};
Symbol 414 MovieClip [coin] Frame 2
State = "silver";
stop();
_root.playSound1("\u52A0\u5206");
Symbol 414 MovieClip [coin] Frame 32
this.removeMovieClip();
Symbol 414 MovieClip [coin] Frame 33
_root.playSound1("\u52A0\u5206");
Symbol 414 MovieClip [coin] Frame 65
this.removeMovieClip();
Symbol 415 MovieClip [GHOSTLIFE] Frame 1
this.onEnterFrame = function () {
switch (_root.ghost1.life) {
case 0 :
gotoAndStop (1);
break;
case 1 :
gotoAndStop (2);
break;
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (4);
}
};
stop();
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
play();
Symbol 421 MovieClip Frame 5
gotoAndPlay (2);
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
play();
Symbol 427 MovieClip Frame 5
gotoAndPlay (2);
Symbol 432 MovieClip [HPMP] Frame 1
if (_root.ghost1.HP >= 0) {
hpblock._xscale = _root.ghost1.HP;
} else {
hpblock._xscale = 0;
hpwarnning.gotoAndStop(1);
}
if ((_root.ghost1.HP < 20) && (!warnning)) {
hpwarnning.play(2);
warnning = true;
}
if (_root.ghost1.HP > 20) {
hpwarnning.gotoAndStop(1);
warnning = false;
}
if ((_root.ghost1.MP > 0) && (_root.ghost1.MP != 100)) {
mpblock._xscale = _root.ghost1.MP;
mpwarnning.gotoAndStop(1);
mwarnning = false;
}
if (_root.ghost1.MP == 0) {
mpblock._xscale = 0;
mwarnning = false;
mpwarnning.gotoAndStop(1);
}
if ((_root.ghost1.MP == 100) && (!mwarning)) {
mpblock._xscale = 100;
mpwarnning.play(2);
mwarnning = true;
}
if ((_root.ghost1.flytime > 0) && (_root.ghost1.fly)) {
flymark._alpha = 100;
} else {
flymark._alpha = 20;
}
flytime._xscale = _root.ghost1.flytime;
Symbol 450 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 2
stop();
Symbol 450 MovieClip Frame 3
_parent.play();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
stop();
Symbol 456 MovieClip Frame 5
_parent.play();
Symbol 457 MovieClip [INTRO STAGE3] Frame 1
_root.playMusic("intro3");
Instance of Symbol 220 MovieClip in Symbol 457 MovieClip [INTRO STAGE3] Frame 91
onClipEvent (enterFrame) {
if (State != "fall") {
this.gotoAndPlay("fall");
}
}
Instance of Symbol 220 MovieClip in Symbol 457 MovieClip [INTRO STAGE3] Frame 204
onClipEvent (enterFrame) {
if ((State != "hitground") && (State != "stand")) {
this.gotoAndPlay("hitground");
}
}
Instance of Symbol 220 MovieClip in Symbol 457 MovieClip [INTRO STAGE3] Frame 218
onClipEvent (enterFrame) {
if (State != "run") {
this.gotoAndPlay("run");
}
}
Instance of Symbol 220 MovieClip in Symbol 457 MovieClip [INTRO STAGE3] Frame 243
onClipEvent (enterFrame) {
if ((State != "hitground") && (State != "stand")) {
this.gotoAndPlay("hitground");
}
}
Instance of Symbol 220 MovieClip in Symbol 457 MovieClip [INTRO STAGE3] Frame 264
onClipEvent (enterFrame) {
if (State != "stand") {
this.gotoAndPlay("stand");
}
}
Symbol 457 MovieClip [INTRO STAGE3] Frame 269
stop();
Symbol 457 MovieClip [INTRO STAGE3] Frame 270
_root.playSound("\u89C1\u8001\u9F20");
Symbol 457 MovieClip [INTRO STAGE3] Frame 296
stop();
Symbol 457 MovieClip [INTRO STAGE3] Frame 308
stop();
Instance of Symbol 324 MovieClip in Symbol 457 MovieClip [INTRO STAGE3] Frame 308
onClipEvent (keyDown) {
stopAllSounds();
_root.gotoAndPlay("STAGE3");
_parent.removeMovieClip();
}
onClipEvent (mouseUp) {
stopAllSounds();
_root.gotoAndPlay("STAGE3");
_parent.removeMovieClip();
}
Symbol 493 MovieClip Frame 1
_root._x = _root._x + 2;
Symbol 493 MovieClip Frame 2
_root._x = _root._x - 2;
Symbol 493 MovieClip Frame 5
_root._x = _root._x + 2;
Symbol 493 MovieClip Frame 6
_root._x = _root._x - 2;
Symbol 493 MovieClip Frame 7
_root._x = _root._x + 2;
Symbol 493 MovieClip Frame 8
_root._x = _root._x - 2;
Symbol 493 MovieClip Frame 12
_root._x = _root._x + 2;
Symbol 493 MovieClip Frame 13
_root._x = _root._x - 2;
Symbol 493 MovieClip Frame 14
_root._x = _root._x + 2;
Symbol 493 MovieClip Frame 15
_root._x = _root._x - 2;
Symbol 493 MovieClip Frame 18
_root._x = _root._x + 2;
Symbol 493 MovieClip Frame 19
_root._x = _root._x - 2;
Symbol 493 MovieClip Frame 21
_root._x = _root._x + 2;
Symbol 493 MovieClip Frame 22
_root._x = _root._x - 2;
Symbol 493 MovieClip Frame 23
_root._x = _root._x + 2;
Symbol 493 MovieClip Frame 24
_root._x = _root._x - 2;
Symbol 493 MovieClip Frame 87
stop();
Symbol 495 MovieClip [kill] Frame 1
tempx = _root.STAGE._x;
tempy = _root.STAGE._y;
Symbol 495 MovieClip [kill] Frame 86
_root.playSound1("wayaya");
Instance of Symbol 493 MovieClip in Symbol 495 MovieClip [kill] Frame 153
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this._x = this._x + (1 - (2 * Math.random()));
this._y = this._y + (1 - (2 * Math.random()));
}
Symbol 495 MovieClip [kill] Frame 231
_root._x = _root._x - 2;
Symbol 495 MovieClip [kill] Frame 232
_root._x = _root._x + 2;
Symbol 495 MovieClip [kill] Frame 233
_root._x = _root._x - 4;
Symbol 495 MovieClip [kill] Frame 234
_root._x = _root._x + 4;
Symbol 495 MovieClip [kill] Frame 235
_root._x = _root._x - 4;
Symbol 495 MovieClip [kill] Frame 236
_root._x = _root._x + 4;
Symbol 495 MovieClip [kill] Frame 237
_root._x = _root._x - 2;
Symbol 495 MovieClip [kill] Frame 238
_root._x = _root._x + 2;
Symbol 495 MovieClip [kill] Frame 239
_root._x = _root._x - 4;
Symbol 495 MovieClip [kill] Frame 240
_root._x = _root._x + 4;
Symbol 495 MovieClip [kill] Frame 241
_root._x = _root._x - 4;
Symbol 495 MovieClip [kill] Frame 242
_root._x = _root._x + 4;
Symbol 495 MovieClip [kill] Frame 243
_root._x = _root._x - 2;
i = 0;
while (i < _global.enemyMax) {
if (_root.actcheck.hitTest(_root["enemy" + i])) {
if (_root["enemy" + i].State != "dead") {
_root["enemy" + i].gotoAndPlay("washit");
_root["enemy" + i].HP = _root["enemy" + i].HP - 50;
}
}
i++;
}
i = 0;
while (i < _global.enemyMax) {
if (_root.actcheck.hitTest(_root["boss" + i])) {
if (_root["boss" + i].State != "dead") {
_root["boss" + i].gotoAndPlay("washit");
_root["boss" + i].HP = _root["boss" + i].HP - 50;
}
}
i++;
}
Symbol 495 MovieClip [kill] Frame 244
_root._x = _root._x + 2;
Symbol 495 MovieClip [kill] Frame 245
_root._x = _root._x - 4;
Symbol 495 MovieClip [kill] Frame 246
_root._x = _root._x + 4;
Symbol 495 MovieClip [kill] Frame 247
_root._x = _root._x - 4;
Symbol 495 MovieClip [kill] Frame 248
_root._x = _root._x + 4;
Symbol 495 MovieClip [kill] Frame 249
_root._x = _root._x - 2;
Symbol 495 MovieClip [kill] Frame 250
_root._x = _root._x + 2;
Symbol 495 MovieClip [kill] Frame 251
_root._x = _root._x - 4;
Symbol 495 MovieClip [kill] Frame 252
_root._x = _root._x + 4;
Symbol 495 MovieClip [kill] Frame 253
_root._x = _root._x - 4;
Symbol 495 MovieClip [kill] Frame 254
_root._x = _root._x + 4;
Symbol 495 MovieClip [kill] Frame 273
_root.ghost1.kill = false;
_root.ghost1.gotoAndPlay("stand");
this.removeMovieClip();
Symbol 502 MovieClip [STAGE1] Frame 30
stop();
Symbol 510 MovieClip [STAGE1-1] Frame 1
stopAllSounds();
stop();
Symbol 510 MovieClip [STAGE1-1] Frame 2
stop();
Symbol 510 MovieClip [STAGE1-1] Frame 3
stop();
Symbol 510 MovieClip [STAGE1-1] Frame 4
stop();
Symbol 510 MovieClip [STAGE1-1] Frame 5
stop();
Symbol 510 MovieClip [STAGE1-1] Frame 6
stop();
Symbol 510 MovieClip [STAGE1-1] Frame 7
stop();
_root.playMusic("BOSS1");
Symbol 510 MovieClip [STAGE1-1] Frame 8
_global.go = true;
this.removeMovieClip();
Symbol 512 MovieClip [STAGE2] Frame 30
stop();
Symbol 520 MovieClip [STAGE2-1] Frame 1
stopAllSounds();
stop();
Symbol 520 MovieClip [STAGE2-1] Frame 2
stop();
Symbol 520 MovieClip [STAGE2-1] Frame 3
stop();
Symbol 520 MovieClip [STAGE2-1] Frame 4
stop();
Symbol 520 MovieClip [STAGE2-1] Frame 5
stop();
Symbol 520 MovieClip [STAGE2-1] Frame 6
stop();
Symbol 520 MovieClip [STAGE2-1] Frame 7
stop();
_root.playMusic("BOSS1");
Symbol 520 MovieClip [STAGE2-1] Frame 8
_global.go = true;
this.removeMovieClip();
Symbol 522 MovieClip [STAGE3] Frame 30
stop();
Instance of Symbol 529 MovieClip in Symbol 530 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x + (Math.random() - 0.5));
_y = (_y + (Math.random() - 0.5));
}
Symbol 533 Button
on (press) {
if (_root.music) {
_root.music = false;
stopAllSounds();
} else {
_root.music = true;
_root[_root.nowMusic].start(0, 999);
}
}
Symbol 550 Button
on (release) {
play();
}
Symbol 553 Button
on (release) {
_parent.gotoAndPlay(2);
}
Symbol 555 Button
on (release) {
gotoAndPlay (17);
}
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
_root.playSound1("\u5F39\u51FA");
Symbol 556 MovieClip Frame 16
stop();
Symbol 556 MovieClip Frame 17
play();
Instance of Symbol 554 MovieClip in Symbol 556 MovieClip Frame 17
on (release) {
gotoAndPlay(nextFrame);
}
Symbol 556 MovieClip Frame 21
_root.playSound1("\u6536\u8D77");
Symbol 556 MovieClip Frame 31
gotoAndStop (1);
Symbol 561 Button
on (press) {
getURL ("http://www.freeaddictinggames.com/?utm_source=games&utm_medium=ghostvsbugsmgb");
}
Symbol 565 MovieClip Frame 1
if (_quality == "HIGH") {
gotoAndPlay (3);
}
Symbol 565 MovieClip Frame 2
gotoAndPlay (1);
Symbol 565 MovieClip Frame 3
if (_quality != "HIGH") {
gotoAndPlay (1);
}
Symbol 565 MovieClip Frame 4
gotoAndPlay (3);
Symbol 567 Button
on (release) {
_quality = "HIGH";
}
Symbol 569 MovieClip Frame 1
if (_quality == "MEDIUM") {
gotoAndPlay (3);
}
Symbol 569 MovieClip Frame 2
gotoAndPlay (1);
Symbol 569 MovieClip Frame 3
if (_quality != "MEDIUM") {
gotoAndPlay (1);
}
Symbol 569 MovieClip Frame 4
gotoAndPlay (3);
Symbol 570 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 572 MovieClip Frame 1
if (_quality == "LOW") {
gotoAndPlay (3);
}
Symbol 572 MovieClip Frame 2
gotoAndPlay (1);
Symbol 572 MovieClip Frame 3
if (_quality != "LOW") {
gotoAndPlay (1);
}
Symbol 572 MovieClip Frame 4
gotoAndPlay (3);
Symbol 573 Button
on (release) {
_quality = "LOW";
}
Symbol 575 Button
on (release) {
gotoAndPlay (17);
}
Symbol 580 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 2
_root.playSound1("\u5F39\u51FA");
Symbol 580 MovieClip Frame 16
stop();
Symbol 580 MovieClip Frame 17
_root.playSound1("\u6536\u8D77");
Symbol 580 MovieClip Frame 30
gotoAndStop (1);
Symbol 586 Button
on (press) {
getURL ("http://www.freeaddictinggames.com/free-games-for-your-site/");
}
Symbol 589 Button
on (release) {
gotoAndPlay ("STAGE1");
}
Symbol 593 Button
on (release) {
stopAllSounds();
_root.playSound1("click");
_root.gotoAndPlay("STAGE1");
}
Symbol 594 Button
on (release) {
gotoAndPlay ("STAGE1");
_root.playSound1("click");
}
Symbol 607 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 2
stop();
Symbol 607 MovieClip Frame 3
stop();
Symbol 607 MovieClip Frame 4
stop();
Symbol 607 MovieClip Frame 5
stop();
Symbol 607 MovieClip Frame 6
stop();
Symbol 607 MovieClip Frame 7
stop();
Symbol 607 MovieClip Frame 8
_root.play();
Symbol 611 Button
on (release) {
this.nextFrame();
_root.playSound1("click");
}
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 2
_root.play();
Symbol 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 2
stop();
Symbol 618 MovieClip Frame 3
_root.play();
Symbol 646 MovieClip Frame 49
gotoAndPlay ("loop");
Symbol 646 MovieClip Frame 50
_global.enemyHole++;
this.life = 0;
stop();
Symbol 648 MovieClip Frame 54
gotoAndPlay ("loop");
Symbol 648 MovieClip Frame 55
_global.enemyHole++;
this.life = 0;
stop();
Symbol 649 MovieClip Frame 54
gotoAndPlay ("loop");
Symbol 649 MovieClip Frame 55
_global.enemyHole++;
this.life = 0;
stop();
Instance of Symbol 646 MovieClip "HOLE2" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 5;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = 1;
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE3" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 200) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 1) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE5" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 2) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE4" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 1) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE6" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 2) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE7" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 5;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if ((Math.abs(xpos - _root.ghost1._x) < 300) && (Math.abs(ypos - _root.ghost1._y) < 80)) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = 3;
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE8" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.abs(ypos - _root.ghost1._y) < 180) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 1) + 2);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = xpos + (Math.random() * 50);
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = xpos + (Math.random() * 50);
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE9" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.abs((xpos + 100) - _root.ghost1._x) < 200) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = random(3) + 1;
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 649 MovieClip "HOLE10" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = random(4);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 649 MovieClip "HOLE11" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = random(4);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE12" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 400) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = random(4);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 100) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 650 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
go = true;
setboss = false;
init = false;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (init && (!_root.boss1.exist)) {
_root.gotoAndPlay("BRIDGE");
}
if (setboss) {
_root.boss1.HP = 200;
_root.boss1.AR = 15;
_root.boss1.xs = 10;
_root.boss1._xscale = 100;
_root.boss1._yscale = 100;
setboss = false;
init = true;
}
if (go) {
if (((((_global.enemyNum == 0) && (_parent.HOLE11.life == 0)) && (_parent.HOLE12.life == 0)) && (_parent.HOLE10.life == 0)) && (_parent.HOLE9.life == 0)) {
_global.go = false;
_root.attachMovie("STAGE1-1", "STAGE11", 10000);
_root.STAGE11._x = 40;
_root.STAGE11._y = 180;
if (!begin) {
duplicateMovieClip (_root.zl, "boss1", 2499);
_root.boss1._x = xpos;
_root.boss1._y = ypos;
_root.boss1.play();
_root.boss1.exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
setboss = true;
}
begin = true;
go = false;
}
}
}
Instance of Symbol 652 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if ((_global.enemyNum == 0) && (_parent.HOLE2.life == 0)) {
if (!begin) {
play();
}
begin = true;
if (_root.ghost1._x > ((_x + _parent._x) + 50)) {
_root.ghost1.rightend = 1250;
_root.ghost1.leftend = 700;
gotoAndStop (1);
go = false;
}
}
}
}
onClipEvent (load) {
stop();
begin = false;
go = true;
}
Instance of Symbol 652 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if ((_global.enemyNum == 0) && (_parent.HOLE8.life == 0)) {
if (!begin) {
play();
}
begin = true;
if (_root.ghost1._x > ((_x + _parent._x) + 50)) {
_root.ghost1.rightend = 3000;
_root.ghost1.leftend = 2200;
gotoAndStop (1);
go = false;
}
}
}
}
onClipEvent (load) {
stop();
begin = false;
go = true;
}
Instance of Symbol 652 MovieClip "xxxxxx" in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if (((_global.enemyNum == 0) && (_parent.HOLE5.life == 0)) && (_parent.HOLE6.life == 0)) {
if (!begin) {
play();
begin = true;
}
if ((_root.ghost1._y < ((_y + _parent._y) - 50)) && (this_go)) {
_root.ghost1.rightend = 2000;
_root.ghost1.leftend = 1900;
_root.ghost1.upend = -200;
gotoAndStop (1);
this_go = false;
}
if ((_root.ghost1._y > ((_y + _parent._y) - 50)) && (!this_go)) {
begin = false;
} else if ((_root.ghost1._y < ((_y + _parent._y) - 50)) && (!this_go)) {
gotoAndStop (1);
begin = true;
}
}
}
}
onClipEvent (load) {
stop();
begin = false;
this_go = true;
go = true;
}
Instance of Symbol 652 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if ((_global.enemyNum == 0) && (_parent.HOLE7.life == 0)) {
if (!begin) {
play();
}
begin = true;
if (_root.ghost1._y < ((_y + _parent._y) - 30)) {
_root.ghost1.rightend = 2000;
_root.ghost1.leftend = 1900;
_root.ghost1.upend = -600;
gotoAndStop (1);
go = false;
}
}
}
}
onClipEvent (load) {
stop();
begin = false;
go = true;
}
Instance of Symbol 652 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if (((_global.enemyNum == 0) && (_parent.HOLE3.life == 0)) && (_parent.HOLE4.life == 0)) {
if (!begin) {
play();
}
begin = true;
if (_root.ghost1._x > ((_x + _parent._x) + 50)) {
_root.ghost1.rightend = 1900;
_root.ghost1.leftend = 1450;
gotoAndStop (1);
go = false;
}
}
}
}
onClipEvent (load) {
stop();
begin = false;
go = true;
}
Instance of Symbol 653 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if (_root.ghost1._x > (_x + _parent._x)) {
_root.ghost1.rightend = 3000;
_root.ghost1.leftend = 2300;
_root.ghost1.upend = -600;
gotoAndStop (1);
xxxxxx.go = false;
go = false;
}
}
}
onClipEvent (load) {
stop();
go = true;
}
Instance of Symbol 76 MovieClip [AHP] in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
this.HP = 100;
}
Instance of Symbol 81 MovieClip [AMP] in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
this.MP = 100;
}
Symbol 670 MovieClip Frame 1
stop();
fly = true;
Symbol 670 MovieClip Frame 6
play();
this._rotation = 0;
_root.playSound1("\u5B50\u5F39\u51FB\u4E2D");
Symbol 670 MovieClip Frame 30
this.removeMovieClip();
Symbol 683 MovieClip Frame 1
State = "stay";
Symbol 683 MovieClip Frame 4
stop();
Symbol 683 MovieClip Frame 5
stop();
State = "jump";
Symbol 683 MovieClip Frame 13
play();
State = "washit";
_root.playSound1("hithit");
Symbol 683 MovieClip Frame 19
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 683 MovieClip Frame 31
State = "dead";
Symbol 683 MovieClip Frame 45
gotoAndPlay ("dead");
Symbol 698 MovieClip Frame 1
State = "stay";
Symbol 698 MovieClip Frame 10
gotoAndPlay ("stay");
Symbol 698 MovieClip Frame 11
stop();
State = "run";
_root.playSound1("\u868A\u5B50");
Symbol 698 MovieClip Frame 20
State = "blood";
Symbol 698 MovieClip Frame 30
gotoAndPlay ("blood");
Symbol 698 MovieClip Frame 31
if (State == "blood") {
gotoAndPlay ("washit2");
} else {
State = "washit";
play();
}
_root.playSound1("hithit");
Symbol 698 MovieClip Frame 38
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 698 MovieClip Frame 48
State = "dead";
Symbol 698 MovieClip Frame 65
gotoAndPlay ("dead");
Symbol 698 MovieClip Frame 66
State = "washit";
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
_root.playSound1("hithit");
Symbol 698 MovieClip Frame 83
gotoAndPlay ("loop");
this._alpha = this._alpha - 3;
if (this._alpha < 5) {
_global.enemyNum--;
this.removeMovieClip();
}
Symbol 711 MovieClip Frame 1
play();
State = "stay";
Symbol 711 MovieClip Frame 19
gotoAndPlay ("stay");
Symbol 711 MovieClip Frame 20
play();
State = "dead";
_root.playSound1("hithit");
Symbol 711 MovieClip Frame 28
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 711 MovieClip Frame 34
play();
State = "deadloop";
Symbol 711 MovieClip Frame 47
gotoAndPlay ("deadloop");
Symbol 711 MovieClip Frame 49
State = "washit";
_root.playSound1("hithit");
Symbol 711 MovieClip Frame 64
gotoAndPlay ("stay");
Symbol 717 MovieClip Frame 1
stop();
State = "stay";
Symbol 717 MovieClip Frame 6
State = "washit";
play();
Symbol 717 MovieClip Frame 7
_root.playSound1("hithit");
Symbol 717 MovieClip Frame 14
_root.playSound1("\u602A\u6B7B" + (random(3) + 1));
Symbol 717 MovieClip Frame 17
State = "dead";
stop();
Symbol 723 Button
on (release) {
_parent.gotoAndPlay(17);
}
Symbol 725 Button
on (release) {
stopAllSounds();
_root.ghost1.score = 0;
_root.ghost1.removeMovieClip();
_root.HPMP.removeMovieClip();
_root.GHOSTLIFE.removeMovieClip();
_root.SCORE.removeMovieClip();
_root.BOSSHP.removeMovieClip();
_root.STAGE3.removeMovieClip();
_root.STAGE2.removeMovieClip();
_root.STAGE1.removeMovieClip();
i = 0;
while (i < _global.enemyMax) {
removeMovieClip(_root["enemy" + i]);
i++;
}
i = 0;
while (i < _global.enemyMax) {
removeMovieClip(_root["boss" + i]);
i++;
}
_global.enemyNum = 0;
_parent.gotoAndPlay(17);
_root.gotoAndPlay("START");
}
Symbol 727 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 15
stop();
Symbol 727 MovieClip Frame 30
_global.go = true;
gotoAndStop (1);
Instance of Symbol 646 MovieClip "HOLE1" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 3) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE2" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 3) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 649 MovieClip "HOLE6" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 7;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 0) + 3);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 649 MovieClip "HOLE7" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 5;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 0) + 4);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 649 MovieClip "HOLE8" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 7;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 0) + 3);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE5" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 3) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE4" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE3" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 250) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 3) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE9" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 200) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE10" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE11" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy1, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz1, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE12" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy1, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz1, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE13" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow((xpos + 100) - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 200) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy1, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 80) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE14" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if ((Math.abs(xpos - _root.ghost1._x) < 250) && ((ypos - _root.ghost1._y) < 0)) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy1, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz1, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 50) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE18" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy1, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz1, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 50) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 648 MovieClip "HOLE17" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy1, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz1, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 50) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE15" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy1, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz1, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 50) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 646 MovieClip "HOLE16" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
life = 10;
timer = 0;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (life == 0) {
this.gotoAndStop("dead");
}
if (life > 0) {
if (timer == 0) {
if (Math.sqrt(Math.pow(xpos - _root.ghost1._x, 2) + Math.pow(ypos - _root.ghost1._y, 2)) < 300) {
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 4) + 0);
switch (randomNUM) {
case 0 :
duplicateMovieClip (_root.zz1, "enemy" + i, 1500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 200)) - 100;
_root["enemy" + i]._y = 0;
break;
case 1 :
duplicateMovieClip (_root.tj1, "enemy" + i, 4000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 2 :
duplicateMovieClip (_root.cy1, "enemy" + i, 2500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 3 :
duplicateMovieClip (_root.wz1, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (xpos + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (ypos + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
}
}
if (timer < 50) {
timer++;
} else {
timer = 0;
}
}
}
Instance of Symbol 652 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if (((_global.enemyNum == 0) && (_parent.HOLE1.life == 0)) && (_parent.HOLE2.life == 0)) {
if (!begin) {
play();
}
begin = true;
if (_root.ghost1._x > ((_x + _parent._x) + 50)) {
_root.ghost1.rightend = 1350;
_root.ghost1.leftend = 500;
gotoAndStop (1);
go = false;
}
}
}
}
onClipEvent (load) {
stop();
begin = false;
go = true;
}
Instance of Symbol 652 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if (((((((_global.enemyNum == 0) && (_parent.HOLE3.life == 0)) && (_parent.HOLE4.life == 0)) && (_parent.HOLE5.life == 0)) && (_parent.HOLE6.life == 0)) && (_parent.HOLE7.life == 0)) && (_parent.HOLE8.life == 0)) {
if (!begin) {
play();
}
begin = true;
if (_root.ghost1._x > (_x + _parent._x)) {
_root.ghost1.rightend = 2370;
_root.ghost1.leftend = 1500;
_global.enemyMax = 5;
gotoAndStop (1);
go = false;
}
}
}
}
onClipEvent (load) {
stop();
begin = false;
go = true;
}
Instance of Symbol 652 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if ((((((_global.enemyNum == 0) && (_parent.HOLE9.life == 0)) && (_parent.HOLE10.life == 0)) && (_parent.HOLE11.life == 0)) && (_parent.HOLE12.life == 0)) && (_parent.HOLE13.life == 0)) {
if (!begin) {
play();
}
begin = true;
if (_root.ghost1._x > ((_x + _parent._x) + 50)) {
_root.ghost1.rightend = 3500;
_root.ghost1.leftend = 2450;
_root.ghost1.downend = 900;
gotoAndStop (1);
go = false;
_global.enemyMax = 5;
}
}
}
}
onClipEvent (load) {
stop();
begin = false;
go = true;
}
Instance of Symbol 653 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if (_root.ghost1._x > (_x + _parent._x)) {
_root.ghost1.rightend = 2370;
_root.ghost1.leftend = 1750;
gotoAndStop (1);
go = false;
}
}
}
onClipEvent (load) {
stop();
go = true;
}
Instance of Symbol 653 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go) {
if (_root.ghost1._x > (_x + _parent._x)) {
_root.ghost1.rightend = 3500;
_root.ghost1.leftend = 2550;
_root.ghost1.upend = 300;
_root.ghost1.downend = 900;
gotoAndStop (1);
go = false;
}
}
}
onClipEvent (load) {
stop();
go = true;
}
Instance of Symbol 650 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
go = true;
setboss = false;
init = false;
}
onClipEvent (enterFrame) {
xpos = _x + _parent._x;
ypos = _y + _parent._y;
if (((init && (!_root.boss1.exist)) && (!_root.boss2.exist)) && (!_root.boss3.exist)) {
_root.gotoAndPlay("BRIDGE2");
}
if (setboss) {
_root.boss1.HP = 90;
_root.boss1.AR = 15;
_root.boss1.xs = 9;
_root.boss1._xscale = 90;
_root.boss1._yscale = 90;
_root.boss2.HP = 100;
_root.boss2.AR = 15;
_root.boss2.xs = 10;
_root.boss2._xscale = 100;
_root.boss2._yscale = 100;
_root.boss3.HP = 110;
_root.boss3.AR = 15;
_root.boss3.xs = 11;
_root.boss3._xscale = 110;
_root.boss3._yscale = 110;
setboss = false;
init = true;
}
if (go) {
if ((((((_global.enemyNum == 0) && (_parent.HOLE14.life == 0)) && (_parent.HOLE15.life == 0)) && (_parent.HOLE16.life == 0)) && (_parent.HOLE17.life == 0)) && (_parent.HOLE18.life == 0)) {
_global.go = false;
_root.attachMovie("STAGE2-1", "STAGE21", 10000);
_root.STAGE21._x = 40;
_root.STAGE21._y = 180;
if (!begin) {
duplicateMovieClip (_root.zl, "boss1", 2499);
_root.boss1._x = xpos - 300;
_root.boss1._y = ypos;
_root.boss1.play();
_root.boss1.exist = true;
_global.enemyNum++;
duplicateMovieClip (_root.zl, "boss2", 2498);
_root.boss2._x = xpos;
_root.boss2._y = ypos;
_root.boss2.play();
_root.boss2.exist = true;
_global.enemyNum++;
duplicateMovieClip (_root.zl, "boss3", 2497);
_root.boss3._x = xpos + 300;
_root.boss3._y = ypos;
_root.boss3.play();
_root.boss3.exist = true;
_global.enemyNum++;
flag = false;
life--;
setboss = true;
}
begin = true;
go = false;
}
}
}
Instance of Symbol 76 MovieClip [AHP] in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
this.HP = 70;
}
Instance of Symbol 81 MovieClip [AMP] in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
this.MP = 70;
}
Instance of Symbol 76 MovieClip [AHP] in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
this.HP = 70;
}
Instance of Symbol 76 MovieClip [AHP] in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
this.HP = 70;
}
Instance of Symbol 81 MovieClip [AMP] in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
this.MP = 70;
}
Instance of Symbol 81 MovieClip [AMP] in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
this.MP = 70;
}
Instance of Symbol 744 MovieClip in Symbol 749 MovieClip Frame 1
onClipEvent (enterFrame) {
if (enemyNum == 0) {
_root.gotoAndPlay("WIN");
}
}
Instance of Symbol 785 MovieClip in Symbol 786 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 15;
}
Instance of Symbol 788 MovieClip in Symbol 789 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 15;
}
Symbol 790 MovieClip Frame 1
stop();
State = "stay";
Symbol 790 MovieClip Frame 6
play();
State = "walk";
Symbol 790 MovieClip Frame 25
gotoAndPlay ("walk");
Symbol 790 MovieClip Frame 26
play();
State = "washit";
_root.playSound1("hithit");
Symbol 790 MovieClip Frame 29
_root.playSound1("\u8001\u9F20\u6328\u6253");
Symbol 790 MovieClip Frame 44
gotoAndPlay ("stay");
Symbol 790 MovieClip Frame 45
play();
State = "attack1";
if (_root.ghost1.washit) {
laugh = true;
}
Instance of Symbol 753 MovieClip "nail" in Symbol 790 MovieClip Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.ghost1)) {
if (((_root.ghost1.hittimer > 20) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
laugh = true;
_root.ghost1.washit = true;
_root.ghost1.HP = _root.ghost1.HP - 10;
}
}
}
Symbol 790 MovieClip Frame 46
if (_root.ghost1.washit) {
laugh = true;
}
Symbol 790 MovieClip Frame 47
if (_root.ghost1.washit) {
laugh = true;
}
Symbol 790 MovieClip Frame 48
if (_root.ghost1.washit) {
laugh = true;
}
Symbol 790 MovieClip Frame 49
if (_root.ghost1.washit) {
laugh = true;
}
Symbol 790 MovieClip Frame 50
gotoAndPlay ("stay");
if (_root.ghost1.washit) {
laugh = true;
}
Symbol 790 MovieClip Frame 51
play();
State = "attack2";
Instance of Symbol 756 MovieClip "tail" in Symbol 790 MovieClip Frame 66
onClipEvent (enterFrame) {
if (this.hitTest(_root.ghost1)) {
if (((_root.ghost1.hittimer > 20) && (!this.hitTest(_root.ghost1.bullet1))) && (!this.hitTest(_root.ghost1.bullet2))) {
laugh = true;
_root.ghost1.washit = true;
_root.ghost1.HP = _root.ghost1.HP - 10;
}
}
}
Symbol 790 MovieClip Frame 67
if (_root.ghost1.washit) {
laugh = true;
}
Symbol 790 MovieClip Frame 68
if (_root.ghost1.washit) {
laugh = true;
}
Symbol 790 MovieClip Frame 70
gotoAndPlay ("stay");
Symbol 790 MovieClip Frame 71
play();
State = "laugh";
_root.playSound1("\u8001\u9F20\u7B11");
Symbol 790 MovieClip Frame 98
gotoAndPlay ("stay");
Symbol 790 MovieClip Frame 99
State = "whistle";
Symbol 790 MovieClip Frame 111
_root.playSound1("\u8001\u9F20\u54E8\u5B50");
Symbol 790 MovieClip Frame 174
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 2) + 2);
switch (randomNUM) {
case 2 :
case 3 :
duplicateMovieClip (_root.wz1, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (250 + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (100 + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (250 + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (100 + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
Symbol 790 MovieClip Frame 195
if (_global.enemyNum < _global.enemyMax) {
flag = true;
i = 0;
while (flag && (i < _global.enemyMax)) {
if (!_root["enemy" + i].exist) {
randomNUM = Math.round((Math.random() * 2) + 2);
switch (randomNUM) {
case 2 :
case 3 :
duplicateMovieClip (_root.wz, "enemy" + i, 3500 + _global.enemydepths);
_root["enemy" + i]._x = (250 + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (100 + (Math.random() * 10)) - 5;
break;
case 4 :
duplicateMovieClip (_root.zl, "enemy" + i, 2000 + _global.enemydepths);
_root["enemy" + i]._x = (250 + (Math.random() * 100)) - 50;
_root["enemy" + i]._y = (100 + (Math.random() * 10)) - 5;
}
_root["enemy" + i].play();
_root["enemy" + i].exist = true;
_global.enemydepths++;
_global.enemyNum++;
flag = false;
life--;
}
i++;
}
}
Symbol 790 MovieClip Frame 214
gotoAndPlay ("stay");
Symbol 790 MovieClip Frame 215
play();
State = "back";
Symbol 790 MovieClip Frame 234
gotoAndPlay ("back");
Symbol 790 MovieClip Frame 235
play();
State = "dead";
Symbol 790 MovieClip Frame 267
_root.playSound1("\u602A\u6B7B3");
Symbol 790 MovieClip Frame 363
_global.enemyNum--;
stop();
Symbol 810 MovieClip Frame 1
stopAllSounds();
Symbol 810 MovieClip Frame 2
_root.playMusic("ED");
Symbol 810 MovieClip Frame 872
_global.go = false;
stop();
Instance of Symbol 324 MovieClip in Symbol 810 MovieClip Frame 872
onClipEvent (keyUp) {
stopAllSounds();
_root.gotoAndPlay("START");
}
Symbol 814 Button
on (release) {
gotoAndPlay ("continue");
}
Symbol 817 Button
on (release) {
gotoAndPlay ("game over");
}
Symbol 833 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 2
play();
Symbol 833 MovieClip Frame 16
stop();
Symbol 864 MovieClip Frame 1
stopAllSounds();
Symbol 864 MovieClip Frame 2
_root.playMusic("intro");
Symbol 864 MovieClip Frame 64
gotoAndPlay ("loop");
Symbol 864 MovieClip Frame 73
_root.ghost1.removeMovieClip();
Symbol 864 MovieClip Frame 154
stop();
Instance of Symbol 324 MovieClip in Symbol 864 MovieClip Frame 154
onClipEvent (keyUp) {
stopAllSounds();
_root.gotoAndPlay("START");
}
onClipEvent (mouseUp) {
stopAllSounds();
_root.gotoAndPlay("START");
}
Symbol 864 MovieClip Frame 158
stopAllSounds();
Instance of Symbol 833 MovieClip in Symbol 864 MovieClip Frame 207
onClipEvent (load) {
this.gotoAndPlay(2);
}
Symbol 864 MovieClip Frame 370
stop();
Instance of Symbol 324 MovieClip in Symbol 864 MovieClip Frame 370
onClipEvent (keyUp) {
stopAllSounds();
if (go) {
if (_global.stage == 1) {
_root.ghost1.removeMovieClip();
_root.gotoAndPlay("STAGE1");
} else if (_global.stage == 2) {
_root.gotoAndPlay("STAGE2");
} else if (_global.stage == 3) {
_root.gotoAndPlay("STAGE3");
}
}
}
onClipEvent (mouseUp) {
stopAllSounds();
if (go) {
if (_global.stage == 1) {
_root.ghost1.removeMovieClip();
_root.gotoAndPlay("STAGE1");
} else if (_global.stage == 2) {
_root.gotoAndPlay("STAGE2");
} else if (_global.stage == 3) {
_root.gotoAndPlay("STAGE3");
}
}
}
onClipEvent (load) {
go = true;
}