Frame 1
if (_currentframe == 1) {
Stage.showMenu = false;
}
NewgroundsAPI.connectMovie(4280);
Frame 2
Stage.showMenu = true;
play();
Frame 3
function item1() {
_root.gotoAndStop();
}
function musicOff() {
if (counting >= 1) {
counting = 0;
bgm.stop();
}
}
function musicOn() {
counting = 1;
bgm.start(0, 99);
}
function nothing() {
}
var bgm = new Sound(this);
bgm.attachSound("bgm");
var counting = 1;
var Playing = false;
bgm.setVolume(100);
id = setInterval(function () {
if (counting == 0) {
menuItem4.enabled = true;
menuItem3.enabled = false;
bgm.stop();
}
if (counting >= 1) {
menuItem3.enabled = true;
menuItem4.enabled = false;
}
if (count == 1) {
counting++;
}
}, 10);
bgm.start(0, 99);
var cMenu = new ContextMenu();
cMenu.builtInItems.quality = true;
cMenu.builtInItems.forward_back = false;
cMenu.builtInItems.print = false;
cMenu.builtInItems.save = false;
cMenu.builtInItems.zoom = false;
cMenu.builtInItems.rewind = false;
cMenu.builtInItems.play = false;
cMenu.builtInItems.loop = false;
var menuItem3 = new ContextMenuItem("Music Off", musicOff);
var menuItem4 = new ContextMenuItem("Music On", musicOn);
var menuItem2 = new ContextMenuItem("Zrb - All Rights Reserved", nothing);
menuItem2.enabled = false;
menuItem2.separatorBefore = true;
menuItem4.separatorBefore = true;
_root.menu = cMenu;
cMenu.customItems.push(menuItem1, menuItem4, menuItem3, menuItem2);
_focusrect = false;
onEnterFrame = function () {
if (_currentframe < 7) {
Mouse.show();
}
};
stop();
Instance of Symbol 132 MovieClip "wateri" in Frame 3
onClipEvent (load) {
_visible = false;
gotoAndStop (4);
}
Instance of Symbol 132 MovieClip "firei" in Frame 3
onClipEvent (load) {
_visible = false;
gotoAndStop (3);
}
Instance of Symbol 136 MovieClip in Frame 3
on (rollOver) {
if (_alpha >= 100) {
gotoAndStop (4);
this.useHandCursor = false;
}
}
on (rollOut) {
if (_alpha >= 100) {
this.gotoAndStop(1);
}
}
on (press) {
if (_alpha >= 100) {
_root.gotoAndStop("game");
}
}
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
}
Instance of Symbol 139 MovieClip in Frame 3
on (rollOver) {
this.useHandCursor = false;
}
on (press) {
if (_root.wateri._visible == false) {
_root.wateri._visible = true;
_y = 25;
gotoAndStop (4);
} else {
_root.wateri._visible = false;
_y = 150;
gotoAndStop (3);
}
}
onClipEvent (load) {
stop();
}
Instance of Symbol 142 MovieClip in Frame 3
on (rollOver) {
this.useHandCursor = false;
}
on (press) {
if (_root.firei._visible == false) {
_root.firei._visible = true;
_y = 25;
gotoAndStop (3);
} else {
_root.firei._visible = false;
_y = 150;
gotoAndStop (4);
}
}
onClipEvent (enterFrame) {
if (_y > 25) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
Frame 9
var fighting = true;
var p1sp = 0;
var p2sp = 0;
var fireShoot = 0;
var fCount = 1;
var waterShoot = 0;
var wCount = 1;
var spikeShoot = 0;
var spkCount = 1;
var spbShoot = 0;
var wsbCount = 1;
var Pause = false;
var kHeld = 0;
var sDeath = 0;
var sdDelay = 3;
var music = false;
var countDown = true;
pausing._visible = false;
sd._visible = false;
Mouse.hide();
coutDown = true;
onEnterFrame = function () {
if (Key.isDown(2)) {
Mouse.show();
} else if (Pause == false) {
Mouse.hide();
}
if (countDown == true) {
player1.State = "respawn2";
player2.State = "respawn2";
}
if (countDown == false) {
if (sDeath == 1) {
player1.State = "respawn2";
player2.State = "respawn2";
hud.p1spb.gotoAndStop(5);
hud.p1hp.gotoAndStop(96);
hud.p2spb.gotoAndStop(5);
hud.p2hp.gotoAndStop(96);
}
if (hud.p1spb._currentframe > 1) {
p1sp = 1;
}
if (hud.p1spb._currentframe == 1) {
p1sp = 0;
}
if (hud.p1spb._currentframe == 101) {
p1sp = 2;
}
if (hud.p2spb._currentframe > 1) {
p2sp = 1;
}
if (hud.p2spb._currentframe == 1) {
p2sp = 0;
}
if (hud.p2spb._currentframe == 101) {
p2sp = 2;
}
if (hud.p2hp._currentframe >= 101) {
player2.State = "death";
}
if (hud.p1hp._currentframe >= 101) {
player1.State = "death";
}
if (Key.isDown(80) && (kHeld == 0)) {
kHeld++;
if (Pause == false) {
Pause = true;
pausing._visible = true;
Mouse.show();
} else {
Mouse.hide();
Pause = false;
pausing._visible = false;
}
}
if (!Key.isDown(80)) {
kHeld = 0;
}
if (fCount > 100) {
fCount = 1;
}
if (fireShoot == 1) {
duplicateMovieClip (fBall, "fBall" + fCount, fCount);
fCount++;
}
if (wCount > 100) {
wCount = 1;
}
if (waterShoot == 1) {
duplicateMovieClip (wBall, "wBall" + wCount, wCount);
wCount++;
}
if (spkCount > 100) {
spkCount = 1;
}
if (spikeShoot == 1) {
duplicateMovieClip (fSpikes, "fSpikes" + spkCount, spkCount);
spkCount++;
}
if (wsbCountt > 100) {
wsbCount = 1;
}
if (spbShoot == 1) {
duplicateMovieClip (wSpBall, "wSpBall" + wsbCount, wsbCount);
wsbCount++;
}
}
};
stop();
timing = setInterval(function () {
if ((Pause == false) && (countDown == false)) {
if (tima.text > 0) {
tima.text = tima.text - 1;
} else if (tima.text == 0) {
sd._visible = true;
sd.play();
sDeath++;
}
}
}, 1000);
Instance of Symbol 160 MovieClip "ground" in Frame 9
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 193 MovieClip "player2" in Frame 9
onClipEvent (load) {
var ground = _root.ground;
var enemy = _root.player1;
var grav = 0;
var gravity = 2;
var speed = 7;
var jHeight = 18;
var jSpeed = 5;
var fall = jSpeed;
var kDown = Key.isDown;
var rKey = 68;
var lKey = 65;
var uKey = 87;
var pKey = 74;
var kKey = 75;
var sKey = 76;
var spKey = 32;
var Face = "left";
var scale = 100;
var State = "normal";
var count = 0;
var count2 = 0;
}
onClipEvent (enterFrame) {
if (!_root.Pause) {
if (_y > (Stage.height + 20)) {
State = "respawn";
}
if (Face == "right") {
_xscale = scale;
}
if (Face == "left") {
_xscale = (-scale);
}
if (State == "normal") {
_alpha = 100;
count = 0;
count2 = 0;
_y = (_y + grav);
grav = grav + gravity;
while (ground.hitTest(_x, _y, true)) {
_y = (_y - gravity);
grav = 0;
}
if (kDown(rKey)) {
Face = "right";
_x = (_x + speed);
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("run");
}
} else if (kDown(lKey)) {
Face = "left";
_x = (_x - speed);
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("run");
}
}
if ((!kDown(rKey)) && (!kDown(lKey))) {
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("idle");
}
}
if (kDown(uKey) && (ground.hitTest(_x, _y + 3, true))) {
_y = (_y - jSpeed);
grav = -jHeight;
}
if (grav < 0) {
gotoAndStop ("jump");
}
if ((grav > fall) && (!ground.hitTest(_x, _y + 3, true))) {
gotoAndStop ("fall");
}
if (kDown(pKey) && (ground.hitTest(_x, _y + 3, true))) {
State = "punch";
}
if (kDown(kKey) && (ground.hitTest(_x, _y + 3, true))) {
State = "kick";
}
if (kDown(sKey)) {
if (((_root.p2sp > 0) && (ground.hitTest(_x, _y + 3, true))) && (_root.player1.State != "death")) {
State = "shoot";
}
}
if (kDown(spKey)) {
if (_root.p2sp == 2) {
State = "special";
}
}
}
if (State == "punch") {
gotoAndStop ("punch1");
}
if (State == "respawn") {
if (count < 1) {
_root.hud.p2hp.gotoAndStop(_root.hud.p2hp._currentframe + 5);
count++;
}
_x = 430;
_y = 178;
gotoAndStop ("idle");
_alpha = 70;
Face = "left";
}
if (State == "respawn2") {
_x = 430;
_y = 160;
gotoAndStop ("idle2");
_alpha = 100;
Face = "left";
}
if (State == "punch2") {
gotoAndStop ("punch2");
}
if (State == "punch3") {
gotoAndStop ("punch3");
}
if (State == "kick") {
gotoAndStop ("kick1");
}
if (State == "kick2") {
gotoAndStop ("kick2");
}
if (State == "kick3") {
gotoAndStop ("kick3");
}
if (State == "shoot") {
gotoAndStop ("shoot");
}
if (State == "special") {
gotoAndStop ("special");
}
if (State == "hit") {
if (enemy._x > _x) {
_x = (_x - 0.5);
Face = "right";
}
if (enemy._x < _x) {
_x = (_x + 0.5);
Face = "left";
}
gotoAndStop ("hit");
if (count < 1) {
_root.hud.p2hp.gotoAndStop(_root.hud.p2hp._currentframe + 1);
count++;
}
}
if (State == "hit3") {
if (enemy._x > _x) {
_x = (_x - 2);
Face = "right";
}
if (enemy._x < _x) {
_x = (_x + 2);
Face = "left";
}
if (!ground.hitTest(_x, _y + 3, true)) {
_y = (_y + grav);
grav = grav + 1;
}
while (ground.hitTest(_x, _y, true)) {
_y = (_y - 1);
grav = 0;
}
gotoAndStop ("hit");
if (count < 1) {
_root.hud.p2hp.gotoAndStop(_root.hud.p2hp._currentframe + 5);
count++;
}
}
if (State == "hit2") {
if (enemy._x > _x) {
_x = (_x - 5);
Face = "right";
}
if (enemy._x < _x) {
_x = (_x + 5);
Face = "left";
}
if (!ground.hitTest(_x, _y + 3, true)) {
_y = (_y + grav);
grav = grav + 1;
}
while (ground.hitTest(_x, _y, true)) {
_y = (_y - 1);
grav = 0;
}
gotoAndStop ("hit2");
if (count == 0) {
_root.hud.p2hp.gotoAndStop(_root.hud.p2hp._currentframe + 20);
count++;
}
}
if (State == "death") {
gotoAndStop ("death");
}
}
if (_root.Pause == true) {
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("idle");
}
}
}
Instance of Symbol 214 MovieClip "player1" in Frame 9
onClipEvent (load) {
var ground = _root.ground;
var enemy = _root.player2;
var grav = 0;
var gravity = 2;
var speed = 7;
var jHeight = 18;
var jSpeed = 5;
var fall = jSpeed;
var kDown = Key.isDown;
var rKey = 39;
var lKey = 37;
var uKey = 38;
var pKey = 97;
var kKey = 98;
var sKey = 99;
var spKey = 96;
var Face = "right";
var scale = 100;
var State = "normal";
var count = 0;
}
onClipEvent (enterFrame) {
if (!_root.Pause) {
if (_y > (Stage.height + 20)) {
State = "respawn";
}
if (Face == "right") {
_xscale = scale;
}
if (Face == "left") {
_xscale = (-scale);
}
if (State == "normal") {
_alpha = 100;
count = 0;
_y = (_y + grav);
grav = grav + gravity;
while (ground.hitTest(_x, _y, true)) {
_y = (_y - gravity);
grav = 0;
}
if (kDown(rKey)) {
Face = "right";
_x = (_x + speed);
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("run");
}
} else if (kDown(lKey)) {
Face = "left";
_x = (_x - speed);
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("run");
}
}
if ((!kDown(rKey)) && (!kDown(lKey))) {
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("idle");
}
}
if (kDown(uKey) && (ground.hitTest(_x, _y + 3, true))) {
_y = (_y - jSpeed);
grav = -jHeight;
}
if (grav < 0) {
gotoAndStop ("jump");
}
if ((grav > fall) && (!ground.hitTest(_x, _y + 3, true))) {
gotoAndStop ("fall");
}
if (kDown(pKey) && (ground.hitTest(_x, _y + 3, true))) {
State = "punch";
}
if (kDown(kKey) && (ground.hitTest(_x, _y + 3, true))) {
State = "kick";
}
if (kDown(sKey)) {
if ((_root.p1sp > 0) && (ground.hitTest(_x, _y + 3, true))) {
State = "shoot";
}
}
if (kDown(spKey)) {
if (_root.p1sp == 2) {
State = "special";
}
}
}
if (State == "death") {
gotoAndStop ("death");
}
if (State == "punch") {
gotoAndStop ("punch1");
}
if (State == "punch2") {
gotoAndStop ("punch2");
}
if (State == "punch3") {
gotoAndStop ("punch3");
}
if (State == "kick") {
gotoAndStop ("kick1");
}
if (State == "kick2") {
gotoAndStop ("kick2");
}
if (State == "respawn") {
_x = 120;
_y = 178;
if (count == 0) {
_root.hud.p1hp.gotoAndStop(_root.hud.p1hp._currentframe + 1);
count++;
}
gotoAndStop ("idle");
_alpha = 70;
Face = "right";
}
if (State == "respawn2") {
_x = 120;
_y = 160;
gotoAndStop ("idle2");
_alpha = 100;
Face = "right";
}
if (State == "kick3") {
gotoAndStop ("kick3");
}
if (State == "shoot") {
gotoAndStop ("shoot");
}
if (State == "special") {
gotoAndStop ("special");
}
if (State == "hit") {
if (enemy._x > _x) {
_x = (_x - 0.5);
Face = "right";
}
if (enemy._x < _x) {
_x = (_x + 0.5);
Face = "left";
}
if (!ground.hitTest(_x, _y + 3, true)) {
_y = (_y + grav);
grav = grav + 1;
}
while (ground.hitTest(_x, _y, true)) {
_y = (_y - 1);
grav = 0;
}
gotoAndStop ("hit");
if (count == 0) {
_root.hud.p1hp.gotoAndStop(_root.hud.p1hp._currentframe + 1);
count++;
}
}
if (State == "hit3") {
if (enemy._x > _x) {
_x = (_x - 2);
Face = "right";
}
if (enemy._x < _x) {
_x = (_x + 2);
Face = "left";
}
if (!ground.hitTest(_x, _y + 3, true)) {
_y = (_y + grav);
grav = grav + 1;
}
while (ground.hitTest(_x, _y, true)) {
_y = (_y - 1);
grav = 0;
}
gotoAndStop ("hit");
if (count == 0) {
_root.hud.p1hp.gotoAndStop(_root.hud.p1hp._currentframe + 5);
count++;
}
}
if (State == "hit2") {
if (enemy._x > _x) {
_x = (_x - 5);
Face = "right";
}
if (enemy._x < _x) {
_x = (_x + 5);
Face = "left";
}
gotoAndStop ("hit2");
if (count == 0) {
_root.hud.p1hp.gotoAndStop(_root.hud.p1hp._currentframe + 10);
count++;
}
}
}
if (_root.Pause == true) {
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("idle");
}
}
}
Instance of Symbol 231 MovieClip "wBall" in Frame 9
onClipEvent (load) {
if (_root.player2.Face == "right") {
_x = (_root.player2._x + 25);
_rotation = 90;
}
if (_root.player2.Face == "left") {
_x = (_root.player2._x - 25);
_rotation = -90;
}
_y = (_root.player2._y - 22);
var speed = 15;
var Check = 0;
if (_name == "wBall") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((this._x > (Stage.width + 50)) || (this._x < -50)) {
removeMovieClip(this);
}
if (_name == "wBall") {
_y = 1000;
} else {
if (this.hitTest(_root.player1) && (_root.player1.State != "respawn")) {
_root.player1.State = "hit3";
if (_root.player1.State == "hit3") {
removeMovieClip(this);
}
}
if (_root.Pause == false) {
if ((_root.player2.Face == "right") && (Check == 0)) {
Check = 1;
}
if ((_root.player2.Face == "left") && (Check == 0)) {
Check = 2;
}
if (Check == 1) {
_x = (_x + speed);
_rotation = 90;
}
if (Check == 2) {
_x = (_x - speed);
_rotation = -90;
}
}
}
}
Instance of Symbol 234 MovieClip "wSpBall" in Frame 9
onClipEvent (load) {
if (_name == "wSpBall") {
_visible = false;
}
if (_root.player2.Face == "right") {
_x = (_root.player2._x + 25);
_rotation = 90;
}
if (_root.player2.Face == "left") {
_x = (_root.player2._x - 25);
_rotation = -90;
}
_y = (_root.player2._y - 22);
var speed = 15;
var a = 0.5;
var Check = 0;
}
onClipEvent (enterFrame) {
if ((this._x > (Stage.width + 50)) || (this._x < -50)) {
removeMovieClip(this);
}
if (_name == "wSpBall") {
_visible = false;
} else if (_root.Pause == false) {
if ((this.hitTest(_root.player1) && (_root.player1.State != "special")) && (_root.player1.State != "respawn")) {
if (((_root.player2.Face == "right") && (_root.player1._x > _root.player2._x)) || ((_root.player2.Face == "left") && (_root.player2._x > _root.player1._x))) {
_root.player1.State = "hit2";
removeMovieClip(this);
}
}
if ((_root.player2.Face == "right") && (Check == 0)) {
Check = 1;
}
if ((_root.player2.Face == "left") && (Check == 0)) {
Check = 2;
}
if (Check == 1) {
_x = (_x + speed);
speed = speed + a;
_rotation = 90;
}
if (Check == 2) {
_x = (_x - speed);
speed = speed + a;
_rotation = -90;
}
}
}
Instance of Symbol 237 MovieClip "fSpikes" in Frame 9
onClipEvent (load) {
_x = _root.player1._x;
_y = (_root.player1._y - 75);
if (_name == "fSpikes") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_name == "fSpikes") || (_root.fighting == false)) {
_visible = false;
}
}
Instance of Symbol 16 MovieClip [fireBall] "fBall" in Frame 9
onClipEvent (load) {
if (_root.player1.Face == "right") {
_x = (_root.player1._x + 25);
_rotation = 90;
}
if (_root.player1.Face == "left") {
_x = (_root.player1._x - 25);
_rotation = -90;
}
_y = (_root.player1._y - 22);
var speed = 15;
var Check = 0;
if (_name == "fBall") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((this._x > (Stage.width + 50)) || (this._x < -50)) {
removeMovieClip(this);
}
if (_name == "fBall") {
_y = 1000;
} else {
if (this.hitTest(_root.player2) && (_root.player2.State != "respawn")) {
_root.player2.State = "hit3";
if (_root.player2.State == "hit3") {
removeMovieClip(this);
}
}
if (_root.Pause == false) {
if ((_root.player1.Face == "right") && (Check == 0)) {
Check = 1;
}
if ((_root.player1.Face == "left") && (Check == 0)) {
Check = 2;
}
if (Check == 1) {
_x = (_x + speed);
_rotation = 90;
}
if (Check == 2) {
_x = (_x - speed);
_rotation = -90;
}
}
}
}
Instance of Symbol 254 MovieClip "go1" in Frame 9
onClipEvent (enterFrame) {
if (_currentframe == 36) {
_root.gotoAndStop("p2win");
}
}
Instance of Symbol 254 MovieClip "go2" in Frame 9
onClipEvent (enterFrame) {
if (_currentframe == 36) {
_root.gotoAndStop("p1win");
}
}
Instance of Symbol 277 MovieClip "pausing" in Frame 9
onClipEvent (enterFrame) {
this.swapDepths(0);
if (_root.fighting == false) {
unloadMovie (this);
}
}
Frame 15
_root.fighting = false;
delete _root.onEnterFrame;
Mouse.show();
stop();
_root.bgm.stop();
_root.counting = 0;
Instance of Symbol 281 MovieClip in Frame 15
on (press) {
_root.gotoAndStop("menu");
}
Frame 21
stop();
_root.bgm.stop();
_root.counting = 0;
Instance of Symbol 281 MovieClip in Frame 21
on (press) {
_root.gotoAndStop("menu");
_root.bgm.stop();
}
Symbol 33 MovieClip Frame 40
stop();
Symbol 47 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 48 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 23 MovieClip in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 49 MovieClip Frame 101
play();
Symbol 49 MovieClip Frame 165
stop();
Symbol 55 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 61 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 63 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 83 Button
on (press) {
getURL ("http://zrb.newgrounds.com", "_blank");
}
Symbol 284 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 132 MovieClip Frame 1
if (_name == "wateri") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.wateri._visible) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
stop();
Symbol 142 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.firei._visible) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Symbol 161 MovieClip Frame 22
_root.player2.State = "normal";
Symbol 162 MovieClip Frame 40
if (_root.countDown == false) {
_root.player2.State = "normal";
} else {
gotoAndPlay (1);
}
Symbol 164 MovieClip Frame 6
stop();
Symbol 165 MovieClip Frame 6
stop();
Symbol 170 MovieClip Frame 9
sound = new Sound(this);
sound.attachSound("woosh");
sound.start(0.1, 0);
sound.setVolume(100);
Instance of Symbol 169 MovieClip "b" in Symbol 170 MovieClip Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player1)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2.Face == "left"))) {
_root.player1.State = "hit";
}
}
}
Symbol 170 MovieClip Frame 13
_root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5);
Symbol 170 MovieClip Frame 21
if (Key.isDown(74)) {
_root.player2.State = "punch2";
}
if (Key.isDown(75)) {
_root.player2.State = "kick2";
}
Symbol 170 MovieClip Frame 25
_root.player2.State = "normal";
Symbol 172 MovieClip Frame 11
stop();
Symbol 173 MovieClip Frame 5
sound = new Sound(this);
sound.attachSound("woosh2");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 173 MovieClip Frame 8
onEnterFrame = function () {
if (b.hitTest(_root.player1)) {
if (((_root.player2.Face == "right") && (_root.player2._x < _root.player1._x)) || ((_root.player2.Face == "left") && (_root.player1._x < _root.player2._x))) {
_root.player1.State = "hit";
}
}
};
Symbol 173 MovieClip Frame 9
_root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5);
Symbol 173 MovieClip Frame 17
if (Key.isDown(74)) {
_root.player2.State = "punch3";
}
if (Key.isDown(75)) {
_root.player2.State = "kick3";
}
Symbol 173 MovieClip Frame 21
_root.player2.State = "normal";
Symbol 174 MovieClip Frame 4
sound = new Sound(this);
sound.attachSound("woosh1");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 174 MovieClip Frame 5
b.onEnterFrame = function () {
if (b.hitTest(_root.player1)) {
if (((_root.player2.Face == "right") && (_root.player1._x > _root.player2._x)) || ((_root.player2.Face == "left") && (_root.player1._x > _root.player2._x))) {
_root.player1.State = "hit";
_root.player1._y = _root.player1._y - 3;
}
}
};
Symbol 174 MovieClip Frame 7
_root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5);
Symbol 174 MovieClip Frame 8
b.onEnterFrame = function () {
if (b.hitTest(_root.player1)) {
if (((_root.player2.Face == "right") && (_root.player1._x > _root.player2._x)) || ((_root.player2.Face == "left") && (_root.player1._x < _root.player2._x))) {
_root.player1.State = "hit";
_root.player1._y = _root.player1._y - 3;
}
}
};
Symbol 174 MovieClip Frame 14
if (Key.isDown(74)) {
_root.player2.State = "punch3";
}
if (Key.isDown(75)) {
_root.player2.State = "kick3";
}
Symbol 174 MovieClip Frame 15
_root.player2.State = "normal";
Symbol 175 MovieClip Frame 5
sound = new Sound(this);
sound.attachSound("woosh");
sound.start(0.1, 0);
sound.setVolume(100);
Instance of Symbol 77 MovieClip in Symbol 175 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player1)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x < _root.player1._x))) {
_root.player1.State = "hit";
}
}
}
Symbol 175 MovieClip Frame 9
_root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5);
Symbol 175 MovieClip Frame 17
if (Key.isDown(74)) {
_root.player2.State = "punch2";
}
if (Key.isDown(75)) {
_root.player2.State = "kick2";
}
Symbol 175 MovieClip Frame 20
_root.player2.State = "normal";
Symbol 176 MovieClip Frame 5
sound = new Sound(this);
sound.attachSound("woosh2");
sound.start(0.05, 0);
sound.setVolume(100);
Instance of Symbol 75 MovieClip in Symbol 176 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player1)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x < _root.player1._x))) {
_root.player1.State = "hit";
}
}
}
Symbol 176 MovieClip Frame 9
_root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5);
Symbol 176 MovieClip Frame 16
if (Key.isDown(74)) {
_root.player2.State = "punch3";
}
if (Key.isDown(75)) {
_root.player2.State = "kick3";
}
Symbol 176 MovieClip Frame 20
_root.player2.State = "normal";
Symbol 177 MovieClip Frame 3
sound = new Sound(this);
sound.attachSound("woosh1");
sound.start(0.05, 0);
sound.setVolume(100);
Instance of Symbol 75 MovieClip in Symbol 177 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player1)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x < _root.player1._x))) {
_root.player1.State = "hit";
}
}
}
Instance of Symbol 77 MovieClip in Symbol 177 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.player1)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x < _root.player1._x))) {
_root.player1.State = "hit";
}
}
}
Symbol 177 MovieClip Frame 15
_root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe + 5);
Symbol 177 MovieClip Frame 21
_root.player2.State = "normal";
Symbol 179 MovieClip Frame 11
stop();
Symbol 181 MovieClip Frame 11
stop();
Symbol 184 MovieClip Frame 1
if (_root.p2sp >= 1) {
play();
} else {
_root.player2.State = "normal";
}
Symbol 184 MovieClip Frame 9
sound = new Sound(this);
sound.attachSound("shoot");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 184 MovieClip Frame 16
_root.waterShoot = 1;
_root.hud.p2spb.gotoAndStop(_root.hud.p2spb._currentframe - 5);
Symbol 184 MovieClip Frame 17
_root.waterShoot = 0;
Symbol 184 MovieClip Frame 21
if (!Key.isDown(76)) {
_root.player2.State = "normal";
} else {
gotoAndPlay (1);
}
Symbol 185 MovieClip Frame 9
stop();
Symbol 189 MovieClip Frame 9
sound = new Sound(this);
sound.attachSound("special");
sound.start(0.1, 0);
sound.setVolume(100);
Symbol 189 MovieClip Frame 19
_root.spbShoot = 1;
_root.hud.p2spb.gotoAndStop(1);
Symbol 189 MovieClip Frame 20
_root.spbShoot = 0;
Symbol 189 MovieClip Frame 25
_root.player2.State = "normal";
Symbol 189 MovieClip Frame 26
_root.ctrl2.gotoAndStop("main");
Symbol 190 MovieClip Frame 1
if ((_root.player2.State == "hit") || (_root.player2.State == "hit3")) {
sound = new Sound(this);
sound.attachSound("hit");
sound.start(0.3, 0);
sound.setVolume(100);
}
Symbol 190 MovieClip Frame 11
_root.player2.State = "normal";
Symbol 191 MovieClip Frame 1
if (_root.player2.State == "hit2") {
sound = new Sound(this);
sound.attachSound("stab");
sound.start(0, 0);
sound.setVolume(100);
}
Symbol 191 MovieClip Frame 13
_root.player2.State = "normal";
Symbol 192 MovieClip Frame 1
_root.player2._name = "loser";
Symbol 192 MovieClip Frame 23
_root.go2.play();
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 23
_root.player1.State = "normal";
Symbol 195 MovieClip Frame 40
if (_root.countDown == false) {
_root.player1.State = "normal";
} else {
gotoAndPlay (1);
}
Symbol 197 MovieClip Frame 6
stop();
Symbol 198 MovieClip Frame 6
stop();
Symbol 201 MovieClip Frame 9
sound = new Sound(this);
sound.attachSound("woosh");
sound.start(0.1, 0);
sound.setVolume(100);
Instance of Symbol 200 MovieClip in Symbol 201 MovieClip Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player2)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x > _root.player1._x))) {
_root.player2.State = "hit";
}
}
}
Symbol 201 MovieClip Frame 13
_root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5);
Symbol 201 MovieClip Frame 21
onEnterFrame = function () {
if (Key.isDown(97)) {
_root.player1.State = "punch2";
}
if (Key.isDown(98)) {
_root.player1.State = "kick2";
}
};
Symbol 201 MovieClip Frame 25
_root.player1.State = "normal";
Symbol 203 MovieClip Frame 11
stop();
Symbol 204 MovieClip Frame 5
sound = new Sound(this);
sound.attachSound("woosh2");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 204 MovieClip Frame 8
b.onEnterFrame = function () {
if (b.hitTest(_root.player2)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x > _root.player1._x))) {
_root.player2.State = "hit";
}
}
};
Symbol 204 MovieClip Frame 9
_root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5);
Symbol 204 MovieClip Frame 17
if (Key.isDown(97)) {
_root.player1.State = "punch3";
}
if (Key.isDown(98)) {
_root.player1.State = "kick3";
}
Symbol 204 MovieClip Frame 21
_root.player1.State = "normal";
Symbol 205 MovieClip Frame 4
sound = new Sound(this);
sound.attachSound("woosh1");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 205 MovieClip Frame 5
b.onEnterFrame = function () {
if (b.hitTest(_root.player2)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x > _root.player1._x))) {
_root.player2.State = "hit";
_root.player2._y = _root.player2._y - 3;
}
}
};
Symbol 205 MovieClip Frame 7
b.onEnterFrame = function () {
if (b.hitTest(_root.player2)) {
_root.player2.State = "hit";
_root.player2._y = _root.player2._y - 2;
}
};
_root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5);
Symbol 205 MovieClip Frame 15
_root.player1.State = "normal";
Symbol 206 MovieClip Frame 5
sound = new Sound(this);
sound.attachSound("woosh");
sound.start(0.1, 0);
sound.setVolume(100);
Instance of Symbol 67 MovieClip "foot" in Symbol 206 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player2)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x > _root.player1._x))) {
_root.player2.State = "hit";
}
}
}
Symbol 206 MovieClip Frame 9
_root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5);
Symbol 206 MovieClip Frame 17
if (Key.isDown(97)) {
_root.player1.State = "punch2";
}
if (Key.isDown(98)) {
_root.player1.State = "kick2";
}
Symbol 206 MovieClip Frame 21
_root.player1.State = "normal";
Symbol 207 MovieClip Frame 5
sound = new Sound(this);
sound.attachSound("woosh2");
sound.start(0.05, 0);
sound.setVolume(100);
Instance of Symbol 65 MovieClip "foot" in Symbol 207 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player2)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x > _root.player1._x))) {
_root.player2.State = "hit";
}
}
}
Symbol 207 MovieClip Frame 9
_root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5);
Symbol 207 MovieClip Frame 16
if (Key.isDown(97)) {
_root.player1.State = "punch3";
}
if (Key.isDown(98)) {
_root.player1.State = "kick3";
}
Symbol 207 MovieClip Frame 20
_root.player1.State = "normal";
Symbol 208 MovieClip Frame 3
sound = new Sound(this);
sound.attachSound("woosh1");
sound.start(0.05, 0);
sound.setVolume(100);
Instance of Symbol 65 MovieClip "foot" in Symbol 208 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player2)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x > _root.player1._x))) {
_root.player2.State = "hit";
}
}
}
Instance of Symbol 67 MovieClip "foot2" in Symbol 208 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player2)) {
if (((_root.player1.Face == "right") && (_root.player2._x > _root.player1._x)) || ((_root.player1.Face == "left") && (_root.player2._x > _root.player1._x))) {
_root.player2.State = "hit";
}
}
}
Symbol 208 MovieClip Frame 11
_root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe + 5);
Symbol 208 MovieClip Frame 21
_root.player1.State = "normal";
Symbol 209 MovieClip Frame 1
if (_root.p1sp > 0) {
play();
} else {
_root.player1.State = "normal";
}
Symbol 209 MovieClip Frame 9
sound = new Sound(this);
sound.attachSound("shoot");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 209 MovieClip Frame 16
if ((_root.p1sp > 0) && (_root.Pause == false)) {
_root.fireShoot = 1;
_root.hud.p1spb.gotoAndStop(_root.hud.p1spb._currentframe - 5);
}
Symbol 209 MovieClip Frame 17
_root.fireShoot = 0;
Symbol 209 MovieClip Frame 21
if (Key.isDown(99)) {
gotoAndPlay (1);
} else {
_root.player1.State = "normal";
}
Symbol 210 MovieClip Frame 11
sound = new Sound(this);
sound.attachSound("special");
sound.start(0.1, 0);
sound.setVolume(100);
Symbol 210 MovieClip Frame 19
_root.spikeShoot = 1;
_root.hud.p1spb.gotoAndStop(1);
Symbol 210 MovieClip Frame 20
_root.spikeShoot = 0;
Symbol 210 MovieClip Frame 31
_root.player1.State = "normal";
Symbol 211 MovieClip Frame 1
if ((_root.player1.State == "hit") || (_root.player1.State == "hit3")) {
sound = new Sound(this);
sound.attachSound("hit");
sound.start(0.3, 0);
sound.setVolume(100);
}
Symbol 211 MovieClip Frame 11
_root.player1.State = "normal";
Symbol 212 MovieClip Frame 1
if (_root.player1.State == "hit2") {
sound = new Sound(this);
sound.attachSound("fwhit");
sound.start(0.1, 0);
sound.setVolume(100);
}
Symbol 212 MovieClip Frame 13
_root.player1.State = "normal";
Symbol 213 MovieClip Frame 1
_root.player1._name = "loserr";
Symbol 213 MovieClip Frame 23
_root.go1.play();
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 101
_root.player2.State = "death";
Symbol 217 MovieClip Frame 102
_root.player2.State = "death";
Symbol 220 MovieClip Frame 1
_root.p2sp = 0;
stop();
Symbol 220 MovieClip Frame 2
_root.p2sp = 1;
Symbol 220 MovieClip Frame 101
_root.p2sp = 2;
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 101
_root.player1.State = "death";
Symbol 222 MovieClip Frame 102
_root.player1.State = "death";
Symbol 224 MovieClip Frame 1
_root.p1sp = 0;
stop();
Symbol 224 MovieClip Frame 2
_root.p1sp = 1;
Symbol 224 MovieClip Frame 101
_root.p1sp = 2;
stop();
Instance of Symbol 236 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
a = 2;
speed = 5;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = 0;
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y + (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (speed * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (speed * Math.sin((Math.PI/180) * _rotation)));
}
speed = speed + a;
if (((_root.player2.hitTest(this) && (_parent._name != "fSpikes")) && (_root.player2.State != "respawn")) && (_root.player2.State != "special")) {
_visible = false;
_root.player2.State = "hit2";
}
}
Instance of Symbol 236 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
a = 2;
speed = 5;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = 30;
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y + (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (speed * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (speed * Math.sin((Math.PI/180) * _rotation)));
}
if (((_root.player2.hitTest(this) && (_parent._name != "fSpikes")) && (_root.player2.State != "respawn")) && (_root.player2.State != "special")) {
_visible = false;
_root.player2.State = "hit2";
}
speed = speed + a;
}
Instance of Symbol 236 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
a = 2;
speed = 5;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = 90;
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y + (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (speed * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (speed * Math.sin((Math.PI/180) * _rotation)));
}
if (((_root.player2.hitTest(this) && (_parent._name != "fSpikes")) && (_root.player2.State != "special")) && (_root.player2.State != "respawn")) {
_visible = false;
_root.player2.State = "hit2";
}
speed = speed + a;
}
Instance of Symbol 236 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
a = 2;
speed = 5;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = -30;
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y + (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (speed * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (speed * Math.sin((Math.PI/180) * _rotation)));
}
if (((_root.player2.hitTest(this) && (_parent._name != "fSpikes")) && (_root.player2.State != "respawn")) && (_root.player2.State != "special")) {
_visible = false;
_root.player2.State = "hit2";
}
speed = speed + a;
}
Instance of Symbol 236 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
a = 2;
speed = 5;
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = -90;
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_y = (_y + (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (speed * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (speed * Math.sin((Math.PI/180) * _rotation)));
}
if (((_root.player2.hitTest(this) && (_parent._name != "fSpikes")) && (_root.player2.State != "respawn")) && (_root.player2.State != "special")) {
_visible = false;
_root.player2.State = "hit2";
}
speed = speed + a;
}
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 2
sound = new Sound(this);
sound.attachSound("various");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 243 MovieClip Frame 41
stop();
unloadMovie (this);
Symbol 252 MovieClip Frame 1
sounda = new Sound(this);
sounda.attachSound("woosh1");
sounda.start(0.05, 0);
sounda.setVolume(100);
Symbol 252 MovieClip Frame 31
sounda = new Sound(this);
sounda.attachSound("woosh1");
sounda.start(0.05, 0);
sounda.setVolume(100);
Symbol 252 MovieClip Frame 63
sounda = new Sound(this);
sounda.attachSound("woosh1");
sounda.start(0.05, 0);
sounda.setVolume(100);
Symbol 252 MovieClip Frame 94
sound = new Sound(this);
sound.attachSound("other");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 252 MovieClip Frame 110
_root.countDown = false;
Symbol 252 MovieClip Frame 111
unloadMovie (this);
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
_visible = true;
sound = new Sound(this);
sound.attachSound("various");
sound.start(0.05, 0);
sound.setVolume(100);
Symbol 254 MovieClip Frame 37
if (_parent.name == "go1") {
_root.gotoAndStop("p2win");
} else {
_root.gotoAndStop("p1win");
}