Frame 1
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
stop();
Frame 2
play();
Frame 3
play();
Instance of Symbol 90 MovieClip in Frame 3
on (release) {
getURL ("http://www.MaxGames.com", "_blank");
}
Frame 6
stop();
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
Instance of Symbol 169 MovieClip in Frame 6
on (release) {
getURL ("http://www.gazo.com/?refb=intro", "_blank");
}
Frame 7
stop();
Instance of Symbol 198 MovieClip in Frame 7
on (release) {
stopAllSounds();
_root.gotoAndStop("mainMenu");
}
Frame 8
play();
Frame 9
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
mute = false;
Muted.onEnterFrame = function () {
if (muted == true) {
hud.main_music.gotoAndStop("stop");
} else {
hud.main_music.gotoAndStop("play");
}
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Muted();
Frame 10
play();
Frame 11
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 12
play();
Frame 13
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 14
play();
Frame 15
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 16
play();
Frame 17
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 18
play();
Frame 19
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 20
play();
Frame 21
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 22
play();
Frame 23
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 24
play();
Frame 25
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 26
play();
Frame 27
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 28
play();
Frame 29
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 30
play();
Frame 31
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 32
play();
Frame 33
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 34
play();
Frame 35
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 36
play();
Frame 37
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 38
play();
Frame 39
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 40
play();
Frame 41
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 42
play();
Frame 43
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 44
play();
Frame 45
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 46
play();
Frame 47
stop();
cam._xscale = 70;
cam._yscale = 70;
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit == 100) {
nextFrame();
trace("level complete");
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
var volumeOn = true;
var globalVolume = new Sound();
hud.main_music.onRelease = function () {
if (volumeOn && (mute == false)) {
globalVolume.setVolume(0);
hud.main_music.gotoAndStop("stop");
mute = true;
} else {
globalVolume.setVolume(100);
hud.main_music.gotoAndStop("play");
mute = false;
}
};
Frame 48
play();
Frame 49
stop();
cam._x = marker._x;
cam._y = marker._y;
_root.titleMusicSound = new Sound();
_root.titleMusicSound.attachSound("titlemusic");
_root.titleMusicSound.start(0, 999);
title_btnsound = new Sound();
title_btnsound.attachSound("titlebtnchime");
more_gamesmc.onRollOver = function () {
_root.more_gamesmc.gotoAndPlay("onplay");
_root.title_btnsound.start(0, 0);
};
more_gamesmc.onRollOut = function () {
_root.more_gamesmc.gotoAndStop("offplay");
};
Instance of Symbol 127 MovieClip "more_gamesmc" in Frame 49
on (release) {
getURL ("http://www.gazo.com/?refb=intro", "_blank");
}
Instance of Symbol 169 MovieClip in Frame 49
on (release) {
getURL ("http://www.gazo.com/?refb=intro", "_blank");
}
Instance of Symbol 198 MovieClip in Frame 49
on (release) {
stopAllSounds();
_root.gotoAndStop("mainMenu");
}
Frame 50
stop();
levelExit = 0;
onEnterFrame = function () {
if (_global.levelComplete) {
levelExit++;
if (levelExit > 100) {
nextFrame();
}
}
endX = _root.player._x;
endY = _root.player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + (((endY - cam._y) - 20) / 5);
hud._x = cam._x;
hud._y = cam._y;
cam.camControl();
};
Symbol 9 MovieClip [sniper] Frame 1
type = "sniper";
if (!Key.isDown(70)) {
pressed = false;
}
onEnterFrame = function () {
if (!(_parent._name === "gun")) {
if (_root.guy.hitTest(this) && (_root.intank == false)) {
_root.cam["hitgun" + type] = true;
if (Key.isDown(70) && (pressed == false)) {
_root.cam["hitgun" + type] = false;
_root.arm.gun.attachMovie(type, "dwa", 1);
dgun = _root.arm.cgun;
_root.arm.cgun = type;
_root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y});
pressed = true;
}
if (!Key.isDown(70)) {
pressed = false;
}
} else {
_root.cam["hitgun" + type] = false;
}
}
};
Symbol 11 MovieClip [pistol] Frame 1
type = "pistol";
if (!Key.isDown(70)) {
pressed = false;
}
onEnterFrame = function () {
if (!(_parent._name === "gun")) {
if (_root.guy.hitTest(this) && (_root.intank == false)) {
_root.cam["hitgun" + type] = true;
if (Key.isDown(70) && (pressed == false)) {
_root.cam["hitgun" + type] = false;
_root.arm.gun.attachMovie(type, "dwa", 1);
dgun = _root.arm.cgun;
_root.arm.cgun = type;
_root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y});
pressed = true;
}
if (!Key.isDown(70)) {
pressed = false;
}
} else {
_root.cam["hitgun" + type] = false;
}
}
};
Symbol 13 MovieClip [assault] Frame 1
type = "assault";
if (!Key.isDown(70)) {
pressed = false;
}
onEnterFrame = function () {
if (!(_parent._name === "gun")) {
if (_root.guy.hitTest(this) && (_root.intank == false)) {
_root.cam["hitgun" + type] = true;
if (Key.isDown(70) && (pressed == false)) {
_root.cam["hitgun" + type] = false;
_root.arm.gun.attachMovie(type, "dwa", 1);
dgun = _root.arm.cgun;
_root.arm.cgun = type;
pressed = true;
_root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y});
}
if (!Key.isDown(70)) {
pressed = false;
}
} else {
_root.cam["hitgun" + type] = false;
}
}
};
Symbol 15 MovieClip Frame 2
this._parent.spd = 130;
Symbol 15 MovieClip Frame 3
this._parent.spd = _root.bulletspd;
stop();
Symbol 16 MovieClip [tankshell] Frame 1
if (_root.water.hitTest(_x, _y, true)) {
water = true;
} else {
water = false;
}
if (_root.tank._xscale == 100) {
left = true;
}
onEnterFrame = function () {
if (left == true) {
this._x = this._x + (Math.cos((_rotation * 3.141593) / 180) * spd);
this._y = this._y + (Math.sin((_rotation * 3.141593) / 180) * spd);
} else {
this._x = this._x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * spd);
this._y = this._y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * spd);
}
if (_root.ground.hitTest(_x, _y, true)) {
removeMovieClip(this);
}
if (_root.water.hitTest(_x, _y, true)) {
spd = spd / 1.2;
if (water == false) {
_root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:_y - _root.water._y, _xscale:50});
water = true;
}
} else if (water == true) {
_root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:(_y - _root.water._y) + 2, _xscale:50});
water = false;
}
if (spd < 0.1) {
removeMovieClip(this);
}
if ((spd < 3) && (!_root.water.hitTest(_x, _y, true))) {
removeMovieClip(this);
}
};
Symbol 18 MovieClip [shotgun] Frame 1
type = "shotgun";
if (!Key.isDown(70)) {
pressed = false;
}
onEnterFrame = function () {
if (!(_parent._name === "gun")) {
if (_root.guy.hitTest(this) && (_root.intank == false)) {
_root.cam["hitgun" + type] = true;
if (Key.isDown(70) && (pressed == false)) {
_root.cam["hitgun" + type] = false;
_root.arm.gun.attachMovie(type, "dwa", 1);
dgun = _root.arm.cgun;
_root.arm.cgun = type;
pressed = true;
_root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y});
}
if (!Key.isDown(70)) {
pressed = false;
}
} else {
_root.cam["hitgun" + type] = false;
}
}
};
Symbol 20 MovieClip [blood] Frame 1
gravity = 0;
onEnterFrame = function () {
_y = (_y + yspd);
_x = (_x + xspd);
if (_root.ground.hitTest(_x, _y + 1, true)) {
_alpha = (_alpha - 5);
xspd = 0;
yspd = 0;
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
_y = (_y-1);
}
} else {
gravity = gravity + 0.2;
_y = (_y + gravity);
}
if (_alpha <= 0) {
removeMovieClip(this);
}
};
Symbol 22 MovieClip Frame 2
stop();
Symbol 23 MovieClip [bullet] Frame 1
function hitsomeone(person) {
if (_root[person].died != true) {
hydif = Math.abs(_root[person + "head"]._y - looky);
bydif = Math.abs(_root[person + "body"]._y - looky);
nydif = Math.abs(_root[person + "neck"]._y - looky);
xdif = _root[person]._x - _x;
if (hydif < nydif) {
hitarea = "head";
} else if (nydif < bydif) {
hitarea = "neck";
} else {
hitarea = "body";
}
if (hitarea == "head") {
_root[person].dead = hitarea;
_root[person].deathway = xdif;
_root[person].hitx = lookx;
_root[person].hity = looky;
_root[person].hp = _root[person].hp - damage;
removeMovieClip(this);
}
if (hitarea == "neck") {
_root[person].dead = hitarea;
_root[person].deathway = xdif;
_root[person].hitx = lookx;
_root[person].hity = looky;
removeMovieClip(this);
}
if (hitarea == "body") {
_root[person].dead = hitarea;
_root[person].deathway = xdif;
_root[person].hitx = lookx;
_root[person].hity = looky;
_root[person].hp = _root[person].hp - (damage / 4);
removeMovieClip(this);
}
}
}
spd = _root.bulletspd;
left = false;
if (typelol == "shot") {
damage = 50;
} else {
damage = 100;
}
if (_root.water.hitTest(_x, _y, true)) {
water = true;
} else {
water = false;
}
if (_root[shooter]._xscale == 100) {
left = true;
}
bcount = 0;
onEnterFrame = function () {
if (spd < 0.1) {
removeMovieClip(this);
}
if ((spd < 3) && (!_root.water.hitTest(_x, _y, true))) {
removeMovieClip(this);
}
if (left == true) {
this._x = this._x + (Math.cos((_rotation * 3.141593) / 180) * spd);
this._y = this._y + (Math.sin((_rotation * 3.141593) / 180) * spd);
} else {
this._x = this._x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * spd);
this._y = this._y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * spd);
}
j = 0;
while (j < spd) {
if (left == true) {
lookx = _x + (Math.cos((_rotation * 3.141593) / 180) * j);
looky = _y + (Math.sin((_rotation * 3.141593) / 180) * j);
} else {
lookx = _x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * j);
looky = _y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * j);
}
if (shooter == "guy") {
if (_root.enemy.hitTest(lookx, looky, true)) {
_root.crosshair.n.gotoAndPlay(2);
hitsomeone("enemy");
}
} else if (_root.guy.hitTest(lookx, looky, true)) {
hitsomeone("guy");
}
if (_root.ground.hitTest(lookx, looky, true)) {
_x = lookx;
_y = looky;
spd = 0;
}
j = j + (spd / 5);
}
if (_root.water.hitTest(_x, _y, true)) {
spd = spd / 1.3;
if (water == false) {
_root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:_y - _root.water._y, _xscale:50});
water = true;
}
} else if (water == true) {
_root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:(_y - _root.water._y) + 2, _xscale:50});
water = false;
}
};
Symbol 25 MovieClip [bubble] Frame 1
onEnterFrame = function () {
if (!_root.water.hitTest(_x, _y, true)) {
removeMovieClip(this);
}
if (_root.ground.hitTest(_x + (_width / 2), _y + (_width / 2), true)) {
_x = (_x-1);
_x = (_x-1);
}
if (_root.ground.hitTest(_x - (_width / 2), _y + (_width / 2), true)) {
_x = (_x+1);
_x = (_x+1);
}
_y = (_y - 0.5);
_x = (_x + (Math.round(Math.random()) - Math.round(Math.random())));
};
Symbol 36 MovieClip [splash] Frame 29
removeMovieClip(this);
Symbol 59 MovieClip Frame 95
stop();
_parent.play();
Symbol 76 MovieClip Frame 1
function init() {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_visible = false;
end();
} else {
initBarWidth();
}
}
function end() {
stop();
stopped = true;
_parent.play();
}
function initBarWidth() {
_orgPreloaderBarWidth = preloaderBar._width;
preloaderBar._width = 0;
}
function onProgress() {
var _local3 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local2 = _local3 / _local4;
setLoaded(_local2);
if (_local2 >= 1) {
end();
}
}
function setLoaded(fPercent) {
preloaderBar._width = _orgPreloaderBarWidth * fPercent;
}
var _orgPreloaderBarWidth;
var started;
var stopped;
if (!started) {
started = true;
init();
} else if (!stopped) {
onProgress();
}
Symbol 88 MovieClip Frame 1
stop();
fullScreenButton.onPress = function () {
getURL ("http://www.gazo.com/?refb=intro", "_blank");
};
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 25
stop();
gazoPlayButton.onPress = function () {
play();
};
Symbol 88 MovieClip Frame 41
stop();
_parent.play();
Symbol 100 MovieClip Frame 26
stop();
Symbol 111 MovieClip Frame 1
_root.AlertNoise = new Sound();
_root.AlertNoise.attachSound("alertSound");
alertOn = 0;
timer = 0;
timer = 0;
trackingTimer = 0;
tracking = false;
huh._alpha = 0;
red._alpha = 0;
onEnterFrame = function () {
if (!_global.spotted) {
huh.gotoAndStop(1);
} else {
huh.gotoAndStop(2);
}
leftx = this._x + (Math.cos(3.141593 * (((this._rotation * -1) + 180) / 180)) * 7);
lefty = this._y - (Math.sin(3.141593 * (((this._rotation * -1) + 180) / 180)) * 7);
rightx = this._x + (Math.cos(3.141593 * ((this._rotation * -1) / 180)) * 7);
righty = this._y - (Math.sin(3.141593 * ((this._rotation * -1) / 180)) * 7);
if (_root.ground.hitTest(leftx, lefty, true)) {
if (tracking) {
huh._alpha = 0;
trackingTimer = 0;
tracking = false;
_global.omg = false;
_root.AlertNoise.stop();
alertOn = 0;
_root.mainlvlmusic.start(0, 999);
_root.ambience_sound.start(0, 999);
}
timer = 1;
}
if (_root.ground.hitTest(rightx, righty, true)) {
if (tracking) {
huh._alpha = 0;
trackingTimer = 0;
tracking = false;
_global.omg = false;
_root.AlertNoise.stop();
alertOn = 0;
_root.ambience_sound.start(0, 999);
}
timer = 81;
}
if (tracking) {
huh._alpha = 100;
_global.omg = true;
trackingTimer++;
if (trackingTimer > 250) {
huh._alpha = 0;
trackingTimer = 0;
tracking = false;
_global.omg = false;
_root.AlertNoise.stop();
alertOn = 0;
_root.mainlvlmusic.start(0, 999);
_root.ambience_sound.start(0, 999);
}
if (((!_global.levelComplete) && (_global.omg)) && (alertOn == 0)) {
_root.AlertNoise.start(0, 5);
alertOn = 1;
}
if (!_global.spotted) {
if (_root.player._x < this._x) {
this._xscale = 100;
} else {
this._xscale = -100;
}
endX = _root.player._x;
this._x = this._x + ((endX - this._x) / 25);
}
}
if ((!tracking) && (!_global.spotted)) {
if ((timer > 0) && (timer < 80)) {
this._x = this._x + 2.5;
this._xscale = -100;
}
if ((timer > 80) && (timer < 160)) {
this._x = this._x - 2.5;
this._xscale = 100;
}
if (timer == 160) {
timer = 0;
}
timer++;
}
if (!_global.levelComplete) {
if (_global.playerVisible && (hitBox.hitTest(_root.player))) {
red._alpha = 100;
_global.spotted = true;
}
if (_global.playerVisible && (blue.hitTest(_root.player))) {
tracking = true;
}
}
};
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 15
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 15
stop();
Symbol 143 MovieClip Frame 65
stop();
Symbol 145 MovieClip Frame 1
_root.titleMusicSound = new Sound();
_root.titleMusicSound.attachSound("titlemusic");
_root.titleMusicSound.start(0, 999);
title_btnsound = new Sound();
title_btnsound.attachSound("titlebtnchime");
start_gamemc.onRollOver = function () {
_root.menubg.start_gamemc.gotoAndPlay("onplay");
_root.menubg.title_btnsound.start(0, 0);
};
start_gamemc.onRollOut = function () {
_root.menubg.start_gamemc.gotoAndStop("offplay");
};
start_gamemc.onPress = function () {
_root.titleMusicSound.stop();
};
start_gamemc.onRelease = function () {
_root.gotoAndStop("intro");
_root.titleMusicSound.stop();
};
more_gamesmc.onRollOver = function () {
_root.menubg.more_gamesmc.gotoAndPlay("onplay");
_root.menubg.title_btnsound.start(0, 0);
};
more_gamesmc.onRollOut = function () {
_root.menubg.more_gamesmc.gotoAndStop("offplay");
};
Instance of Symbol 127 MovieClip "more_gamesmc" in Symbol 145 MovieClip Frame 1
on (release) {
getURL ("http://www.gazo.com/?refb=intro", "_blank");
}
Symbol 145 MovieClip Frame 143
stop();
Symbol 147 MovieClip Frame 1
onEnterFrame = function () {
this._alpha = this._alpha - 1;
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 89) {
this._alpha = 90;
}
};
Symbol 155 MovieClip Frame 12
stop();
Symbol 158 Button
on (release) {
gotoAndPlay (2);
_root.soundstatus = "off";
}
Symbol 159 MovieClip Frame 11
stop();
Symbol 161 Button
on (release) {
gotoAndPlay (1);
_root.soundstatus = "on";
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
stop();
Instance of Symbol 166 MovieClip in Symbol 167 MovieClip [sound_contr] Frame 1
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
Symbol 191 Button
on (release) {
_root.gotoAndStop("lvl1");
}
on (press) {
_root.CSMusicSound.stop();
}
Symbol 196 MovieClip Frame 1
_root.CSMusicSound = new Sound();
_root.CSMusicSound.attachSound("CSmusic");
_root.CSMusicSound.start(0, 999);
Symbol 196 MovieClip Frame 980
_root.CSMusicSound.stop();
Symbol 196 MovieClip Frame 981
stop();
_root.gotoAndStop("lvl1");
Symbol 208 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_root.player)) {
_global.spotted = true;
}
};
Symbol 219 MovieClip Frame 1
stop();
hackTimer = 0;
onEnterFrame = function () {
hackBar._xscale = hackTimer;
if (((!_global.exitUp) && (_global.playerIdle)) && (_root.player.hitTest(this))) {
_global.playerHacking = true;
hackTimer++;
} else {
_global.playerHacking = false;
hackTimer = 0;
}
if (hackTimer > 99) {
hackTimer = 100;
_global.exitUp = true;
this.gotoAndStop(2);
}
};
Symbol 219 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 15
stop();
Symbol 229 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.feet.hitTest(this)) {
_global.levelComplete = true;
}
};
Symbol 231 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.exitUp) {
gotoAndStop (2);
}
};
Symbol 231 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (!_global.exitUp) {
gotoAndStop (1);
}
};
Symbol 234 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
if (_global.exitUp == true) {
this.gotoAndStop(2);
}
};
Symbol 236 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 238 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 240 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
if (_global.exitUp == true) {
this.gotoAndStop(2);
}
};
Symbol 242 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
if (_global.exitUp == true) {
this.gotoAndStop(2);
}
};
Symbol 264 MovieClip Frame 15
stop();
Symbol 268 MovieClip Frame 18
stop();
Symbol 270 MovieClip Frame 10
gotoAndPlay (7);
Symbol 293 MovieClip Frame 10
stop();
Symbol 300 MovieClip Frame 15
stop();
Symbol 331 MovieClip Frame 29
stop();
_root.prevFrame();
Symbol 332 MovieClip Frame 1
running = false;
inControl = true;
_global.gravity = 0;
gravityaccel = 0.2;
_global.moveSpeed = 4;
maxjump = 3;
_global.doubleJump = false;
_global.doubleJumping = false;
_global.jump = true;
pressOnce = 0;
setVis = 0;
_global.playerIdle = false;
_global.playerHacking = false;
_global.levelComplete = false;
_global.omg = false;
_global.spotted = false;
_global.playerVisible = true;
_global.redSwitch = false;
_global.blueSwitch = false;
_global.greenSwitch = false;
_global.exitUp = false;
onEnterFrame = function () {
if (_global.levelComplete) {
inControl = false;
this.gotoAndStop("out");
}
if (_global.spotted) {
_global.playerVisible = true;
myColor = new Color(_root.player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
inControl = false;
this.gotoAndStop("dead");
}
if (inControl) {
if (_global.doubleJumping) {
this.gotoAndStop("double");
}
if (_global.jump && (!_global.doubleJumping)) {
if (running) {
this.gotoAndStop("run");
} else {
_global.playerIdle = true;
if (_global.playerHacking) {
this.gotoAndStop("idleHack");
} else {
this.gotoAndStop("idle");
}
}
} else if (!_global.doubleJumping) {
this.gotoAndStop("jump");
}
if ((Key.isDown(37) or Key.isDown(39)) or Key.isDown(38)) {
_global.playerIdle = false;
}
setVis++;
if (setVis > 1) {
_global.playerVisible = true;
myColor = new Color(_root.player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
setVis = 0;
}
if (Key.isDown(39) or Key.isDown(37)) {
running = true;
} else {
running = false;
}
if (!_root.ground.hitTest(this._x, this._y + 10, true)) {
_global.falling = true;
}
if (_root.ground.hitTest(this._x, this._y + 11, true)) {
_global.doubleJumping = false;
_global.doubleJump = false;
_global.jump = true;
_global.falling = false;
while (_root.ground.hitTest(this._x, this._y + 9, true)) {
this._y--;
}
}
if (_global.falling == true) {
_global.gravity = _global.gravity + gravityaccel;
} else {
_global.gravity = 0;
}
if (Key.isDown(39)) {
this._x = this._x + _global.moveSpeed;
this._xscale = 100;
}
if (Key.isDown(37)) {
this._x = this._x - _global.moveSpeed;
this._xscale = -100;
}
if (_root.ground.hitTest(this._x, this._y - 11, true)) {
_global.gravity = 1;
while (_root.ground.hitTest(this._x, this._y - 10, true)) {
this._y++;
}
}
if (xaccel > 0) {
this._xscale = 100;
}
if (xaccel < 0) {
this._xscale = -100;
}
if (!Key.isDown(38)) {
pressOnce = 0;
}
if (Key.isDown(38) && (_global.jump == true)) {
_global.gravity = _global.gravity - (Math.cos(3.141593 * ((this._rotation * -1) / 180)) * maxjump);
_global.jump = false;
_global.doubleJump = true;
pressOnce = 1;
}
if ((Key.isDown(38) && (_global.doubleJump == true)) && (pressOnce == 0)) {
_global.gravity = 0;
_global.gravity = _global.gravity - (Math.cos(3.141593 * ((this._rotation * -1) / 180)) * maxjump);
_global.doubleJump = false;
_global.doubleJumping = true;
}
leftx = this._x + (Math.cos(3.141593 * (((this._rotation * -1) + 180) / 180)) * 7);
lefty = this._y - (Math.sin(3.141593 * (((this._rotation * -1) + 180) / 180)) * 7);
rightx = this._x + (Math.cos(3.141593 * ((this._rotation * -1) / 180)) * 7);
righty = this._y - (Math.sin(3.141593 * ((this._rotation * -1) / 180)) * 7);
if (_root.ground.hitTest(leftx, lefty, true)) {
this._x = this._x + _global.moveSpeed;
}
if (_root.ground.hitTest(rightx, righty, true)) {
this._x = this._x - _global.moveSpeed;
}
this._y = this._y + _global.gravity;
}
};
Symbol 332 MovieClip Frame 2
stop();
Symbol 332 MovieClip Frame 3
stop();
Symbol 332 MovieClip Frame 4
stop();
Symbol 332 MovieClip Frame 5
stop();
Symbol 332 MovieClip Frame 6
stop();
Symbol 332 MovieClip Frame 7
stop();
Symbol 332 MovieClip Frame 8
stop();
Symbol 345 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local3 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local3);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local3;
_parent._yscale = 100 * _local4;
}
stop();
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
camControl();
Symbol 349 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.omg) {
gotoAndStop (2);
}
};
Symbol 349 MovieClip Frame 2
onEnterFrame = function () {
if (!_global.omg) {
gotoAndStop (1);
}
};
Symbol 352 MovieClip Frame 30
stop();
Symbol 353 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_global.levelComplete) {
gotoAndStop (2);
}
};
Symbol 382 MovieClip Frame 10
stop();
Symbol 383 MovieClip Frame 1
stop();
mute = false;
Symbol 383 MovieClip Frame 6
mute = true;
Symbol 384 MovieClip Frame 1
_root.lvlcomplete_sound = new Sound();
_root.lvlcomplete_sound.attachSound("lvlcomplete");
Oncelvl = 0;
_root.ambience_sound = new Sound();
_root.ambience_sound.attachSound("ambience");
_root.ambience_sound.start(0, 999);
_root.mainlvlmusic = new Sound();
_root.mainlvlmusic.attachSound("mainmusic");
_root.mainlvlmusic.start(0, 999);
onEnterFrame = function () {
if (_global.levelComplete && (Oncelvl == 0)) {
_root.ambience_sound.stop();
_root.mainlvlmusic.stop();
_root.lvlcomplete_sound.start(0, 0);
Oncelvl = 1;
}
if (_global.playerVisible) {
warning = "Detectable";
} else {
warning = "hidden";
}
if (_global.spotted) {
clocked = "Spotted";
_root.mainlvlmusic.stop();
_root.ambience_sound.stop();
} else {
clocked = "Safe";
}
};
Instance of Symbol 198 MovieClip in Symbol 384 MovieClip Frame 1
on (release) {
stopAllSounds();
_root.gotoAndStop("mainMenu");
}
Instance of Symbol 169 MovieClip in Symbol 384 MovieClip Frame 1
on (release) {
getURL ("http://www.gazo.com/?refb=intro", "_blank");
}
Symbol 499 MovieClip Frame 1705
stop();
Symbol 501 MovieClip Frame 1
onEnterFrame = function () {
if ((!_global.spotted) && (_root.player.hitTest(this))) {
_global.playerVisible = false;
myColor = new Color(_root.player);
myColorTransform = new Object();
myColorTransform = {rb:-200, gb:-200, bb:-200};
myColor.setTransform(myColorTransform);
}
};
Symbol 503 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 505 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 507 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 509 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 511 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 517 MovieClip Frame 1
pressed = false;
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
_global.redSwitch = true;
pressed = true;
}
if (pressed) {
this._yscale = this._yscale - 10;
if (this._yscale < 50) {
this._yscale = 50;
}
}
};
Symbol 522 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this) && (_root.player._x < this._x)) {
_root.player._x = _root.player._x - _global.moveSpeed;
}
if (_root.player.hitTest(this) && (_root.player._x > this._x)) {
_root.player._x = _root.player._x + _global.moveSpeed;
}
if (_global.redSwitch) {
gotoAndStop (2);
}
};
Symbol 524 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this) && (_root.player._x < this._x)) {
_root.player._x = _root.player._x - _global.moveSpeed;
}
if (_root.player.hitTest(this) && (_root.player._x > this._x)) {
_root.player._x = _root.player._x + _global.moveSpeed;
}
if (_global.greenSwitch) {
gotoAndStop (2);
}
};
Symbol 526 MovieClip Frame 1
pressed = false;
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
_global.greenSwitch = true;
pressed = true;
}
if (pressed) {
this._yscale = this._yscale - 10;
if (this._yscale < 50) {
this._yscale = 50;
}
}
};
Symbol 532 MovieClip Frame 1
onEnterFrame = function () {
this._rotation = this._rotation + 25;
};
Symbol 535 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this.hit)) {
_global.spotted = true;
}
};
Symbol 537 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
if (_global.exitUp == true) {
this.gotoAndStop(2);
}
};
Symbol 539 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 544 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if ((timer > 0) && (timer < 80)) {
if (_root.player.hitTest(this)) {
_root.player._x = _root.player._x + 1.5;
}
this._x = this._x + 1.5;
}
if ((timer > 80) && (timer < 160)) {
if (_root.player.hitTest(this)) {
_root.player._x = _root.player._x - 1.5;
}
this._x = this._x - 1.5;
}
if (timer == 160) {
timer = 0;
}
timer++;
};
Symbol 551 MovieClip Frame 1
onEnterFrame = function () {
this._rotation = this._rotation + 25;
};
Symbol 558 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if (_root.player.hitTest(this.hit)) {
_global.spotted = true;
}
if ((timer > 0) && (timer < 80)) {
this._y = this._y + 1.5;
}
if ((timer > 80) && (timer < 160)) {
this._y = this._y - 1.5;
}
if (timer == 160) {
timer = 0;
}
timer++;
};
Symbol 560 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 562 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 564 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 566 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 571 MovieClip Frame 1
onEnterFrame = function () {
if (_global.playerVisible && (this.hitTest(_root.player))) {
_global.spotted = true;
}
};
Symbol 591 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if ((timer > 0) && (timer < 80)) {
if (_root.player.hitTest(this)) {
_root.player._y = _root.player._y - 3;
}
this._y = this._y - 3;
}
if ((timer > 80) && (timer < 160)) {
if (_root.player.hitTest(this)) {
_root.player._y = _root.player._y + 3;
}
this._y = this._y + 3;
}
if (timer == 160) {
timer = 0;
}
timer++;
};
Symbol 597 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
};
Symbol 602 MovieClip Frame 1
onEnterFrame = function () {
if (_root.player.feet.hitTest(this)) {
_global.gravity = -0.5;
_root.player._y = _root.player._y;
_global.doubleJumping = false;
_global.doubleJump = false;
_global.jump = true;
_global.falling = false;
_global.playerOnblock = true;
} else {
_global.playerOnblock = false;
}
};
Symbol 603 MovieClip Frame 1
gravity = 0;
gravityaccel = 0.2;
pushSpeed = 4;
_global.playerOnblock = false;
onEnterFrame = function () {
if (!_global.playerOnblock) {
if (_root.player.hitTest(this)) {
if (_root.player._x < this._x) {
_root.player._x = _root.player._x - _global.moveSpeed;
this._x = this._x + pushSpeed;
} else {
_root.player._x = _root.player._x + _global.moveSpeed;
this._x = this._x - pushSpeed;
}
}
}
if (!_root.ground.hitTest(this._x, this._y + 10, true)) {
falling = true;
grounded = false;
}
if (_root.ground.hitTest(this._x, this._y + 11, true)) {
grounded = true;
falling = false;
while (_root.ground.hitTest(this._x, this._y + 9, true)) {
this._y--;
}
}
if (falling == true) {
gravity = gravity + gravityaccel;
} else {
gravity = 0;
}
if (_root.ground.hitTest(this._x, this._y - 11, true)) {
gravity = 1;
while (_root.ground.hitTest(this._x, this._y - 10, true)) {
this._y++;
}
}
leftx = this._x + (Math.cos(3.141593 * (((this._rotation * -1) + 180) / 180)) * 10);
lefty = this._y - (Math.sin(3.141593 * (((this._rotation * -1) + 180) / 180)) * 10);
rightx = this._x + (Math.cos(3.141593 * ((this._rotation * -1) / 180)) * 10);
righty = this._y - (Math.sin(3.141593 * ((this._rotation * -1) / 180)) * 10);
if (_root.ground.hitTest(leftx, lefty, true)) {
this._x = this._x + pushSpeed;
}
if (_root.ground.hitTest(rightx, righty, true)) {
this._x = this._x - pushSpeed;
}
this._y = this._y + gravity;
};
Symbol 609 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this) && (_root.player._x < this._x)) {
_root.player._x = _root.player._x - _global.moveSpeed;
}
if (_root.player.hitTest(this) && (_root.player._x > this._x)) {
_root.player._x = _root.player._x + _global.moveSpeed;
}
if (_global.blueSwitch) {
gotoAndStop (2);
}
};
Symbol 611 MovieClip Frame 1
pressed = false;
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
_global.blueSwitch = true;
pressed = true;
}
if (pressed) {
this._yscale = this._yscale - 10;
if (this._yscale < 50) {
this._yscale = 50;
}
}
};
Symbol 613 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
if (_global.exitUp == true) {
this.gotoAndStop(2);
}
};
Symbol 616 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if (_root.player.hitTest(this.hit)) {
_global.spotted = true;
}
if ((timer > 0) && (timer < 100)) {
this._y = this._y + 1.5;
}
if ((timer > 100) && (timer < 200)) {
this._y = this._y - 1.5;
}
if (timer == 200) {
timer = 0;
}
timer++;
};
Symbol 618 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.player.hitTest(this)) {
this._alpha = this._alpha + 10;
} else {
this._alpha = this._alpha - 10;
}
if (this._alpha < 1) {
this._alpha = 0;
}
if (this._alpha > 69) {
this._alpha = 70;
}
if (_global.exitUp == true) {
this.gotoAndStop(2);
}
};
Symbol 626 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if (_root.player.hitTest(this.hit)) {
_global.spotted = true;
}
if ((timer > 0) && (timer < 100)) {
this._x = this._x + 1.5;
}
if ((timer > 100) && (timer < 200)) {
this._x = this._x - 1.5;
}
if (timer == 200) {
timer = 0;
}
timer++;
};
Symbol 629 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if (_root.player.hitTest(this.hit)) {
_global.spotted = true;
}
if ((timer > 0) && (timer < 80)) {
this._x = this._x + 1.5;
}
if ((timer > 80) && (timer < 160)) {
this._x = this._x - 1.5;
}
if (timer == 160) {
timer = 0;
}
timer++;
};
Symbol 647 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if ((timer > 0) && (timer < 80)) {
if (_root.player.hitTest(this)) {
_root.player._y = _root.player._y - 3;
}
this._y = this._y - 3;
}
if ((timer > 80) && (timer < 160)) {
if (_root.player.hitTest(this)) {
_root.player._y = _root.player._y + 3;
}
this._y = this._y + 3;
}
if (timer == 160) {
timer = 0;
}
timer++;
};
Symbol 655 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if ((!_global.spotted) && (_root.player.hitTest(this))) {
_global.playerVisible = false;
myColor = new Color(_root.player);
myColorTransform = new Object();
myColorTransform = {rb:-200, gb:-200, bb:-200};
myColor.setTransform(myColorTransform);
}
if ((timer > 0) && (timer < 80)) {
this._x = this._x + 1.5;
}
if ((timer > 80) && (timer < 160)) {
this._x = this._x - 1.5;
}
if (timer == 160) {
timer = 0;
}
timer++;
};
Symbol 663 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if ((timer > 0) && (timer < 80)) {
if (_root.player.hitTest(this)) {
_root.player._x = _root.player._x + 1.5;
}
this._x = this._x + 1.5;
}
if ((timer > 80) && (timer < 160)) {
if (_root.player.hitTest(this)) {
_root.player._x = _root.player._x - 1.5;
}
this._x = this._x - 1.5;
}
if (timer == 160) {
timer = 0;
}
timer++;
};
Symbol 681 MovieClip Frame 1
_root.CSMusicSound = new Sound();
_root.CSMusicSound.attachSound("CSmusic");
_root.CSMusicSound.start(0, 999);
Symbol 681 MovieClip Frame 981
stop();
_root.gotoAndStop("mainMenu");