Frame 1
stop();
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
_root.rn = new Array();
_root.rn[0] = new Array();
_root.rn[1] = new Array();
_root.rn[2] = new Array();
_root.rn[3] = new Array();
var a = 0;
while (a < 3) {
var b = 0;
while (b < 3) {
var t = new Array();
t.push({b:a, t:0});
t.push({b:b, t:1000});
_root.rn[0].push(t);
b++;
}
var t = new Array();
t.push({b:a, t:0});
_root.rn[0].push(t);
var t = new Array();
t.push({b:a, t:1000});
_root.rn[0].push(t);
a++;
}
var a = 0;
while (a < 3) {
var b = 0;
while (b < 3) {
var c = 0;
while (c < 3) {
var d = 0;
while (d < 3) {
var t = new Array();
t.push({b:a, t:0});
t.push({b:b, t:500});
t.push({b:c, t:1000});
t.push({b:d, t:1500});
_root.rn[1].push(t);
d++;
}
var t = new Array();
t.push({b:a, t:0});
t.push({b:b, t:500});
t.push({b:c, t:1000});
_root.rn[1].push(t);
var t = new Array();
t.push({b:a, t:0});
t.push({b:b, t:500});
t.push({b:c, t:1500});
_root.rn[1].push(t);
var t = new Array();
t.push({b:a, t:0});
t.push({b:b, t:1000});
t.push({b:c, t:1500});
_root.rn[1].push(t);
var t = new Array();
t.push({b:a, t:500});
t.push({b:b, t:1000});
t.push({b:c, t:1500});
_root.rn[1].push(t);
c++;
}
var t = new Array();
t.push({b:a, t:0});
t.push({b:b, t:750});
_root.rn[1].push(t);
var t = new Array();
t.push({b:a, t:250});
t.push({b:b, t:750});
_root.rn[1].push(t);
var t = new Array();
t.push({b:a, t:250});
t.push({b:b, t:1000});
_root.rn[1].push(t);
b++;
}
a++;
}
var a = 0;
while (a < 4) {
var b = 0;
while (b < 4) {
var c = 0;
while (c < 4) {
var d = 0;
while (d < 4) {
var t = new Array();
if (a != 3) {
t.push({b:a, t:0});
}
if (b != 3) {
t.push({b:b, t:250});
}
if (c != 3) {
t.push({b:c, t:500});
}
if (d != 3) {
t.push({b:d, t:750});
}
if (a != 3) {
t.push({b:a, t:1000});
}
if (b != 3) {
t.push({b:b, t:1250});
}
if (c != 3) {
t.push({b:c, t:1500});
}
if (d != 3) {
t.push({b:d, t:1750});
}
_root.rn[2].push(t);
d++;
}
c++;
}
b++;
}
a++;
}
Frame 5
stop();
Frame 6
stop();
Frame 7
Frame 9
function Wiperoni(a) {
zsazsa.Terminate();
if (a == "ownman") {
this.zsazsa.StopIt();
attachMovie("zsazsa", "zsazsa", 20000);
_root.win[0] = 0;
_root.win[1] = 0;
_root.scores = new Array();
_root.scores[0] = new Array(0, 0, 0);
_root.scores[1] = new Array(0, 0, 0);
_root.NewRound(0);
} else {
bg.removeMovieClip();
gu.removeMovieClip();
zsazsa.StopIt();
zsazsa.removeMovieClip();
fg.removeMovieClip();
c[0].removeMovieClip();
c[1].removeMovieClip();
gotoAndStop(a);
}
}
function NewRound(i) {
_root.curround = i;
this.attachMovie("roundoverlay0", "over", 99, {rounder:_root.curround});
if (i == 0) {
this.mod = -2;
} else {
this.mod = -1;
}
this.ct = 0;
this.nt = 1;
this.p = new Array();
this.p[0] = new Wan(this.pix[0]);
this.p[1] = new Wan(this.pix[1]);
_root.gu.Init();
}
function TriggerPoof(x, y, t) {
if (_root.makeswitch) {
var _local2 = _root.nt;
} else {
var _local2 = _root.ct;
}
if (_local2 == 0) {
var _local6 = x + _root.c[_local2]._x;
var _local4 = -100;
} else {
var _local6 = _root.c[_local2]._x - x;
var _local4 = 100;
}
var _local5 = y + _root.c[_local2]._y;
var _local3 = "";
if (_root.branch == "hit") {
_local3 = "medium";
} else {
_local3 = "block";
}
attachMovie("poof_" + _local3, "trigger", 10000, {_x:_local6, _y:_local5, _xscale:_local4});
}
function WF() {
wf._visible = true;
wf.onEnterFrame = function () {
this._visible = false;
delete this.onEnterFrame;
};
}
function DoFrame() {
if (_root.bgoff != _root.oldbgoff) {
_root.off = _root.bgoff - _root.oldbgoff;
_root.oldbgoff = _root.bgoff;
var _local2 = _root.bgoff - 350;
bg.bg3._x = _local2;
bg.bg2._x = _local2 * 0.75;
bg.bg1._x = (_local2 * 0.75) * 0.75;
bg.bg0._x = ((_local2 * 0.75) * 0.75) * 0.75;
fg.fg0._x = _local2 * 1.5;
bg.bg4._x = _local2 * 1.5;
c[0]._x = c[0]._x + _root.off;
c[1]._x = c[1]._x + _root.off;
}
}
function UpdateDefLife() {
if (_root.makeswitch) {
UpdateLife(_root.ct);
} else {
UpdateLife(_root.nt);
}
}
function NixSwitch(a) {
_root.gu.NixSwitch(a);
}
function PressUp(a) {
_root.gu.UpdateMoves(a, true);
}
function UpdateAttLife() {
if (_root.makeswitch) {
UpdateLife(_root.nt);
} else {
UpdateLife(_root.ct);
}
}
function ApplyDam(a, s, k) {
_root.p[a].chp = _root.p[a].chp - Math.round((s * k) / 100);
}
function GetGoodness(perc) {
var _local1 = 0;
if (perc == 100) {
_local1 = 3;
} else if (perc > 95) {
_local1 = 2;
} else if (perc > 85) {
_local1 = 1;
}
return(_local1);
}
function UpdateLife(i) {
if (_root.p[i].chp <= 0) {
delete _root.emerclip.onEnterFrame;
_root.bgoff = 0;
_root.DoFrame();
_root.p[i].chp = 0;
if (i == 1) {
_root.win[0]++;
_root.scores[0][0] = _root.scores[0][0] + (_root.p[0].chp * 10);
if (_root.p[0].chp == _root.p[0].mhp) {
_root.scores[0][0] = _root.scores[0][0] + (_root.p[0].chp * 10);
}
_root.gu.UpdateVictory(0);
_root.c[0].Stop();
_root.c[1].Anim("die");
} else {
_root.win[1]++;
_root.scores[1][0] = _root.scores[1][0] + (_root.p[1].chp * 10);
if (_root.p[1].chp == _root.p[1].mhp) {
_root.scores[1][0] = _root.scores[1][0] + (_root.p[1].chp * 10);
}
_root.gu.UpdateVictory(1);
_root.c[1].Stop();
_root.c[0].Anim("die");
}
_root.zsazsa.StopIt();
_root.mod = 3;
}
_root.gu.UpdateLife(i);
}
function ShowSwitch() {
_root.gu.ShowMoves(0);
_root.gu.ShowMoves(1);
}
function Switch() {
_root.ct = (_root.ct ? 0 : 1);
_root.nt = (_root.ct ? 0 : 1);
}
function RunDef(a) {
if (_root.makeswitch) {
c[_root.ct].Anim(a);
} else {
c[_root.nt].Anim(a);
}
}
function CP_NextMove() {
var _local3 = 1;
if (_root.ct == _local3) {
var _local6 = Math.floor(Math.random() * 5);
var _local4 = _root.p[_local3].apl[_local6];
var _local2 = (_local4.l.tes[0].t * 120) / 135;
if (_local2 == 0) {
_local2 = 1;
}
_root.cpu = setInterval(CP_Play, _local2, _local4, 0);
} else {
var _local5 = Math.floor(Math.random() * 5);
var _local4 = _root.p[_local3].dpl[_local5];
var _local2 = (_local4.l.tes[0].t * 120) / 135;
if (_local2 == 0) {
_local2 = 1;
}
_root.cpu = setInterval(CP_Play, _local2, _local4, 0);
}
}
function CP_Bongo(b) {
switch (b) {
case 2 :
_root.zsazsa.Bongos(105, true);
break;
case 1 :
_root.zsazsa.Bongos(111, true);
break;
case 0 :
_root.zsazsa.Bongos(112, true);
}
}
function CP_Play(act, step) {
_root.CP_Bongo(act.l.tes[step].b);
clearInterval(_root.cpu);
if (act.l.tes.length > (step + 1)) {
var _local4 = ((act.l.tes[step + 1].t - act.l.tes[step].t) * 120) / 135;
_root.cpu = setInterval(CP_Play, _local4, act, step + 1);
}
}
function RunAtt(att) {
var _local2 = _root;
var _local3 = _local2.ct;
if (_root.makeswitch) {
_local3 = _local2.nt;
}
_local2.c[_local3].Anim(_local2.p[_local3].ach[_local2.p[_local3].apl[att].i].m);
}
_root.win = new Array();
_root.win[0] = 0;
_root.win[1] = 0;
_root.scores = new Array();
_root.scores[0] = new Array(0, 0, 0);
_root.scores[1] = new Array(0, 0, 0);
var wf = this.createEmptyMovieClip("wf", 1000001);
wf.moveTo(0, 0);
wf.beginFill(16777215, 100);
wf.lineTo(700, 0);
wf.lineTo(700, 500);
wf.lineTo(0, 500);
wf.lineTo(0, 0);
wf.endFill();
wf.cacheAsBitmap = true;
wf._visible = false;
_root.bgoff = 0;
_root.oldbgoff = -1;
var bg = this.createEmptyMovieClip("bg", 0);
bg.attachMovie(("bg" + _root.bgsel) + "_0", "bg0", 100, {_x:0, _y:0});
bg.attachMovie(("bg" + _root.bgsel) + "_1", "bg1", 101, {_x:0, _y:0});
bg.attachMovie(("bg" + _root.bgsel) + "_2", "bg2", 102, {_x:0, _y:0});
bg.attachMovie(("bg" + _root.bgsel) + "_3", "bg3", 103, {_x:0, _y:0});
bg.attachMovie(("bg" + _root.bgsel) + "_4", "bg4", 104, {_x:0, _y:0});
var fg = this.createEmptyMovieClip("fg", 100);
fg.attachMovie(("fg" + _root.bgsel) + "_0", "fg0", 0);
this.onEnterFrame = function () {
if (Key.isDown(39)) {
_root.bgoff = _root.bgoff + 4;
} else if (Key.isDown(37)) {
_root.bgoff = _root.bgoff - 4;
}
DoFrame();
};
if (this.pix === undefined) {
this.pix = new Array();
this.pix[0] = 0;
this.pix[1] = 0;
}
this.lag = 100;
attachMovie("gu", "gu", 1000000);
this.c = new Array();
c[0] = this.attachMovie("cb", "char0", 10, {_x:225, _y:400, _xscale:70, _yscale:70, i:this.pix[0]});
c[1] = this.attachMovie("cb", "char1", 11, {_x:475, _y:400, _xscale:-70, _yscale:70, i:this.pix[1]});
NewRound(0);
attachMovie("zsazsa", "zsazsa", 20000);
Symbol 25 MovieClip [tod] Frame 1
this.attachMovie("todbg_" + b, "bg", 0);
var txt = "";
if (p == 0) {
switch (b) {
case 0 :
txt = "C";
break;
case 1 :
txt = "X";
break;
case 2 :
txt = "Z";
}
} else if (p == 1) {
switch (b) {
case 0 :
txt = "P";
break;
case 1 :
txt = "O";
break;
case 2 :
txt = "I";
}
}
this.attachMovie("tod_let", "let", 1, {txt:txt});
this.cacheAsBitmap = true;
Symbol 27 MovieClip [playhead_yellow] Frame 1
this.cacheAsBitmap = true;
Symbol 43 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x + (this.dir * 5);
if (this.dir == -1) {
if (this._x <= (-this._width)) {
this._x = this.partner._x + this._width;
}
} else if (this._x > 700) {
this._x = this.partner._x - this._width;
}
};
Symbol 47 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
bl = _root.getBytesLoaded();
bt = _root.getBytesTotal();
perc = (bl / bt) * 100;
dabar._xscale = perc;
if (perc >= 100) {
delete this.onEnterFrame;
this._parent.gotoAndStop("trans");
}
};
Instance of Symbol 43 MovieClip "top1" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
this.dir = -1;
this.partner = this._parent.top2;
}
Instance of Symbol 43 MovieClip "bot2" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
this.dir = 1;
this.partner = this._parent.bot1;
}
Instance of Symbol 43 MovieClip "top2" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
this.dir = -1;
this.partner = this._parent.top1;
}
Instance of Symbol 43 MovieClip "bot1" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
this.dir = 1;
this.partner = this._parent.bot2;
}
Symbol 49 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
Symbol 53 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
Symbol 58 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 61 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 68 Button
on (release) {
getURL ("http://www.bomtoons.com", "_blank");
}
Symbol 1047 MovieClip [__Packages.Wan] Frame 0
class Wan
{
var apl, dpl, ch, ach, dch, n, mhp, chp;
function Wan (a) {
App(a);
Huan();
}
function Kanpat(f, i) {
if (f.length > i.tes.length) {
return(0);
}
var _local8 = 500;
var _local9 = 0;
var _local10 = 0;
var _local7 = -1000000;
var _local6 = 1000000 /* 0x0F4240 */;
var _local2 = 0;
while (_local2 < i.tes.length) {
if (_local2 >= f.length) {
if (((_root.curtim - ((_root.mod == 1) ? 3555.55555555556 : 0)) - ((i.tes[_local2].t * 120) / 135)) > ((_local8 * 120) / 135)) {
return(0);
}
return(-1);
}
if (f[_local2].b != i.tes[_local2].b) {
return(0);
}
if (Math.abs(f[_local2].t - ((i.tes[_local2].t * 120) / 135)) < ((_local8 * 120) / 135)) {
_local9 = _local9 + Math.abs(f[_local2].t - ((i.tes[_local2].t * 120) / 135));
var _local3 = f[_local2].t - ((i.tes[_local2].t * 120) / 135);
_local10 = _local10 + _local3;
if (_local3 > _local7) {
_local7 = _local3;
}
if (_local3 < _local6) {
_local6 = _local3;
}
} else {
return(0);
}
_local2++;
}
var _local11 = _local9 / f.length;
var _local12 = _local11 - (Math.abs(_local10) / f.length);
if (Math.abs(_local7 - _local6) < 222.222222222222) {
_local11 = _local12;
}
var _local13 = Math.round((1 - (_local11 / 888.888888888889)) * 100);
return(_local13);
}
function Kanpats(f, of) {
var _local5 = 0;
var _local3 = new Array();
if (of) {
var _local2 = 0;
while (_local2 < apl.length) {
_local3.push(Kanpat(f, apl[_local2].l));
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < dpl.length) {
_local3.push(Kanpat(f, dpl[_local2].l));
_local2++;
}
}
return(_local3);
}
function App(x) {
ch = x;
ach = new Array();
dch = new Array();
switch (x) {
case 0 :
ach.push({s:15, n:"HIGH SLASH", a:0, d:0, t:0, m:"highslash"});
ach.push({s:20, n:"LOW SLASH", a:1, d:0, t:0, m:"lowslash"});
ach.push({s:30, n:"SHIELD THROW", a:0, d:1, t:0, m:"shieldthrow"});
ach.push({s:25, n:"LEG SWEEP", a:1, d:1, t:0, m:"legsweep"});
ach.push({s:40, n:"HIP THROW", a:2, d:2, t:0, m:"hipthrow"});
dch.push({n:"HIGH BLOCK", a:0, d:0, t:0, m:"blockhigh"});
dch.push({n:"LOW BLOCK", a:1, d:0, t:0, m:"blocklow"});
dch.push({n:"PARRY HIGH", a:0, d:1, t:2, m:"parryhigh"});
dch.push({n:"PARRY LOW", a:1, d:1, t:2, m:"parrylow"});
dch.push({n:"COUNTER-THROW", a:2, d:0, t:0, s:40, m:"counter_hipthrow"});
n = "CAPTAIN MORONI";
mhp = 100;
chp = 100;
break;
case 1 :
n = "GADIANTON";
mhp = 100;
chp = 100;
ach.push({s:15, n:"ROUNDHOUSE", a:0, d:1, t:0, m:"roundhouse"});
ach.push({s:20, n:"LEG SWEEP", a:1, d:1, t:0, m:"legsweep"});
ach.push({s:25, n:"FIREBALL", a:0, d:1, t:0, m:"fireball"});
ach.push({s:25, n:"GROUND SPIKES", a:1, d:1, t:0, m:"groundspikes"});
ach.push({s:30, n:"BODY SLAM", a:2, d:2, t:0, m:"bodyslam"});
dch.push({n:"PARRY HIGH", a:0, d:1, t:2, m:"parryhigh"});
dch.push({n:"PARRY LOW", a:1, d:1, t:2, m:"parrylow"});
dch.push({n:"COUNTER-THROW", a:2, d:1, t:0, s:30, m:"counter_toss"});
dch.push({n:"JUMP", a:1, d:1, t:1, m:"jump"});
dch.push({n:"DUCK", a:0, d:1, t:1, m:"duck"});
}
}
function Huan() {
dpl = new Array();
var _local4 = 0;
while (_local4 < dch.length) {
var _local5 = new Laza();
var _local3 = Math.floor(Math.random() * 5);
var _local2 = 0;
while (_local2 < _local4) {
if (dpl[_local2].i == _local3) {
_local3 = Math.floor(Math.random() * 5);
break;
}
_local2++;
}
_local5.TestSetup(dch[_local3].d, dpl, false);
dpl.push({i:_local3, l:_local5});
_local4++;
}
apl = new Array();
_local4 = 0;
while (_local4 < ach.length) {
var _local5 = new Laza();
var _local3 = Math.floor(Math.random() * 5);
var _local2 = 0;
while (_local2 < _local4) {
if (apl[_local2].i == _local3) {
_local3 = Math.floor(Math.random() * 5);
break;
}
_local2++;
}
_local5.TestSetup(ach[_local3].d, apl, true);
apl.push({i:_local3, l:_local5});
_local4++;
}
}
function HuanOne(att, ix) {
if (att) {
var _local4 = new Laza();
var _local3 = Math.floor(Math.random() * 5);
var _local2 = 0;
while (_local2 < 5) {
if (apl[_local2].i == _local3) {
_local3 = Math.floor(Math.random() * 5);
break;
}
_local2++;
}
_local4.TestSetup(ach[_local3].d, apl, true);
apl[ix] = {i:_local3, l:_local4};
} else {
var _local4 = new Laza();
var _local3 = Math.floor(Math.random() * 5);
var _local2 = 0;
while (_local2 < 5) {
if (dpl[_local2].i == _local3) {
_local3 = Math.floor(Math.random() * 5);
break;
}
_local2++;
}
_local4.TestSetup(dch[_local3].d, dpl, false);
dpl[ix] = {i:_local3, l:_local4};
}
}
}
Symbol 1048 MovieClip [__Packages.Laza] Frame 0
class Laza
{
var tes, di, b0, b1;
function Laza () {
tes = new Array();
}
function Jia(b, t) {
tes.push({b:Number(b), t:Number(t)});
}
function TestSetup(dif, pl, tf) {
var _local3 = _root.rn;
di = dif;
var _local9 = false;
while (!_local9) {
if (tf) {
var _local6 = Math.floor(Math.random() * _local3[dif].length);
} else {
var _local6 = -1;
}
var _local5 = Math.floor(Math.random() * _local3[dif].length);
_local9 = true;
for (var _local12 in pl) {
if ((pl[_local12].l.b0 == _local6) && (pl[_local12].l.b1 == _local5)) {
_local9 = false;
break;
}
}
}
b0 = _local6;
b1 = _local5;
var _local8 = 0;
while (_local8 < _local3[dif][_local6].length) {
tes.push({b:_local3[dif][_local6][_local8].b, t:_local3[dif][_local6][_local8].t});
_local8++;
}
_local8 = 0;
while (_local8 < _local3[dif][_local5].length) {
tes.push({b:_local3[dif][_local5][_local8].b, t:_local3[dif][_local5][_local8].t + 2000});
_local8++;
}
}
function toString() {
var _local3 = "";
var _local2 = 0;
while (_local2 < tes.length) {
if (_local2 == 0) {
_local3 = _local3 + ((tes[_local2].b + ",") + tes[_local2].t);
} else {
_local3 = _local3 + (((";" + tes[_local2].b) + ",") + tes[_local2].t);
}
_local2++;
}
return(_local3);
}
}
Symbol 86 MovieClip [pb] Frame 1
function UpdateLife(w) {
this.chp = w.chp;
this.mhp = w.mhp;
this.onEnterFrame = function () {
var _local2 = 100 - ((this.chp / this.mhp) * 100);
if (_local2 > db._xscale) {
if ((_local2 - db._xscale) < 2) {
db._xscale = _local2;
delete this.onEnterFrame;
} else {
db._xscale = db._xscale + 2;
}
}
};
}
function UpdateVictory(a) {
var _local1 = 0;
while (_local1 < a) {
cac["win" + _local1]._visible = true;
_local1++;
}
_local1 = a;
while (_local1 < 2) {
cac["win" + _local1]._visible = false;
_local1++;
}
}
cac.cacheAsBitmap = true;
db._xscale = 0;
cac.nam = this.n;
if (this.cix == 0) {
holder.f0._visible = true;
holder.f1._visible = false;
} else {
holder.f1._visible = true;
holder.f0._visible = false;
}
UpdateVictory(this.winna);
Symbol 93 MovieClip [poof_block] Frame 13
this.unloadMovie();
this.removeMovieClip();
Symbol 111 MovieClip [poof_ground] Frame 17
this.unloadMovie();
this.removeMovieClip();
Symbol 128 MovieClip [poof_hard] Frame 17
this.unloadMovie();
this.removeMovieClip();
Symbol 136 MovieClip [poof_light] Frame 16
this.unloadMovie();
this.removeMovieClip();
Symbol 146 MovieClip [poof_medium] Frame 19
this.unloadMovie();
this.removeMovieClip();
Symbol 154 MovieClip [zala] Frame 1
function Ln(c) {
ln._x = (((c / cf) * w) / 5) + (w / 5);
}
function Hua() {
var _local2 = 0;
while (_local2 < laz.tes.length) {
var _local4 = (((laz.tes[_local2].t / 1000) * w) / 5) + (w / 5);
var _local3 = (((laz.tes[_local2].b * h) / 4) + (h / 4)) + 18.5;
this.attachMovie("tod", "tod" + _local2, _local2 + 1000, {_y:_local3, _x:_local4, p:this.i, b:laz.tes[_local2].b});
_local2++;
}
}
function Ding() {
var _local3 = this.attachMovie("playhead_red", "lna", this.getNextHighestDepth(), {_x:ln._x, _y:12.5});
}
function Init() {
if (this.t) {
this.attachMovie("movebar_def_bg0", "bg", 1);
} else {
this.attachMovie("movebar_off_bg0", "bg", 1);
}
var _local4 = this.attachMovie("playhead_yellow", "ln", 100000, {_y:12.5});
var _local5 = this.attachMovie("movehead", "movehead", 0, {n:this.n});
Hua();
}
this.cf = 888.888888888889;
Init();
Symbol 158 MovieClip [bg0_0] Frame 1
this.cacheAsBitmap = true;
Symbol 161 MovieClip [bg0_1] Frame 1
this.cacheAsBitmap = true;
Symbol 164 MovieClip [bg0_2] Frame 1
this.cacheAsBitmap = true;
Symbol 170 MovieClip [fg0_0] Frame 1
this.cacheAsBitmap = true;
Symbol 173 MovieClip [bg1_0] Frame 1
this.cacheAsBitmap = true;
Symbol 176 MovieClip [bg1_1] Frame 1
this.cacheAsBitmap = true;
Symbol 179 MovieClip [bg1_2] Frame 1
this.cacheAsBitmap = true;
Symbol 182 MovieClip [bg1_3] Frame 1
this.cacheAsBitmap = true;
Symbol 185 MovieClip [bg1_4] Frame 1
this.cacheAsBitmap = true;
Symbol 194 MovieClip Frame 1
function freshMe(num) {
i = 0;
while (i < 3) {
this["r" + i]._visible = false;
i++;
}
this["r" + num]._visible = true;
}
freshMe(this._parent.rounder);
Symbol 201 MovieClip [roundoverlay0] Frame 14
this.ro1 = new Sound(this);
ro1.attachSound("round1.wav");
this.ro2 = new Sound(this);
ro2.attachSound("round2.wav");
this.ro3 = new Sound(this);
ro3.attachSound("finalround.wav");
if (rounder == 0) {
ro1.start();
}
if (rounder == 1) {
ro2.start();
}
if (rounder == 2) {
ro3.start();
}
Symbol 201 MovieClip [roundoverlay0] Frame 153
this.unloadMovie();
this.removeMovieClip();
Symbol 223 MovieClip Frame 10
stop();
Symbol 236 MovieClip [roundoverlay1] Frame 1
this.b = new Sound();
b.attachSound("booleep");
var cv = 0;
this.vals = new Array(250, 120, 450);
dabox.loser._visible = false;
this.onEnterFrame = function () {
cv++;
if ((cv < 110) && (this.goahead)) {
b.start();
dabox.hlth = random(8888);
dabox.tech = random(8888);
dabox.style = random(8888);
dabox.tot = random(888888);
} else if (this.goahead) {
delete this.onEnterFrame;
dabox.hlth = vals[0];
dabox.tech = vals[1];
dabox.style = vals[2];
dabox.tot = (dabox.hlth + dabox.tech) + dabox.style;
}
};
Symbol 236 MovieClip [roundoverlay1] Frame 83
this.goahead = true;
Symbol 236 MovieClip [roundoverlay1] Frame 140
stop();
Symbol 257 Button
on (press) {
_root.Wiperoni("trans");
}
Symbol 258 Button
on (press) {
_root.Wiperoni("ownman");
}
Symbol 259 Button
on (press) {
_root.Wiperoni("charselect");
}
Symbol 260 MovieClip [roundoverlay2] Frame 1
if (vals1 === undefined) {
vals1 = new Array(_root.scores[0][0], _root.scores[0][1], _root.scores[0][2]);
vals2 = new Array(_root.scores[1][0], _root.scores[1][1], _root.scores[1][2]);
var winna = ((_root.p[0].chp == 0) ? 1 : 0);
}
this.b = new Sound();
b.attachSound("booleep");
if (winna == 0) {
p1.loser._visible = false;
p2.winner._visible = false;
} else {
p2.loser._visible = false;
p1.winner._visible = false;
}
cv = 0;
this.onEnterFrame = function () {
cv++;
if (cv < 40) {
b.start();
p1.hlth = random(8888);
p1.tech = random(8888);
p1.style = random(8888);
p1.tot = random(888888);
p2.hlth = random(8888);
p2.tech = random(8888);
p2.style = random(8888);
p2.tot = random(888888);
} else {
delete this.onEnterFrame;
p1.hlth = vals1[0];
p1.tech = vals1[1];
p1.style = vals1[2];
p1.tot = (p1.hlth + p1.tech) + p1.style;
p2.hlth = vals2[0];
p2.tech = vals2[1];
p2.style = vals2[2];
p2.tot = (p2.hlth + p2.tech) + p2.style;
}
};
Symbol 260 MovieClip [roundoverlay2] Frame 20
stop();
Symbol 268 MovieClip [roundoverlay3] Frame 116
stop();
Symbol 281 MovieClip Frame 1
this._visible = false;
Symbol 416 MovieClip Frame 24
stop();
Symbol 470 MovieClip Frame 12
stop();
Symbol 501 MovieClip Frame 1
this.blocksword = new Sound(this);
blocksword.attachSound("block_sword.wav");
this.blockpunch = new Sound(this);
blockpunch.attachSound("blockpunch.wav");
this.lightpunch = new Sound(this);
lightpunch.attachSound("lightpunch5.wav");
this.miss = new Sound(this);
miss.attachSound("miss.wav");
this.parry = new Sound(this);
parry.attachSound("parry1.wav");
this.punch0 = new Sound(this);
punch0.attachSound("punch.wav");
this.punch1 = new Sound(this);
punch1.attachSound("punch2.wav");
this.punch2 = new Sound(this);
punch2.attachSound("punch3.wav");
this.punch3 = new Sound(this);
punch3.attachSound("punch4.wav");
this.swordconnect = new Sound(this);
swordconnect.attachSound("sword_connect.wav");
this.swordclank = new Sound(this);
swordclank.attachSound("swordclank.wav");
Symbol 501 MovieClip Frame 12
stop();
Symbol 501 MovieClip Frame 18
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.TriggerPoof(-(ph._x + 25), ph._y + 85, t);
_root.ShowSwitch();
blockpunch.start();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
_root.RunDef("hithigh");
_root.ShowSwitch();
_root.TriggerPoof(-(ph._x + 25), ph._y + 85, t);
_root.WF();
var which = random(4);
var thing = eval ("punch" + which);
thing.start();
_root.UpdateDefLife();
} else if (_root.branch == "parry") {
gotoAndPlay ("dizzy");
_root.RunDef(_root.branch2);
_root.ShowSwitch();
parry.start();
}
Symbol 501 MovieClip Frame 24
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 36
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
_root.TriggerPoof(-(ph._x + 25), ph._y + 70, t);
blockpunch.start();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
if (_root.branch2 == "duck") {
_root.RunDef("duckhit");
} else {
_root.RunDef("hitlow");
}
_root.ShowSwitch();
_root.TriggerPoof(-(ph._x + 25), ph._y + 70, t);
_root.WF();
var which = random(4);
var thing = eval ("punch" + which);
thing.start();
_root.UpdateDefLife();
} else if (_root.branch == "parry") {
gotoAndPlay ("dizzy");
_root.RunDef(_root.branch2);
_root.ShowSwitch();
parry.start();
}
Symbol 501 MovieClip Frame 45
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 62
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.TriggerPoof(-(ph._x + 25), ph._y + 70, t);
_root.ShowSwitch();
blockpunch.start();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
_root.RunDef("hithigh");
_root.ShowSwitch();
_root.TriggerPoof(-(ph._x + 25), ph._y + 70, t);
_root.WF();
swordconnect.start();
} else if (_root.branch == "parry") {
gotoAndPlay ("dizzy");
_root.RunDef(_root.branch2);
_root.ShowSwitch();
parry.start();
}
Symbol 501 MovieClip Frame 65
if (_root.branch == "hit") {
_root.UpdateDefLife();
}
Symbol 501 MovieClip Frame 69
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 93
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
_root.TriggerPoof(-(ph._x + 25), ph._y + 70, t);
blockpunch.start();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
if (_root.branch2 == "duck") {
_root.RunDef("duckhit");
} else {
_root.RunDef("hitlow");
}
_root.ShowSwitch();
_root.TriggerPoof(-(ph._x + 25), ph._y + 70, t);
_root.WF();
swordconnect.start();
_root.UpdateDefLife();
} else if (_root.branch == "parry") {
gotoAndPlay ("dizzy");
_root.RunDef(_root.branch2);
_root.ShowSwitch();
parry.start();
}
Symbol 501 MovieClip Frame 106
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 132
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 143
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 167
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 195
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 214
_root.WF();
Symbol 501 MovieClip Frame 246
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 263
_root.UpdateAttLife();
Symbol 501 MovieClip Frame 272
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 291
if (_root.branch == "counter") {
_root.RunDef("att_" + _root.branch2);
this.gotoAndPlay("def_" + _root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
} else if (_root.branch == "hit") {
_root.RunDef("def_bodyslam");
_root.UpdateDefLife();
}
Symbol 501 MovieClip Frame 328
_root.ShowSwitch();
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 355
stop();
Symbol 501 MovieClip Frame 393
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 408
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 417
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 440
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 452
_root.WF();
Symbol 501 MovieClip Frame 498
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 531
_root.WF();
Symbol 501 MovieClip Frame 548
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 577
var sss = new Sound(this);
sss.attachSound("tweet");
sss.start();
Symbol 501 MovieClip Frame 582
stop();
Symbol 501 MovieClip Frame 659
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 683
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 698
_root.WF();
Symbol 501 MovieClip Frame 739
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 752
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 768
gotoAndPlay ("idle");
Symbol 501 MovieClip Frame 821
_root.WF();
Symbol 501 MovieClip Frame 839
stop();
Symbol 502 MovieClip [char1] Frame 1
guts._xscale = -100;
Symbol 504 MovieClip [movebar_def_bg0] Frame 1
this.cacheAsBitmap = true;
Symbol 506 MovieClip [movebar_def_bg1] Frame 1
this.cacheAsBitmap = true;
Symbol 508 MovieClip [movebar_off_bg0] Frame 1
this.cacheAsBitmap = true;
Symbol 510 MovieClip [movebar_off_bg1] Frame 1
this.cacheAsBitmap = true;
Symbol 513 MovieClip [movehead] Frame 1
txt_nam.htmlText = n;
Symbol 519 MovieClip Frame 9
stop();
Symbol 528 MovieClip [goodness] Frame 1
function freshMe(num) {
i = 0;
while (i < 4) {
this.holder["g" + i]._visible = false;
i++;
}
this.holder["g" + num]._visible = true;
var _local2 = new Sound(this);
_local2.attachSound("goody" + num);
_local2.setPan((this.sid ? 100 : -100));
_local2.start();
}
freshMe(this.ix);
Symbol 528 MovieClip [goodness] Frame 27
this.removeMovieClip();
stop();
Symbol 536 MovieClip [gu] Frame 1
function UpdateVictory(a) {
this["hd" + a].UpdateVictory(_root.win[a]);
}
function Init() {
this.attachMovie("pb", "hd0", 1000, {cix:_root.pix[0], winna:_root.win[0], n:_root.p[0].n, chp:_root.p[0].chp});
this.attachMovie("pb", "hd1", 1001, {cix:_root.pix[1], winna:_root.win[1], _xscale:-100, _x:700, n:_root.p[1].n, chp:_root.p[1].chp});
this.hd1.cac.txt_nam._xscale = -100;
this.hd1.cac.txt_nam._x = this.hd1.cac.txt_nam._x + 85;
ShowMoves(0);
ShowMoves(1);
}
function MarkPerc(a, ix, perc) {
var _local3 = _root.GetGoodness(perc);
if (a == 0) {
this.attachMovie("goodness", "goodness" + _local3, 200 + a, {sid:0, _x:10, _y:58, ix:_local3});
} else {
this.attachMovie("goodness", "goodness" + _local3, 200 + a, {sid:1, _x:550, _y:58, ix:_local3});
}
}
function NixSwitch(a) {
var _local2 = 0;
while (_local2 < 5) {
if (!this["mv" + a]["mv" + _local2].gone) {
this["mv" + a]["mv" + _local2].gone = true;
this["mv" + a]["mv" + _local2].count = 5;
this["mv" + a]["mv" + _local2].a = a;
this["mv" + a]["mv" + _local2].onEnterFrame = function () {
if (this.a == 0) {
this._x = this._x - 25;
} else {
this._x = this._x + 25;
}
count--;
if (count == 0) {
delete this.onEnterFrame;
}
};
}
_local2++;
}
}
function UpdateLife(i) {
this["hd" + i].UpdateLife(_root.p[i]);
}
function Ln(a, v) {
var _local5 = _root.p[a];
if (_root.ct == a) {
var _local3 = 0;
while (_local3 < _local5.apl.length) {
if (!this["mv" + a]["mv" + _local3].gone) {
this["mv" + a]["mv" + _local3].Ln(v);
}
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < _local5.dpl.length) {
if (!this["mv" + a]["mv" + _local3].gone) {
this["mv" + a]["mv" + _local3].Ln(v);
}
_local3++;
}
}
}
function UpdateMoves(a, dn) {
var _local5 = _root.p[a];
var _local4 = ((_root.ct == a) ? (_local5.apl) : (_local5.dpl));
var _local3 = 0;
while (_local3 < _local4.length) {
if ((!this["mv" + a]["mv" + _local3].gone) && (_local5.Kanpat(_root.zsazsa.bf[a], _local4[_local3].l) == 0)) {
this["mv" + a]["mv" + _local3].gone = true;
this["mv" + a]["mv" + _local3].count = 5;
this["mv" + a]["mv" + _local3].a = a;
this["mv" + a]["mv" + _local3].onEnterFrame = function () {
if (this.a == 0) {
this._x = this._x - 25;
} else {
this._x = this._x + 25;
}
count--;
if (count == 0) {
delete this.onEnterFrame;
}
};
} else if (!this["mv" + a]["mv" + _local3].gone) {
if (dn) {
this["mv" + a]["mv" + _local3].Ding();
}
}
_local3++;
}
}
function ShowMoves(a) {
var _local15 = 0;
var _local3 = _root.p[a];
var _local14 = this.createEmptyMovieClip("mv" + a, a);
_local14._y = 100;
if (a == 0) {
_local14._x = -190;
_local14.onEnterFrame = function () {
this._x = this._x + 50;
if (this._x == 10) {
delete this.onEnterFrame;
}
};
} else {
mv1._x = 760;
_local14.onEnterFrame = function () {
this._x = this._x - 50;
if (this._x == 560) {
delete this.onEnterFrame;
}
};
}
if (!_local3.dizzy) {
if (_root.ct == a) {
this["a" + _root.ct]._visible = true;
this["d" + _root.ct]._visible = false;
var _local4 = 0;
while (_local4 < _local3.apl.length) {
var _local6;
switch (_local3.ach[_local3.apl[_local4].i].a) {
case 0 :
_local6 = " (<font color=\"#ff0000\">H</font>)";
break;
case 1 :
_local6 = " (<font color=\"#0000ff\">L</font>)";
break;
case 2 :
_local6 = " (<font color=\"#008800\">T</font>)";
}
this["mv" + a].attachMovie("zala", "mv" + _local4, _local4, {n:_local3.ach[_local3.apl[_local4].i].n + _local6, t:0, i:a, laz:_local3.apl[_local4].l, _x:0, _y:_local4 * 80, w:130, h:49.5});
_local4++;
}
} else {
this["d" + _root.nt]._visible = true;
this["a" + _root.nt]._visible = false;
var _local4 = 0;
while (_local4 < _local3.dpl.length) {
switch (_local3.dch[_local3.dpl[_local4].i].a) {
case 0 :
var _local6 = " (<font color=\"#ff0000\">H</font>)";
break;
case 1 :
_local6 = " (<font color=\"#0000ff\">L</font>)";
break;
case 2 :
_local6 = " (<font color=\"#008800\">T</font>)";
}
this["mv" + a].attachMovie("zala", "mv" + _local4, _local4, {n:_local3.dch[_local3.dpl[_local4].i].n + _local6, t:1, i:a, laz:_local3.dpl[_local4].l, _x:0, _y:_local4 * 80, w:130, h:49.5});
_local4++;
}
}
} else {
this["a" + a]._visible = false;
this["d" + a]._visible = false;
}
}
h0._visible = false;
h1._visible = false;
Init();
Symbol 537 MovieClip [zsazsa] Frame 1
function StopIt() {
this.s.stop();
}
function Huayue(x) {
this.s.stop();
this.s = new Sound(this);
this.s.attachSound(("mus" + (trig ? 1 : 0)) + ".wav");
this.s.start(0);
this.trig = !this.trig;
}
function Huanyue() {
if ((_root.mod != 3) && (_root.mod < 5)) {
Huayue(1);
}
switch (_root.mod) {
case 6 :
break;
case 5 :
this.ro.removeMovieClip();
this.attachMovie("roundoverlay2", "ro", 99);
_root.mod = 6;
break;
case 4 :
this.ro.removeMovieClip();
_root.NewRound(_root.curround + 1);
_root.WF();
_root.c[0].Anim("idle");
_root.c[1].Anim("idle");
break;
case 3 :
_root.NixSwitch(0);
_root.NixSwitch(1);
var _local14 = ((_root.p[1].chp == 0) ? 0 : 1);
var _local17 = new Sound(_root);
_local17.attachSound("winner" + _root.pix[_local14]);
_local17.start();
_root.c[_local14].Anim("win");
this.attachMovie("winnerstuff", "ro", 99, {_y:160, danam:_root.p[_local14].n});
if (_root.win[_local14] == 2) {
_root.mod = 5;
} else {
_root.mod = 4;
}
break;
case -3 :
case -2 :
_root.c[0].Anim("intro");
_root.c[1].Anim("intro");
_root.mod++;
break;
case -1 :
_root.mod = 1;
break;
case 1 :
_root.mod = 0;
if (_root.numplayers == 1) {
_root.CP_NextMove();
}
break;
case 0 :
_root.gu.a0._visible = false;
_root.gu.a1._visible = false;
_root.gu.d0._visible = false;
_root.gu.d1._visible = false;
var _local10 = (_root.ct ? 0 : 1);
var _local4 = _root.p[_root.ct].Kanpats(bf[_root.ct], true);
var _local5 = -1;
var _local8 = 0;
var _local11 = 0;
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] > 0) {
_local5 = _local3;
_local8 = _local4[_local3];
_root.gu["txt_hp" + _root.ct] = _local4[_local3];
var _local9 = _root.GetGoodness(_local8) * 25;
_root.scores[_root.ct][1] = _root.scores[_root.ct][1] + _local9;
_root.scores[_root.ct][2] = _root.scores[_root.ct][2] + ((_root.p[_root.ct].dch[_root.p[_root.ct].apl[_local5].i].d + 1) * 25);
_root.gu.MarkPerc(_root.ct, 0, _local4[_local3]);
break;
}
_local3++;
}
var _local13 = _root.p[_root.ct].apl[_local5].i;
var _local7 = -1;
_local4 = _root.p[_local10].Kanpats(bf[_local10], false);
_local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] > 0) {
_local7 = _local3;
_local11 = _local4[_local3];
_root.gu["txt_hp" + _root.nt] = _local4[_local3];
var _local9 = _root.GetGoodness(_local11) * 25;
_root.scores[_root.nt][1] = _root.scores[_root.nt][1] + _local9;
_root.scores[_root.nt][2] = _root.scores[_root.nt][2] + ((_root.p[_root.nt].dch[_root.p[_root.nt].dpl[_local7].i].d + 1) * 25);
_root.gu.MarkPerc(_root.nt, 0, _local4[_local3]);
break;
}
_local3++;
}
var _local15 = _root.p[_root.nt].dpl[_local7].i;
if (_root.p[_root.nt].dizzy) {
_root.p[_root.nt].dizzy = 0;
_root.ShowSwitch();
}
_root.makeswitch = false;
var _local16 = false;
if ((_local5 == -1) && (_local7 == -1)) {
_root.c[_root.ct].Anim("noaction");
_root.RunDef("noaction");
_root.makeswitch = true;
_root.Switch();
_local16 = true;
_root.mod = 1;
} else if (_local5 == -1) {
_root.mod = 1;
_root.c[_local10].Anim(_root.p[_local10].dch[_local15].m);
_root.c[_root.ct].Anim("noaction");
if (_root.p[_local10].dch[_local15].t != 2) {
_root.makeswitch = true;
_root.Switch();
}
_local16 = true;
} else if (_local7 == -1) {
_root.branch = "hit";
_root.RunAtt(_local5);
_root.ApplyDam(_local10, _root.p[_root.ct].ach[_local13].s, _local8);
_root.mod = 1;
} else {
var _local12 = _root.p[_root.ct].ach[_local13];
var _local6 = _root.p[_local10].dch[_local15];
_root.branch2 = _local6.m;
if ((((_local12.a == 0) && (_local6.a == 0)) && (_local6.t == 1)) || (((_local12.a == 1) && (_local6.a == 1)) && (_local6.t == 1))) {
_root.branch = "dodge";
_root.Switch();
_root.makeswitch = true;
_root.RunAtt(_local5);
} else if (((_local12.a != 2) && (_local12.a == _local6.a)) && (_local6.t == 0)) {
_root.Switch();
_root.makeswitch = true;
_root.branch = "block";
_root.RunAtt(_local5);
} else if ((_local12.a == 2) && (_local6.a == 2)) {
_root.ApplyDam(_root.ct, _root.p[_local10].dch[_local15].s, _local11);
_root.branch = "counter";
_root.makeswitch = true;
_root.Switch();
_root.RunAtt(_local5);
} else if (_local6.a == 2) {
_root.ApplyDam(_local10, _root.p[_root.ct].ach[_local13].s, _local8);
_root.branch = "hit";
_root.RunAtt(_local5);
_root.RunDef(_local6.m);
} else if ((_local12.a == 2) && (_local6.t == 1)) {
_root.RunAtt(_local5);
_root.branch = "dodge";
_root.makeswitch = true;
_root.Switch();
} else if ((_local12.a == 2) && ((_local6.t == 0) || (_local6.t == 2))) {
_root.ApplyDam(_local10, _root.p[_root.ct].ach[_local13].s, _local8);
_root.RunAtt(_local5);
_root.branch = "hit";
_root.makeswitch = true;
_root.Switch();
} else if ((_local12.a != _local6.a) && ((_local6.t == 1) || (_local6.t == 2))) {
_root.ApplyDam(_local10, _root.p[_root.ct].ach[_local13].s, _local8);
_root.branch = "hit";
_root.RunAtt(_local5);
_root.RunDef(_local6.m);
} else if ((_local12.a != _local6.a) && (_local6.t == 0)) {
_root.ApplyDam(_local10, _root.p[_root.ct].ach[_local13].s, _local8);
_root.branch = "hit";
_root.RunAtt(_local5);
_root.RunDef(_local6.m);
_root.makeswitch = true;
_root.Switch();
} else if (((_local12.a != 2) && (_local12.a == _local6.a)) && (_local6.t == 2)) {
_root.p[_root.ct].dizzy = 2;
_root.Switch();
_root.makeswitch = true;
_root.branch = "parry";
_root.RunAtt(_local5);
_root.RunDef(_local6.m);
} else {
_root._visible = false;
_root.c[_root.ct].Anim("highattack0");
_root.c[_local10].Anim("blockhigh");
}
_root.mod = 1;
}
if (_local5 != -1) {
_root.p[_root.ct].HuanOne(true, _local5);
}
if (_local7 != -1) {
_root.p[_root.nt].HuanOne(false, _local7);
}
if (!_local16) {
_root.NixSwitch(0);
_root.NixSwitch(1);
} else {
_root.ShowSwitch();
}
bf[0] = new Array();
bf[1] = new Array();
}
this.ref = getTimer();
}
function Bongos(ky, over) {
this.fm = this;
var _local4 = (getTimer() - this.fm.ref) - _root.lag;
if ((_root.mod == 0) || ((_root.mod == 1) && (_local4 > 2666.66666666667))) {
switch (ky) {
case 122 :
if (!_root.p[0].dizzy) {
this.fm.bf[0].push({b:2, t:(getTimer() - this.fm.ref) - ((_root.mod == 1) ? 3555.55555555556 : 0)});
if (_root.ct == 0) {
this.fm.t0_0.start();
} else {
this.fm.t0_3.start();
}
_root.PressUp(0);
}
break;
case 120 :
if (!_root.p[0].dizzy) {
this.fm.bf[0].push({b:1, t:(getTimer() - this.fm.ref) - ((_root.mod == 1) ? 3555.55555555556 : 0)});
if (_root.ct == 0) {
this.fm.t0_1.start();
} else {
this.fm.t0_4.start();
}
_root.PressUp(0);
}
break;
case 99 :
if (!_root.p[0].dizzy) {
this.fm.bf[0].push({b:0, t:(getTimer() - this.fm.ref) - ((_root.mod == 1) ? 3555.55555555556 : 0)});
if (_root.ct == 0) {
this.fm.t0_2.start();
} else {
this.fm.t0_5.start();
}
_root.PressUp(0);
}
break;
case 105 :
if ((!_root.p[1].dizzy) && ((_root.numplayers == 2) || (over))) {
this.fm.bf[1].push({b:2, t:(getTimer() - this.fm.ref) - ((_root.mod == 1) ? 3555.55555555556 : 0)});
if (_root.ct == 1) {
this.fm.t1_0.start();
} else {
this.fm.t1_3.start();
}
_root.PressUp(1);
}
break;
case 111 :
if ((!_root.p[1].dizzy) && ((_root.numplayers == 2) || (over))) {
this.fm.bf[1].push({b:1, t:(getTimer() - this.fm.ref) - ((_root.mod == 1) ? 3555.55555555556 : 0)});
if (_root.ct == 1) {
this.fm.t1_1.start();
} else {
this.fm.t1_4.start();
}
_root.PressUp(1);
}
break;
case 112 :
if (!((!_root.p[1].dizzy) && ((_root.numplayers == 2) || (over)))) {
break;
}
this.fm.bf[1].push({b:0, t:(getTimer() - this.fm.ref) - ((_root.mod == 1) ? 3555.55555555556 : 0)});
if (_root.ct == 1) {
this.fm.t1_2.start();
} else {
this.fm.t1_5.start();
}
_root.PressUp(1);
}
}
}
function Terminate() {
Key.removeListener(dz);
StopIt();
clearInterval(i);
}
var tr = new Array();
var pre = new Array("mus0.wav", "mus1.wav", "tom0_0.wav", "tom0_1.wav", "tom0_2.wav");
var cv = 0;
while (cv < pre.length) {
var s = new Sound(this);
s.attachSound(pre[cv]);
s.start();
s.stop();
tr.push(s);
cv++;
}
var cv = 0;
while (cv < tr.length) {
cv++;
}
var bf = new Array();
bf[0] = new Array();
bf[1] = new Array();
var cv = 0;
while (cv < 6) {
this["t0_" + cv] = new Sound(_root);
this["t0_" + cv].attachSound(("tom0_" + cv) + ".wav");
this["t1_" + cv] = new Sound(_root);
this["t1_" + cv].attachSound(("tom0_" + cv) + ".wav");
cv++;
}
var x = 1;
this.s = new Sound(this);
this.s.attachSound("mus0.wav");
this.trig = false;
this.first = true;
if (this.first) {
this.first = false;
Huayue(1);
this.ref = getTimer();
}
Huanyue();
this.i = setInterval(this, "Huanyue", 3555.55555555556);
var dz = new Object();
dz.fm = this;
dz.onKeyDown = function () {
this.fm.Bongos(Key.getAscii());
};
this.onEnterFrame = function () {
if (_root.mod == 0) {
var _local3 = (getTimer() - this.ref) - _root.lag;
_root.curtim = _local3;
_root.gu.Ln(0, _local3);
_root.gu.Ln(1, _local3);
_root.gu.UpdateMoves(0, false);
_root.gu.UpdateMoves(1, false);
} else if (_root.mod == 1) {
var _local3 = (getTimer() - this.ref) - _root.lag;
_root.curtim = _local3;
if (_local3 > 2666.66666666667) {
_root.gu.Ln(0, _local3 - 3555.55555555556);
_root.gu.Ln(1, _local3 - 3555.55555555556);
}
}
};
Key.addListener(dz);
this.dz = dz;
Symbol 563 MovieClip Frame 4
stop();
Symbol 563 MovieClip Frame 9
stop();
Symbol 563 MovieClip Frame 14
stop();
Symbol 563 MovieClip Frame 29
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 45
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 49
if (_root.branch == "dodge") {
_root.RunDef("duck");
} else if (_root.branch == "hit") {
_root.RunDef("hithigh");
_root.UpdateDefLife();
} else if (_root.branch == "block") {
_root.RunDef("blockhigh");
} else if (_root.branch == "parry") {
_root.ShowSwitch();
_root.RunDef("parryhigh");
gotoAndPlay ("dizzy");
}
Symbol 563 MovieClip Frame 60
_root.RunDef("idle");
Symbol 563 MovieClip Frame 61
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 64
if (_root.branch == "hit") {
_root.RunDef("hitlow");
_root.UpdateDefLife();
} else if (_root.branch == "dodge") {
_root.RunDef("jump");
} else if (_root.branch == "block") {
_root.RunDef("blocklow");
} else if (_root.branch == "parry") {
_root.RunDef("parrylow");
_root.ShowSwitch();
gotoAndPlay ("dizzy");
}
_root.ShowSwitch();
Symbol 563 MovieClip Frame 75
_root.RunDef("idle");
Symbol 563 MovieClip Frame 77
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 81
if (_root.branch == "dodge") {
_root.RunDef("duck");
} else if (_root.branch == "hit") {
_root.RunDef("hithigh");
_root.UpdateDefLife();
} else if (_root.branch == "block") {
_root.RunDef("blockhigh");
} else if (_root.branch == "parry") {
_root.RunDef("parryhigh");
_root.ShowSwitch();
gotoAndPlay ("dizzy");
}
_root.ShowSwitch();
Symbol 563 MovieClip Frame 92
_root.RunDef("idle");
Symbol 563 MovieClip Frame 93
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 96
if (_root.branch == "hit") {
_root.RunDef("hitlow");
_root.UpdateDefLife();
} else if (_root.branch == "dodge") {
_root.RunDef("jump");
} else if (_root.branch == "block") {
_root.RunDef("blocklow");
} else if (_root.branch == "parry") {
_root.ShowSwitch();
_root.RunDef("parrylow");
gotoAndPlay ("dizzy");
}
_root.ShowSwitch();
Symbol 563 MovieClip Frame 107
_root.RunDef("idle");
Symbol 563 MovieClip Frame 109
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 110
if (_root.branch == "hit") {
_root.RunDef("def_gorillathrow");
}
Symbol 563 MovieClip Frame 121
if (_root.branch == "counter") {
_root.RunDef("att_" + _root.branch2);
this.gotoAndPlay("def_" + _root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
}
Symbol 563 MovieClip Frame 135
if (_root.branch == "dodge") {
this.gotoAndPlay("idle");
}
_root.ShowSwitch();
Symbol 563 MovieClip Frame 157
_root.UpdateDefLife();
Symbol 563 MovieClip Frame 166
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 243
stop();
Symbol 563 MovieClip Frame 261
this.gotoAndPlay("idle");
Symbol 563 MovieClip Frame 266
stop();
Symbol 563 MovieClip Frame 271
stop();
Symbol 563 MovieClip Frame 275
gotoAndPlay ("idle");
stop();
Symbol 563 MovieClip Frame 295
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 305
_root.UpdateAttLife();
gotoAndPlay ("idle");
Symbol 563 MovieClip Frame 310
stop();
Symbol 563 MovieClip Frame 315
stop();
Symbol 563 MovieClip Frame 320
stop();
Symbol 564 MovieClip [char2] Frame 1
guts._xscale = (guts._yscale = 140);
Symbol 565 MovieClip [cb] Frame 1
function Init() {
this.attachMovie("char" + i, "guts", 0);
}
function salad(san, s, i) {
clearInterval(san.ival);
san.Anim(s[i].a);
i++;
if (!(s[i] === undefined)) {
san.ival = setInterval(salad, s[i].d, san, s, i);
}
}
Init();
this.Anim = function (a) {
this.guts.guts.gotoAndPlay(a);
this.guts.guts.flag = true;
};
this.Stop = function () {
this.guts.guts.stop();
};
this.San = function (s) {
if (s[0].d == 0) {
this.Anim(s[0].a);
if (!(s[1] === undefined)) {
this.ival = setInterval(salad, s[1].d, this, s, 1);
}
} else {
this.ival = setInterval(salad, s[0].d, this, s, 0);
}
};
Symbol 601 MovieClip Frame 1
this._visible = false;
Symbol 688 MovieClip Frame 12
stop();
Symbol 886 MovieClip Frame 1
this.blocksword = new Sound(this);
blocksword.attachSound("block_sword.wav");
this.blockpunch = new Sound(this);
blockpunch.attachSound("blockpunch.wav");
this.lightpunch = new Sound(this);
lightpunch.attachSound("lightpunch5.wav");
this.miss = new Sound(this);
miss.attachSound("miss.wav");
this.parry = new Sound(this);
parry.attachSound("parry1.wav");
this.punch0 = new Sound(this);
punch0.attachSound("punch.wav");
this.punch1 = new Sound(this);
punch1.attachSound("punch2.wav");
this.punch2 = new Sound(this);
punch2.attachSound("punch3.wav");
this.punch3 = new Sound(this);
punch3.attachSound("punch4.wav");
this.swordconnect = new Sound(this);
swordconnect.attachSound("sword_connect.wav");
this.swordclank = new Sound(this);
swordclank.attachSound("swordclank.wav");
Symbol 886 MovieClip Frame 2
stop();
Symbol 886 MovieClip Frame 25
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.TriggerPoof(170, -200, t);
_root.ShowSwitch();
blocksword.start();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
_root.RunDef("hithigh");
_root.ShowSwitch();
_root.TriggerPoof(170, -200, t);
_root.WF();
swordconnect.start();
} else if (_root.branch == "parry") {
_root.RunDef(_root.branch2 + "release");
_root.ShowSwitch();
gotoAndPlay ("gotparriedhigh");
parry.start();
}
Symbol 886 MovieClip Frame 27
if (_root.branch == "hit") {
_root.UpdateDefLife();
}
Symbol 886 MovieClip Frame 30
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 40
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 59
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 67
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.TriggerPoof(ph._x - 80, ph._y + 40, t);
_root.ShowSwitch();
blocksword.start();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
if (_root.branch2 == "duck") {
_root.RunDef("duckhit");
} else {
_root.RunDef("hitlow");
}
_root.ShowSwitch();
_root.TriggerPoof(ph._x - 80, ph._y + 40, t);
_root.WF();
swordconnect.start();
_root.UpdateDefLife();
} else if (_root.branch == "parry") {
gotoAndPlay ("dizzy");
_root.RunDef(_root.branch2);
_root.ShowSwitch();
parry.start();
}
Symbol 886 MovieClip Frame 72
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 83
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 99
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 120
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 145
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 165
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 181
_root.WF();
Symbol 886 MovieClip Frame 240
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 263
gotoAndPlay ("dizzy");
Symbol 886 MovieClip Frame 288
gotoAndPlay ("dizzy");
Symbol 886 MovieClip Frame 304
Symbol 886 MovieClip Frame 318
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 356
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 357
var sss = new Sound(this);
sss.attachSound("tweet");
sss.start();
Symbol 886 MovieClip Frame 358
stop();
Symbol 886 MovieClip Frame 424
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 445
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.TriggerPoof(ph._x - 80, ph._y + 40, t);
_root.ShowSwitch();
blockpunch.start();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
if (_root.branch2 == "duck") {
_root.RunDef("duckhit");
} else {
_root.RunDef("hitlow");
}
_root.ShowSwitch();
_root.TriggerPoof(ph._x - 80, ph._y + 40, t);
_root.WF();
var which = random(4);
thing = eval ("punch" + which);
thing.start();
root.UpdateDefLife();
}
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
if (_root.branch2 == "duck") {
_root.RunDef("duckhit");
} else {
_root.RunDef("hitlow");
}
_root.ShowSwitch();
_root.UpdateDefLife();
} else if (_root.branch == "parry") {
gotoAndPlay ("dizzy");
_root.RunDef(_root.branch2);
_root.ShowSwitch();
parry.start();
}
Symbol 886 MovieClip Frame 459
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 471
if (_root.branch == "block") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
gotoAndPlay ("idle");
_root.TriggerPoof(ph._x - 80, ph._y + 40, t);
blocksword.start();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "hit") {
if (_root.branch2 == "duck") {
_root.RunDef("duckhit");
} else {
_root.RunDef("hitlow");
}
_root.ShowSwitch();
_root.TriggerPoof(ph._x - 80, ph._y + 40, t);
_root.WF();
swordconnect.start();
_root.UpdateDefLife();
} else if (_root.branch == "parry") {
gotoAndPlay ("dizzy");
_root.RunDef(_root.branch2);
_root.ShowSwitch();
parry.start();
}
Symbol 886 MovieClip Frame 491
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 509
if (_root.branch == "counter") {
_root.RunDef("att_" + _root.branch2);
this.gotoAndPlay("def_" + _root.branch2);
_root.ShowSwitch();
} else if (_root.branch == "dodge") {
_root.RunDef(_root.branch2);
} else if (_root.branch == "hit") {
_root.RunDef("def_hipthrow");
}
Symbol 886 MovieClip Frame 515
if (_root.branch == "hit") {
_root.UpdateDefLife();
}
Symbol 886 MovieClip Frame 545
_root.ShowSwitch();
Symbol 886 MovieClip Frame 562
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 602
_root.WF();
Symbol 886 MovieClip Frame 642
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 644
_root.emerclip = this;
this.onEnterFrame = function () {
_root.bgoff = _root.bgoff - ((((_root.ct == 1) ? 1 : -1) * 350) / 31);
_root.DoFrame();
};
_root.UpdateAttLife();
Symbol 886 MovieClip Frame 675
_root.emerclip = this;
this.onEnterFrame = function () {
_root.bgoff = _root.bgoff + ((((_root.ct == 1) ? 1 : -1) * 350) / 8);
_root.DoFrame();
};
Symbol 886 MovieClip Frame 683
delete this.onEnterFrame;
_root.bgoff = 0;
_root.DoFrame();
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 701
_root.WF();
Symbol 886 MovieClip Frame 739
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 767
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 836
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 873
stop();
Symbol 886 MovieClip Frame 885
_root.WF();
Symbol 886 MovieClip Frame 924
gotoAndStop ("idle");
Symbol 886 MovieClip Frame 925
_root.emerclip = this;
this.onEnterFrame = function () {
_root.bgoff = _root.bgoff - ((((_root.ct == 1) ? 1 : -1) * 350) / 31);
_root.DoFrame();
};
_root.UpdateAttLife();
Symbol 886 MovieClip Frame 956
_root.emerclip = this;
this.onEnterFrame = function () {
_root.bgoff = _root.bgoff + ((((_root.ct == 1) ? 1 : -1) * 350) / 8);
_root.DoFrame();
};
Symbol 886 MovieClip Frame 964
delete this.onEnterFrame;
_root.bgoff = 0;
_root.DoFrame();
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 981
_root.WF();
Symbol 886 MovieClip Frame 1001
gotoAndPlay ("idle");
Symbol 886 MovieClip Frame 1051
_root.WF();
Symbol 886 MovieClip Frame 1064
stop();
Symbol 906 MovieClip Frame 1
stop();
Symbol 928 MovieClip Frame 1
this.cacheAsBitMap = true;
Symbol 936 MovieClip Frame 11
stop();
Symbol 942 MovieClip Frame 10
stop();
Symbol 945 Button
on (release) {
this._parent.gotoAndStop("numplayers");
}
Symbol 947 MovieClip Frame 1
this.onPress = function () {
};
Symbol 977 MovieClip Frame 8
stop();
Symbol 978 MovieClip Frame 1
ex.onPress = function () {
this._parent._parent._visible = false;
};
Instance of Symbol 43 MovieClip "top1" in Symbol 980 MovieClip Frame 1
onClipEvent (load) {
this.dir = -1;
this.partner = this._parent.top2;
}
Instance of Symbol 43 MovieClip "bot2" in Symbol 980 MovieClip Frame 1
onClipEvent (load) {
this.dir = 1;
this.partner = this._parent.bot1;
}
Instance of Symbol 43 MovieClip "top2" in Symbol 980 MovieClip Frame 1
onClipEvent (load) {
this.dir = -1;
this.partner = this._parent.top1;
}
Instance of Symbol 43 MovieClip "bot1" in Symbol 980 MovieClip Frame 1
onClipEvent (load) {
this.dir = 1;
this.partner = this._parent.bot2;
}
Symbol 980 MovieClip Frame 45
stop();
inst._visible = false;
ins.onPress = function () {
this._parent.inst._visible = true;
};
Symbol 985 MovieClip Frame 10
stop();
Symbol 986 Button
on (release) {
this._parent.numplayers = 1;
this._parent.gotoAndStop("charselect");
}
Symbol 989 MovieClip Frame 10
stop();
Symbol 990 Button
on (release) {
this._parent.numplayers = 2;
this._parent.gotoAndStop("charselect");
}
Symbol 991 Button
on (release) {
this._parent.gotoAndStop("trans");
}
Symbol 993 MovieClip Frame 1
this._parent.numplayers = 1;
Symbol 993 MovieClip Frame 19
stop();
Symbol 1011 MovieClip Frame 1
stop();
Symbol 1012 MovieClip Frame 1
function getPlayers() {
return(this._parent._parent.numplayers);
}
function runFlash() {
bleep.start();
this.flasher.gotoAndPlay(2);
if (this._parent._parent.numplayers == 2) {
if (p0selected && (p1selected)) {
waiter = 0;
this.onEnterFrame = function () {
waiter = waiter + 1;
if (waiter >= 55) {
delete this.onEnterFrame;
_root.pix = new Array();
_root.pix[0] = Number(line0);
_root.pix[1] = Number(line1);
this._parent._parent.gotoAndStop("levelsel");
}
};
}
} else {
var _local3 = new Sound(this);
_local3.attachSound("name_" + line0);
_local3.start();
this.dacount = 0;
this.offset = 0;
this.onEnterFrame = function () {
if (this.dacount < 40) {
offset = offset + 1;
this.dacount = this.dacount + 1;
if (offset == 1) {
tink.start();
offset = 0;
if (whichdude == 0) {
whichdude = 1;
} else {
whichdude = 0;
}
line1 = whichdude;
drawLines();
}
} else {
delete this.onEnterFrame;
this.flasher.gotoAndPlay(2);
bleep.start();
this.waiter = 0;
line1 = random(availableplayers);
var _local3 = new Sound(this);
_local3.attachSound("name_" + line1);
_local3.start();
drawLines();
this.onEnterFrame = function () {
waiter = waiter + 1;
if (waiter >= 55) {
delete this.onEnterFrame;
_root.pix = new Array();
_root.pix[0] = Number(line0);
_root.pix[1] = Number(line1);
this._parent._parent.gotoAndStop("levelsel");
}
};
}
};
}
}
function updateSel0(dir) {
if (!p0selected) {
booleep.start();
if (dir == "r") {
line0 = line0 + 1;
if (line0 > 1) {
line0 = 0;
}
} else {
line0 = line0 - 1;
if (line0 < 0) {
line0 = 1;
}
}
drawLines();
}
}
function updateSel1(dir) {
if (!p1selected) {
booleep.start();
if (dir == "r") {
line1 = line1 + 1;
if (line1 > 1) {
line1 = 0;
}
} else {
line1 = line1 - 1;
if (line1 < 0) {
line1 = 1;
}
}
drawLines();
}
}
function drawLines() {
var thing0 = eval ("this.b" + line0);
sel0._x = thing0._x;
sel0._y = thing0._y;
var thing1 = eval ("this.b" + line1);
sel1._x = thing1._x;
sel1._y = thing1._y;
i = 0;
while (i < availableplayers) {
var thing = eval ("preview0.f" + i);
thing._visible = false;
var thing = eval ("preview1.f" + i);
thing._visible = false;
i++;
}
var show0 = eval ("preview0.f" + line0);
show0._visible = true;
var show1 = eval ("preview1.f" + line1);
show1._visible = true;
nam0 = danames[line0];
nam1 = danames[line1];
}
this.booleep = new Sound(this);
booleep.attachSound("booleep");
this.bleep = new Sound(this);
bleep.attachSound("bleep");
this.tink = new Sound(this);
tink.attachSound("tink");
var availableplayers = 2;
var danames = new Array("Captain Moroni", "Gadianton");
if (this._parent._parent.numplayers != 2) {
this.sel1._visible = false;
}
i = 0;
while (i < 6) {
p = 0;
while (p < availableplayers) {
var hid = eval ((("b" + i) + ".prev.f") + p);
hid._visible = false;
p++;
}
var sho = eval ((("b" + i) + ".prev.f") + i);
sho._visible = true;
i++;
}
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local2 = Key.getCode();
if ((_local2 == 88) && (!p0selected)) {
p0selected = true;
runFlash();
var _local3 = new Sound(_root);
_local3.attachSound("name_" + line0);
_local3.start();
}
if (_local2 == 67) {
updateSel0("r");
}
if (_local2 == 90) {
updateSel0("l");
}
var _local4 = getPlayers();
if (_local4 == 2) {
if ((_local2 == 79) && (!p1selected)) {
p1selected = true;
runFlash();
var _local3 = new Sound(_root);
_local3.attachSound("name_" + line1);
_local3.start();
}
if (_local2 == 80) {
updateSel1("r");
}
if (_local2 == 73) {
updateSel1("l");
}
}
};
var line0 = 0;
var line1 = 1;
drawLines();
Key.addListener(keyListener);
Symbol 1014 Button
on (release) {
this._parent.gotoAndStop("numplayers");
}
Symbol 1031 MovieClip Frame 49
stop();
Symbol 1033 Button
on (release) {
this._parent.gotoAndStop("charselect");
}
Symbol 1041 MovieClip Frame 1
function flashit() {
this._parent.flasher.gotoAndPlay(2);
beendone = true;
bleep.start();
cv = 0;
this.onEnterFrame = function () {
cv++;
if (cv > 35) {
_root.bgsel = num;
this._parent._parent.gotoAndStop("game");
delete this.onEnterFrame;
}
};
blah = new Sound(this);
blah.attachSound("levname" + num);
blah.start();
}
function getLoc() {
return(this._parent._parent);
}
function updateSel0(dir) {
booleep.start();
if (!beendone) {
if (dir == "r") {
num = num + 1;
if (num > (totalbgs - 1)) {
num = 0;
}
}
if (dir == "l") {
num = num - 1;
if (num < 0) {
num = totalbgs - 1;
}
}
doit();
}
}
function doit() {
i = 0;
while (i < totalbgs) {
var thing = eval ("bg" + i);
thing._visible = false;
i++;
}
var sho = eval ("bg" + num);
sho._visible = true;
}
this.booleep = new Sound(this);
booleep.attachSound("booleep");
this.bleep = new Sound(this);
bleep.attachSound("bleep");
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if (!beendone) {
if (_local1 == 67) {
updateSel0("r");
}
if (_local1 == 90) {
updateSel0("l");
}
if (_local1 == 88) {
flashit();
}
}
};
totalbgs = 2;
var num = 0;
doit();
Key.addListener(keyListener);