Frame 1
my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.zoom = true;
my_cm.builtInItems.quality = true;
_root.menu = my_cm;
if (_root._framesloaded >= _root._totalframes) {
gotoAndStop (3);
} else {
stop();
}
Frame 2
gotoAndStop (3);
Frame 3
gotoAndStop (4);
function Replace(oldstring, dislike, like) {
var _local1 = oldstring;
while (_local1.indexOf(dislike) != -1) {
search = _local1.indexOf(dislike);
partA = _local1.slice(0, search);
partB = _local1.slice(search + dislike.length);
_local1 = (partA + like) + partB;
}
delete search;
delete partA;
delete partB;
return(_local1);
}
function count(string, focus) {
var _local4 = 0;
var _local1 = 0;
while (_local1 <= (string.length - focus.length)) {
if (string.substr(_local1, focus.length) == focus) {
_local4++;
}
_local1++;
}
focus = _local4;
return(_local4);
}
function address(url) {
urlstring = String(url);
urlstring = Replace(urlstring, "%20", " ");
urlstring = Replace(urlstring, "%26", "&");
urlstring = urlstring.slice(11, urlstring.lastIndexOf("/"));
subdirno = count(urlstring, "/") + 1;
subdir = "";
while (subdirno > 0) {
subdir = subdir + "../";
subdirno--;
}
url = (subdir + urlstring) + "/";
delete urlstring;
delete subdirno;
delete subdir;
return(url);
}
function filename(string) {
string = Replace(string, " ", "_");
string = Replace(string, "~", "@");
string = Replace(string, "#", "@");
string = Replace(string, "%", "@");
string = Replace(string, "&", "@");
string = Replace(string, ":", "@");
string = Replace(string, ";", "@");
string = Replace(string, "\"", "@");
string = Replace(string, "'", "@");
string = Replace(string, "\\", "@");
string = Replace(string, ",", "@");
string = Replace(string, "<", "@");
string = Replace(string, ">", "@");
string = Replace(string, "?", "@");
return(string);
}
function copySO(A, B) {
_root[A].data.name = _root[B].data.name;
_root[A].data.bangstyle = _root[B].data.bangstyle;
_root[A].data.sidestyle = _root[B].data.sidestyle;
_root[A].data.scalpstyle = _root[B].data.scalpstyle;
_root[A].data.backstyle = _root[B].data.backstyle;
_root[A].data.eyestyle = _root[B].data.eyestyle;
_root[A].data.browstyle = _root[B].data.browstyle;
_root[A].data.shirtstyle = _root[B].data.shirtstyle;
_root[A].data.overstyle = _root[B].data.overstyle;
_root[A].data.sleevestyle = _root[B].data.sleevestyle;
_root[A].data.pantstyle = _root[B].data.pantstyle;
_root[A].data.glovestyle = _root[B].data.glovestyle;
_root[A].data.shoestyle = _root[B].data.shoestyle;
_root[A].data.accpack = _root[B].data.accpack;
_root[A].data.skincolor = _root[B].data.skincolor;
_root[A].data.haircolor = _root[B].data.haircolor;
_root[A].data.ballooncolor = _root[B].data.ballooncolor;
_root[A].data.shirtcolor = _root[B].data.shirtcolor;
_root[A].data.overcolor = _root[B].data.overcolor;
_root[A].data.sleevecolor = _root[B].data.sleevecolor;
_root[A].data.pantscolor = _root[B].data.pantscolor;
_root[A].data.glovecolor = _root[B].data.glovecolor;
_root[A].data.shoescolor = _root[B].data.shoescolor;
var _local2 = 1;
while (_local2 <= 3) {
_root[A].data[("wear" + _local2) + "style"] = _root[B].data[("wear" + _local2) + "style"];
_root[A].data[("wear" + _local2) + "color"] = _root[B].data[("wear" + _local2) + "color"];
_root[A].data[("wear" + _local2) + "level"] = _root[B].data[("wear" + _local2) + "level"];
_local2++;
}
_root[A].data.stockshirt = _root[B].data.stockshirt;
_root[A].data.stockover = _root[B].data.stockover;
_root[A].data.stocksleeve = _root[B].data.stocksleeve;
_root[A].data.stockglove = _root[B].data.stockglove;
_root[A].data.stockpant = _root[B].data.stockpant;
_root[A].data.stockshoe = _root[B].data.stockshoe;
_root[A].data.stockacc = _root[B].data.stockacc;
_root[A].data.stockwear = _root[B].data.stockwear;
_root[A].data.cash = _root[B].data.cash;
_root[A].data.rank = _root[B].data.rank;
}
stop();
dir = address(_url);
Instance of Symbol 32 MovieClip [event] "mask" in Frame 3
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1232 MovieClip "game" in Frame 3
onClipEvent (load) {
BGM = new Sound(this);
gotoAndStop ("Title");
players = 2;
}
onClipEvent (enterFrame) {
BGM.onSoundComplete = function () {
BGM.start();
};
}
Frame 5
gotoAndStop (4);
Symbol 11 MovieClip [acc2] Frame 1
gotoAndStop (1);
_parent.required = 35;
_parent.used = 35;
_parent.hold = false;
Symbol 11 MovieClip [acc2] Frame 2
with (_parent._parent) {
xvel = xvel + ((strength * 2) * dir);
yvel = yvel - (strength * 1.5);
}
Symbol 11 MovieClip [acc2] Frame 3
with (_parent._parent) {
yvel = yvel - (strength * 3);
}
Symbol 11 MovieClip [acc2] Frame 4
with (_parent._parent) {
yvel = yvel - (strength * 1.5);
}
Symbol 11 MovieClip [acc2] Frame 7
gotoAndStop (1);
Symbol 19 MovieClip [acc3] Frame 1
gotoAndStop (1);
_parent.required = 35;
_parent.used = 35;
_parent.hold = false;
Symbol 19 MovieClip [acc3] Frame 2
_parent._parent.yvel = _parent._parent.yvel + (_parent._parent.strength * 1.7);
Symbol 19 MovieClip [acc3] Frame 3
_parent._parent.yvel = _parent._parent.yvel + (_parent._parent.strength * 1.7);
Symbol 19 MovieClip [acc3] Frame 4
_parent._parent.yvel = _parent._parent.yvel + (_parent._parent.strength * 1.7);
Symbol 19 MovieClip [acc3] Frame 7
gotoAndStop (1);
Symbol 27 MovieClip [acc4] Frame 1
_parent.required = 3;
_parent.used = 3;
_parent.hold = true;
stop();
Instance of Symbol 26 MovieClip in Symbol 27 MovieClip [acc4] Frame 2
onClipEvent (enterFrame) {
with (_parent._parent._parent) {
xvel = (strength * dir) * (charge / 50);
yvel = yvel * (1 - (charge / 100));
}
}
Symbol 32 MovieClip [event] Frame 2
stop();
Symbol 33 MovieClip [acc5] Frame 1
opponent = "Player" + (((_parent._parent.ID - 1) * -1) + 2);
stop();
_parent.required = 60;
_parent.used = 60;
_parent.hold = false;
Instance of Symbol 32 MovieClip [event] in Symbol 33 MovieClip [acc5] Frame 2
onClipEvent (enterFrame) {
with (_parent._parent._parent) {
if (pack.acc.shield.hitTest(_parent[pack.acc.opponent])) {
pack.acc.xdiff = _parent[pack.acc.opponent]._x - _x;
pack.acc.ydiff = _parent[pack.acc.opponent]._y - _y;
pack.acc.dist = Math.sqrt((pack.acc.xdiff * pack.acc.xdiff) + (pack.acc.ydiff * pack.acc.ydiff)) / 10;
_parent[pack.acc.opponent].xvel = ((5 * pack.acc.xdiff) / pack.acc.dist) / pack.acc.dist;
_parent[pack.acc.opponent].yvel = ((5 * pack.acc.ydiff) / pack.acc.dist) / pack.acc.dist;
SFX.attachSound("bounce");
SFX.start();
}
}
}
Symbol 33 MovieClip [acc5] Frame 20
gotoAndStop (1);
Symbol 37 MovieClip [acc6] Frame 1
_parent.required = 4;
_parent.used = 4;
_parent.hold = true;
stop();
Instance of Symbol 36 MovieClip "flame" in Symbol 37 MovieClip [acc6] Frame 2
onClipEvent (enterFrame) {
_xscale = ((((_parent._parent._parent.charge * _currentframe) * 12) + 150) * 0.12);
with (_parent._parent._parent) {
if ((!pack.acc.flame.hitTest(_parent[opponent].pack.acc.shield)) && (_parent[opponent].invincibility == 0)) {
if (pack.acc.flame.hitTest(_parent[opponent].balloons) && (_parent[opponent].balloons.ballooncount > 0)) {
_parent[opponent].balloons.inflation = _parent[opponent].balloons.inflation + (charge / 20);
}
if (pack.acc.flame.hitTest(_parent[opponent])) {
_parent[opponent].xvel = _parent[opponent].xvel + (pack.acc.flame._xscale / _xscale);
SFX.attachSound("bounce");
SFX.start();
}
}
xvel = xvel + ((ori * (-charge)) * 0.01);
}
}
Instance of Symbol 36 MovieClip "flame" in Symbol 37 MovieClip [acc6] Frame 2
onClipEvent (enterFrame) {
_xscale = ((((_parent._parent._parent.charge * _currentframe) * 20) + 60) * 0.12);
}
Symbol 47 MovieClip [acc7] Frame 1
_parent.required = 20;
_parent.used = 20;
_parent.hold = false;
stop();
Symbol 47 MovieClip [acc7] Frame 3
with (_parent._parent._parent.manager) {
i++;
attachMovie("marble", "marble" + i, i);
}
with (_parent._parent) {
_parent.manager["marble" + _parent.manager.i].xvel = ori * -5;
_parent.manager["marble" + _parent.manager.i]._x = _x;
_parent.manager["marble" + _parent.manager.i].yvel = yvel - 10;
_parent.manager["marble" + _parent.manager.i]._y = _y;
_parent.manager["marble" + _parent.manager.i].ignore = ID;
yvel = yvel + 5;
}
Symbol 49 MovieClip [acc8] Frame 1
_parent.required = 1.75;
_parent.used = 1.75;
_parent.hold = true;
stop();
Instance of Symbol 36 MovieClip "flame2" in Symbol 49 MovieClip [acc8] Frame 2
onClipEvent (enterFrame) {
_xscale = ((_parent._parent._parent.charge / 2) + 25);
}
Instance of Symbol 36 MovieClip "flame1" in Symbol 49 MovieClip [acc8] Frame 2
onClipEvent (enterFrame) {
_xscale = (_parent._parent._parent.charge + 50);
with (_parent._parent._parent) {
xvel = xvel + ((strength / _xscale) * (charge / 5));
}
}
Symbol 53 MovieClip [acc9] Frame 1
_parent.required = 75;
_parent.used = 75;
_parent.hold = false;
stop();
Symbol 53 MovieClip [acc9] Frame 2
with (_parent._parent) {
SFX.attachSound("bpop");
SFX.start();
xvel = xvel + (150 / (-_xscale));
_parent.manager.i++;
_parent.manager.attachMovie("bullet", "bullet" + _parent.manager.i, _parent.manager.i);
_parent.manager["bullet" + _parent.manager.i].xvel = 10 * ori;
_parent.manager["bullet" + _parent.manager.i]._xscale = -_xscale;
_parent.manager["bullet" + _parent.manager.i]._yscale = _yscale;
_parent.manager["bullet" + _parent.manager.i]._x = _x;
_parent.manager["bullet" + _parent.manager.i]._y = _y;
_parent.manager["bullet" + _parent.manager.i].ignore = ID;
}
Symbol 61 MovieClip [acc10] Frame 1
_parent.required = 25;
_parent.used = 25;
_parent.hold = false;
stop();
Symbol 61 MovieClip [acc10] Frame 3
_parent._parent.xvel = _parent._parent.xvel * -1;
_parent._parent.dir = _parent._parent.ori;
Symbol 70 MovieClip [acc11] Frame 1
_parent.required = 25;
_parent.used = 25;
_parent.hold = false;
stop();
Symbol 70 MovieClip [acc11] Frame 3
_parent._parent.yvel = _parent._parent.yvel * -1;
Symbol 73 MovieClip [acc12] Frame 1
_parent.required = 75;
_parent.used = 25;
_parent.hold = false;
stop();
Symbol 73 MovieClip [acc12] Frame 3
_parent._parent.xvel = _parent._parent.xvel + ((_parent._parent.strength * _parent._parent.ori) * 3);
Symbol 75 MovieClip [acc13] Frame 1
_parent.required = 3;
_parent.used = 3;
_parent.hold = true;
stop();
Instance of Symbol 26 MovieClip "glow" in Symbol 75 MovieClip [acc13] Frame 2
onClipEvent (enterFrame) {
with (_parent._parent._parent) {
if (((ID == 1) && (_parent.distance < 0)) || ((ID == 2) && (_parent.distance > 0))) {
_parent[opponent].xvel = _parent[opponent].xvel - (charge * 0.01);
} else {
_parent[opponent].xvel = _parent[opponent].xvel + (charge * 0.01);
}
if (_parent[opponent]._y < _y) {
_parent[opponent].yvel = _parent[opponent].yvel + (charge * 0.01);
} else {
_parent[opponent].yvel = _parent[opponent].yvel - (charge * 0.01);
}
}
_yscale = (_parent._parent._parent.charge * 2);
_xscale = (_parent._parent._parent.charge * 2);
with (_parent.glow2) {
_xscale = (_yscale = _parent._parent._parent.charge * 3);
}
}
Symbol 77 MovieClip [acc14] Frame 1
_parent.required = 20;
_parent.used = 20;
_parent.hold = false;
stop();
Symbol 77 MovieClip [acc14] Frame 2
with (_parent._parent._parent.manager) {
i++;
attachMovie("marble", "marble" + i, i);
}
with (_parent._parent) {
_parent.manager["marble" + _parent.manager.i].xvel = xvel * 0.5;
_parent.manager["marble" + _parent.manager.i]._x = _x;
_parent.manager["marble" + _parent.manager.i].yvel = yvel + 10;
_parent.manager["marble" + _parent.manager.i]._y = _y;
_parent.manager["marble" + _parent.manager.i].ignore = ID;
yvel = yvel - 4;
}
Symbol 79 MovieClip [acc15] Frame 1
_parent.required = 50;
_parent.used = 50;
_parent.hold = false;
stop();
Symbol 79 MovieClip [acc15] Frame 2
_parent._parent._parent.Player1.charge = _parent._parent._parent.Player1.charge * -1;
_parent._parent._parent.Player2.charge = _parent._parent._parent.Player2.charge * -1;
Symbol 81 MovieClip [acc18] Frame 1
_parent.required = 15;
_parent.used = 15;
_parent.hold = false;
stop();
Symbol 81 MovieClip [acc18] Frame 2
with (_parent._parent) {
_parent.manager.i++;
_parent.manager.attachMovie("kurosuke", "kurosuke" + _parent.manager.i, _parent.manager.i);
_parent.manager["kurosuke" + _parent.manager.i].xvel = -5 * ori;
_parent.manager["kurosuke" + _parent.manager.i]._x = _x + random(5);
_parent.manager["kurosuke" + _parent.manager.i]._y = _y - random(15);
_parent.manager["kurosuke" + _parent.manager.i]._xscale = _xscale;
_parent.manager["kurosuke" + _parent.manager.i]._yscale = _yscale;
_parent.manager["kurosuke" + _parent.manager.i].hunt = opponent;
}
Symbol 90 MovieClip [acc17] Frame 1
_parent.required = 20;
_parent.used = 20;
_parent.hold = false;
stop();
Instance of Symbol 32 MovieClip [event] in Symbol 90 MovieClip [acc17] Frame 2
onClipEvent (enterFrame) {
with (_parent._parent._parent) {
if (pack.acc.hitTest(_parent[opponent].pack.acc.shield)) {
this._parent.gotoAndStop(1);
}
if ((pack.acc.hitTest(_parent[opponent].pilot) || (pack.acc.hitTest(_parent[opponent].balloons))) && (_parent[opponent].invincibility == 0)) {
_parent[opponent].yvel = _parent[opponent].yvel + ((charge + 20) / 20);
SFX.attachSound("bounce");
SFX.start();
}
}
}
Symbol 92 MovieClip [acc16] Frame 1
_parent.required = 33;
_parent.used = 33;
_parent.hold = false;
stop();
Symbol 92 MovieClip [acc16] Frame 2
with (_parent._parent) {
var i = random(100);
this.x = _x;
this.y = _y;
this.scale = _yscale;
_parent.attachMovie("Poof", "Poof" + i, i + 100);
with (_parent["Poof" + i]) {
_x = this.x;
_y = this.y;
_yscale = (_xscale = this.scale * 0.8);
}
_y = random(250) + 25;
_x = random(300) + 50;
this.x = _x;
this.y = _y;
i = random(100);
if (_root.warp) {
_parent.attachMovie("Poof", "Poof" + i, i + 100);
with (_parent["Poof" + i]) {
_x = this.x;
_y = this.y;
_yscale = (_xscale = this.scale * 0.8);
}
}
delete i;
delete this.x;
delete this.y;
delete this.scale;
}
Symbol 94 MovieClip [acc1] Frame 1
stop();
_parent.required = 100;
_parent.used = 3;
_parent.hold = true;
Symbol 94 MovieClip [acc1] Frame 2
_parent._parent.flap(_parent._parent.strength, _parent._parent.dir);
gotoAndStop (1);
Symbol 121 MovieClip Frame 1
function recolor(paint) {
tempcolor = new Color(this.fill);
tempcolor.setRGB(paint);
delete tempcolor;
}
Instance of Symbol 120 MovieClip "line" in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.inflation != undefined) {
_xscale = _parent._parent.inflation;
_parent.fill._xscale = _parent._parent.inflation;
_yscale = _parent._parent.inflation;
_parent.fill._yscale = _parent._parent.inflation;
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 126 MovieClip [Star] Frame 1
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll / 5);
if (_y > 310) {
removeMovieClip(this);
}
}
}
Symbol 128 MovieClip Frame 1
function scramble(target) {
target._alpha = (random(10) + ((500 - target._y) / 8)) + 5;
target._xscale = (target._yscale = target._alpha - 25);
target._rotation = random(360);
}
Instance of Symbol 121 MovieClip "progress" in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
pop = 0;
checkum = 0;
}
onClipEvent (enterFrame) {
if (checkum == 0) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.gotoAndStop(3);
}
checkum++;
}
inflate = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 150) + 10;
_parent.percent.text = int((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) + "%";
if ((pop == 0) && (_parent.pumper._currentframe >= 13)) {
_yscale = (((_xscale * 3) + inflate) / 4);
_xscale = (((_xscale * 3) + inflate) / 4);
_alpha = (((70 * (_root.getBytesTotal() - _root.getBytesLoaded())) / _root.getBytesTotal()) + 50);
if ((_root.getBytesLoaded() >= _root.getBytesTotal()) && (_parent.pumper._currentframe >= 18)) {
pop = 1;
_alpha = 0;
_parent.pumper.stop();
temp = new Sound(this);
temp.attachSound("bpop");
temp.start();
}
}
if (pop > 0) {
pop++;
}
if (pop >= 50) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Instance of Symbol 126 MovieClip [Star] in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_parent.scramble(this);
}
Symbol 203 MovieClip [Distance0] Frame 1
gotoAndStop(_parent.stagetype);
Instance of Symbol 32 MovieClip [event] in Symbol 203 MovieClip [Distance0] Frame 1
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll * -0.1);
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 203 MovieClip [Distance0] Frame 4
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.1);
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 203 MovieClip [Distance0] Frame 5
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.09);
}
}
Instance of Symbol 182 MovieClip in Symbol 203 MovieClip [Distance0] Frame 6
onClipEvent (load) {
gotoAndPlay (1);
_y = (_y + 1);
}
Instance of Symbol 182 MovieClip in Symbol 203 MovieClip [Distance0] Frame 6
onClipEvent (load) {
gotoAndPlay (10);
_y = (_y - 1);
}
Instance of Symbol 32 MovieClip [event] in Symbol 203 MovieClip [Distance0] Frame 6
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll * -0.12);
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 203 MovieClip [Distance0] Frame 7
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll * -0.17);
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 203 MovieClip [Distance0] Frame 8
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.1);
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 203 MovieClip [Distance0] Frame 9
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.16);
}
}
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip [Distance0] Frame 10
onClipEvent (load) {
_y = (_y - 5);
gotoAndPlay (5);
}
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip [Distance0] Frame 10
onClipEvent (load) {
_y = (_y + 5);
gotoAndPlay (1);
}
Instance of Symbol 32 MovieClip [event] in Symbol 203 MovieClip [Distance0] Frame 10
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.18);
}
}
Symbol 211 MovieClip [Distance1] Frame 1
gotoAndStop(_parent.stagetype);
_y = -10;
Instance of Symbol 32 MovieClip [event] in Symbol 211 MovieClip [Distance1] Frame 1
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll * 0.22);
if (_y > 300) {
removeMovieClip(this);
}
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 211 MovieClip [Distance1] Frame 2
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll * 0.25);
if (_y > 300) {
removeMovieClip(this);
}
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 211 MovieClip [Distance1] Frame 4
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.33);
if (_parent.yscroll > -0.1) {
removeMovieClip(this);
}
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 211 MovieClip [Distance1] Frame 8
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.4);
if (_y > 400) {
removeMovieClip(this);
}
}
}
Symbol 214 MovieClip [Distance2] Frame 1
gotoAndStop(_parent.stagetype);
_y = 0;
Instance of Symbol 32 MovieClip [event] in Symbol 214 MovieClip [Distance2] Frame 1
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll * 0.3);
if (_y > 300) {
removeMovieClip(this);
}
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 214 MovieClip [Distance2] Frame 4
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.5);
if (_y > 450) {
removeMovieClip(this);
}
}
}
Symbol 220 MovieClip [Distance3] Frame 1
gotoAndStop(_parent.stagetype);
_y = 100;
Instance of Symbol 32 MovieClip [event] in Symbol 220 MovieClip [Distance3] Frame 1
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll * 0.5);
if (_y > 300) {
removeMovieClip(this);
}
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 220 MovieClip [Distance3] Frame 2
onClipEvent (enterFrame) {
with (_parent) {
_y = _y + (_parent.yscroll * 0.6);
if (_y > 400) {
removeMovieClip(this);
}
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 220 MovieClip [Distance3] Frame 4
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.75);
if (_y > 600) {
removeMovieClip(this);
}
}
}
Instance of Symbol 32 MovieClip [event] in Symbol 220 MovieClip [Distance3] Frame 8
onClipEvent (enterFrame) {
with (_parent) {
_y = _y - (_parent.yscroll * 0.7);
if (_y > 400) {
removeMovieClip(this);
}
}
}
Symbol 222 MovieClip [bullet] Frame 1
function destroy() {
SFX = new Sound(this);
SFX.attachSound("bounce");
SFX.start();
removeMovieClip(this);
}
time = 0;
Instance of Symbol 32 MovieClip [event] in Symbol 222 MovieClip [bullet] Frame 1
onClipEvent (enterFrame) {
with (_parent) {
time++;
_x = _x + (xvel + _root.game.xscroll);
_y = _y + (yvel + _root.game.yscroll);
if (time > 40) {
destroy();
} else if (_x > 415) {
_x = -15;
} else if (_x < -15) {
_x = 415;
}
var i = 1;
while (i <= 2) {
if (((ignore != i) && (hitTest(_root.game["Player" + i].pilot))) && (_root.game["Player" + i].invincibility == 0)) {
_root.game["Player" + i].xvel = xvel;
destroy();
} else if ((((ignore != i) && (hitTest(_root.game["Player" + i].balloons))) && (_root.game["Player" + i].balloons.ballooncount > 0)) && (_root.game["Player" + i].invincibility == 0)) {
_root.game["Player" + i].SFX.attachSound("bpop");
_root.game["Player" + i].SFX.start();
_root.game["Player" + i].balloons.pop();
destroy();
} else if (hitTest(_root.game["Player" + i].pack.acc.shield) && (ignore != i)) {
xvel = xvel * -1;
_x = _x + xvel;
_xscale = _xscale * -1;
ignore = i;
}
i++;
}
}
}
Symbol 230 MovieClip Frame 6
gotoAndStop (1);
Instance of Symbol 230 MovieClip in Symbol 231 MovieClip [kurosuke] Frame 1
onClipEvent (load) {
blink = 0;
timer = 0;
_parent.yvel = 0;
}
onClipEvent (enterFrame) {
blink++;
timer++;
if (random(200) < blink) {
gotoAndPlay (2);
blink = 0;
_parent.yvel = _parent.yvel - 3;
_parent.xvel = random(7) - 3;
_rotation = (_rotation + (random(40) - 20));
}
_rotation = (_rotation * 0.9);
with (_parent) {
_x = _x + xvel;
_y = _y + yvel;
xvel = xvel * 0.9;
yvel = yvel * 0.8;
yvel = yvel + 0.3;
if (_y > 280) {
timer = timer + 5;
}
if (timer >= 400) {
removeMovieClip(this._parent);
} else if (timer >= 350) {
_alpha = (400 - timer) * 2;
}
if (timer > 10) {
i = 1;
while (i <= _parent.players) {
if (hitTest(_root.game["Player" + i].pack.acc.shield)) {
timer = timer + 50;
} else if ((hitTest(_root.game["Player" + i].pilot) || (hitTest(_root.game["Player" + i].balloons))) && (_root.game["Player" + i].invincibility == 0)) {
_root.game["Player" + i].xvel = _root.game["Player" + i].xvel * 0.8;
_root.game["Player" + i].yvel = _root.game["Player" + i].yvel * 0.8;
_x = _x + _root.game["Player" + i].xvel;
_y = _y + _root.game["Player" + i].yvel;
timer = timer + (_root.game["Player" + i]._currentframe * 2);
}
i++;
}
}
}
}
Symbol 232 MovieClip [marble] Frame 2
stop();
life = 3;
Instance of Symbol 32 MovieClip [event] in Symbol 232 MovieClip [marble] Frame 2
onClipEvent (enterFrame) {
with (_parent) {
_x = _x + (xvel + _root.game.xscroll);
_y = _y + (yvel + _root.game.yscroll);
yvel = yvel + (_root.game.gravity * 2);
if (timer == undefined) {
timer = 0;
}
timer++;
if (life <= 0) {
life++;
}
if (_y >= 300) {
removeMovieClip();
}
if (_x < 0) {
_x = 400;
}
if (_x > 400) {
_x = 0;
}
if (((hitTest(_root.game.Player1.pilot) && (ignore != 1)) && (life > 0)) && (_root.game.Player1.invincibility == 0)) {
tempx = _root.game.Player1.xvel;
tempy = _root.game.Player1.yvel;
_root.game.Player1.xvel = xvel;
_root.game.Player1.yvel = yvel;
xvel = tempx;
yvel = tempy;
_root.game.Player1.SFX.attachSound("bounce");
_root.game.Player1.SFX.start();
delete tempx;
delete tempy;
life = -10;
}
if (((hitTest(_root.game.Player2.pilot) && (ignore != 2)) && (life > 0)) && (_root.game.Player2.invincibility == 0)) {
tempx = _root.game.Player2.xvel;
tempy = _root.game.Player2.yvel;
_root.game.Player2.xvel = xvel;
_root.game.Player2.yvel = yvel;
xvel = (tempx + xvel) / 2;
yvel = (tempy + yvel) / 2;
_root.game.Player1.SFX.attachSound("bounce");
_root.game.Player1.SFX.start();
delete tempx;
delete tempy;
life = -10;
}
if (hitTest(_root.game.Player1.pack.acc.shield)) {
xdiff = _root.game.Player1.pack.acc.shield._x - _x;
ydiff = _root.game.Player1.pack.acc.shield._y - _y;
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)) / 10;
xvel = ((5 * xdiff) / dist) / dist;
yvel = ((5 * ydiff) / dist) / dist;
_root.game.Player1.SFX.attachSound("bounce");
_root.game.Player1.SFX.start();
}
if (hitTest(_root.game.Player2.pack.acc.shield)) {
xdiff = _root.game.Player2.pack.acc.shield._x - _x;
ydiff = _root.game.Player2.pack.acc.shield._y - _y;
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff)) / 10;
xvel = ((5 * xdiff) / dist) / dist;
yvel = ((5 * ydiff) / dist) / dist;
_root.game.Player2.SFX.attachSound("bounce");
_root.game.Player2.SFX.start();
}
}
}
Symbol 239 MovieClip [Poof] Frame 7
removeMovieClip(this);
Symbol 251 Button
on (release) {
gotoAndStop ("version");
}
Symbol 273 Button
on (press) {
step = 3;
}
on (release) {
step = 4;
}
on (releaseOutside) {
step = 1;
}
on (rollOver) {
step = 2;
}
on (rollOut) {
step = 1;
}
on (dragOver) {
step = 3;
}
on (dragOut) {
step = 1;
}
Symbol 277 MovieClip Frame 1
stop();
bt.stop();
if (newname == undefined) {
bt.buttonname = _name;
} else {
bt.buttonname = newname;
}
Instance of Symbol 270 MovieClip "bt" in Symbol 277 MovieClip Frame 1
onClipEvent (enterFrame) {
with (_parent) {
gotoAndStop(step);
bt.gotoAndStop(step);
}
}
Symbol 289 Button
on (release) {
gotoAndStop ("EditReg");
}
Symbol 294 Button
on (release) {
gotoAndStop ("keyconfig");
}
Symbol 296 Button
on (release) {
switched = true;
gotoAndStop ("music_config");
}
Symbol 298 Button
on (release) {
gotoAndStop ("displayoptions");
}
Symbol 300 Button
on (release) {
keyman.config = "keyADVANCE1";
}
Symbol 301 Button
on (release) {
keyman.config = "keyBASIC1";
}
Symbol 302 Button
on (release) {
keyman.config = "keyRIGHTKEY1";
}
Symbol 303 Button
on (release) {
keyman.config = "keyLEFTKEY1";
}
Symbol 304 Button
on (release) {
keyman.config = "keyADVANCE2";
}
Symbol 305 Button
on (release) {
keyman.config = "keyBASIC2";
}
Symbol 306 Button
on (release) {
keyman.config = "keyRIGHTKEY2";
}
Symbol 307 Button
on (release) {
keyman.config = "keyLEFTKEY2";
}
Instance of Symbol 317 MovieClip "ball" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
_xscale = (10000 / _parent._xscale);
marg = _xscale / 20;
mult = 1 - ((_xscale / _parent._xscale) / 10);
}
onClipEvent (enterFrame) {
_x = ((_parent.percent * mult) + marg);
if (drag) {
_parent.percent = int((_parent._xmouse / mult) - marg);
}
if (_parent.percent > 100) {
_parent.percent = 100;
} else if (_parent.percent < 0) {
_parent.percent = 0;
}
}
onClipEvent (mouseDown) {
if ((((_parent._xmouse > 0) && (_parent._xmouse < 100)) && (_parent._ymouse > -5)) && (_parent._ymouse < 5)) {
drag = true;
}
}
onClipEvent (mouseUp) {
drag = false;
}
Symbol 323 Button
on (release) {
track--;
switched = true;
}
Symbol 324 Button
on (release) {
track++;
switched = true;
}
Symbol 325 Button
on (press) {
switched = true;
}
on (release) {
BGM.stop();
BGM.start();
}
Symbol 326 Button
on (release) {
BGM.stop();
}
Symbol 336 Button
on (release) {
musichelp.asking = true;
}
Symbol 426 MovieClip Frame 1
stop();
gotoAndStop((person * 5) - 3);
Instance of Symbol 422 MovieClip "steer" in Symbol 426 MovieClip Frame 42
onClipEvent (load) {
path = 0;
turn = 0;
turnvel = 0;
}
onClipEvent (enterFrame) {
path = path * 0.95;
if (random(10) == 1) {
path = path + ((random(3) - 1) * 2);
if (Math.abs(path) > 8) {
path = path * -0.5;
}
}
if (path > turn) {
turnvel = turnvel + 0.1;
} else {
turnvel = turnvel - 0.1;
}
turn = turn + turnvel;
turnvel = turnvel * 0.9;
if (turn > 10) {
turn = 10;
} else if (turn < -10) {
turn = -10;
}
gotoAndStop(int(turn) + 11);
}
Symbol 427 MovieClip Frame 1
function say(stuff) {
x = 0;
while (x < stuff.length) {
x = x + maxlength;
if (x >= stuff.length) {
break;
}
while (stuff.charAt(x) != " ") {
x--;
}
stuff = (stuff.substr(0, x) + newline) + stuff.substr(x + 1);
x++;
}
i = 0;
delete x;
speech = stuff;
talk = "";
index++;
}
delay = 0;
lip = 0;
speaker.frame = 1;
speaker.mouth.frame = 1;
Instance of Symbol 426 MovieClip "speaker" in Symbol 427 MovieClip Frame 1
onClipEvent (enterFrame) {
with (_parent) {
if (delay == 0) {
if (((speech.substr(i, 2) == ". ") || (speech.substr(i, 2) == "! ")) || (speech.substr(i, 2) == "? ")) {
delay = 10;
} else if (speech.charAt(i) == ",") {
delay = 3;
}
i++;
if (i < speech.length) {
talk = speech.substr(0, i);
lip++;
}
}
if ((delay > 0) || (i >= speech.length)) {
speaker.gotoAndStop((person * 5) - 3);
speaker.mouth.gotoAndStop((person * 5) - 4);
if (delay > 0) {
delay--;
}
lip = 1;
}
if ((lip % 2) == 0) {
with (speaker.mouth) {
frame = frame + (random(4) + 1);
if (frame > 5) {
frame = frame - 5;
}
gotoAndStop(((person * 5) - frame) + 1);
}
}
if ((lip % 3) == 0) {
with (speaker) {
frame = frame + (random(3) - 1);
if (frame > 5) {
frame = 4;
}
if (frame < 1) {
frame = 2;
}
gotoAndStop(((person * 5) - frame) + 2);
}
}
}
}
Symbol 437 MovieClip Frame 1
function stretch(width, height) {
bb.w = width;
bb.h = height;
bb.i = 0;
bb.j = 0;
NEXT._alpha = 0;
NEXT._xscale = (NEXT._yscale = 0);
_parent.clerk.maxlength = int((16 * width) / 100) - 1;
tb._x = (width * -0.5) + (width * 0.03);
bbm._width = width;
bbm._height = height;
}
function pos(x, y) {
_x = x;
_y = y;
}
function disp() {
tsugi = true;
}
function remove() {
tsugi = false;
}
Instance of Symbol 434 MovieClip "bb" in Symbol 437 MovieClip Frame 1
onClipEvent (enterFrame) {
if (i <= 4) {
_height = 20;
_width = ((i * w) * 0.25);
i++;
_x = ((-_width) / 2);
_parent.bbm._x = _x;
j = 1;
}
if ((i >= 5) && (j <= 4)) {
_height = ((j * h) * 0.25);
j++;
_parent.bbm._y = _y;
}
if ((i == 5) && (j == 5)) {
_parent.NEXT._x = ((w * 0.95) - 15) + _x;
_parent.NEXT._y = ((h * 0.95) - 5) + _y;
if (_parent.tsugi) {
_parent.NEXT._alpha = 100;
_parent.NEXT._xscale = (_parent.NEXT._yscale = 50);
}
}
}
Instance of Symbol 277 MovieClip "NEXT" in Symbol 437 MovieClip Frame 1
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_parent.tb.text = "";
_parent.pushed = true;
}
}
Instance of Symbol 430 MovieClip "bg" in Symbol 438 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamedata.data.backgrounds == 2) {
_x = (_x - (0.1 + (_parent.clerk.speaker.steer.turn / 16)));
if (_x <= -400) {
_x = (_x + 800);
} else if (_x >= 400) {
_x = (_x - 800);
}
}
}
Instance of Symbol 432 MovieClip "taxicar" in Symbol 438 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
yinit = _y;
yinit2 = _parent.clerk._y;
bump = 0;
yvel = 0;
yvel2 = 0;
}
onClipEvent (enterFrame) {
if (_root.gamedata.data.backgrounds == 2) {
if (random(2) == 1) {
yvel = yvel - ((random(4) / 3) * random(3));
}
_parent.clerk._y = _parent.clerk._y + (yvel * 1.5);
yvel = yvel + ((yinit - _y) * 1.5);
yvel = yvel * 0.7;
_y = (_y + (yvel * 0.5));
_parent.clerk._y = (_parent.clerk._y + yinit2) / 2;
}
}
Instance of Symbol 427 MovieClip "clerk" in Symbol 438 MovieClip Frame 1
onClipEvent (load) {
index = 0;
maxlength = 16;
person = 9;
}
onClipEvent (enterFrame) {
if (_parent.talkbox.pushed) {
index++;
_parent.talkbox.pushed = false;
}
if (index == 0) {
_parent.talkbox.stretch(120, 50);
_parent.talkbox.disp();
say("Alright, where ya wanna go now? ");
}
if (index == 2) {
_parent.talkbox.stretch(120, 70);
_parent.talkbox.remove();
say("No idea what these places are? Just point and I'll tell you. ");
}
if (index == 4) {
_parent.talkbox.stretch(120, 110);
say("The Arena? That's where the balloon duels are held. They're the ones paying me to transport you. ");
}
if (index == 6) {
_parent.talkbox.stretch(120, 120);
say("The hair salon's a nice place. They style your hair and dye it, too. But I hear the manager's a helluva bastard. ");
}
if (index == 8) {
_parent.talkbox.stretch(120, 135);
say("Ah, they got a lot of clothing there. You can find some pretty snazzy stuff at that store. And some pretty shabby stuff, too. ");
}
if (index == 10) {
_parent.talkbox.stretch(120, 110);
say("Whoah, that place sells some crazy stuff, man. They should've just stuck with painting balloons. ");
}
if (index == 12) {
_parent.talkbox.stretch(120, 120);
say("Awesome place. It's where I got my glasses. Check it out if you need to accessorize your head or something. ");
}
if (index == 14) {
_parent.talkbox.stretch(120, 150);
say("I dunno about that place. Kinda creeps me out, especially the doctor. He loves to screw with DNA to change pigmentation and stuff. ");
}
if (index == 16) {
_parent.talkbox.stretch(110, 135);
say("I know the guy who works there. Retired balloon fighter, if I recall. You can mess around at his place all you like. ");
}
}
Instance of Symbol 437 MovieClip "talkbox" in Symbol 438 MovieClip Frame 1
onClipEvent (enterFrame) {
tb.talk = _parent.clerk.talk;
}
onClipEvent (load) {
NEXT.remove();
}
Instance of Symbol 118 MovieClip "fill" in Symbol 442 MovieClip [BT Balloon] Frame 1
onClipEvent (load) {
_parent.stop();
_parent._y = 300 + random(100);
if (random(10) == 1) {
_parent.gotoAndStop(2);
_parent._y = 320;
_alpha = 0;
}
_parent._y = random(225) + 25;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent._parent.xscroll;
if (_parent._parent._parent.Player1.hitTest(this)) {
_parent._parent._parent.Player1.SFX.attachSound("bpop");
_parent._parent._parent.Player1.SFX.start();
_parent._parent.scoreUp();
removeMovieClip(_parent);
unloadMovie (_parent);
}
if (_parent._x > 420) {
unloadMovie (_parent);
}
}
Instance of Symbol 118 MovieClip "fill" in Symbol 442 MovieClip [BT Balloon] Frame 2
onClipEvent (enterFrame) {
_parent._y = _parent._y - 0.5;
_parent._x = _parent._x + _parent._parent.xscroll;
if (_parent._parent._parent.Player1.hitTest(this)) {
_parent._parent._parent.Player1.SFX.attachSound("bpop");
_parent._parent._parent.Player1.SFX.start();
_parent._parent.pause = _parent._parent.pause + 75;
removeMovieClip(_parent);
unloadMovie (_parent);
}
if (_parent._y < -20) {
unloadMovie (_parent);
}
}
Symbol 443 MovieClip [Spark] Frame 1
if (mag == undefined) {
mag = random(3) + 5;
dir = (random(2) * 2) - 1;
}
Instance of Symbol 126 MovieClip [Star] "long" in Symbol 443 MovieClip [Spark] Frame 1
onClipEvent (load) {
if (_root.gamedata.data.backgrounds == 0) {
unloadMovie (this);
}
}
Instance of Symbol 126 MovieClip [Star] "star" in Symbol 443 MovieClip [Spark] Frame 1
onClipEvent (enterFrame) {
with (_parent) {
if (_root.game.collision(_parent._parent.Player1.pilot, this._parent)) {
_parent._parent.zap(_parent._parent.Player1);
}
this._rotation = (_y + (_x / 5)) * 10;
long._rotation = (_y + (_x / 5)) * 12;
_y = _y + (((dir * mag) * _parent.speed) * 0.1);
_x = _x + _parent.xscroll;
if (_y > 300) {
dir = -1;
} else if (_y < 0) {
dir = 1;
}
if (_x > 450) {
removeMovieClip(this._parent);
unloadMovie(this._parent);
}
}
}
Instance of Symbol 244 MovieClip "wrap" in Symbol 452 MovieClip [MusicPreview] Frame 1
onClipEvent (enterFrame) {
_x = (_x - 0.1);
if (_x <= -80) {
_x = (_x + 80);
}
}
Instance of Symbol 427 MovieClip "instructor" in Symbol 452 MovieClip [MusicPreview] Frame 2
onClipEvent (load) {
index = 0;
person = 1;
}
Instance of Symbol 244 MovieClip "bg" in Symbol 452 MovieClip [MusicPreview] Frame 4
onClipEvent (load) {
if (_root.gamedata.data.backgrounds == 1) {
stop();
} else if (_root.gamedata.data.backgrounds == 0) {
unloadMovie (this);
}
}
Symbol 455 Button
on (release) {
asking = false;
}
Symbol 456 MovieClip Frame 1
stop();
Symbol 457 Button
on (release) {
bg--;
if (bg < 0) {
bg = 2;
}
pallete.update();
}
Symbol 464 MovieClip Frame 1
function setTo(initcolor) {
xy.x = (parseInt(initcolor.substr(0, 2), 16) * 256) / 240;
xy.y = 256 - ((parseInt(initcolor.substr(2, 2), 16) * 256) / 240);
z.z = 256 - ((parseInt(initcolor.substr(4, 2), 16) * 256) / 240);
}
Instance of Symbol 32 MovieClip [event] "samplebar" in Symbol 464 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop (1);
R = red.toString(16).toUpperCase();
G = green.toString(16).toUpperCase();
B = blue.toString(16).toUpperCase();
if (R.length < 2) {
R = "0" + R;
}
if (G.length < 2) {
G = "0" + G;
}
if (B.length < 2) {
B = "0" + B;
}
colour = new Color(this);
colour.setRGB(_root.game.HSLtoRGB(_parent.hex.substring(0, 4) + "80"));
}
Instance of Symbol 32 MovieClip [event] "sample" in Symbol 464 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop (1);
hue = int((_parent.xy.x * 240) / 256);
sat = int(((256 - _parent.xy.y) * 240) / 256);
lum = int(((256 - _parent.z.z) * 240) / 256);
_parent.hex = HexHSL(hue, sat, lum);
colour = new Color(this);
colour.setRGB(_root.game.HSLtoRGB(_parent.hex));
}
onClipEvent (load) {
function HexHSL(H, S, L) {
H = H.toString(16).toUpperCase();
S = S.toString(16).toUpperCase();
L = L.toString(16).toUpperCase();
if (H.length < 2) {
H = "0" + H;
}
if (S.length < 2) {
S = "0" + S;
}
if (L.length < 2) {
L = "0" + L;
}
return((H + S) + L);
}
}
Instance of Symbol 462 MovieClip "xy" in Symbol 464 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_parent.clicking) {
drag = false;
}
if (drag) {
x = _parent._xmouse * 2;
y = _parent._ymouse * 2;
}
stop();
if (x < 0) {
x = 0;
}
if (x > 255) {
x = 255;
}
if (y < 0) {
y = 0;
}
if (y > 255) {
y = 255;
}
_x = (x / 2);
_y = ((y / 2) + 5);
}
onClipEvent (mouseDown) {
_parent.clicking = true;
if ((((_parent._xmouse >= -10) && (_parent._xmouse <= 138)) && (_parent._ymouse >= -10)) && (_parent._ymouse <= 138)) {
drag = true;
}
}
onClipEvent (mouseUp) {
_parent.clicking = false;
}
Instance of Symbol 462 MovieClip "z" in Symbol 464 MovieClip Frame 1
onClipEvent (enterFrame) {
stop();
if (!_parent.clicking) {
drag = false;
}
if (drag) {
z = _parent._ymouse * 2;
}
stop();
if (z < 0) {
z = 0;
}
if (z > 255) {
z = 255;
}
_y = ((z / 2) - 0);
}
onClipEvent (mouseDown) {
if ((((_parent._xmouse >= 148) && (_parent._xmouse <= 178)) && (_parent._ymouse >= -20)) && (_parent._ymouse <= 148)) {
drag = true;
}
}
Symbol 468 MovieClip Frame 1
if (track == undefined) {
track = 1;
switched = true;
}
if (_root.gamedata.data.backgrounds == undefined) {
_root.gamedata.data.backgrounds = 2;
bg = 2;
}
if (_root.gamedata.data.bgcolor == undefined) {
_root.gamedata.data.bgcolor = "123456";
}
if (_root.gamedta.data.qlty == undefined) {
_root.gamedta.data.qlty == "MEDIUM";
}
if (_root.gamedta.data.screensize == undefined) {
_root.gamedta.data.screensize = 1;
}
stop();
Symbol 468 MovieClip Frame 2
function displayKeys(n) {
this[("p" + n) + "buttons"] = (((((_parent.CodeToWord(_root.gamedata.data["keyLEFTKEY" + n]) + "\r\n") + _parent.CodeToWord(_root.gamedata.data["keyRIGHTKEY" + n])) + "\r\n") + _parent.CodeToWord(_root.gamedata.data["keyBASIC" + n])) + "\r\n") + _parent.CodeToWord(_root.gamedata.data["keyADVANCE" + n]);
}
displayKeys(1);
displayKeys(2);
Instance of Symbol 32 MovieClip [event] "keyman" in Symbol 468 MovieClip Frame 2
onClipEvent (load) {
Key.addListener(this);
_parent.message = "";
config = "";
}
onClipEvent (enterFrame) {
if (config != "") {
_parent.message = "Please hit a key...";
this.onKeyDown = function () {
_root.gamedata.data[config] = Key.getCode();
config = "";
_parent.message = "";
_parent.displayKeys(1);
_parent.displayKeys(2);
};
}
}
Instance of Symbol 277 MovieClip "B A C K" in Symbol 468 MovieClip Frame 2
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_parent.gotoAndStop("options");
}
}
Instance of Symbol 318 MovieClip "volslide" in Symbol 468 MovieClip Frame 3
onClipEvent (load) {
_parent.BGM = new Sound(this);
}
onClipEvent (enterFrame) {
with (_parent) {
if (track <= 0) {
track = songs;
switched = true;
}
if (track > songs) {
track = 1;
switched = true;
}
if (track == 1) {
mp3name = "Opening Theme";
}
if (track == 2) {
mp3name = "Practice";
}
if (track == 8) {
track = 4;
}
if (track == 3) {
mp3name = "Shopping";
}
if (track == 4) {
mp3name = "Balloon Trip";
}
if (track == 5) {
track = 9;
}
if (track >= 9) {
mp3name = "Arena " + (track - 8);
}
if (switched) {
if (_parent.options[("track" + track) + "loc"] == undefined) {
_parent.options[("track" + track) + "loc"] = _root.gamedata.data[("track" + track) + "loc"];
if (_parent.options[("track" + track) + "loc"] == undefined) {
trace((_parent.options[("track" + track) + "loc"] = "C:\\"));
}
}
songloc.text = _parent.options[("track" + track) + "loc"];
if (_url.substr(0, 5) == "file:") {
BGM.loadSound(songloc.text, true);
} else {
BGM.loadSound("file:" + songloc.text, true);
}
BGM.stop();
if (_parent.options["b_bgmvol" + track] == undefined) {
_parent.options["b_bgmvol" + track] = _root.gamedata.data["BGMvol" + track];
if (_parent.options["b_bgmvol" + track] == undefined) {
trace((_parent.options["b_bgmvol" + track] = 100));
}
}
volslide.percent = _parent.options["b_bgmvol" + track];
songdisp.text = volslide.mp3name;
switched = false;
} else {
_parent.options[("track" + track) + "loc"] = songloc.text;
_parent.options["b_bgmvol" + track] = volslide.percent;
BGM.setVolume(volslide.percent);
b_bgmvol.text = volslide.percent;
}
}
}
Instance of Symbol 452 MovieClip [MusicPreview] "preview" in Symbol 468 MovieClip Frame 3
onClipEvent (enterFrame) {
gotoAndStop(_parent.track);
}
Instance of Symbol 456 MovieClip "musichelp" in Symbol 468 MovieClip Frame 3
onClipEvent (load) {
if (_root.gamedata.data.track1loc == undefined) {
asking = true;
}
}
onClipEvent (enterFrame) {
if (asking) {
_y = (((_y * 2) - 40) / 3);
} else {
_y = (((_y * 2) - 300) / 3);
}
}
Instance of Symbol 464 MovieClip "pallete" in Symbol 468 MovieClip Frame 4
onClipEvent (load) {
function update() {
if (_parent.bg == 2) {
_parent.bgyes.text = "Full";
_y = 250;
} else if (_parent.bg == 1) {
_parent.bgyes.text = "Simple";
_y = 250;
} else {
_parent.bgyes.text = "Solid color";
_y = 70;
}
}
_parent.bgcolor = _root.gamedata.data.bgcolor;
update();
}
onClipEvent (enterFrame) {
if (xy.y == undefined) {
setTo(_parent.bgcolor);
}
_parent.bgcolor = hex;
}
Instance of Symbol 277 MovieClip "L O W" in Symbol 468 MovieClip Frame 4
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_quality = "LOW";
_parent.qlty = "LOW";
}
if (_parent.qlty != "LOW") {
_alpha = 100;
} else {
_alpha = 50;
}
}
Instance of Symbol 277 MovieClip "MEDIUM" in Symbol 468 MovieClip Frame 4
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_quality = "MEDIUM";
_parent.qlty = "MEDIUM";
}
if (_parent.qlty != "MEDIUM") {
_alpha = 100;
} else {
_alpha = 50;
}
}
Instance of Symbol 277 MovieClip "H I G H" in Symbol 468 MovieClip Frame 4
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_quality = "HIGH";
_parent.qlty = "HIGH";
}
if (_parent.qlty != "HIGH") {
_alpha = 100;
} else {
_alpha = 50;
}
}
Instance of Symbol 277 MovieClip "B E S T" in Symbol 468 MovieClip Frame 4
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_quality = "BEST";
_parent.qlty = "BEST";
}
if (_parent.qlty != "BEST") {
_alpha = 100;
} else {
_alpha = 50;
}
}
Instance of Symbol 277 MovieClip "D O W N" in Symbol 468 MovieClip Frame 4
onClipEvent (load) {
bt._xscale = 100;
}
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_parent.screensize = _parent.screensize * 0.9;
if (_parent.screensize < 0.25) {
_parent.screensize = 0.25;
}
_root.game.rescale(_parent.screensize);
}
if (_parent.screensize <= 0.25) {
_alpha = 50;
_parent.screensize = 0.25;
} else {
_alpha = 100;
}
}
Instance of Symbol 277 MovieClip "U P" in Symbol 468 MovieClip Frame 4
onClipEvent (load) {
bt._xscale = 100;
}
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_parent.screensize = _parent.screensize * 1.1;
if (_parent.screensize > 1) {
_parent.screensize = 1;
}
_root.game.rescale(_parent.screensize);
}
if (_parent.screensize >= 1) {
_alpha = 50;
_parent.screensize = 1;
} else {
_alpha = 100;
}
}
Symbol 469 Button
on (release) {
options.BGM.stop();
_root.gamedata.data.secondPlayer = options.pn;
_root.gamedata.data.backgrounds = options.bg;
i = 1;
while (i <= options.songs) {
if (options["b_bgmvol" + i] != undefined) {
_root.gamedata.data["BGMvol" + i] = options["b_bgmvol" + i];
}
if (_root.gamedata.data["BGMvol" + i] == undefined) {
_root.gamedata.data["BGMvol" + i] = 75;
}
if (options[("track" + i) + "loc"] != undefined) {
_root.gamedata.data[("track" + i) + "loc"] = options[("track" + i) + "loc"];
}
i++;
}
delete i;
_root.gamedata.data.bgcolor = options.bgcolor;
_root.gamedata.data.qlty = options.qlty;
_root.gamedata.data.screensize = options.screensize;
_root.gamedata.data.reflex = options.ai;
_root.gamedata.data.skill = options.ai;
_root.gamedata.flush(1200);
_root.game.gotoAndStop("Center");
}
Symbol 473 Button
on (release) {
options.BGM.stop();
_quality = _root.gamedata.data.qlty;
_root.game.gotoAndStop("Center");
_root.game.rescale(_root.gamedata.data.screensize);
}
Symbol 487 MovieClip Frame 1
function setballoon(number) {
ballooncount = number;
if (ballooncount == 2) {
gotoAndPlay (1);
_alpha = 100;
_parent.drag = 1;
} else if (ballooncount == 1) {
gotoAndPlay (31);
_alpha = 100;
_parent.drag = 1.2;
} else if (ballooncount == 0) {
_alpha = 0;
_parent.drag = 2;
gotoAndStop (61);
}
}
function pop() {
if (ballooncount > 0) {
setballoon(ballooncount - 1);
}
}
Symbol 487 MovieClip Frame 30
gotoAndPlay (1);
Symbol 487 MovieClip Frame 60
gotoAndPlay (31);
Symbol 487 MovieClip Frame 61
stop();
Instance of Symbol 94 MovieClip [acc1] in Symbol 488 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 509 MovieClip Frame 5
Symbol 541 MovieClip Frame 1
price = 0;
Symbol 541 MovieClip Frame 2
price = 20;
Symbol 541 MovieClip Frame 3
price = 10;
Symbol 541 MovieClip Frame 4
price = 12;
Symbol 541 MovieClip Frame 5
price = 20;
Symbol 541 MovieClip Frame 6
price = 35;
Symbol 541 MovieClip Frame 7
price = 32;
Symbol 541 MovieClip Frame 8
price = 30;
Symbol 541 MovieClip Frame 9
price = 36;
Symbol 541 MovieClip Frame 10
price = 40;
Symbol 541 MovieClip Frame 11
price = 12;
Symbol 541 MovieClip Frame 12
price = 10;
Symbol 541 MovieClip Frame 13
price = 5;
Symbol 541 MovieClip Frame 14
price = 8;
Symbol 541 MovieClip Frame 15
price = 12;
Symbol 541 MovieClip Frame 16
price = 16;
Symbol 541 MovieClip Frame 17
price = 3;
Symbol 541 MovieClip Frame 18
price = 65;
Symbol 541 MovieClip Frame 19
price = 65;
Symbol 541 MovieClip Frame 20
price = 20;
Symbol 541 MovieClip Frame 21
price = 22;
Symbol 541 MovieClip Frame 22
price = 5;
Symbol 541 MovieClip Frame 23
price = 14;
Symbol 541 MovieClip Frame 24
price = 18;
Symbol 541 MovieClip Frame 25
price = 22;
Symbol 541 MovieClip Frame 26
price = 25;
Symbol 541 MovieClip Frame 27
price = 25;
Symbol 541 MovieClip Frame 28
price = 40;
Symbol 541 MovieClip Frame 29
price = 4;
Symbol 541 MovieClip Frame 30
price = 2;
Symbol 541 MovieClip Frame 31
price = 7;
Symbol 541 MovieClip Frame 32
price = 50;
Symbol 628 MovieClip Frame 1
function init(paint, h1, h2, h3, h4) {
var _local4 = new Color(headfill);
_local4.setRGB(paint);
bangs.gotoAndStop(h1);
bangsfill.gotoAndStop(h1);
var _local3 = new Color(bangsfill);
_local3.setRGB(paint);
side.gotoAndStop(h2);
sidefill.gotoAndStop(h2);
var _local2 = new Color(sidefill);
_local2.setRGB(paint);
scalp.gotoAndStop(h3);
scalpfill.gotoAndStop(h3);
var _local5 = new Color(scalpfill);
_local5.setRGB(paint);
back.gotoAndStop(h4);
backfill.gotoAndStop(h4);
var _local6 = new Color(backfill);
_local6.setRGB(paint);
}
function moveWear(whichOne, dir) {
var _local3 = this["w" + whichOne];
Level = _local3 + dir;
if ((Level > 0) && (Level <= 7)) {
swapLevels(_local3, Level);
var _local2 = 1;
while (_local2 <= 3) {
if (this["w" + _local2] == Level) {
this["w" + _local2] = _local3;
}
_local2++;
}
this["w" + whichOne] = Level;
}
}
function swapLevels(level1, level2) {
var _local3 = this["occupant" + level1];
var _local2 = this["occupant" + level2];
this[_local3].swapDepths(this[_local2]);
this[_local3 + "fill"].swapDepths(this[_local2 + "fill"]);
this["occupant" + level1] = _local2;
this["occupant" + level2] = _local3;
}
occupant1 = "bangs";
occupant2 = "wear1";
occupant3 = "side";
occupant4 = "wear2";
occupant5 = "back";
occupant6 = "scalp";
occupant7 = "wear3";
w1 = 2;
w2 = 4;
w3 = 7;
Symbol 641 MovieClip Frame 1
function wearInit(whichOne, level) {
hair["wear" + whichOne].gotoAndStop(_parent[("wear" + whichOne) + "style"]);
hair[("wear" + whichOne) + "fill"].gotoAndStop(_parent[("wear" + whichOne) + "style"]);
while (hair["w" + whichOne] < level) {
hair.moveWear(whichOne, 1);
}
while (hair["w" + whichOne] > level) {
hair.moveWear(whichOne, -1);
}
tempcolor = new Color(hair[("wear" + whichOne) + "fill"]);
tempcolor.setRGB(_parent[("wear" + whichOne) + "color"]);
delete tempcolor;
}
Symbol 660 MovieClip Frame 1
price = 50;
Symbol 660 MovieClip Frame 2
price = 55;
Symbol 660 MovieClip Frame 3
price = 40;
Symbol 660 MovieClip Frame 4
price = 10;
Symbol 660 MovieClip Frame 5
price = 15;
Symbol 660 MovieClip Frame 6
price = 16;
Symbol 660 MovieClip Frame 7
price = 25;
Symbol 660 MovieClip Frame 8
price = 40;
Symbol 660 MovieClip Frame 9
price = 60;
Symbol 660 MovieClip Frame 10
price = 55;
Symbol 660 MovieClip Frame 11
price = 48;
Symbol 660 MovieClip Frame 12
price = 30;
Symbol 660 MovieClip Frame 13
price = 35;
Symbol 660 MovieClip Frame 14
price = 50;
Symbol 660 MovieClip Frame 15
price = 20;
Symbol 660 MovieClip Frame 16
price = 60;
Symbol 679 MovieClip Frame 1
price = 30;
Symbol 679 MovieClip Frame 2
price = 40;
Symbol 679 MovieClip Frame 3
price = 50;
Symbol 679 MovieClip Frame 4
price = 40;
Symbol 679 MovieClip Frame 5
price = 45;
Symbol 679 MovieClip Frame 6
price = 46;
Symbol 679 MovieClip Frame 7
price = 48;
Symbol 679 MovieClip Frame 8
price = 38;
Symbol 679 MovieClip Frame 9
price = 25;
Symbol 679 MovieClip Frame 10
price = 40;
Symbol 679 MovieClip Frame 11
price = 40;
Symbol 679 MovieClip Frame 12
price = 36;
Symbol 679 MovieClip Frame 13
price = 27;
Symbol 679 MovieClip Frame 14
price = 25;
Symbol 679 MovieClip Frame 15
price = 40;
Symbol 679 MovieClip Frame 16
price = 20;
Symbol 679 MovieClip Frame 17
price = 25;
Symbol 679 MovieClip Frame 18
price = 25;
Symbol 680 MovieClip Frame 1
function shoeinit(shoestyle, shoescolor) {
shoe.gotoAndStop(shoestyle);
shoefill.gotoAndStop(shoestyle);
_parent.recolor(shoefill, shoescolor);
}
function pantinit(pantstyle, pantscolor, overshoe) {
pants.gotoAndStop(pantstyle);
pantsfill.gotoAndStop(pantstyle);
_parent.recolor(pantsfill, pantscolor);
if (overshoe) {
if (shoe.getDepth() < pants.getDepth()) {
shoe.swapDepths(pants);
shoefill.swapDepths(pantsfill);
}
} else if (shoe.getDepth() > pants.getDepth()) {
shoe.swapDepths(pants);
shoefill.swapDepths(pantsfill);
}
}
Symbol 703 MovieClip Frame 1
price = 25;
Symbol 703 MovieClip Frame 2
price = 35;
Symbol 703 MovieClip Frame 3
price = 40;
Symbol 703 MovieClip Frame 4
price = 37;
Symbol 703 MovieClip Frame 5
price = 35;
Symbol 703 MovieClip Frame 6
price = 48;
Symbol 703 MovieClip Frame 7
price = 40;
Symbol 703 MovieClip Frame 8
price = 60;
Symbol 703 MovieClip Frame 9
price = 55;
Symbol 703 MovieClip Frame 10
price = 70;
Symbol 703 MovieClip Frame 11
price = 65;
Symbol 703 MovieClip Frame 12
price = 52;
Symbol 703 MovieClip Frame 13
price = 72;
Symbol 703 MovieClip Frame 14
price = 46;
Symbol 703 MovieClip Frame 15
price = 37;
Symbol 703 MovieClip Frame 16
price = 35;
Symbol 703 MovieClip Frame 17
price = 50;
Symbol 703 MovieClip Frame 18
price = 30;
Symbol 703 MovieClip Frame 19
price = 15;
Symbol 703 MovieClip Frame 20
price = 20;
Symbol 723 MovieClip Frame 2
price = 18;
Symbol 723 MovieClip Frame 3
price = 20;
Symbol 723 MovieClip Frame 4
price = 12;
Symbol 723 MovieClip Frame 5
price = 12;
Symbol 723 MovieClip Frame 6
price = 12;
Symbol 723 MovieClip Frame 7
price = 3;
Symbol 723 MovieClip Frame 8
price = 9;
Symbol 723 MovieClip Frame 9
price = 6;
Symbol 723 MovieClip Frame 10
price = 20;
Symbol 723 MovieClip Frame 11
price = 12;
Symbol 723 MovieClip Frame 12
price = 10;
Symbol 723 MovieClip Frame 13
price = 12;
Symbol 723 MovieClip Frame 14
price = 7;
Symbol 723 MovieClip Frame 15
price = 30;
Symbol 723 MovieClip Frame 16
price = 40;
Symbol 723 MovieClip Frame 17
price = 6;
Symbol 723 MovieClip Frame 18
price = 12;
Symbol 723 MovieClip Frame 19
price = 18;
Symbol 723 MovieClip Frame 20
price = 15;
Symbol 724 MovieClip Frame 1
function init(shirtstyle, shirtcolor, overstyle, overcolor) {
shirt.gotoAndStop(shirtstyle);
shirtfill.gotoAndStop(shirtstyle);
_parent.recolor(shirtfill, shirtcolor);
over.gotoAndStop(overstyle);
overfill.gotoAndStop(overstyle);
_parent.recolor(overfill, overcolor);
if (((shirtstyle == 6) || (shirtstyle == 7)) || (shirtstyle == 11)) {
if (_parent.legs.getDepth() > this.getDepth()) {
this.swapDepths(_parent.legs);
}
} else if (_parent.legs.getDepth() < this.getDepth()) {
this.swapDepths(_parent.legs);
}
}
Symbol 742 MovieClip Frame 1
price = 0;
Symbol 742 MovieClip Frame 2
price = 20;
Symbol 742 MovieClip Frame 3
price = 24;
Symbol 742 MovieClip Frame 4
price = 16;
Symbol 742 MovieClip Frame 5
price = 40;
Symbol 742 MovieClip Frame 6
price = 27;
Symbol 742 MovieClip Frame 7
price = 30;
Symbol 742 MovieClip Frame 8
price = 29;
Symbol 742 MovieClip Frame 9
price = 25;
Symbol 742 MovieClip Frame 10
price = 32;
Symbol 742 MovieClip Frame 11
price = 18;
Symbol 742 MovieClip Frame 12
price = 21;
Symbol 742 MovieClip Frame 13
price = 12;
Symbol 742 MovieClip Frame 14
price = 30;
Symbol 742 MovieClip Frame 15
price = 25;
Symbol 742 MovieClip Frame 16
price = 30;
Symbol 762 MovieClip Frame 1
price = 5;
Symbol 762 MovieClip Frame 2
price = 8;
Symbol 762 MovieClip Frame 3
price = 15;
Symbol 762 MovieClip Frame 4
price = 6;
Symbol 762 MovieClip Frame 5
price = 8;
Symbol 762 MovieClip Frame 6
price = 4;
Symbol 762 MovieClip Frame 7
price = 0;
Symbol 762 MovieClip Frame 8
price = 15;
Symbol 762 MovieClip Frame 9
price = 12;
Symbol 762 MovieClip Frame 10
price = 25;
Symbol 762 MovieClip Frame 11
price = 18;
Symbol 762 MovieClip Frame 12
price = 16;
Symbol 762 MovieClip Frame 13
price = 8;
Symbol 762 MovieClip Frame 14
price = 3;
Symbol 762 MovieClip Frame 15
price = 4;
Symbol 762 MovieClip Frame 16
price = 2;
Symbol 762 MovieClip Frame 17
price = 10;
Symbol 762 MovieClip Frame 18
price = 8;
Symbol 762 MovieClip Frame 19
price = 1;
Symbol 762 MovieClip Frame 20
price = 2;
Symbol 763 MovieClip Frame 1
function gloveInit(glovestyle, glovecolor) {
glove.gotoAndStop(glovestyle);
glovefill.gotoAndStop(glovestyle);
_parent.recolor(glovefill, glovecolor);
}
function init(sleevestyle, sleevecolor, overglove) {
sleeve.gotoAndStop(sleevestyle);
sleevefill.gotoAndStop(sleevestyle);
_parent.recolor(sleevefill, sleevecolor);
if (overglove) {
if (glove.getDepth() < sleeve.getDepth()) {
glove.swapDepths(sleeve);
glovefill.swapDepths(sleevefill);
}
} else if (glove.getDepth() > sleeve.getDepth()) {
glove.swapDepths(sleeve);
glovefill.swapDepths(sleevefill);
}
}
Symbol 765 MovieClip Frame 1
function hitMyBalloons(x, y, xv, yv) {
with (_parent) {
var xdist = (x - _x);
if (xdist > 200) {
xdist = xdist - 400;
}
if (xdist < -200) {
xdist = 400 - xdist;
}
if ((Math.abs(xdist) < 30) && (Math.abs(xvel - xv) < 5)) {
return((y < _y) && (yv > yvel));
}
var ydist = (y - _y);
var int_time = xdist;
if ((xvel - xv) != 0) {
int_time = int_time / (xvel - xv);
} else {
if (Math.abs(xdist) < 30) {
return((y < _y) && (yv > yvel));
}
return(false);
}
if (Math.abs(int_time) > 200) {
return(false);
}
var y_intercept = ((int_time * (yv - yvel)) + ydist);
return((y_intercept < 0) && (y_intercept > 30));
}
}
function rise() {
with (_parent) {
decision = "goUp";
if (random(80) < skill) {
flap(strength, dir);
}
}
}
function chase() {
with (_parent) {
if (random(100) < ((skill * skill) / 100)) {
if ((distance < (-(80 - (skill / 2)))) && (((xvel / maxxvel) < 0.9) || (y_pre > (y_int - 10)))) {
dir = 1;
flap(strength, dir);
decision = "goRight";
return(true);
}
if ((distance > (80 - (skill / 2))) && (((xvel / maxxvel) > -0.9) || (y_pre > (y_int - 10)))) {
dir = -1;
flap(strength, dir);
decision = "goLeft";
return(true);
}
if ((absDistance <= (80 - (skill / 2))) && (random(120) < skill)) {
decision = "goDown";
if (Math.abs(vdiff) > (((strength * 0.75) * (balloons.ballooncount + 2)) / 4)) {
if (vdiff > 0) {
dir = 1;
flap(strength, dir);
return(true);
}
if (vdiff < 0) {
dir = -1;
flap(strength, dir);
return(true);
}
}
}
}
}
}
function evade() {
with (_parent) {
if (random(80) < ((skill * skill) / 100)) {
if (((320 - _y) - (yvel * 20)) < 50) {
flap(strength, dir);
decision = "goUp";
return(true);
}
if ((absDistance < 20) && (y_int > (_y - 50))) {
if ((y_int < (_y + 50)) && (yveldif < 0)) {
decision = "goDown";
} else if (random(100) <= skill) {
if (distance > 0) {
decision = "goRight";
} else {
decision = "goLeft";
}
} else {
decision = "goDown";
}
return(true);
}
if ((vdiff > 2) || ((absDistance < 100) && (distance > 0))) {
dir = 1;
flap(strength, dir);
decision = "goRight";
return(true);
}
if ((vdiff < -2) || ((absDistance < 100) && (distance < 0))) {
dir = -1;
flap(strength, dir);
decision = "goLeft";
return(true);
}
}
}
}
function decide() {
with (_parent) {
distance = _x - _parent[opponent]._x;
if (distance > 200) {
distance = distance - 400;
}
if (distance < -200) {
distance = 400 - distance;
}
var i = 10;
while (i > 0) {
this["xt" + i] = this["xt" + (i - 1)];
this["yt" + i] = this["yt" + (i - 1)];
i--;
}
xt1 = distance;
xva = (xt10 - xv1) / 10;
yt1 = _y - _parent[opponent]._y;
yva = (yt10 - yt1) / 10;
var time = (distance / (xva - xvel));
if (Math.abs(time) > 100) {
time = 0;
}
y_int = _parent[opponent]._y;
yveldif = yva - yvel;
y_pre = _y;
absDistance = Math.abs(distance);
if (this.useAcc() && (_parent[("p" + ID) + "stats"].light._currentframe == 2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
ready2 = false;
}
if ((_y < 50) && (_parent[opponent]._y < 50)) {
if ((skill < 50) || (_y < y_int)) {
this.chase();
} else {
this.evade();
}
return(true);
}
if (((_y > 220) && (Math.abs(_parent.fish._x - _x) < 100)) && (_root.gamedata.data.fish)) {
this.rise();
return(true);
}
if (_y > 250) {
this.evade();
return(true);
}
if (random(80) < skill) {
if (this.hitMyBalloons(_parent[opponent]._x, y_int, xva, yva)) {
this.evade();
return(true);
}
}
if ((_y > (y_int - 10)) && (absDistance < 20)) {
this.evade();
return(true);
}
if ((absDistance < 200) && (_y > y_int)) {
return(this.evade());
}
this.chase();
return(true);
}
}
function useAcc() {
with (_parent) {
if (packcharge == undefined) {
packcharge = 0;
}
if (((accpack == 1) && (pack["acc" + accpack]._currentframe == 1)) && (decision == "goUp")) {
return(true);
}
if (((accpack == 2) && (decision == "goUp")) && (yvel > -10)) {
return(true);
}
if ((accpack == 3) && (decision == "goDown")) {
return(true);
}
if (((accpack == 4) && (((decision == "goRight") && (xvel < 0)) || ((decision == "goLeft") && (xvel > 0)))) && ((_y - _parent[opponent]._y) < (absDistance / 2))) {
if (decision == "goRight") {
dir = 1;
} else {
dir = -1;
}
if (charge > 80) {
packcharge = 5;
}
return(true);
}
if ((((accpack == 5) && (decision == "goDown")) && (absDistance < 30)) && (_parent[opponent]._y < _y)) {
return(true);
}
if ((accpack == 6) && ((absDistance < 30) && (Math.abs(_parent[opponent]._y - _y) < 10))) {
turn("towards");
if (charge > 50) {
packcharge = 4;
}
return(true);
}
if ((accpack == 7) && (Math.abs(((_parent[opponent]._y - _y) / absDistance) - 0.5) < 0.3)) {
turn("away");
return(true);
}
if ((accpack == 8) && ((decision == "goRight") || (decision == "goLeft"))) {
if (charge > 50) {
packcharge = 4;
}
return(true);
}
if ((accpack == 9) && (Math.abs(_parent[opponent]._y - _y) < 10)) {
turn("towards");
return(true);
}
if ((accpack == 10) && (((decision == "goRight") && (xvel < 0)) || ((decision == "goLeft") && (xvel > 0)))) {
return(true);
}
if ((accpack == 11) && (((decision == "goUp") && (yvel > 0)) || ((decision == "goDown") && (yvel < 0)))) {
return(true);
}
if (((accpack == 12) && (((decision == "goRight") && (ori == 1)) || ((decision == "goLeft") && (ori == -1)))) && (random(200) < skill)) {
return(true);
}
if ((accpack == 13) && (_y < _parent[opponent]._y)) {
if (charge > 50) {
packcharge = 4;
}
return(true);
}
if ((accpack == 14) && ((_y < (_parent[opponent]._y - 40)) && (absDistance < 30))) {
return(true);
}
if ((accpack == 15) && (random(1000) < skill)) {
return(true);
}
if (((accpack == 16) && (random(80) < reflex)) && (((y_pre > (y_int + 5)) && (y_pre < (y_int + 40))) && (absDistance < 40))) {
return(true);
}
if ((accpack == 17) && ((absDistance < 16) && (Math.abs(y_int - y_pre) < 20))) {
turn("towards");
return(true);
}
if ((accpack == 18) && (random(800) < skill)) {
return(true);
}
return(false);
}
}
function turn(where) {
with (_parent) {
if (where == "towards") {
if (distance < 0) {
dir = 1;
} else {
dir = -1;
}
} else if (distance < 0) {
dir = 1;
} else {
dir = -1;
}
}
}
Symbol 766 MovieClip Frame 1
function flap(strength, direction) {
strength = strength * ((balloons.inflation + 50) / 150);
if (balloons.ballooncount > 0) {
yvel = yvel - ((strength * (balloons.ballooncount + 6)) / 8);
}
xvel = xvel + ((((strength * direction) * 0.75) * (balloons.ballooncount + 2)) / 4);
gotoAndPlay (2);
}
function init() {
recolor(balloons.b1.fill, ballooncolor);
recolor(balloons.b2.fill, ballooncolor);
recolor(head.headfill, skincolor);
head.hair.init(haircolor, bangstyle, sidestyle, scalpstyle, backstyle);
head.eye.gotoAndStop(eyestyle);
head.brow.gotoAndStop(browstyle);
head.wearInit(1, wear1level);
head.wearInit(2, wear2level);
head.wearInit(3, wear3level);
pack.acc.removeMovieClip();
pack.attachMovie("acc" + accpack, "acc", 0);
arm.init(sleevestyle, sleevecolor, overglove);
arm.gloveInit(glovestyle, glovecolor);
upperbody.init(shirtstyle, shirtcolor, overstyle, overcolor);
recolor(upperbody.torsofill, skincolor);
recolor(arm.armfill, skincolor);
legs.shoeinit(shoestyle, shoescolor);
legs.pantinit(pantstyle, pantscolor);
legs.shoe.gotoAndStop(shoestyle);
legs.pants.gotoAndStop(pantstyle);
recolor(legs.barelegsfill, skincolor);
}
function recolor(subject, dye) {
tempcolor = new Color([subject]);
tempcolor.setRGB(dye);
delete tempcolor;
}
function varinit(pn) {
Name = _root["player" + pn].data.name;
maxyvel = 5;
maxxvel = 6;
strength = 3;
bangstyle = _root["player" + pn].data.bangstyle;
sidestyle = _root["player" + pn].data.sidestyle;
scalpstyle = _root["player" + pn].data.scalpstyle;
backstyle = _root["player" + pn].data.backstyle;
wear1style = _root["player" + pn].data.wear1style;
wear2style = _root["player" + pn].data.wear2style;
wear3style = _root["player" + pn].data.wear3style;
wear1level = _root["player" + pn].data.wear1level;
wear2level = _root["player" + pn].data.wear2level;
wear3level = _root["player" + pn].data.wear3level;
eyestyle = _root["player" + pn].data.eyestyle;
browstyle = _root["player" + pn].data.browstyle;
shirtstyle = _root["player" + pn].data.shirtstyle;
overstyle = _root["player" + pn].data.overstyle;
sleevestyle = _root["player" + pn].data.sleevestyle;
glovestyle = _root["player" + pn].data.glovestyle;
pantstyle = _root["player" + pn].data.pantstyle;
shoestyle = _root["player" + pn].data.shoestyle;
accpack = _root["player" + pn].data.accpack;
skincolor = _root.game.HSLtoRGB(_root["player" + pn].data.skincolor);
haircolor = _root.game.HSLtoRGB(_root["player" + pn].data.haircolor);
wear1color = _root.game.HSLtoRGB(_root["player" + pn].data.wear1color);
wear2color = _root.game.HSLtoRGB(_root["player" + pn].data.wear2color);
wear3color = _root.game.HSLtoRGB(_root["player" + pn].data.wear3color);
ballooncolor = _root.game.HSLtoRGB(_root["player" + pn].data.ballooncolor);
shirtcolor = _root.game.HSLtoRGB(_root["player" + pn].data.shirtcolor);
overcolor = _root.game.HSLtoRGB(_root["player" + pn].data.overcolor);
sleevecolor = _root.game.HSLtoRGB(_root["player" + pn].data.sleevecolor);
glovecolor = _root.game.HSLtoRGB(_root["player" + pn].data.glovecolor);
pantscolor = _root.game.HSLtoRGB(_root["player" + pn].data.pantscolor);
shoescolor = _root.game.HSLtoRGB(_root["player" + pn].data.shoescolor);
overglove = _root["player" + pn].data.overglove;
overshoes = _root["player" + pn].data.overshoes;
}
stop();
Instance of Symbol 487 MovieClip "balloons" in Symbol 766 MovieClip Frame 1
onClipEvent (enterFrame) {
if (inflation == undefined) {
inflation = 100;
} else {
_xscale = (_parent.ori * 100);
_alpha = (150 - (inflation / 2));
}
if (inflation >= 200) {
inflation = 0;
setballoon(0);
_parent.SFX.attachSound("bpop");
_parent.SFX.start();
}
if ((_parent.xvel != undefined) && (realangle != undefined)) {
realangle = ((realangle * 3) + ((_parent.xvel * -6) + 5)) / 4;
}
_rotation = (realangle * _parent.ori);
if (((ballooncount != 0) && (ballooncount != 1)) && (ballooncount != 2)) {
this.setballoon(2);
}
}
Instance of Symbol 765 MovieClip "pilot" in Symbol 766 MovieClip Frame 1
onClipEvent (enterFrame) {
with (_parent) {
if (dir != 0) {
ori = dir;
}
if (rules == "standard") {
_y = _y + (yvel + _parent.yscroll);
_x = _x + (xvel + _parent.xscroll);
if (balloons.ballooncount > 0) {
yvel = yvel + _parent.gravity;
} else {
yvel = yvel + (_parent.gravity * 1.25);
}
if (Math.abs(yvel) >= (maxyvel * drag)) {
yvel = yvel * 0.9;
}
if (Math.abs(xvel) >= (maxxvel * drag)) {
xvel = xvel * 0.9;
}
if (dir != 0) {
_xscale = dir * 50;
}
if ((charge < 100) && (balloons.ballooncount > 0)) {
charge = charge + 1;
}
if (invincibility > 0) {
_visible = invincibility % 2;
invincibility--;
}
}
}
}
onClipEvent (enterFrame) {
if (_parent.rules == "standard") {
with (_parent) {
if (_x > 415) {
_x = -15;
}
if (_x < -15) {
_x = 415;
}
if ((_y > 300) && false) {
_y = 300;
if (yvel > 0) {
yvel = yvel * -0.8;
xvel = xvel * 0.8;
}
}
if (_y < 20) {
_y = 20;
if (yvel < 0) {
yvel = yvel * -0.8;
xvel = xvel * 0.8;
SFX.attachSound("bounce");
SFX.start();
}
}
}
}
}
Symbol 766 MovieClip Frame 5
gotoAndStop (1);
Symbol 774 MovieClip Frame 1
function gobble() {
if (_currentframe < 16) {
gotoAndPlay (17);
}
}
Symbol 774 MovieClip Frame 16
gotoAndPlay (1);
Symbol 774 MovieClip Frame 24
gobbling = true;
Instance of Symbol 773 MovieClip "activeFish" in Symbol 774 MovieClip Frame 24
onClipEvent (load) {
gotoAndPlay (1);
}
Instance of Symbol 773 MovieClip "activeFish" in Symbol 774 MovieClip Frame 29
onClipEvent (load) {
gotoAndPlay (6);
}
Symbol 774 MovieClip Frame 35
gobbling = false;
if (Player1catch || (Player2catch)) {
SFX.attachSound("fish_eat");
SFX.start();
}
Player1catch = false;
Player2catch = false;
Instance of Symbol 773 MovieClip "activeFish" in Symbol 774 MovieClip Frame 35
onClipEvent (load) {
gotoAndPlay (11);
}
Symbol 774 MovieClip Frame 48
gotoAndPlay (1);
Symbol 783 MovieClip Frame 1
function setballoon(number) {
ballooncount = number;
if (ballooncount == 2) {
gotoAndPlay (1);
_alpha = 100;
_parent.drag = 1;
} else if (ballooncount == 1) {
gotoAndPlay (31);
_alpha = 100;
_parent.drag = 1.2;
} else if (ballooncount == 0) {
_alpha = 0;
_parent.drag = 2;
gotoAndStop (61);
}
}
function pop() {
if (ballooncount > 0) {
setballoon(ballooncount - 1);
}
}
Symbol 783 MovieClip Frame 30
gotoAndPlay (1);
Symbol 783 MovieClip Frame 42
stop();
Symbol 783 MovieClip Frame 43
stop();
Symbol 793 MovieClip [Drone] Frame 1
function flap(strength, direction) {
if (_currentframe == 1) {
strength = strength * ((balloons.inflation + 50) / 150);
if (balloons.ballooncount > 0) {
yvel = yvel - ((strength * (balloons.ballooncount + 6)) / 8);
}
xvel = xvel + ((((strength * direction) * 0.75) * (balloons.ballooncount + 2)) / 4);
gotoAndPlay (2);
}
}
function init(level, initx, inity) {
skill = (level * 0.3) + 40;
reflex = (level * 0.3) + 40;
mylevel = level;
var _local4 = makeAColor(level, 1);
recolor(balloons.b1.fill, _local4);
recolor(headfill, _local4);
_local4 = makeAColor(level, 2);
recolor(suitfill, _local4);
recolor(arm.armfill, _local4);
_x = initx;
_y = inity;
yvel = -20;
xvel = 0;
maxyvel = 2 + (level * 0.03);
maxxvel = 2 + (level * 0.04);
strength = 3;
opponent = "Player1";
charge = 0;
accpack = 0;
gotoAndStop (1);
balloons.setballoon(2);
SFX = new Sound(this);
if (mynumber <= _parent.manager.drones) {
rules = "standard";
} else {
rules = "sit-out";
yvel = 0;
_x = 0;
_y = 340;
}
ID = 2;
opponent = "Player1";
balloons.realangle = 0;
ori = 1;
lost = false;
}
function recolor(subject, dye) {
var _local1 = new Color([subject]);
_local1.setRGB(dye);
}
function makeAColor(level, method) {
if (method == 1) {
var _local2 = int(level * 2.5);
} else if (method == 2) {
var _local2 = int((level * 2.5) + 20);
}
while (_local2 > 255) {
var _local2 = _local2 - 255;
}
var _local2 = _local2.toString(16);
if (method == 1) {
var _local5 = int((level * 0.5) + 100);
} else if (method == 2) {
var _local5 = 80;
}
if (_local5 > 200) {
var _local5 = 200;
}
var _local5 = _local5.toString(16);
if (method == 1) {
var _local4 = int(180 - (level * 0.8));
} else if (method == 2) {
var _local4 = int(180 - (level * 0.6));
}
if (_local4 < 100) {
var _local4 = 100;
}
var _local4 = _local4.toString(16);
var _local3 = "";
if (_local2.length < 2) {
_local3 = _local3 + "0";
}
_local3 = _local3 + _local2;
if (_local5.length < 2) {
_local3 = _local3 + "0";
}
_local3 = _local3 + _local5;
if (_local4.length < 2) {
_local3 = _local3 + "0";
}
_local3 = _local3 + _local4;
return(_root.game.HSLtoRGB(_local3));
}
if ((yvel == undefined) || (xvel == undefined)) {
yvel = (xvel = 0);
}
function rise() {
decision = "goUp";
if (random(80) < skill) {
this.flap(strength, dir);
}
}
function chase() {
if (random(100) < ((skill * skill) / 100)) {
if ((distance < (-(80 - (skill / 2)))) && (((xvel / maxxvel) < 0.9) || (y_pre > (y_int - 10)))) {
dir = 1;
flap(strength, dir);
decision = "goRight";
return(true);
}
if ((distance > (80 - (skill / 2))) && (((xvel / maxxvel) > -0.9) || (y_pre > (y_int - 10)))) {
dir = -1;
this.flap(strength, dir);
decision = "goLeft";
return(true);
}
if ((absDistance <= (80 - (skill / 2))) && (random(120) < skill)) {
decision = "goDown";
if (Math.abs(vdiff) > (((strength * 0.75) * (balloons.ballooncount + 2)) / 4)) {
if (vdiff > 0) {
dir = 1;
this.flap(strength, dir);
return(true);
}
if (vdiff < 0) {
dir = -1;
this.flap(strength, dir);
return(true);
}
}
}
}
}
function evade() {
if (random(80) < ((skill * skill) / 100)) {
if (((320 - _y) - (yvel * 20)) < 50) {
this.flap(strength, dir);
decision = "goUp";
return(true);
}
if (((absDistance < 20) && (y_int < (_y - 10))) && (y_int > (_y - 50))) {
decision = "goDown";
return(true);
}
if ((vdiff > 2) || ((absDistance < 100) && (distance > 0))) {
dir = 1;
this.flap(strength, dir);
decision = "goRight";
return(true);
}
if ((vdiff < -2) || ((absDistance < 100) && (distance < 0))) {
dir = -1;
this.flap(strength, dir);
decision = "goLeft";
return(true);
}
}
}
function decide() {
distance = _x - _parent[opponent]._x;
if (distance > 200) {
distance = distance - 400;
}
if (distance < -200) {
distance = 400 - distance;
}
y_int = _parent[opponent]._y;
y_pre = _y;
absDistance = Math.abs(distance);
if (useAcc() && (_parent[("p" + ID) + "stats"].light._currentframe == 2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
ready2 = false;
}
if ((_y < 50) && (_parent[opponent]._y < 50)) {
chase();
return(true);
}
if (_y > 250) {
evade();
return(true);
}
if ((_y > (_parent[opponent]._y - 10)) && (absDistance < 20)) {
evade();
} else {
chase();
}
return(true);
}
function useAcc() {
if (packcharge == undefined) {
packcharge = 0;
}
if (((accpack == 1) && (pack["acc" + accpack]._currentframe == 1)) && (decision == "goUp")) {
return(true);
}
if (((accpack == 2) && (decision == "goUp")) && (yvel > -10)) {
return(true);
}
if ((accpack == 3) && (decision == "goDown")) {
return(true);
}
if (((accpack == 4) && (((decision == "goRight") && (xvel < 0)) || ((decision == "goLeft") && (xvel > 0)))) && ((_y - _parent[opponent]._y) < (absDistance / 2))) {
if (decision == "goRight") {
dir = 1;
} else {
dir = -1;
}
if (charge > 80) {
packcharge = 5;
}
return(true);
}
if ((((accpack == 5) && (decision == "goDown")) && (absDistance < 30)) && (_parent[opponent]._y < _y)) {
return(true);
}
if ((accpack == 6) && ((absDistance < 30) && (Math.abs(_parent[opponent]._y - _y) < 10))) {
turn("towards");
if (charge > 50) {
packcharge = 4;
}
return(true);
}
if ((accpack == 7) && (Math.abs(((_parent[opponent]._y - _y) / absDistance) - 0.5) < 0.3)) {
turn("away");
return(true);
}
if ((accpack == 8) && ((decision == "goRight") || (decision == "goLeft"))) {
if (charge > 50) {
packcharge = 4;
}
return(true);
}
if ((accpack == 9) && (Math.abs(_parent[opponent]._y - _y) < 10)) {
turn("towards");
return(true);
}
if ((accpack == 10) && (((decision == "goRight") && (xvel < 0)) || ((decision == "goLeft") && (xvel > 0)))) {
return(true);
}
if ((accpack == 11) && (((decision == "goUp") && (yvel > 0)) || ((decision == "goDown") && (yvel < 0)))) {
return(true);
}
if (((accpack == 12) && (((decision == "goRight") && (ori == 1)) || ((decision == "goLeft") && (ori == -1)))) && (random(200) < skill)) {
return(true);
}
if ((accpack == 13) && (_y < _parent[opponent]._y)) {
if (charge > 50) {
packcharge = 4;
}
return(true);
}
if ((accpack == 14) && ((_y < (_parent[opponent]._y - 40)) && (absDistance < 30))) {
return(true);
}
if ((accpack == 15) && (random(1000) < skill)) {
return(true);
}
if (((accpack == 16) && (random(80) < reflex)) && (((y_pre > (y_int + 5)) && (y_pre < (y_int + 40))) && (absDistance < 40))) {
return(true);
}
if ((accpack == 17) && ((absDistance < 16) && (Math.abs(y_int - y_pre) < 20))) {
turn("towards");
return(true);
}
if ((accpack == 18) && (random(800) < skill)) {
return(true);
}
return(false);
}
function turn(where) {
if (where == "towards") {
if (distance < 0) {
dir = 1;
} else {
dir = -1;
}
} else if (distance < 0) {
dir = 1;
} else {
dir = -1;
}
}
stop();
Instance of Symbol 783 MovieClip "balloons" in Symbol 793 MovieClip [Drone] Frame 1
onClipEvent (enterFrame) {
if (inflation == undefined) {
inflation = 100;
} else {
_xscale = (_parent.ori * 100);
_alpha = (150 - (inflation / 2));
}
if (inflation >= 200) {
inflation = 0;
setballoon(0);
_parent.SFX.attachSound("bpop");
_parent.SFX.start();
}
if ((_parent.xvel != undefined) && (realangle != undefined)) {
realangle = ((realangle * 3) + ((_parent.xvel * -6) + 5)) / 4;
}
_rotation = (realangle * _parent.ori);
if (((ballooncount != 0) && (ballooncount != 1)) && (ballooncount != 2)) {
this.setballoon(1);
}
if ((hitTest(_parent._parent.Player1.legs.shoe) && (_parent._parent.Player1._y < (_parent._y - 10))) && (ballooncount > 0)) {
pop();
_parent._parent.bounce(_parent, _parent._parent.Player1);
_parent.SFX.attachSound("bpop");
_parent.SFX.start();
}
}
Instance of Symbol 765 MovieClip "pilot" in Symbol 793 MovieClip [Drone] Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.mode == "SM") {
while (_parent.skill == undefined) {
_parent.init((_parent._parent.wave / 10) + random(5), random(400), 300);
}
with (_parent) {
if (isNaN(yvel) || (isNaN(xvel))) {
yvel = (xvel = 0);
}
if ((this.hitTest(_parent.Player1.pilot) && (_parent.Player1.balloons.ballooncount > 0)) && (balloons.ballooncount > 0)) {
_parent.bounce(this._parent, _parent.Player1);
SFX.attachSound("bounce");
SFX.start();
}
if (dir != 0) {
ori = dir;
}
if (rules == "standard") {
vdiff = _parent[opponent].xvel - xvel;
pilot.decide();
_y = _y + (yvel + _parent.yscroll);
_x = _x + (xvel + _parent.xscroll);
yvel = yvel + _parent.gravity;
if (balloons.ballooncount < 2) {
yvel = yvel + (_parent.gravity * 0.25);
}
if (balloons.ballooncount == 1) {
yvel = yvel * 0.8;
xvel = xvel * 0.9;
strength = 0.5;
}
if (Math.abs(yvel) >= (maxyvel * drag)) {
yvel = yvel * 0.9;
}
if (Math.abs(xvel) >= (maxxvel * drag)) {
xvel = xvel * 0.9;
}
if (dir != 0) {
_xscale = dir * 50;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_parent.rules == "standard") {
with (_parent) {
if (_x > 415) {
_x = -15;
}
if (_x < -15) {
_x = 415;
}
if (_y > 400) {
_parent.wave = _parent.wave + (2 + (balloons.ballooncount * 2));
_parent.soldierCount.score(mylevel);
init(_parent.wave + random(5), _x, 300);
}
if (_y < 20) {
_y = 20;
if (yvel < 0) {
yvel = yvel * -0.8;
xvel = xvel * 0.8;
SFX.attachSound("bounce");
SFX.start();
}
}
}
}
}
Instance of Symbol 32 MovieClip [event] "hit2" in Symbol 793 MovieClip [Drone] Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (((_parent._parent.Player1.balloons.hitTest(this) && (_parent.balloons.ballooncount > 0)) && (_parent._parent.Player1.invincibility == 0)) && (_parent._parent.Player1.balloons.ballooncount > 0)) {
_parent._parent.Player1.balloons.pop();
_parent._parent.bounce(_parent, _parent._parent.Player1);
_parent.SFX.attachSound("bpop");
_parent.SFX.start();
}
}
Symbol 793 MovieClip [Drone] Frame 5
gotoAndStop (1);
Symbol 799 MovieClip Frame 1
function init(soldiers, cash) {
_SD = soldiers;
_CU = cash;
update();
}
function score(level) {
if (level == undefined) {
level = 0;
}
_SD++;
_CU = _CU + (int(level / 16) + 1);
update();
}
function update() {
sd.text = int(_SD);
cu.text = "$" + int(_CU);
}
function getCash() {
if (_CU == undefined) {
_CU = 0;
}
return(_CU);
}
_SD = (_CU = 0);
Symbol 808 MovieClip Frame 1
function init() {
b1.recolor(_parent[player].ballooncolor);
b2.recolor(_parent[player].ballooncolor);
b3.recolor(_parent[player].ballooncolor);
b4.recolor(_parent[player].ballooncolor);
b5.recolor(_parent[player].ballooncolor);
}
Instance of Symbol 803 MovieClip "bar" in Symbol 808 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (75 - (_parent._parent[_parent.player].charge / 2));
}
Instance of Symbol 807 MovieClip "light" in Symbol 808 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent[_parent.player].charge < _parent._parent[_parent.player].pack.required) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 803 MovieClip "bar" in Symbol 808 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = (_parent._parent[_parent.player].lives * 10);
}
Symbol 814 Button
on (rollOver) {
if (taxi.clerk.index > 2) {
taxi.clerk.index = 6;
}
}
on (release) {
BGM.setVolume(_root.gamedata.data.BGMvol3);
gotoAndStop ("Hair Salon");
}
Symbol 816 Button
on (rollOver) {
if (taxi.clerk.index > 2) {
taxi.clerk.index = 14;
}
}
on (release) {
BGM.setVolume(_root.gamedata.data.BGMvol3);
gotoAndStop ("Gene Lab");
}
Symbol 818 Button
on (rollOver) {
if (taxi.clerk.index > 2) {
taxi.clerk.index = 8;
}
}
on (release) {
BGM.setVolume(_root.gamedata.data.BGMvol3);
gotoAndStop ("Fabric Fitters");
}
Symbol 820 Button
on (rollOver) {
if (taxi.clerk.index > 2) {
taxi.clerk.index = 10;
}
}
on (release) {
BGM.setVolume(_root.gamedata.data.BGMvol3);
gotoAndStop ("B&A");
}
Symbol 822 Button
on (release) {
BGM.stop();
gotoAndStop ("Registration");
}
Symbol 824 Button
on (rollOver) {
if (taxi.clerk.index > 2) {
taxi.clerk.index = 4;
}
}
on (release) {
BGM.stop();
gotoAndStop ("ArenaDesk");
}
Symbol 826 Button
on (release) {
BGM.stop();
gotoAndStop ("Options");
}
Symbol 828 Button
on (release) {
fscommand ("quit");
taxi.quit = true;
}
Symbol 830 Button
on (rollOver) {
if (taxi.clerk.index > 2) {
taxi.clerk.index = 16;
}
}
on (release) {
BGM.stop();
gotoAndStop ("Tutorial");
}
Symbol 832 Button
on (rollOver) {
if (taxi.clerk.index > 2) {
taxi.clerk.index = 12;
}
}
on (release) {
BGM.setVolume(_root.gamedata.data.BGMvol3);
gotoAndStop ("HeadWear");
}
Symbol 835 Button
on (release) {
show = false;
}
Symbol 847 MovieClip Frame 1
function price(cost) {
current.text = int(_root.player1.data.cash);
total = cost;
tag.text = cost;
ending.text = int(_root.player1.data.cash + cost);
}
current.text = _root.player1.data.cash;
tag.text = 0;
ending.text = _root.player1.data.cash;
Symbol 848 Button
on (release) {
head["h" + head.subject]--;
if (head["h" + head.subject] <= 0) {
head["h" + head.subject] = head.max;
}
}
Symbol 849 Button
on (release) {
head["h" + head.subject]++;
if (head["h" + head.subject] > head.max) {
head["h" + head.subject] = 1;
}
}
Symbol 850 Button
on (release) {
head.subject++;
}
Symbol 851 Button
on (release) {
head.subject--;
}
Symbol 852 Button
on (release) {
if ((pricer.total == 0) && (ColorDiff(_root.player1.data.haircolor, pallete.hex) == 0)) {
_root.game.gotoAndStop("Center");
} else {
buy.gotoAndStop(1);
buy.asking = true;
}
}
Symbol 853 Button
on (release) {
_root.game.gotoAndStop("Center");
}
Instance of Symbol 32 MovieClip [event] in Symbol 855 MovieClip Frame 1
onClipEvent (enterFrame) {
with (_parent) {
if (vel == undefined) {
xinit = _x;
vel = (walktime = 0);
}
if (walktime > 0) {
_x = _x - vel;
walktime--;
} else {
_x = xinit;
vel = (walktime = 0);
}
}
}
Symbol 855 MovieClip Frame 25
gotoAndPlay (1);
Symbol 858 Button
on (release) {
answer = "yes";
}
Symbol 859 Button
on (release) {
answer = "no";
}
Symbol 862 Button
on (release) {
answer = "no";
}
Symbol 863 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 2
stop();
Symbol 872 Button
on (release) {
head.hair.moveWear(head.subject, -1);
}
Symbol 873 Button
on (release) {
head.hair.moveWear(head.subject, 1);
}
Symbol 874 Button
on (release) {
head["h" + head.subject]--;
head.update(head["h" + head.subject]);
}
Symbol 875 Button
on (release) {
head["h" + head.subject]++;
head.update(head["h" + head.subject]);
}
Symbol 876 Button
on (release) {
pallete["h" + head.subject] = pallete.hex;
head.subject++;
pallete.switched = true;
}
Symbol 877 Button
on (release) {
pallete["h" + head.subject] = pallete.hex;
head.subject--;
pallete.switched = true;
}
Symbol 878 Button
on (release) {
if (((((((pricer.total == 0) && (head.H1 == _root.player1.data.wear1style)) && (head.H2 == _root.player1.data.wear2style)) && (head.H3 == _root.player1.data.wear3style)) && (head.hair.w1 == _root.player1.data.wear1level)) && (head.hair.w2 == _root.player1.data.wear2level)) && (head.hair.w3 == _root.player1.data.wear3level)) {
_root.game.gotoAndStop("Center");
} else {
buy.gotoAndStop(1);
buy.asking = true;
}
}
Symbol 883 Button
on (release) {
head["e" + head.subject]--;
}
Symbol 884 Button
on (release) {
head["e" + head.subject]++;
}
Symbol 885 Button
on (release) {
if (pricer.total == 0) {
_root.game.gotoAndStop("Center");
} else {
buy.gotoAndStop(1);
buy.asking = true;
}
}
Symbol 888 Button
on (release) {
if ((fighter.subject == 2) || (fighter.subject == 5)) {
if ((fighter.ovg == undefined) || (fighter.ovg > 1)) {
fighter.ovg = 1;
}
fighter.ovg = 1 - fighter.ovg;
} else if ((fighter.subject == 3) || (fighter.subject == 4)) {
if ((fighter.ovs == undefined) || (fighter.ovs > 1)) {
fighter.ovs = 1;
}
fighter.ovs = 1 - fighter.ovs;
}
}
Symbol 895 Button
on (release) {
fighter["c" + fighter.subject]--;
if (fighter["c" + fighter.subject] <= 0) {
fighter["c" + fighter.subject] = fighter.max;
}
}
Symbol 896 Button
on (release) {
fighter["c" + fighter.subject]++;
if (fighter["c" + fighter.subject] > fighter.max) {
fighter["c" + fighter.subject] = 1;
}
}
Symbol 897 Button
on (release) {
pallete["c" + fighter.subject] = pallete.hex;
fighter.subject++;
pallete.switched = true;
}
Symbol 898 Button
on (release) {
pallete["c" + fighter.subject] = pallete.hex;
fighter.subject--;
pallete.switched = true;
}
Symbol 899 Button
on (release) {
if (((((((((pricer.total == 0) && (fighter.c1 == _root.player1.data.shirtstyle)) && (fighter.c2 == _root.player1.data.sleevestyle)) && (fighter.c3 == _root.player1.data.pantstyle)) && (fighter.c4 == _root.player1.data.shoestyle)) && (fighter.c5 == _root.player1.data.glovestyle)) && (fighter.c6 == _root.player1.data.overstyle)) && (fighter.ovg == _root.player1.data.overglove)) && (fighter.ovs == _root.player1.data.overshoes)) {
_root.game.gotoAndStop("Center");
} else {
buy.gotoAndStop(1);
buy.asking = true;
}
}
Symbol 906 Button
on (release) {
fighter.accpack--;
if (fighter.accpack < 1) {
fighter.accpack = fighter.max;
}
fighter.init();
clerk.index = (fighter.accpack * 2) + 6;
}
Symbol 907 Button
on (release) {
fighter.accpack++;
if (fighter.accpack > fighter.max) {
fighter.accpack = 1;
}
fighter.init();
clerk.index = (fighter.accpack * 2) + 6;
}
Symbol 908 Button
on (release) {
if ((pricer.total == 0) && (_root.player1.data.accpack == fighter.accpack)) {
_root.game.gotoAndStop("Center");
} else {
buy.gotoAndStop(1);
buy.asking = true;
}
}
Symbol 910 MovieClip Frame 1
function init() {
b1.recolor(_parent[player].ballooncolor);
b2.recolor(_parent[player].ballooncolor);
b3.recolor(_parent[player].ballooncolor);
b4.recolor(_parent[player].ballooncolor);
b5.recolor(_parent[player].ballooncolor);
}
Instance of Symbol 803 MovieClip "bar" in Symbol 910 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (75 - (_parent._parent[_parent.player].charge / 2));
}
Instance of Symbol 807 MovieClip "light" in Symbol 910 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent[_parent.player].charge < _parent._parent[_parent.player].pack.required) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 921 Button
on (press) {
_scroll--;
if (_scroll < 0) {
_scroll = 0;
}
}
Symbol 922 Button
on (press) {
_scroll++;
if (_scroll > (listlength - 10)) {
_scroll = listlength - 10;
}
}
Symbol 925 MovieClip Frame 1
function dispNames(position) {
list.text = "";
var _local3 = position + 12;
if (position < 0) {
position = 0;
list.text = list.text + "\r";
}
if (_local3 > _parent.listlength) {
_local3 = _parent.listlength;
}
var _local2 = position;
while (_local2 < _local3) {
list.text = list.text + _parent.nameArray[_local2];
if (_local2 < (_local3 - 1)) {
list.text = list.text + "\r";
}
_local2++;
}
}
Instance of Symbol 32 MovieClip [event] "p1s" in Symbol 925 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 32 MovieClip [event] "p2s" in Symbol 925 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 32 MovieClip [event] "Selected" in Symbol 925 MovieClip Frame 1
onClipEvent (load) {
function repos() {
_y = ((((select - 1) - _parent._parent._scroll) * 19.4) + 10.2);
_parent.p1s._y = (((_parent.p1s.select - 1) - _parent._parent._scroll) * 19.4) + 10.2;
_parent.p2s._y = (((_parent.p2s.select - 1) - _parent._parent._scroll) * 19.4) + 10.2;
}
gotoAndStop (1);
}
onClipEvent (mouseDown) {
if ((((_parent._xmouse > 0) && (_parent._xmouse < 130)) && (_parent._parent._ymouse > 0)) && (_parent._parent._ymouse < 240)) {
select = (int(_parent._ymouse / 19.4) + 1) + _parent._parent._scroll;
}
if (select > _root.register.data.entries) {
select = _root.register.data.entries;
}
_parent._parent.selectedname = _root.register.data["entree" + select];
_parent._parent.filename = _root.filename(_parent._parent.selectedname);
}
Symbol 927 MovieClip Frame 1
function LoadList() {
if (_root.register.data.entries == undefined) {
return(false);
}
_scroll = 0;
listlength = _root.register.data.entries;
nameArray = new Array(listlength);
var _local2 = 0;
while (_local2 < listlength) {
nameArray[_local2] = _root.register.data["entree" + (_local2 + 1)];
_local2++;
}
return(true);
}
woo.list.text = "";
Instance of Symbol 920 MovieClip "slider" in Symbol 927 MovieClip Frame 1
onClipEvent (load) {
loaded = false;
}
onClipEvent (enterFrame) {
if (drag) {
percent = ((_parent._ymouse - ydelta) - 32) / 175;
_parent._scroll = int(percent * (_parent.listlength - 10));
} else {
percent = _parent._scroll / (_parent.listlength - 10);
}
if (percent > 1) {
percent = 1;
} else if (percent < 0) {
percent = 0;
}
_y = ((175 * percent) + 32);
_parent.woo.Selected.repos();
if (!loaded) {
loaded = _parent.LoadList();
if (!charaload) {
_root.player1 = SharedObject.getLocal(_root.Replace(_root.register.data["entree" + _root.gamedata.data.checkout1], " ", "_"));
_root.player2 = SharedObject.getLocal(_root.Replace(_root.register.data["entree" + _root.gamedata.data.checkout2], " ", "_"));
charaload = true;
}
} else {
if (_parent._scroll > (_parent.listlength - 10)) {
_parent._scroll = _parent.listlength - 10;
}
if (_parent._scroll < 0) {
_parent._scroll = 0;
}
_parent.woo.dispNames(_parent._scroll - 1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
ydelta = _parent._ymouse - _y;
drag = true;
}
}
onClipEvent (mouseUp) {
drag = false;
}
Symbol 929 Button
on (release) {
if (_root.player1.data.name != undefined) {
_root.gamedata.flush(1200);
_root.game.gotoAndStop("Center");
}
}
Symbol 930 Button
on (release) {
gotoAndStop ("help");
}
Symbol 934 Button
on (release) {
delete select;
_root.gamedata.flush(1200);
_root.game.gotoAndStop("Registration");
}
Symbol 942 Button
on (release) {
valid = true;
newname = partname.text;
if (((_root.filename(newname) == "gamedata") || (_root.filename(newname) == "register")) || (_root.filename(newname) == "_random_")) {
valid = false;
}
i = 1;
while (i <= _root.register.data.entries) {
if (_root.filename(newname) == _root.filename(_root.register.data["entree" + i])) {
valid = false;
}
i++;
}
if (valid) {
answer = "yes";
} else {
gotoAndStop (2);
}
}
Symbol 946 MovieClip Frame 1
stop();
Symbol 952 Button
on (press) {
CHECK.step = 4;
}
on (release) {
if (CHECK.valid) {
i = 0;
while (i < _root.register.data.entries) {
i++;
if (_root.filename(importname.text) == _root.filename(_root.register.data["entree" + i])) {
warn.show = true;
break;
}
}
delete i;
if (!warn.show) {
_root.register.data.entries++;
_root.register.data["entree" + _root.register.data.entries] = importname.text;
warn.overwrite = true;
}
}
}
Symbol 953 Button
on (release) {
_root.game.gotoAndStop("EditReg");
}
Symbol 959 Button
on (release) {
overwrite = true;
show = false;
}
Symbol 960 Button
on (release) {
overwrite = false;
show = false;
}
Symbol 968 Button
on (release) {
if (((partname.text != "register") && (partname.text != "gamedata")) && (partname.text != "_random_")) {
i = 0;
while (i < _root.register.data.entries) {
i++;
if (_root.filename(partname.text) == _root.filename(_root.register.data["entree" + i])) {
warn.show = true;
break;
}
}
delete i;
if (!warn.show) {
manager.step = 1;
}
}
}
Symbol 981 MovieClip Frame 1
stop();
Symbol 986 Button
on (rollOver) {
screen.gotoAndStop("pvp");
}
on (release) {
mode = "PvP";
gotoAndStop ("PlayerSelect");
}
Symbol 991 Button
on (rollOver) {
screen.gotoAndStop("pvc");
}
on (release) {
mode = "PvC";
gotoAndStop ("ComputerSelect");
}
Symbol 996 Button
on (rollOver) {
if (_root.player1.data.rank >= 100) {
screen.gotoAndStop("sm");
} else {
screen.gotoAndStop("smx");
}
}
on (release) {
if (_root.player1.data.rank >= 100) {
mode = "SM";
gotoAndStop ("ArenaSelect");
}
}
Symbol 1001 Button
on (rollOver) {
if (_root.player1.data.rank >= 75) {
screen.gotoAndStop("bt");
} else {
screen.gotoAndStop("btx");
}
}
on (release) {
if (_root.player1.data.rank >= 75) {
mode = "BT";
gotoAndStop ("Balloon Trip");
}
}
Symbol 1003 Button
on (release) {
if ((_root.player1.data.name != undefined) && (_root.player2.data.name != undefined)) {
_root.gamedata.flush(1200);
_root.game.gotoAndStop("ArenaSelect");
}
}
Symbol 1004 Button
on (release) {
_root.game.gotoAndStop("ArenaDesk");
}
Symbol 1020 Button
on (release) {
if (Key.isDown.Key.CAPSLOCK) {
compFight = true;
}
if (((_root.player1.data.name != undefined) && (_root.player2.data.name != undefined)) && (_alpha == 100)) {
_root.gamedata.flush(1200);
_root.game.gotoAndStop("ArenaSelect");
}
}
Symbol 1027 Button
on (release) {
stagetype++;
}
Symbol 1028 Button
on (release) {
stagetype--;
}
Symbol 1032 Button
on (release) {
gotoAndStop ("Arena");
}
Symbol 1033 Button
on (release) {
if (mode == "PvC") {
_root.game.gotoAndStop("ComputerSelect");
} else if (mode == "PvP") {
_root.game.gotoAndStop("PlayerSelect");
} else if (mode == "SM") {
_root.game.gotoAndStop("ArenaDesk");
}
}
Symbol 1042 Button
on (release) {
_root.game.gotoAndStop("Center");
}
Symbol 1208 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1208 MovieClip Frame 20
stop();
Symbol 1208 MovieClip Frame 40
gotoAndPlay (21);
Symbol 1208 MovieClip Frame 80
gotoAndPlay (41);
Symbol 1208 MovieClip Frame 160
gotoAndPlay (121);
Symbol 1208 MovieClip Frame 230
gotoAndPlay (191);
Symbol 1208 MovieClip Frame 231
Symbol 1208 MovieClip Frame 250
gotoAndPlay (231);
Symbol 1208 MovieClip Frame 270
gotoAndPlay (251);
Symbol 1208 MovieClip Frame 300
gotoAndPlay (271);
Symbol 1208 MovieClip Frame 360
gotoAndPlay (301);
Symbol 1208 MovieClip Frame 380
gotoAndPlay (361);
Symbol 1208 MovieClip Frame 440
gotoAndPlay (381);
Symbol 1208 MovieClip Frame 455
stop();
Symbol 1208 MovieClip Frame 475
gotoAndPlay (456);
Symbol 1208 MovieClip Frame 535
gotoAndPlay (476);
Symbol 1208 MovieClip Frame 555
gotoAndPlay (536);
Instance of Symbol 1216 MovieClip in Symbol 1218 MovieClip Frame 1
onClipEvent (load) {
max = 120;
pan = max;
}
onClipEvent (enterFrame) {
if (_parent._ymouse < 50) {
pan = pan + ((_parent._ymouse - 50) / 10);
} else if (_parent._ymouse > 110) {
pan = pan + ((_parent._ymouse - 110) / 10);
}
if (pan < 0) {
pan = 0;
} else if (pan > max) {
pan = max;
}
_y = (20 - pan);
}
Symbol 1227 MovieClip Frame 1
function shock() {
gotoAndPlay (8);
}
Symbol 1227 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1227 MovieClip Frame 8
zap = true;
gotoAndPlay (1);
Symbol 1232 MovieClip Frame 1
ST = "openingtheme.mp3";
stop();
_root.gamedata = SharedObject.getLocal("gamedata");
checkout1 = 0;
checkout2 = 0;
if (_root.gamedata.data.exists == undefined) {
gotoAndStop ("New User");
}
_quality = _root.gamedata.data.qlty;
function HSLtoRGB(hex) {
hue = parseInt(hex.substr(0, 2), 16);
sat = parseInt(hex.substr(2, 2), 16);
lum = parseInt(hex.substr(4, 2), 16);
sat = sat / 240;
lum = lum / 240;
if ((hue >= 0) && (hue < 40)) {
red = 1;
green = hue / 40;
blue = 0;
} else if ((hue >= 40) && (hue < 80)) {
red = (80 - hue) / 40;
green = 1;
blue = 0;
} else if ((hue >= 80) && (hue < 120)) {
red = 0;
green = 1;
blue = (hue - 80) / 40;
} else if ((hue >= 120) && (hue < 160)) {
red = 0;
green = (160 - hue) / 40;
blue = 1;
} else if ((hue >= 160) && (hue < 200)) {
red = (hue - 160) / 40;
green = 0;
blue = 1;
} else {
red = 1;
green = 0;
blue = (240 - hue) / 40;
}
red = ((((2 * red) - 1) * sat) * 128) + 128;
green = ((((2 * green) - 1) * sat) * 128) + 128;
blue = ((((2 * blue) - 1) * sat) * 128) + 128;
if (lum <= 0.5) {
red = red * (lum * 2);
green = green * (lum * 2);
blue = blue * (lum * 2);
} else {
bright = 2 * (1 - lum);
red = (255 - (red * bright)) + (((2 * red) - 255) * bright);
green = (255 - (green * bright)) + (((2 * green) - 255) * bright);
blue = (255 - (blue * bright)) + (((2 * blue) - 255) * bright);
}
red = red.toString(16).toUpperCase();
green = green.toString(16).toUpperCase();
blue = blue.toString(16).toUpperCase();
if (red.length < 2) {
red = "0" + red;
}
if (green.length < 2) {
green = "0" + green;
}
if (blue.length < 2) {
blue = "0" + blue;
}
hex = (("0x" + red) + green) + blue;
delete red;
delete green;
delete blue;
delete hue;
delete sat;
delete lum;
delete bright;
return(hex);
}
function HexHSL(H, S, L) {
H = H.toString(16).toUpperCase();
S = S.toString(16).toUpperCase();
L = L.toString(16).toUpperCase();
if (H.length < 2) {
H = "0" + H;
}
if (S.length < 2) {
S = "0" + S;
}
if (L.length < 2) {
L = "0" + L;
}
return((H + S) + L);
}
function CodeToWord(code) {
if (((code >= 48) && (code <= 57)) || ((code >= 65) && (code <= 90))) {
return(String.fromCharCode(code));
}
if ((code >= 96) && (code <= 105)) {
return("NumbPad" + (code - 96));
}
if ((code >= 112) && (code <= 126)) {
return("F" + (code - 111));
}
switch (code) {
case 8 :
return("Backspace");
case 9 :
return("Tab");
case 12 :
return("Clear");
case 13 :
return("Enter");
case 16 :
return("Shift");
case 17 :
return("Control");
case 18 :
return("Alt");
case 19 :
return("Pause");
case 20 :
return("Caps Lock");
case 27 :
return("Esc");
case 32 :
return("Spacebar");
case 33 :
return("Page Up");
case 34 :
return("Page Down");
case 35 :
return("End");
case 36 :
return("Home");
case 37 :
return("Left");
case 38 :
return("Up");
case 39 :
return("Right");
case 40 :
return("Down");
case 45 :
return("Insert");
case 46 :
return("Delete");
case 47 :
return("Help");
case 144 :
return("Num Lock");
case 145 :
return("Scroll Lock");
case 186 :
return(";");
case 187 :
return("=");
case 188 :
return("<");
case 189 :
return("-");
case 190 :
return(">");
case 191 :
return("/");
case 192 :
return("~");
case 219 :
return("[");
case 220 :
return("\\");
case 221 :
return("]");
case 222 :
return("\"");
case 106 :
return("NumbPad *");
case 107 :
return("NumbPad +");
case 108 :
return("N.P. Enter");
case 109 :
return("NumbPad -");
case 110 :
return("NumbPad .");
case 111 :
return("NumbPad /");
}
return(code);
}
function ColorDiff(color1, color2) {
var _local3 = parseInt(color1.substr(0, 2), 16);
var _local10 = parseInt(color1.substr(2, 2), 16);
var _local8 = parseInt(color1.substr(4, 2), 16);
var _local2 = parseInt(color2.substr(0, 2), 16);
var _local9 = parseInt(color2.substr(2, 2), 16);
var _local6 = parseInt(color2.substr(4, 2), 16);
var _local1 = Math.abs(_local3 - _local2);
if (_local1 > 120) {
_local1 = 240 - _local1;
}
var _local11 = Math.abs(_local10 - _local9);
var _local7 = Math.abs(_local8 - _local6);
color1 = (_local1 + _local11) + _local7;
return(color1);
}
function numberToDecimal(number) {
number = Math.abs(int(number * 100));
var _local1 = number.toString();
while (_local1.length <= 2) {
_local1 = "0" + _local1;
}
_local1 = (_local1.substr(0, _local1.length - 2) + ".") + _local1.substr(_local1.length - 2);
return(_local1);
}
function HexToBinary(hex) {
hex = parseInt(hex, 36).toString(2);
while (hex.length < 72) {
hex = "0" + hex;
}
return(hex);
}
function rescale(scale) {
_yscale = (150 * scale);
_xscale = (150 * scale);
_parent.mask._xscale = 40 * _xscale;
_parent.mask._yscale = 30 * _yscale;
_x = (300 * (1 - scale));
_y = (225 * (1 - scale));
}
function playSong(song) {
if (_url.substr(0, 5) == "file:") {
BGM.loadSound(_root.gamedata.data[song], true);
} else {
BGM.loadSound("file:" + _root.gamedata.data[song], true);
}
}
function checkOutItem(number, orderlist) {
if (orderlist == undefined) {
orderlist = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
}
var _local1 = orderlist.charCodeAt(number - 1);
if (_local1 >= 65) {
return((_local1 - 65) + 11);
}
return((_local1 - 48) + 1);
}
function checkInItem(number, orderlist) {
if (orderlist == undefined) {
orderlist = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
}
var _local1 = 1;
while (_local1 <= 36) {
if (checkOutItem(_local1, orderlist) == number) {
return(_local1);
}
_local1++;
}
return(0);
}
function collision(t1, t2) {
return(t1.hitTest(((_root.game._xscale * 0.01) * t2._x) + _root.game._x, ((_root.game._yscale * 0.01) * t2._y) + _root.game._y, true));
}
playSong("track1loc");
BGM.setVolume(_root.gamedata.data.BGMvol1);
BGM.start();
Instance of Symbol 244 MovieClip "wrap" in Symbol 1232 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 0.5);
if (_x <= -400) {
_x = (_x + 400);
}
}
Instance of Symbol 277 MovieClip "S T A R T" in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
bt._xscale = 80;
_parent.rescale(_root.gamedata.data.screensize);
}
onClipEvent (enterFrame) {
if ((step == 4) && (_root.gamedata.data.exists)) {
_parent.BGM.stop();
_parent.gotoAndStop("Registration");
}
}
Symbol 1232 MovieClip Frame 2
ST = "";
with (_root.gamedata) {
data.exists = 1;
data.BGMvol = 20;
data.keyLEFTKEY1 = 37;
data.keyRIGHTKEY1 = 39;
data.keyBASIC1 = 45;
data.keyADVANCE1 = 46;
data.keyLEFTKEY2 = 65;
data.keyRIGHTKEY2 = 68;
data.keyBASIC2 = 66;
data.keyADVANCE2 = 86;
data.secondPlayer = false;
data.reflex = 50;
data.skill = 50;
data.backgrounds = 1;
data.ac = false;
data.fish = true;
data.qlty = "MEDIUM";
data.screensize = 0.8;
}
_quality = "MEDIUM";
_root.gamedata.flush(5000);
_root.register = SharedObject.getLocal("register");
_root.register.data.entries = 0;
_root.register.flush(1200);
Symbol 1232 MovieClip Frame 3
ST = "";
Instance of Symbol 468 MovieClip "options" in Symbol 1232 MovieClip Frame 3
onClipEvent (load) {
pn = _root.gamedata.data.secondPlayer;
bg = _root.gamedata.data.backgrounds;
qlty = _root.gamedata.data.qlty;
bgcolor = _root.gamedata.data.bgcolor;
screensize = _root.gamedata.data.screensize;
songs = 18;
}
onClipEvent (enterFrame) {
if (pn) {
pound = "2 Players";
} else {
pound = "1 Player";
}
}
Symbol 1232 MovieClip Frame 4
function swap(variable, t1, t2) {
if ((t1[variable] == undefined) || (t1[variable].isNaN())) {
t1[variable] = 0;
}
if ((t2[variable] == undefined) || (t2[variable].isNaN())) {
t2[variable] = 0;
}
var _local4 = t1[variable];
t1[variable] = t2[variable];
t2[variable] = _local4;
}
function bounce(t1, t2) {
if (t1 == undefined) {
t1 = Player1;
t2 = Player2;
}
if (!bounced) {
if (Math.abs(t1._x - t2._x) > 6) {
swap("xvel", t1, t2);
}
if (Math.abs(t1._y - t2._y) > 6) {
swap("yvel", t1, t2);
}
}
bounced = true;
}
ST = ("Arena" + stagetype) + ".mp3";
_root.warp = true;
bounced = false;
stop();
gravity = 0.25;
yscroll = 0.5;
xscroll = 0;
_root.LEFTKEY1 = _root.gamedata.data.keyLEFTKEY1;
_root.RIGHTKEY1 = _root.gamedata.data.keyRIGHTKEY1;
_root.BASIC1 = _root.gamedata.data.keyBASIC1;
_root.ADVANCE1 = _root.gamedata.data.keyADVANCE1;
_root.LEFTKEY2 = _root.gamedata.data.keyLEFTKEY2;
_root.RIGHTKEY2 = _root.gamedata.data.keyRIGHTKEY2;
_root.BASIC2 = _root.gamedata.data.keyBASIC2;
_root.ADVANCE2 = _root.gamedata.data.keyADVANCE2;
if (compFight) {
Player1.playing = (Player2.playing = false);
} else {
Player1.playing = true;
if (mode == "PvC") {
Player2.playing = false;
} else if (mode == "PvP") {
Player2.playing = true;
} else {
Player2._alpha = 0;
Player2._yscale = 0;
Player2._xscale = 0;
p2stats._y = 330;
soldierCount._y = 264;
soldierCount.init(0, 0);
}
}
Player1.dir = (Player1.ori = 1);
Player1.charge = 0;
Player1.lives = 5;
Player1.init();
Player2.dir = (Player2.ori = -1);
Player2.charge = 0;
Player2.lives = 5;
Player1._y = (Player2._y = 300);
Player1.yvel = (Player2.yvel = -20);
Player1.invincibility = (Player2.invincibility = 50);
Instance of Symbol 32 MovieClip [event] "manager" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
players = 2;
drones = 2;
currentdrone = 2;
stagetype = _parent.stagetype;
_parent.wave = 1;
_parent.playSong(("track" + (_parent.stagetype + 8)) + "loc");
BGM.start(0, 100);
i = 4;
countout = 0;
timer = 0;
yscroll = 2;
if (((_parent.stagetype == 4) || (_parent.stagetype == 5)) || (_parent.stagetype >= 8)) {
yscroll = yscroll * -1;
}
_y = 0;
_x = 0;
if (_root.gamedata.data.backgrounds == 0) {
attachMovie("event", "bg", 0);
bg._xscale = 4000;
bg._yscale = 3000;
bg._x = 200;
bg._y = 150;
bg.gotoAndStop(1);
tempcolor = new Color(bg);
tempcolor.setRGB(_root.game.HSLtoRGB(_root.gamedata.data.bgcolor));
delete tempcolor;
} else if (_root.gamedata.data.backgrounds == 1) {
attachMovie("MusicPreview", "d0", 0);
d0.gotoAndStop(_parent.stagetype + 8);
d0._xscale = (d0._yscale = 550);
d0._x = -20;
d0._y = -15;
} else if (_root.gamedata.data.backgrounds == 2) {
attachMovie("Distance0", "d0", 0);
attachMovie("Distance1", "d1", 1);
attachMovie("Distance2", "d2", 2);
attachMovie("Distance3", "d3", 3);
d0._x = (d1._x = (d2._x = (d3._x = 200)));
}
}
onClipEvent (enterFrame) {
if (!_parent.Player1.pilot.hitTest(_parent.Player2.pilot)) {
_parent.bounced = false;
}
if (_parent.Player1.strength == undefined) {
_parent.BGM.setVolume(_root.gamedata.data["BGMvol" + (stagetype + 8)]);
_parent.Player1.varinit("1");
_parent.Player1.init();
_parent.Player2.varinit("2");
_parent.Player2.init();
_parent.p1stats.init();
_parent.p2stats.init();
_parent.Player1._y = (_parent.Player2._y = 330);
_parent.Player1.xvel = (_parent.Player2.xvel = 0);
_parent.Player1.yvel = (_parent.Player2.yvel = -20);
_parent.Player1._x = 70;
_parent.Player2._y = 300;
}
_parent.distance = _parent.Player1._x - _parent.Player2._x;
if (_parent.distance > 200) {
_parent.distance = _parent.distance - -400;
}
if (_parent.distance < -200) {
_parent.distance = 400 - _parent.distance;
}
if (_parent.Player1.lost || (_parent.Player2.lost)) {
countout++;
}
if (Key.isDown(27)) {
_parent.BGM.stop();
_parent.gotoAndStop("ArenaSelect");
}
if (countout >= 1) {
_parent.BGM.setVolume((_root.gamedata.data["BGMvol" + (stagetype + 8)] * (50 - countout)) / 50);
}
if (countout >= 50) {
_parent.BGM.stop();
_parent.scorediff = _parent.Player1.lives - _parent.Player2.lives;
if (_parent.mode == "PvC") {
_parent.gotoAndStop("Winnings");
} else {
_root.player1.data.cash = _root.player1.data.cash + _parent.soldierCount.getCash();
_parent.gotoAndStop("ArenaSelect");
}
}
timer = timer + yscroll;
if (yscroll > 0) {
yscroll = yscroll - 0.002;
} else if (yscroll < 0) {
yscroll = yscroll + 0.002;
}
if (!_root.gamedata.data.ac) {
if (stagetype == 6) {
_parent.Player1.balloons.inflation = _parent.Player1.balloons.inflation + Math.pow(_parent.Player1._y / 400, 3);
_parent.Player2.balloons.inflation = _parent.Player2.balloons.inflation + Math.pow(_parent.Player2._y / 400, 3);
} else if (stagetype == 4) {
if (_parent.Player1.balloons.inflation < 125) {
_parent.Player1.balloons.inflation = _parent.Player1.balloons.inflation + 0.1;
}
if (_parent.Player2.balloons.inflation < 125) {
_parent.Player2.balloons.inflation = _parent.Player2.balloons.inflation + 0.1;
}
} else if (stagetype == 5) {
if (_parent.Player1.balloons.inflation > 50) {
_parent.Player1.balloons.inflation = _parent.Player1.balloons.inflation - 0.1;
}
if (_parent.Player2.balloons.inflation > 50) {
_parent.Player2.balloons.inflation = _parent.Player2.balloons.inflation - 0.1;
}
}
}
if (_parent.mode == "SM") {
_parent.soldierCount.getCash();
drones = int(_parent.wave / 30) + 2;
if (currentdrone < drones) {
_parent["drone" + currentdrone].init(_parent.wave + random(5), random(400), 300);
currentdrone++;
}
_parent.Player2.rules = "sit-out";
_parent.Player1.charge = 0;
_parent.Player2._x = 400;
_parent.Player2._y = -20;
}
}
Instance of Symbol 766 MovieClip "Player1" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
SFX = new Sound(this);
rules = "standard";
ID = 1;
opponent = "Player2";
balloons.realangle = 0;
lost = false;
reflex = _root.gamedata.data.reflex + 20;
skill = _root.gamedata.data.skill + 20;
}
onClipEvent (enterFrame) {
if (playing) {
if (Key.isDown(_root.RIGHTKEY1)) {
dir = 1;
} else if (Key.isDown(_root.LEFTKEY1)) {
dir = -1;
} else {
dir = 0;
}
if (Key.isDown(_root.BASIC1) && (ready)) {
this.flap(strength, dir);
ready = false;
}
if (!Key.isDown(_root.BASIC1)) {
ready = true;
}
if ((Key.isDown(_root.ADVANCE1) && (_parent.p1stats.light._currentframe == 2)) && (ready2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
ready2 = false;
}
if ((!Key.isDown(_root.ADVANCE1)) || (pack.hold == true)) {
ready2 = true;
}
} else if (((!lost) && (_currentframe == 1)) && (random(80) < reflex)) {
vdiff = _parent[opponent].xvel - xvel;
pilot.decide();
}
}
onClipEvent (enterFrame) {
if ((pilot.hitTest(_parent.Player2.pilot) && (_parent.Player2.balloons.ballooncount > 0)) && (_parent.Player1.balloons.ballooncount > 0)) {
_parent.bounce();
SFX.attachSound("bounce");
SFX.start();
}
if (((balloons.hitTest(_parent.Player2.legs.shoe) && (_parent.Player2._y < (_y - 10))) && (balloons.ballooncount > 0)) && (invincibility == 0)) {
balloons.pop();
_parent.bounce();
SFX.attachSound("bpop");
SFX.start();
}
if ((_y > 400) && (lives > 0)) {
_y = 300;
yvel = -25;
invincibility = 50;
balloons.inflation = 100;
balloons.setballoon(2);
lives--;
SFX.attachSound("launch");
SFX.start();
}
if ((_y > 400) && (lives == 0)) {
lost = true;
playing = false;
ready = false;
charge = 0;
}
if ((packcharge > 0) && (_parent.p2stats.light._currentframe == 2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
packcharge--;
}
}
Instance of Symbol 766 MovieClip "Player2" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
SFX = new Sound(this);
rules = "standard";
ID = 2;
opponent = "Player1";
balloons.realangle = 0;
lost = false;
reflex = (_root.gamedata.data.skill * 0.75) + 25;
skill = (_root.gamedata.data.skill * 0.5) + 50;
}
onClipEvent (enterFrame) {
if (playing) {
if (Key.isDown(_root.RIGHTKEY2)) {
dir = 1;
} else if (Key.isDown(_root.LEFTKEY2)) {
dir = -1;
} else {
dir = 0;
}
if (Key.isDown(_root.BASIC2) && (ready)) {
this.flap(strength, dir);
ready = false;
}
if (!Key.isDown(_root.BASIC2)) {
ready = true;
}
if ((Key.isDown(_root.ADVANCE2) && (_parent.p2stats.light._currentframe == 2)) && (ready2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
ready2 = false;
}
if ((!Key.isDown(_root.ADVANCE2)) || (pack.hold == true)) {
ready2 = true;
}
} else if ((((!lost) && (_currentframe == 1)) && (random(80) < reflex)) && (_parent.mode != "SM")) {
vdiff = _parent[opponent].xvel - xvel;
pilot.decide();
}
}
onClipEvent (enterFrame) {
if (((balloons.hitTest(_parent[opponent].legs.shoe) && (_parent[opponent]._y < (_y - 10))) && (balloons.ballooncount > 0)) && (invincibility == 0)) {
balloons.pop();
_parent.bounce();
SFX.attachSound("bpop");
SFX.start();
}
if ((_y > 400) && (lives > 0)) {
_y = 300;
yvel = -25;
invincibility = 50;
balloons.setballoon(2);
lives--;
balloons.inflation = 100;
SFX.attachSound("launch");
SFX.start();
}
if ((_y > 400) && (lives == 0)) {
lost = true;
playing = false;
ready = false;
charge = 0;
}
if ((packcharge > 0) && (_parent.p2stats.light._currentframe == 2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
packcharge--;
}
}
Instance of Symbol 774 MovieClip "fish" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
if (_root.gamedata.data.fish) {
provoke = 0;
movement = 0;
}
scale = 40;
SFX = new Sound(this);
}
onClipEvent (enterFrame) {
movement++;
_x = ((250 * Math.cos(movement / 40)) + 200);
dir = Math.sin(movement / 40);
if (dir < 0) {
_xscale = (-scale);
} else {
_xscale = scale;
}
if ((_parent.Player1._y > 240) || (_parent.Player2._y > 240)) {
if (provoke < 30) {
provoke++;
}
} else if (provoke > 0) {
provoke--;
}
_y = (330 - (30 * Math.sin(provoke / 20)));
var p1dist = (_parent.Player1._x - _x);
var p2dist = (_parent.Player2._x - _x);
if (((_parent.Player1._y > 240) && (Math.abs(p1dist) < Math.abs(dir * 80))) && ((p1dist * dir) < 0)) {
gobble();
}
if (((_parent.Player2._y > 240) && (Math.abs(p2dist) < Math.abs(dir * 80))) && ((p2dist * dir) < 0)) {
gobble();
}
if (gobbling) {
if (_parent.collision(activeFish, _parent.Player1) && (_parent.Player1.invincibility == 0)) {
Player1catch = true;
}
if (_parent.collision(activeFish, _parent.Player2) && (_parent.Player2.invincibility == 0)) {
Player2catch = true;
}
if (Player1catch) {
_parent.Player1._x = ((_xscale / 100) * fishmouth._x) + _x;
_parent.Player1._y = ((scale / 100) * fishmouth._y) + _y;
_parent.Player1.xvel = 0;
_parent.Player1.yvel = 5;
if (_parent.Player1.balloons.ballooncount > 0) {
_parent.Player1.balloons.pop();
}
}
if (Player2catch) {
_parent.Player2._x = ((_xscale / 100) * fishmouth._x) + _x;
_parent.Player2._y = ((scale / 100) * fishmouth._y) + _y;
_parent.Player2.xvel = 0;
_parent.Player2.yvel = 5;
if (_parent.Player2.balloons.ballooncount > 0) {
_parent.Player2.balloons.pop();
}
}
}
}
Instance of Symbol 793 MovieClip [Drone] "drone0" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
mynumber = 1;
}
Instance of Symbol 793 MovieClip [Drone] "drone1" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
mynumber = 2;
}
Instance of Symbol 793 MovieClip [Drone] "drone2" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
mynumber = 3;
}
Instance of Symbol 793 MovieClip [Drone] "drone3" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
mynumber = 4;
}
Instance of Symbol 793 MovieClip [Drone] "drone4" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
mynumber = 5;
}
Instance of Symbol 793 MovieClip [Drone] "drone5" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
mynumber = 6;
}
Instance of Symbol 793 MovieClip [Drone] "drone6" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
mynumber = 7;
}
Instance of Symbol 793 MovieClip [Drone] "drone7" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
mynumber = 8;
}
Instance of Symbol 808 MovieClip "p2stats" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
player = "Player2";
light._xscale = -100;
b1._xscale = (b2._xscale = (b3._xscale = (b4._xscale = (b5._xscale = -25))));
}
Instance of Symbol 808 MovieClip "p1stats" in Symbol 1232 MovieClip Frame 4
onClipEvent (load) {
player = "Player1";
}
Symbol 1232 MovieClip Frame 5
stop();
status.text = ("$" + numberToDecimal(_root.player1.data.cash)) + newline;
status.text = status.text + numberToDecimal(_root.player1.data.rank);
_root.player1.flush(1200);
BGM.setVolume(_root.gamedata.data.BGMvol3 / 3);
if (ST != "shopping1.mp3") {
playSong("track3loc");
BGM.setVolume(_root.gamedata.data.BGMvol3 / 3);
ST = "shopping1.mp3";
BGM.start();
}
Instance of Symbol 438 MovieClip "taxi" in Symbol 1232 MovieClip Frame 5
onClipEvent (load) {
if (_root.gamedata.data.backgrounds == 0) {
bg._xscale = (bg._yscale = 1);
bg.attachMovie("event", "blank", 100);
bg.blank._xscale = 400000 /* 0x061A80 */;
bg.blank._yscale = 300000 /* 0x0493E0 */;
bg.blank._x = 20000;
bg.blank._y = 15000;
bg.blank.gotoAndStop(1);
tempcolor = new Color(bg.blank);
tempcolor.setRGB(_root.game.HSLtoRGB(_root.gamedata.data.bgcolor));
delete tempcolor;
}
}
onClipEvent (enterFrame) {
if (quit) {
getURL ("javascript:window.close()");
}
}
Instance of Symbol 836 MovieClip "prompt" in Symbol 1232 MovieClip Frame 5
onClipEvent (load) {
if (_root.gamedata.data.track1loc == undefined) {
show = true;
}
}
onClipEvent (enterFrame) {
if (!show) {
_y = (((_y * 3) - 160) / 4);
} else if (show) {
_y = (((_y * 3) + 75) / 4);
}
}
Symbol 1232 MovieClip Frame 6
stop();
Instance of Symbol 641 MovieClip "head" in Symbol 1232 MovieClip Frame 6
onClipEvent (load) {
h1order = "0F16IJN2478BCT5EKLPS39ADGHMORQUVWXYZ";
h2order = "0187G5A2BH9FEDC346IJKLMNOPQRSTUVWXYZ";
h3order = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
h4order = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
loaded = 0;
wearInit(1);
eye.gotoAndStop(_root.player1.data.eyestyle);
brow.gotoAndStop(_root.player1.data.browstyle);
H1 = _root.player1.data.bangstyle;
H2 = _root.player1.data.sidestyle;
H3 = _root.player1.data.scalpstyle;
H4 = _root.player1.data.backstyle;
h1 = _parent.checkInItem(H1, h1order);
h2 = _parent.checkInItem(H2, h2order);
h3 = _parent.checkInItem(H3, h3order);
h4 = _parent.checkInItem(H4, h4order);
skin = new Color(headfill);
skin.setRGB(_root.game.HSLtoRGB(_root.player1.data.skincolor));
subject = 1;
}
onClipEvent (enterFrame) {
if ((loaded++) < 1) {
i = 1;
while (i <= 3) {
_parent[("wear" + i) + "style"] = _root.player1.data[("wear" + i) + "style"];
_parent[("wear" + i) + "color"] = _root.game.HSLtoRGB(_root.player1.data[("wear" + i) + "color"]);
wearInit(i, _root.player1.data[("wear" + i) + "level"]);
delete _parent[("wear" + i) + "style"];
delete _parent[("wear" + i) + "color"];
i++;
}
}
hair.init(_root.game.HSLtoRGB(_parent.pallete.hex), H1, H2, H3, H4);
if (subject <= 0) {
subject = 4;
} else if (subject == 1) {
portion = "B a n g s";
max = 30;
} else if (subject == 2) {
portion = "S i d e s";
max = 18;
} else if (subject == 3) {
portion = "T o p";
max = 14;
} else if (subject == 4) {
portion = "B a c k";
max = 21;
} else if (subject >= 5) {
subject = 1;
}
if (this["h" + subject] < 10) {
display = (("0" + this["h" + subject]) + " / ") + max;
} else {
display = (this["h" + subject] + " / ") + max;
}
this["H" + subject] = _parent.checkOutItem(this["h" + subject], this[("h" + subject) + "order"]);
}
Instance of Symbol 847 MovieClip "pricer" in Symbol 1232 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_parent.head.H1 == _root.player1.data.bangstyle) {
cost1 = 0;
} else {
cost1 = 10;
}
if (_parent.head.H2 == _root.player1.data.sidestyle) {
cost2 = 0;
} else {
cost2 = 8;
}
if (_parent.head.H3 == _root.player1.data.scalpstyle) {
cost3 = 0;
} else {
cost3 = 5;
}
if (_parent.head.H4 == _root.player1.data.backstyle) {
cost4 = 0;
} else {
cost4 = 8;
}
cost5 = int((_parent.ColorDiff(_root.player1.data.haircolor, _parent.pallete.hex) + 5) / 10);
price(-((((cost1 + cost2) + cost3) + cost4) + cost5));
}
Instance of Symbol 464 MovieClip "pallete" in Symbol 1232 MovieClip Frame 6
onClipEvent (enterFrame) {
if (xy.y == undefined) {
setTo(_root.player1.data.haircolor);
}
}
Instance of Symbol 277 MovieClip "H E L P" in Symbol 1232 MovieClip Frame 6
onClipEvent (enterFrame) {
if ((step == 4) && (_parent.clerk.index == 1)) {
step = 1;
_parent.clerk.index = 2;
} else if ((step == 4) && (_parent.clerk.index > 2)) {
step = 1;
_parent.clerk.index = 0;
}
}
Instance of Symbol 437 MovieClip "talkbox" in Symbol 1232 MovieClip Frame 6
onClipEvent (enterFrame) {
tb.talk = _parent.clerk.talk;
}
onClipEvent (load) {
NEXT.remove();
}
Instance of Symbol 427 MovieClip "clerk" in Symbol 1232 MovieClip Frame 6
onClipEvent (load) {
index = 0;
maxlength = 16;
person = 2;
}
onClipEvent (enterFrame) {
if (_parent.talkbox.pushed) {
index++;
_parent.talkbox.pushed = false;
}
if (index == 0) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.remove();
say("Welcome to the Maple Leaf Hair Salon! Please don't hesitate to ask for assistance. ");
}
if (index == 2) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.disp();
say("Alright! Push 'HELP' again to stop me. Otherwise, hit 'NEXT' to continue. ");
}
if (index == 4) {
_parent.talkbox.stretch(100, 105);
say("Okay, I'm going to go over the salon functions, then explain our pricing. ");
}
if (index == 6) {
_parent.talkbox.stretch(180, 110);
_parent.talkbox.pos(105, 100);
say("At the top you'll see these two arrows. Push them to work between different portions of hair to style, such as: Bangs, Sides, Top, and Back. ");
}
if (index == 8) {
_parent.talkbox.stretch(165, 150);
_parent.talkbox.pos(108, 110);
say("The panel below shows what style you're currently viewing, as well as how many options are available for that portion of hair. You can view different styles by pressing the yellow buttons on the sides. ");
}
if (index == 10) {
_parent.talkbox.stretch(185, 180);
_parent.talkbox.pos(100, 65);
say("To the right is the dye screen. Move the sliders around to select a hair color. The bar on the right determines how dark or bright the color gets (luminosity), while the box on the left determines color (hue) and how faded it is (saturation). ");
}
if (index == 12) {
_parent.talkbox.stretch(155, 105);
_parent.talkbox.pos(230, 244);
say("We price our cuts at $10 a piece, meaning that for each section of your hair you choose to style, we'll charge another $10. ");
}
if (index == 14) {
_parent.talkbox.stretch(145, 105);
_parent.talkbox.pos(235, 244);
say("Hair dye also comes at a small fee, depending on how much dye we'll have to apply. This includes bleach and all that. ");
}
if (index == 16) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("We'll, that's pretty much it! Please enjoy yourself and have a nice day. ");
}
if (index == 18) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("Oh, and wash your hands before touching our equipment. ");
}
if (index == 20) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("Yeah, my manager's pretty anal 'bout that stuff. He's a jerk. ");
}
if (index == 22) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("Oh, shoot, here he comes! Don't tell him I said anything! ");
}
if (index == 24) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.remove();
_parent.manager.walktime = 240;
_parent.manager.vel = 2.5;
say("...Welcome to Maple Leaf Hair Salon! ");
}
}
Instance of Symbol 863 MovieClip "buy" in Symbol 1232 MovieClip Frame 6
onClipEvent (enterFrame) {
if (!asking) {
_y = (((_y * 2) - 150) / 3);
} else if (asking) {
_y = (((_y * 2) + 80) / 3);
total.text = ("$" + (-_parent.pricer.total)) + ".00";
}
if (answer == "yes") {
if ((_root.player1.data.cash + _parent.pricer.total) >= 0) {
with (_parent) {
_root.player1.data.bangstyle = head.H1;
_root.player1.data.sidestyle = head.H2;
_root.player1.data.scalpstyle = head.H3;
_root.player1.data.backstyle = head.H4;
_root.player1.data.haircolor = pallete.hex;
_root.player1.data.cash = _root.player1.data.cash + pricer.total;
}
} else {
answer = "";
gotoAndStop (2);
}
}
if (answer != "") {
asking = false;
answer = "";
}
}
Symbol 1232 MovieClip Frame 7
stop();
Instance of Symbol 641 MovieClip "head" in Symbol 1232 MovieClip Frame 7
onClipEvent (load) {
eye.gotoAndStop(_root.player1.data.eyestyle);
brow.gotoAndStop(_root.player1.data.browstyle);
order = "01234V56789ABCDEFGHIJKLMUNOPQRSTWXYZ";
H1 = _root.player1.data.wear1style;
H2 = _root.player1.data.wear2style;
H3 = _root.player1.data.wear3style;
h1 = _parent.checkInItem(H1, order);
h2 = _parent.checkInItem(H2, order);
h3 = _parent.checkInItem(H3, order);
skin = new Color(headfill);
skin.setRGB(_root.game.HSLtoRGB(_root.player1.data.skincolor));
subject = 1;
max = 32;
loaded = 0;
hair.init(_root.game.HSLtoRGB(_parent.pallete.hex), _root.player1.data.bangstyle, _root.player1.data.sidestyle, _root.player1.data.scalpstyle, _root.player1.data.backstyle);
}
onClipEvent (enterFrame) {
if ((loaded++) < 1) {
hair.init(_root.game.HSLtoRGB(_root.player1.data.haircolor), _root.player1.data.bangstyle, _root.player1.data.sidestyle, _root.player1.data.scalpstyle, _root.player1.data.backstyle);
var i = 1;
while (i <= 3) {
_parent[("wear" + i) + "style"] = this["H" + i];
_parent[("wear" + i) + "color"] = _root.game.HSLtoRGB(_root.player1.data[("wear" + i) + "color"]);
wearInit(i, _root.player1.data[("wear" + i) + "level"]);
i++;
}
}
if (subject < 1) {
subject = 3;
} else if ((subject >= 1) && (subject <= 3)) {
portion = "W e a r " + subject;
_parent.pricetag.text = "$" + _parent.numberToDecimal(_parent.pricer["cost" + subject]);
} else if (subject > 3) {
subject = 1;
}
if (this["h" + subject] <= 0) {
this["h" + subject] = max;
}
if (this["h" + subject] > max) {
this["h" + subject] = 1;
}
if (this["h" + subject] < 10) {
display = (("0" + this["h" + subject]) + " / ") + max;
} else {
display = (this["h" + subject] + " / ") + max;
}
this["H" + subject] = _parent.checkOutItem(this["h" + subject], order);
_parent[("wear" + subject) + "style"] = this["H" + subject];
_parent[("wear" + subject) + "color"] = _root.game.HSLtoRGB(_parent.pallete["c" + subject]);
wearInit(subject, hair["w" + subject]);
}
Instance of Symbol 847 MovieClip "pricer" in Symbol 1232 MovieClip Frame 7
onClipEvent (load) {
if (_root.player1.data.stockwear == undefined) {
_root.player1.data.stockwear = "1";
}
inventory = _parent.HexToBinary(_root.player1.data.stockwear);
}
onClipEvent (enterFrame) {
var i = 1;
while (i <= 3) {
this["cost" + i] = int((_parent.ColorDiff(_root.player1.data[("wear" + i) + "color"], _parent.pallete["c" + i]) + 19) / 20);
if (inventory.charAt(72 - _parent.head["H" + i]) == "0") {
this["cost" + i] = this["cost" + i] + _parent.head.hair["wear" + i].price;
}
i++;
}
cost4 = 0;
price(-(((cost1 + cost2) + cost3) + cost4));
}
Instance of Symbol 464 MovieClip "pallete" in Symbol 1232 MovieClip Frame 7
onClipEvent (load) {
c1 = _root.player1.data.wear1color;
c2 = _root.player1.data.wear2color;
c3 = _root.player1.data.wear3color;
}
onClipEvent (enterFrame) {
c4 = c1;
c0 = c3;
subject = _parent.head.subject;
if (xy.y == undefined) {
setTo(_root.player1.data.wear1color);
}
if (switched) {
setTo(this["c" + subject]);
switched = false;
} else {
this["c" + subject] = hex;
}
}
Instance of Symbol 437 MovieClip "talkbox" in Symbol 1232 MovieClip Frame 7
onClipEvent (enterFrame) {
tb.talk = _parent.clerk.talk;
}
onClipEvent (load) {
NEXT.remove();
}
Instance of Symbol 427 MovieClip "clerk" in Symbol 1232 MovieClip Frame 7
onClipEvent (load) {
index = 0;
maxlength = 16;
person = 8;
}
onClipEvent (enterFrame) {
if (_parent.talkbox.pushed) {
index++;
_parent.talkbox.pushed = false;
}
if (index == 0) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.remove();
say("Heya. Welcome t' HeadWares. Take a look 'round, and ask me if ya need help. ");
}
if (index == 2) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.disp();
say("Alright, I'll give ya a brief expl'nation of how things work here. ");
}
if (index == 4) {
_parent.talkbox.stretch(100, 105);
say("Here you buy stuff to put on your head. Hence HeadWares. ");
}
if (index == 6) {
_parent.talkbox.stretch(100, 105);
say("They're purely dec'rative, and you can fit at most 3 at a time. ");
}
if (index == 8) {
_parent.talkbox.stretch(160, 80);
_parent.talkbox.pos(105, 90);
say("See these two buttons up here? Push 'em to switch between your three headwares. ");
}
if (index == 10) {
_parent.talkbox.stretch(150, 100);
_parent.talkbox.pos(105, 120);
say("These buttons on the left letcha move your selected headware up or down. I mean over your hair or under, that is. ");
}
if (index == 12) {
_parent.talkbox.stretch(165, 110);
_parent.talkbox.pos(108, 150);
say("Push these arrows below to browse through our stock of wares. If ya don't wanna wear anything, just select number 1. ");
}
if (index == 14) {
_parent.talkbox.stretch(185, 100);
_parent.talkbox.pos(100, 90);
say("Here to the side we got the color kit. Move the sliders around to pick a good color, and we'll have your head ware repainted or whatever. ");
}
if (index == 16) {
_parent.talkbox.stretch(190, 100);
_parent.talkbox.pos(190, 244);
say("You can see the price of the current head ware you've selected in the corner of the preview screen. Total price is in the upp'r right corner of the room. ");
}
if (index == 18) {
_parent.talkbox.stretch(160, 90);
_parent.talkbox.pos(315, 124);
say("Yeah, the red number. Keep an eye on that - it's a hassle when people can't afford the stuff they pick out. ");
}
if (index == 20) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("Oh yeah - we don't do refunds. I mean, it's got your SCALP on it. Gross. ");
}
if (index == 22) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("Okay, hope that's 'nuff for ya. If you forgot what I said, just try stuff. ");
}
if (index == 24) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("Don't ask me why we sell facial hair. ");
}
if (index == 26) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.remove();
say("Yeah, it creeps me out, too. ");
}
}
Instance of Symbol 863 MovieClip "buy" in Symbol 1232 MovieClip Frame 7
onClipEvent (enterFrame) {
if (!asking) {
_y = (((_y * 2) - 150) / 3);
} else if (asking) {
_y = (((_y * 2) + 80) / 3);
total.text = ("$" + (-_parent.pricer.total)) + ".00";
}
if (answer == "yes") {
if ((_root.player1.data.cash + _parent.pricer.total) >= 0) {
with (_parent) {
var i = 1;
while (i <= 3) {
_root.player1.data[("wear" + i) + "style"] = head["H" + i];
_root.player1.data[("wear" + i) + "level"] = head.hair["w" + i];
_root.player1.data[("wear" + i) + "color"] = pallete["c" + i];
pricer.inventory = (pricer.inventory.substr(0, 72 - head["H" + i]) + "1") + pricer.inventory.substr((72 - head["H" + i]) + 1);
i++;
}
_root.player1.data.stockwear = parseInt(pricer.inventory, 2).toString(36);
_root.player1.data.cash = _root.player1.data.cash + pricer.total;
}
} else {
answer = "";
gotoAndStop (2);
}
}
if (answer != "") {
asking = false;
answer = "";
}
}
Symbol 1232 MovieClip Frame 8
stop();
Instance of Symbol 641 MovieClip "head" in Symbol 1232 MovieClip Frame 8
onClipEvent (load) {
e1 = _root.player1.data.eyestyle;
e2 = _root.player1.data.browstyle;
skin = new Color(headfill);
subject = 1;
loaded = 0;
}
onClipEvent (enterFrame) {
if ((loaded++) < 1) {
i = 1;
while (i <= 3) {
_parent[("wear" + i) + "style"] = _root.player1.data[("wear" + i) + "style"];
_parent[("wear" + i) + "color"] = _root.game.HSLtoRGB(_root.player1.data[("wear" + i) + "color"]);
wearInit(i, _root.player1.data[("wear" + i) + "level"]);
delete _parent[("wear" + i) + "style"];
delete _parent[("wear" + i) + "color"];
i++;
}
hair.init(_root.game.HSLtoRGB(_root.player1.data.haircolor), _root.player1.data.bangstyle, _root.player1.data.sidestyle, _root.player1.data.scalpstyle, _root.player1.data.backstyle);
}
if (subject <= 0) {
subject = 2;
} else if (subject == 1) {
portion = "E y e";
max = 18;
} else if (subject == 2) {
portion = "Eyebrows";
max = 12;
} else if (subject >= 3) {
subject = 1;
}
if (this["e" + subject] <= 0) {
this["e" + subject] = max;
} else if (this["e" + subject] > max) {
this["e" + subject] = 1;
}
if (this["e" + subject] < 10) {
display = (("0" + this["e" + subject]) + " / ") + max;
} else {
display = (this["e" + subject] + " / ") + max;
}
eye.gotoAndStop(e1);
brow.gotoAndStop(e2);
skin.setRGB(_root.game.HSLtoRGB(_parent.pallete.hex));
}
Instance of Symbol 847 MovieClip "pricer" in Symbol 1232 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.player1.data.eyestyle == _parent.head.e1) {
cost1 = 0;
} else {
cost1 = 100;
}
if (_root.player1.data.browstyle == _parent.head.e2) {
cost2 = 0;
} else {
cost2 = 50;
}
cost3 = int((_parent.ColorDiff(_root.player1.data.skincolor, _parent.pallete.hex) + 1) / 2);
price(-((cost1 + cost2) + cost3));
}
Instance of Symbol 464 MovieClip "pallete" in Symbol 1232 MovieClip Frame 8
onClipEvent (enterFrame) {
if (xy.y == undefined) {
setTo(_root.player1.data.skincolor);
}
}
Instance of Symbol 427 MovieClip "clerk" in Symbol 1232 MovieClip Frame 8
onClipEvent (load) {
index = 0;
maxlength = 16;
person = 7;
}
onClipEvent (enterFrame) {
if (_parent.talkbox.pushed) {
index++;
_parent.talkbox.pushed = false;
}
if (index == 0) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.remove();
say("Hello, I'm Dr. Angst. May I help you? ");
}
if (index == 2) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.disp();
say("This is the MetaGene Lab, where we perform sketchy genetic operations. ");
}
if (index == 4) {
_parent.talkbox.stretch(100, 105);
say("By law, we're only authorized to alter your skin color and eyes. ");
}
if (index == 6) {
_parent.talkbox.stretch(160, 80);
_parent.talkbox.pos(105, 90);
say("These two buttons at the top let you switch between eye and eyebrow modifications. ");
}
if (index == 8) {
_parent.talkbox.stretch(165, 90);
_parent.talkbox.pos(108, 160);
say("Push these buttons down here to view different options for your eyes. Eye changes are $100, and eyebrows are $50. ");
}
if (index == 10) {
_parent.talkbox.stretch(185, 115);
_parent.talkbox.pos(100, 65);
say("To the right is the pigment panel, where you can select your skin's new hue and such. The more the change from your original skin color, the higher the price. ");
}
if (index == 12) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("That's about all I have to say. ");
}
if (index == 14) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("For starters, I suggest you choose a lovely pastey tone like mine. ");
}
if (index == 16) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.remove();
say("Hm. ");
}
}
Instance of Symbol 277 MovieClip "H E L P" in Symbol 1232 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((step == 4) && (_parent.clerk.index == 1)) {
step = 1;
_parent.clerk.index = 2;
} else if ((step == 4) && (_parent.clerk.index > 2)) {
step = 1;
_parent.clerk.index = 0;
}
}
Instance of Symbol 863 MovieClip "buy" in Symbol 1232 MovieClip Frame 8
onClipEvent (enterFrame) {
if (!asking) {
_y = (((_y * 2) - 150) / 3);
} else if (asking) {
_y = (((_y * 2) + 80) / 3);
total.text = ("$" + (-_parent.pricer.total)) + ".00";
}
if (answer == "yes") {
if ((_root.player1.data.cash + _parent.pricer.total) >= 0) {
with (_parent) {
_root.player1.data.eyestyle = head.e1;
_root.player1.data.browstyle = head.e2;
_root.player1.data.skincolor = pallete.hex;
_root.player1.data.cash = _root.player1.data.cash + pricer.total;
}
} else {
answer = "";
gotoAndStop (2);
}
}
if (answer != "") {
asking = false;
answer = "";
}
}
Symbol 1232 MovieClip Frame 9
stop();
Instance of Symbol 766 MovieClip "fighter" in Symbol 1232 MovieClip Frame 9
onClipEvent (load) {
c1 = _root.player1.data.shirtstyle;
c2 = _root.player1.data.sleevestyle;
c3 = _root.player1.data.pantstyle;
c4 = _root.player1.data.shoestyle;
c5 = _root.player1.data.glovestyle;
c6 = _root.player1.data.overstyle;
ovg = _root.player1.data.overglove;
ovs = _root.player1.data.overshoes;
subject = 1;
rules = "display";
dir = -1;
}
onClipEvent (enterFrame) {
if (bangstyle == undefined) {
varinit(1);
init();
} else {
_alpha = 100;
}
arm.init(c2, _root.game.HSLtoRGB(_parent.pallete.c2), ovg);
arm.gloveInit(c5, _root.game.HSLtoRGB(_parent.pallete.c5));
upperbody.init(c1, _root.game.HSLtoRGB(_parent.pallete.c1), c6, _root.game.HSLtoRGB(_parent.pallete.c6));
legs.pantinit(c3, _root.game.HSLtoRGB(_parent.pallete.c3), ovs);
legs.shoeinit(c4, _root.game.HSLtoRGB(_parent.pallete.c4));
if (subject <= 0) {
subject = 6;
} else if (subject == 1) {
portion = "S h i r t";
max = 20;
_parent.pricetag.text = "$" + _parent.numberToDecimal(_parent.pricer.cost1);
} else if (subject == 2) {
portion = "S l e e v e s";
max = 20;
_parent.pricetag.text = "$" + _parent.numberToDecimal(_parent.pricer.cost2);
} else if (subject == 3) {
portion = "P a n t s";
max = 18;
_parent.pricetag.text = "$" + _parent.numberToDecimal(_parent.pricer.cost3);
} else if (subject == 4) {
portion = "S h o e s";
max = 16;
_parent.pricetag.text = "$" + _parent.numberToDecimal(_parent.pricer.cost4);
} else if (subject == 5) {
portion = "G l o v e s";
max = 16;
_parent.pricetag.text = "$" + _parent.numberToDecimal(_parent.pricer.cost5);
} else if (subject == 6) {
portion = "Overwear";
max = 20;
_parent.pricetag.text = "$" + _parent.numberToDecimal(_parent.pricer.cost6);
} else if (subject >= 7) {
subject = 1;
}
if (this["c" + subject] < 10) {
display = (("0" + this["c" + subject]) + " / ") + max;
} else {
display = (this["c" + subject] + " / ") + max;
}
}
Instance of Symbol 847 MovieClip "pricer" in Symbol 1232 MovieClip Frame 9
onClipEvent (load) {
with (_root.player1) {
if (data.stockshirt == undefined) {
trace((stockshirt = "1"));
}
if (data.stocksleeve == undefined) {
trace((stocksleeve = "1"));
}
if (data.stockpant == undefined) {
trace((stockpant = "1"));
}
if (data.stockshoe == undefined) {
trace((stockshoe = "1"));
}
if (data.stockglove == undefined) {
trace((stockglove = "1"));
}
if (data.stockover == undefined) {
trace((stockover = "1"));
}
}
inventory1 = _parent.HexToBinary(_root.player1.data.stockshirt);
inventory2 = _parent.HexToBinary(_root.player1.data.stocksleeve);
inventory3 = _parent.HexToBinary(_root.player1.data.stockpant);
inventory4 = _parent.HexToBinary(_root.player1.data.stockshoe);
inventory5 = _parent.HexToBinary(_root.player1.data.stockglove);
inventory6 = _parent.HexToBinary(_root.player1.data.stockover);
}
onClipEvent (enterFrame) {
cost1 = int((_parent.ColorDiff(_root.player1.data.shirtcolor, _parent.pallete.c1) + 18) / 20);
cost2 = int((_parent.ColorDiff(_root.player1.data.sleevecolor, _parent.pallete.c2) + 18) / 20);
cost3 = int((_parent.ColorDiff(_root.player1.data.pantscolor, _parent.pallete.c3) + 18) / 20);
cost4 = int((_parent.ColorDiff(_root.player1.data.shoescolor, _parent.pallete.c4) + 18) / 20);
cost5 = int((_parent.ColorDiff(_root.player1.data.glovecolor, _parent.pallete.c5) + 18) / 20);
cost6 = int((_parent.ColorDiff(_root.player1.data.overcolor, _parent.pallete.c6) + 18) / 20);
if (inventory1.charAt(72 - _parent.fighter.c1) == "0") {
cost1 = cost1 + _parent.fighter.upperbody.shirt.price;
}
if (inventory2.charAt(72 - _parent.fighter.c2) == "0") {
cost2 = cost2 + _parent.fighter.arm.sleeve.price;
}
if (inventory3.charAt(72 - _parent.fighter.c3) == "0") {
cost3 = cost3 + _parent.fighter.legs.pants.price;
}
if (inventory4.charAt(72 - _parent.fighter.c4) == "0") {
cost4 = cost4 + _parent.fighter.legs.shoe.price;
}
if (inventory5.charAt(72 - _parent.fighter.c5) == "0") {
cost5 = cost5 + _parent.fighter.arm.glove.price;
}
if (inventory6.charAt(72 - _parent.fighter.c6) == "0") {
cost6 = cost6 + _parent.fighter.upperbody.over.price;
}
price(-(((((cost1 + cost2) + cost3) + cost4) + cost5) + cost6));
}
Instance of Symbol 807 MovieClip in Symbol 1232 MovieClip Frame 9
onClipEvent (enterFrame) {
if ((_parent.fighter.subject == 2) || (_parent.fighter.subject == 5)) {
_alpha = 100;
_parent.ov1.text = (_parent.ov2.text = "Wear gloves over sleeves");
if (_parent.fighter.ovg == 1) {
gotoAndStop (2);
} else if (_parent.fighter.ovg == 0) {
gotoAndStop (1);
} else {
_parent.fighter.ovg = 1;
}
} else if ((_parent.fighter.subject == 3) || (_parent.fighter.subject == 4)) {
_alpha = 100;
_parent.ov1.text = (_parent.ov2.text = "Wear shoes over pants");
if (_parent.fighter.ovs == 1) {
gotoAndStop (2);
} else if (_parent.fighter.ovs == 0) {
gotoAndStop (1);
} else {
_parent.fighter.ovs = 1;
}
} else {
_parent.ov1.text = (_parent.ov2.text = "");
_alpha = 0;
}
}
Instance of Symbol 464 MovieClip "pallete" in Symbol 1232 MovieClip Frame 9
onClipEvent (load) {
c1 = _root.player1.data.shirtcolor;
c2 = _root.player1.data.sleevecolor;
c3 = _root.player1.data.pantscolor;
c4 = _root.player1.data.shoescolor;
c5 = _root.player1.data.glovecolor;
c6 = _root.player1.data.overcolor;
}
onClipEvent (enterFrame) {
c7 = c1;
c0 = c6;
subject = _parent.fighter.subject;
if (xy.y == undefined) {
setTo(_root.player1.data.shirtcolor);
}
if (switched) {
setTo(this["c" + subject]);
switched = false;
} else {
this["c" + subject] = hex;
}
}
Instance of Symbol 437 MovieClip "talkbox" in Symbol 1232 MovieClip Frame 9
onClipEvent (enterFrame) {
tb.talk = _parent.clerk.talk;
}
onClipEvent (load) {
NEXT.remove();
}
Instance of Symbol 427 MovieClip "clerk" in Symbol 1232 MovieClip Frame 9
onClipEvent (load) {
index = 0;
maxlength = 16;
person = 6;
}
onClipEvent (enterFrame) {
if (_parent.talkbox.pushed) {
index++;
_parent.talkbox.pushed = false;
}
if (index == 0) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.disp();
say("Good day and welcome to Fabric Fitters; Penelle at your service. ");
}
if (index == 2) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.remove();
say("Should you require assistance, please feel free to hit the HELP button. ");
}
if (index == 4) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.disp();
say("Very well, I shall explain our store's functions. ");
}
if (index == 6) {
_parent.talkbox.stretch(185, 90);
_parent.talkbox.pos(105, 90);
say("These two arrows above allow you to select different portions of clothes to work with: shirt, sleeves, pants, shoes, and gloves. ");
}
if (index == 8) {
_parent.talkbox.stretch(150, 100);
_parent.talkbox.pos(105, 120);
say("This panel on the left allows you to determine whether you wear your gloves or shoes over your sleeves or pants. ");
}
if (index == 10) {
_parent.talkbox.stretch(165, 120);
_parent.talkbox.pos(108, 120);
say("You can browse through our different selections using the yellow buttons below. The price of each particular item is shown in the preview window. ");
}
if (index == 12) {
_parent.talkbox.stretch(185, 140);
_parent.talkbox.pos(100, 70);
say("If you look to the right you'll see our patented coloring screen. To the best of my knowledge, we're the only store to sport this feature! Anyhow, you can re-color your clothes by moving the sliders. ");
}
if (index == 14) {
_parent.talkbox.stretch(130, 105);
_parent.talkbox.pos(250, 244);
say("Our prices depend on what items you buy, as well as how you choose to dye the polypigment fibers. ");
}
if (index == 16) {
_parent.talkbox.stretch(130, 105);
_parent.talkbox.pos(250, 244);
say("The aforementioned price can be found in the upper right in red text, along with your balance. ");
}
if (index == 18) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("Unfortunately, our store has adopted a 'No Returns' policy after a certain incident. ");
}
if (index == 20) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("It was awful, really. It took WEEKS to get rid of all the larvae. ");
}
if (index == 22) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
say("But anyhow, changing into clothes you've bought before will cost you nothing. ");
}
if (index == 24) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.remove();
say("Well, that's about all. I hope it helps, and enjoy your shopping experience! ");
}
}
Instance of Symbol 277 MovieClip "H E L P" in Symbol 1232 MovieClip Frame 9
onClipEvent (enterFrame) {
if ((step == 4) && (_parent.clerk.index < 4)) {
step = 1;
_parent.clerk.index = 4;
} else if ((step == 4) && (_parent.clerk.index > 4)) {
step = 1;
_parent.clerk.index = 0;
}
}
Instance of Symbol 863 MovieClip "buy" in Symbol 1232 MovieClip Frame 9
onClipEvent (enterFrame) {
if (!asking) {
_y = (((_y * 2) - 150) / 3);
} else if (asking) {
_y = (((_y * 2) + 80) / 3);
total.text = ("$" + (-_parent.pricer.total)) + ".00";
}
if (answer == "yes") {
if ((_root.player1.data.cash + _parent.pricer.total) >= 0) {
with (_parent) {
_root.player1.data.shirtstyle = fighter.c1;
_root.player1.data.sleevestyle = fighter.c2;
_root.player1.data.pantstyle = fighter.c3;
_root.player1.data.shoestyle = fighter.c4;
_root.player1.data.glovestyle = fighter.c5;
_root.player1.data.overstyle = fighter.c6;
_root.player1.data.overglove = fighter.ovg;
_root.player1.data.overshoes = fighter.ovs;
_root.player1.data.shirtcolor = pallete.c1;
_root.player1.data.sleevecolor = pallete.c2;
_root.player1.data.pantscolor = pallete.c3;
_root.player1.data.shoescolor = pallete.c4;
_root.player1.data.glovecolor = pallete.c5;
_root.player1.data.overcolor = pallete.c6;
i = 1;
while (i <= 6) {
pricer["inventory" + i] = (pricer["inventory" + i].substr(0, 72 - fighter["c" + i]) + "1") + pricer["inventory" + i].substr((72 - fighter["c" + i]) + 1);
i++;
}
delete i;
_root.player1.data.stockshirt = parseInt(pricer.inventory1, 2).toString(36);
_root.player1.data.stocksleeve = parseInt(pricer.inventory2, 2).toString(36);
_root.player1.data.stockpant = parseInt(pricer.inventory3, 2).toString(36);
_root.player1.data.stockshoe = parseInt(pricer.inventory4, 2).toString(36);
_root.player1.data.stockglove = parseInt(pricer.inventory5, 2).toString(36);
_root.player1.data.stockover = parseInt(pricer.inventory6, 2).toString(36);
_root.player1.data.cash = _root.player1.data.cash + pricer.total;
}
} else {
answer = "";
gotoAndStop (2);
}
}
if (answer != "") {
asking = false;
answer = "";
}
}
Symbol 1232 MovieClip Frame 10
stop();
inventory = _root.player1.data.stockacc;
press.text = ("(Press " + CodeToWord(_root.gamedata.data.keyADVANCE1)) + " to test)";
Instance of Symbol 766 MovieClip "fighter" in Symbol 1232 MovieClip Frame 10
onClipEvent (load) {
rules = "display";
max = 18;
dir = -1;
initX = _x;
initY = _y;
charge = 100;
}
onClipEvent (enterFrame) {
paint = _root.game.HSLtoRGB(_parent.pallete.hex);
_parent.pricetag.text = "$" + _parent.numberToDecimal(_parent.pricer.cost2);
_x = initX;
_y = initY;
if (charge < 100) {
charge++;
}
if ((Key.isDown(_root.gamedata.data.keyADVANCE1) && (_parent.ER.light._currentframe == 2)) && (ready2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
ready2 = false;
}
if ((!Key.isDown(_root.gamedata.data.keyADVANCE1)) || (pack.hold == true)) {
ready2 = true;
}
if (bangstyle == undefined) {
varinit(1);
init();
} else {
_alpha = 100;
recolor(balloons.b1.fill, paint);
recolor(balloons.b2.fill, paint);
}
if (accpack < 10) {
display = (("0" + accpack) + " / ") + max;
} else {
display = (accpack + " / ") + max;
}
}
Instance of Symbol 464 MovieClip "pallete" in Symbol 1232 MovieClip Frame 10
onClipEvent (enterFrame) {
if (xy.y == undefined) {
setTo(_root.player1.data.ballooncolor);
}
}
Instance of Symbol 847 MovieClip "pricer" in Symbol 1232 MovieClip Frame 10
onClipEvent (enterFrame) {
cost1 = int(_parent.ColorDiff(_root.player1.data.ballooncolor, _parent.pallete.hex) / 30);
cost2 = 0;
if (inventory.charAt(72 - _parent.fighter.accpack) == "0") {
cost2 = getPrice(_parent.fighter.accpack);
}
if (_parent.ColorDiff(_root.player1.data.ballooncolor, _parent.pallete.hex) > 1) {
cost1++;
}
price(-(cost1 + cost2));
}
onClipEvent (load) {
function getPrice(itemNo) {
switch (itemNo) {
case 1 :
return(50);
case 2 :
return(160);
case 3 :
return(160);
case 4 :
return(275);
case 5 :
return(150);
case 6 :
return(175);
case 7 :
return(150);
case 8 :
return(300);
case 9 :
return(325);
case 10 :
return(125);
case 11 :
return(125);
case 12 :
return(150);
case 13 :
return(180);
case 14 :
return(100);
case 15 :
return(200);
case 16 :
return(220);
case 17 :
return(185);
case 18 :
return(270);
}
return(200);
}
if (_root.player1.data.stockacc == undefined) {
_root.player1.data.stockacc = "1";
}
inventory = _parent.HexToBinary(_root.player1.data.stockacc);
}
Instance of Symbol 427 MovieClip "clerk" in Symbol 1232 MovieClip Frame 10
onClipEvent (load) {
index = 0;
maxlength = 16;
person = 5;
}
onClipEvent (enterFrame) {
if (_parent.talkbox.pushed) {
index++;
_parent.talkbox.pushed = false;
}
if (index == 0) {
_parent.talkbox.stretch(100, 105);
_parent.talkbox.pos(264, 244);
_parent.talkbox.disp();
say("Yo! Welcome ta Balloons & Access'ries! I'm Calvin, your host. ");
}
if (index == 2) {
_parent.talkbox.stretch(100, 105);
say("We sell balloons of various color, but mainly we sell gadgets. ");
}
if (index == 4) {
_parent.talkbox.stretch(100, 105);
say("Feel free to try out different balloons. They're pretty cheap. ");
}
if (index == 6) {
_parent.talkbox.stretch(100, 105);
say("Anyhow, I'll explain our accessories as you browse. ");
_parent.talkbox.remove();
}
if ((index > 7) && ((index % 2) == 0)) {
_parent.talkbox.stretch(120, 125);
_parent.talkbox.pos(260, 220);
_parent.talkbox.remove();
}
switch (index) {
case 8 :
say("Autoflap: A basic accessory that moves your arms for you so you don't get tired. ");
break;
case 10 :
say("Angel Wings: A single flap with this will send you soaring! Good for quickly gaining altitude. ");
break;
case 12 :
say("Devil Wings: Fall from the sky with unholy speed! Great for dropping down on your opponent. ");
break;
case 14 :
say("AntiGrav: Defy gravity and gain control of your movement! However, it's strength depends on your battery. ");
break;
case 16 :
say("Reflect Generator: Protect yourself from anything that violates your space with a repulsive shield! I mean...damn. ");
break;
case 18 :
say("Flame Thrower: Short ranged weapon that can heat up your opponent's balloon, making it easier to pop! ");
break;
case 20 :
say("Marble Launcher: Shoot up a marble out from the back to throw off enemies in the sky! ");
break;
case 22 :
say("Jet: Powerful light- weight rocket for horizontal movement. It's as strong as your battery. ");
break;
case 24 :
say("Mag Magnum: This gun is in compliance with Balloon Duel rules - it can't kill, but it can pop! ");
break;
case 26 :
say("Tanuki Tail: Confuse your opponent with tricky movements by using this to reverse horizontal thrust. ");
break;
case 28 :
say("Kitsune Tail: Confuse your opponent with tricky movements by using this to reverse vertical thrust. ");
break;
case 30 :
say("Neko Tail: Harness the pouncing power of the cat! This lets you leap forward with feline speed! ");
break;
case 32 :
say("ReGrav: Bend gravity to draw your opponent closer to you. Be warned - it's a tricky technique. ");
break;
case 34 :
say("Marble Dropper: Shoot marbles straight down to knock your opponent back down into the depths! ");
break;
case 36 :
say("EMP:\nKills the battery of both contestants. But moreso the opponent's than yours. ");
break;
case 38 :
say("Displacement Fan: Warp to a random spot on the field to get out of a tight spot! ");
break;
case 40 :
say("Bokken: Wooden sword which can bring an opponent under your feet. ");
break;
case 42 :
say("Makkuro-Kurosuke: Use this giant scroll to summon the dreaded spirit of darkness to bind your enemy's movements! ");
}
if ((index > 5) && ((index % 2) == 0)) {
}
}
Instance of Symbol 910 MovieClip "ER" in Symbol 1232 MovieClip Frame 10
onClipEvent (load) {
player = "fighter";
}
Instance of Symbol 863 MovieClip "buy" in Symbol 1232 MovieClip Frame 10
onClipEvent (enterFrame) {
if (!asking) {
_y = (((_y * 2) - 150) / 3);
} else if (asking) {
_y = (((_y * 2) + 80) / 3);
total.text = ("$" + (-_parent.pricer.total)) + ".00";
}
if (answer == "yes") {
if ((_root.player1.data.cash + _parent.pricer.total) >= 0) {
with (_parent) {
_root.player1.data.ballooncolor = pallete.hex;
_root.player1.data.accpack = fighter.accpack;
pricer.inventory = (pricer.inventory.substr(0, 72 - fighter.accpack) + "1") + pricer.inventory.substr((72 - fighter.accpack) + 1);
_root.player1.data.stockacc = parseInt(pricer.inventory, 2).toString(36);
_root.player1.data.cash = _root.player1.data.cash + pricer.total;
}
} else {
answer = "";
gotoAndStop (2);
}
}
if (answer != "") {
asking = false;
answer = "";
}
}
Symbol 1232 MovieClip Frame 11
ST = "";
Instance of Symbol 927 MovieClip "namelist" in Symbol 1232 MovieClip Frame 11
onClipEvent (load) {
_root.register = SharedObject.getLocal("register");
woo.Selected.select = _root.gamedata.data.checkout1;
}
onClipEvent (enterFrame) {
woo.p1s.select = _root.gamedata.data.checkout1;
if (_root.player1.data.name != undefined) {
_parent.charaname1 = _root.player1.data.name;
} else {
_parent.charaname1 = "---";
}
if (_root.player2.data.name != undefined) {
_parent.charaname2 = _root.player2.data.name;
} else {
_parent.charaname2 = "---";
}
}
Instance of Symbol 277 MovieClip "EDIT LIST" in Symbol 1232 MovieClip Frame 11
onClipEvent (load) {
bt._xscale = 80;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
if (_root.player1.data.name != undefined) {
with (_root.player1) {
if (data.gender == undefined) {
data.stockshirt = "1";
data.stocksleeve = "1";
data.stockglove = "1";
data.stockpant = "1";
data.stockshoe = "1";
data.stockacc = "1";
data.stockwear = "1";
data.cash = 200;
data.rank = 1;
data.gender = "neutral";
}
if (data.glovestyle == undefined) {
data.glovestyle = 1;
data.glovecolor = "6D1729";
}
if (data.wear1style == undefined) {
data.wear1style = 1;
data.wear2style = 1;
data.wear3style = 1;
data.wear1color = "6D1729";
data.wear2color = "6D1729";
data.wear3color = "6D1729";
}
}
}
if (step == 4) {
_root.game.gotoAndStop("EditReg");
}
}
Instance of Symbol 766 MovieClip "sample" in Symbol 1232 MovieClip Frame 11
onClipEvent (load) {
myselect = -1;
}
onClipEvent (enterFrame) {
if (myselect != _parent.namelist.woo.Selected.select) {
myselect = _parent.namelist.woo.Selected.select;
_root.player1.flush(1200);
delete _root.player1;
_root.gamedata.data.checkout1 = 0;
_root.player1 = SharedObject.getLocal(_parent.namelist.filename);
_root.gamedata.data.checkout1 = _parent.namelist.woo.Selected.select;
varinit("1");
init();
}
if (Name == undefined) {
varinit("1");
init();
}
if (browstyle == undefined) {
_root.player1.data.browstyle = 1;
}
if (overstyle == undefined) {
_root.player1.data.overstyle = 1;
_root.player1.data.overcolor = "FFFFFF";
_root.player1.data.stockover = "1";
}
if (overglove == undefined) {
_root.player1.data.overglove = 1;
_root.player1.data.overshoes = 0;
}
if (isNaN(_root.player1.data.gender)) {
_root.player1.data.gender = 0;
}
if (_root.player1.data.name != undefined) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 1232 MovieClip Frame 12
ST = "";
function swap(a, b) {
temp = _root.register.data["entree" + b];
_root.register.data["entree" + b] = _root.register.data["entree" + a];
_root.register.data["entree" + a] = temp;
delete temp;
namelist.slider.loaded = false;
if (_root.gamedata.data.checkout1 == a) {
_root.gamedata.data.checkout1 = b;
} else if (_root.gamedata.data.checkout1 == b) {
_root.gamedata.data.checkout1 = a;
}
if (_root.gamedata.data.checkout2 == a) {
_root.gamedata.data.checkout2 = b;
} else if (_root.gamedata.data.checkout2 == b) {
_root.gamedata.data.checkout2 = a;
}
}
Instance of Symbol 927 MovieClip "namelist" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
_root.register = SharedObject.getLocal("register");
_parent.charaname1 = _root.player1.name;
_parent.charaname2 = _root.player2.name;
}
onClipEvent (enterFrame) {
_parent.select = woo.Selected.select;
if (_parent.charaname1 != _root.player1.data.name) {
_parent.charaname1 = _root.player1.data.name;
}
if (_parent.charaname2 != _root.player2.data.name) {
_parent.charaname2 = _root.player2.data.name;
}
}
Instance of Symbol 766 MovieClip "sample" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_parent.select != myselect) && (_parent.namelist.filename != undefined)) {
myselect = _parent.select;
_root.player3 = SharedObject.getLocal(_parent.namelist.filename);
varinit("3");
init();
if (_root.player3.data.name == undefined) {
_visible = false;
} else {
_visible = true;
}
}
}
Instance of Symbol 277 MovieClip "RENAME" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
bt._xscale = 80;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
if ((step == 4) && (_parent.select > 0)) {
_parent.namechange.select = _parent.select;
_parent.namechange.partname.text = _root.register.data["entree" + _parent.select];
_parent.namechange.asking = true;
step = 1;
}
}
Instance of Symbol 277 MovieClip "NewFighter" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
bt._xscale = 70;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
if (step == 4) {
_root.game.gotoAndStop("New Fighter");
}
}
Instance of Symbol 277 MovieClip "Remove" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
bt._xscale = 80;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
if ((step == 4) && (_parent.select > 0)) {
_parent.ask.select = _parent.select;
_parent.ask.asking = true;
step = 1;
}
}
Instance of Symbol 277 MovieClip "MOVE UP" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
bt._xscale = 80;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
if (step == 4) {
select = _parent.select;
if (select > 1) {
_parent.swap(select, select - 1);
_parent.namelist.woo.Selected.select--;
}
step = 1;
delete select;
}
}
Instance of Symbol 277 MovieClip "MOVE DOWN" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
bt._xscale = 65;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
if (step == 4) {
select = _parent.select;
if (select < _root.register.data.entries) {
_parent.swap(select, select + 1);
_parent.namelist.woo.Selected.select++;
}
step = 1;
delete select;
}
}
Instance of Symbol 277 MovieClip "IMPORT" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
bt._xscale = 80;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
if (step == 4) {
step = 1;
_root.game.gotoAndStop("Import");
}
}
Instance of Symbol 277 MovieClip "EXPORT" in Symbol 1232 MovieClip Frame 12
onClipEvent (load) {
function makePIN(member, alreadyHex, encrypt) {
if (_root.temp.data[member] == undefined) {
trace("Problem with " + member);
}
if (encrypt == undefined) {
encrypt = false;
}
refnum++;
if (alreadyHex) {
var _local4 = new Number(parseInt(_root.temp.data[member], 16));
return(_local4.toString(36) + ".");
}
if (isNaN(_root.temp.data[member])) {
if (encrypt) {
return(toASCII(_root.temp.data[member]) + ".");
}
return(_root.temp.data[member] + ".");
}
var _local4 = new Number(_root.temp.data[member]);
return(_local4.toString(36) + ".");
}
function toASCII(string) {
var _local3 = "";
var _local1 = 0;
while (_local1 < string.length) {
code = string.charCodeAt(_local1).toString(36);
if (code.length == 1) {
code = "0" + code;
}
_local3 = _local3 + code;
_local1++;
}
return(_local3);
}
bt._xscale = 80;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
if ((step == 4) && (_parent.select > 0)) {
_root.temp = SharedObject.getLocal(_parent.namelist.filename);
refnum = 0;
DATA = (((((((((((((((((((((makePIN("name", false, true) + makePIN("bangstyle")) + makePIN("sidestyle")) + makePIN("scalpstyle")) + makePIN("backstyle")) + makePIN("eyestyle")) + makePIN("browstyle")) + makePIN("shirtstyle")) + makePIN("overstyle")) + makePIN("sleevestyle")) + makePIN("pantstyle")) + makePIN("shoestyle")) + makePIN("glovestyle")) + makePIN("accpack")) + makePIN("skincolor", true)) + makePIN("haircolor", true)) + makePIN("ballooncolor", true)) + makePIN("shirtcolor", true)) + makePIN("overcolor", true)) + makePIN("sleevecolor", true)) + makePIN("pantscolor", true)) + makePIN("glovecolor", true)) + makePIN("shoescolor", true);
i = 1;
while (i <= 3) {
DATA = DATA + makePIN(("wear" + i) + "style");
DATA = DATA + makePIN(("wear" + i) + "color", true);
DATA = DATA + makePIN(("wear" + i) + "level");
i++;
}
DATA = ((((((((((((DATA + makePIN("stockshirt")) + makePIN("stockover")) + makePIN("stocksleeve")) + makePIN("stockglove")) + makePIN("stockpant")) + makePIN("stockshoe")) + makePIN("stockacc")) + makePIN("stockwear")) + makePIN("overglove")) + makePIN("overshoes")) + makePIN("cash")) + makePIN("rank")) + (delete _root.temp);
PIN = "";
PIN = _root.Replace(DATA, ". ", ".");
PIN = PIN.substr(0, PIN.length - 1);
_parent.PINDisp.show = true;
_parent.PINDisp.PIN.text = PIN.toUpperCase();
delete i;
delete code;
delete PIN;
step = 1;
}
}
Instance of Symbol 936 MovieClip "ask" in Symbol 1232 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!asking) {
_y = (((_y * 2) - 150) / 3);
} else if (asking) {
_y = (((_y * 2) + 80) / 3);
_parent.namelist.woo.Selected.select = select;
}
if (answer == "yes") {
i = select;
if (i == _root.register.data.entries) {
_parent.namelist.woo.Selected.select--;
} else {
while (i < _root.register.data.entries) {
_parent.swap(i, i + 1);
i++;
}
}
_root.temp = SharedObject.getLocal(_root.filename(_root.register.data["entree" + i]));
_root.temp.clear();
delete _root.register.data["entree" + i];
_root.register.data.entries--;
_parent.namelist.slider.loaded = false;
}
if (answer != "") {
asking = false;
answer = "";
}
}
Instance of Symbol 940 MovieClip "PINDisp" in Symbol 1232 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!show) {
_y = (((_y * 3) + 320) / 4);
} else if (show) {
_y = (((_y * 3) + 50) / 4);
}
}
Instance of Symbol 946 MovieClip "namechange" in Symbol 1232 MovieClip Frame 12
onClipEvent (enterFrame) {
if (!asking) {
_x = (((_x * 2) - 270) / 3);
} else if (asking) {
_x = (((_x * 2) + 75) / 3);
_parent.namelist.woo.Selected.select = select;
}
if (answer == "yes") {
_root.temp = SharedObject.getLocal(_root.filename(newname));
_root.player3.data.name = newname;
_root.copySO("temp", "player3");
_root.player3.clear();
_root.temp.flush(1200);
_root.player3 = SharedObject.getLocal(_root.filename(newname));
delete _root.temp;
_root.register.data["entree" + select] = newname;
_parent.namelist.slider.loaded = false;
}
if (answer != "") {
asking = false;
answer = "";
}
}
Symbol 1232 MovieClip Frame 13
ST = "";
Instance of Symbol 277 MovieClip "CHECK" in Symbol 1232 MovieClip Frame 13
onClipEvent (load) {
function unASCII(string) {
var _local2 = 0;
var _local4 = "";
var _local1 = 0;
while (_local1 < string.length) {
_local2 = parseInt(string.substr(_local1, 2), 36);
_local4 = _local4 + String.fromCharCode(_local2);
_local1 = _local1 + 2;
}
return(_local4);
}
function extract() {
end = PIN.indexOf(".", begin);
if ((end == -1) || (begin > PIN.length)) {
valid = false;
}
var _local1 = PIN.substring(begin, end);
begin = PIN.indexOf(".", begin) + 1;
return(_local1);
}
function reload(member, number, hexadecimal, string) {
if (number == undefined) {
number = true;
}
if (hexadecimal == undefined) {
hexadecimal = false;
}
if (string == undefined) {
string = false;
}
if (number) {
_root.player3.data[member] = parseInt(extract(), 36);
if (isNan(_root.player3.data[member])) {
valid = false;
}
} else if (hexadecimal) {
var _local6 = new Number(parseInt(extract(), 36));
_root.player3.data[member] = _local6.toString(16);
while (_root.player3.data[member].length < 6) {
_root.player3.data[member] = "0" + _root.player3.data[member];
}
if (_root.player3.data[member] == undefined) {
valid = false;
}
} else if (string) {
_root.player3.data[member] = unASCII(extract());
if (_root.player3.data[member] == undefined) {
valid = false;
}
} else {
_root.player3.data[member] = extract();
}
}
_root.player3 = SharedObject.getLocal("temp_4_import");
_parent.sample._visible = false;
}
onClipEvent (enterFrame) {
if (!valid) {
_parent.OK._alpha = 50;
} else {
_parent.OK._alpha = 100;
}
if (step == 4) {
PIN = _parent.PIN.text;
valid = true;
begin = 0;
reload("name", false, false, true);
reload("bangstyle");
reload("sidestyle");
reload("scalpstyle");
reload("backstyle");
reload("eyestyle");
reload("browstyle");
reload("shirtstyle");
reload("overstyle");
reload("sleevestyle");
reload("pantstyle");
reload("shoestyle");
reload("glovestyle");
reload("accpack");
reload("skincolor", false, true);
reload("haircolor", false, true);
reload("ballooncolor", false, true);
reload("shirtcolor", false, true);
reload("overcolor", false, true);
reload("sleevecolor", false, true);
reload("pantscolor", false, true);
reload("glovecolor", false, true);
reload("shoescolor", false, true);
i = 1;
while (i <= 3) {
reload(("wear" + i) + "style");
reload(("wear" + i) + "color", false, true);
reload(("wear" + i) + "level");
i++;
}
reload("stockshirt", false);
reload("stockover", false);
reload("stocksleeve", false);
reload("stockglove", false);
reload("stockpant", false);
reload("stockshoe", false);
reload("stockacc", false);
reload("stockwear", false);
reload("overglove");
reload("overshoes");
reload("cash");
reload("rank");
if (valid) {
_parent.importname.text = _root.player3.data.name;
_parent.sample.varinit("3");
_parent.sample.init();
_parent.sample._visible = true;
} else {
_parent.importname.text = "Invalid PIN";
_parent.sample._visible = false;
}
}
}
Instance of Symbol 961 MovieClip "warn" in Symbol 1232 MovieClip Frame 13
onClipEvent (enterFrame) {
if (!show) {
_y = (((_y * 3) - 160) / 4);
} else if (show) {
_y = (((_y * 3) + 75) / 4);
}
if (overwrite) {
_root.temp = SharedObject.getLocal(_root.filename(_parent.importname.text));
_root.copySO("temp", "player3");
_root.player3.clear();
_root.temp.flush(1200);
delete _root.temp;
_root.register.flush(1200);
_root.game.gotoAndStop("EditReg");
}
}
Symbol 1232 MovieClip Frame 14
ST = "";
if (_root.register.data.entries == undefined) {
_root.register.data.entries = 0;
}
Instance of Symbol 32 MovieClip [event] "manager" in Symbol 1232 MovieClip Frame 14
onClipEvent (enterFrame) {
if (step == 1) {
filename = _root.filename(_parent.partname.text);
_root.temp = SharedObject.getLocal(filename);
}
if (step == 2) {
_root.temp.data.name = _parent.partname.text;
with (_root.temp) {
data.bangstyle = 1;
data.sidestyle = 1;
data.scalpstyle = 1;
data.backstyle = 1;
data.wear1style = 1;
data.wear2style = 1;
data.wear3style = 1;
data.wear1level = 2;
data.wear2level = 4;
data.wear3level = 7;
data.eyestyle = 1;
data.browstyle = 1;
data.shirtstyle = 1;
data.neckstyle = 1;
data.sleevestyle = 1;
data.glovestyle = 1;
data.pantstyle = 1;
data.shoestyle = 1;
data.accpack = 1;
data.skincolor = "1D92C5";
data.haircolor = "00F06A";
data.ballooncolor = "A2F067";
data.shirtcolor = "6D1729";
data.neckcolor = "FFFFFF";
data.sleevecolor = "6D1729";
data.glovecolor = "6D1729";
data.wear1color = "6D1729";
data.wear2color = "6D1729";
data.wear3color = "6D1729";
data.pantscolor = "2D2C92";
data.shoescolor = "1D173F";
data.stockshirt = "1";
data.stockneck = "1";
data.stocksleeve = "1";
data.stockglove = "1";
data.stockpant = "1";
data.stockshoe = "1";
data.stockacc = "1";
data.stockwear = "1";
data.overglove = 0;
data.overshoes = 1;
data.cash = -589934592;
data.rank = 1000000000 /* 0x3B9ACA00 */;
}
_root.temp.flush(1200);
if (!_parent.warn.overwrite) {
_root.register.data.entries++;
_root.register.data["entree" + _root.register.data.entries] = _parent.partname.text;
_root.register.flush(1200);
}
delete _root.temp;
delete filename;
}
if (step == 3) {
_parent.gotoAndStop("Registration");
}
if (step > 0) {
step++;
}
}
Instance of Symbol 961 MovieClip "warn" in Symbol 1232 MovieClip Frame 14
onClipEvent (enterFrame) {
if (!show) {
_y = (((_y * 3) - 160) / 4);
} else if (show) {
_y = (((_y * 3) + 75) / 4);
}
if (overwrite && (_parent.manager.step <= 0)) {
_parent.manager.step = 1;
}
}
Symbol 1232 MovieClip Frame 15
ST = "practice.mp3";
gravity = 0.25;
yscroll = 0.5;
xscroll = 0;
stagetype = 1;
_root.LEFTKEY1 = _root.gamedata.data.keyLEFTKEY1;
_root.RIGHTKEY1 = _root.gamedata.data.keyRIGHTKEY1;
_root.BASIC1 = _root.gamedata.data.keyBASIC1;
_root.ADVANCE1 = _root.gamedata.data.keyADVANCE1;
_root.LEFTKEY2 = _root.gamedata.data.keyLEFTKEY2;
_root.RIGHTKEY2 = _root.gamedata.data.keyRIGHTKEY2;
_root.BASIC2 = _root.gamedata.data.keyBASIC2;
_root.ADVANCE2 = _root.gamedata.data.keyADVANCE2;
Player1.playing = true;
Player1.dir = (Player1.ori = 1);
Player1.charge = 0;
Player1.lives = 5;
Player1.init();
Instance of Symbol 766 MovieClip "Player1" in Symbol 1232 MovieClip Frame 15
onClipEvent (load) {
SFX = new Sound(this);
rules = "standard";
ID = 1;
opponent = "Player2";
balloons.realangle = 0;
lost = false;
}
onClipEvent (enterFrame) {
if (playing) {
if (Key.isDown(_root.RIGHTKEY1)) {
dir = 1;
} else if (Key.isDown(_root.LEFTKEY1)) {
dir = -1;
} else {
dir = 0;
}
if (Key.isDown(_root.BASIC1) && (ready)) {
this.flap(strength, dir);
ready = false;
}
if (!Key.isDown(_root.BASIC1)) {
ready = true;
}
if ((Key.isDown(_root.ADVANCE1) && (_parent.p1stats.light._currentframe == 2)) && (ready2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
ready2 = false;
}
if ((!Key.isDown(_root.ADVANCE1)) || (pack.hold == true)) {
ready2 = true;
}
if (Key.isDown(38) && (charge == 100)) {
accpack++;
charge = charge - 20;
}
if (Key.isDown(40) && (charge == 100)) {
accpack--;
charge = charge - 20;
}
if (Key.isDown(32)) {
_parent.manager.config = false;
}
if (Key.isDown(13)) {
trace((("_x = " + _x) + "\rxvel - ") + xvel);
}
}
}
onClipEvent (enterFrame) {
if ((pilot.hitTest(_parent.Player2.pilot) && (_parent.Player2.balloons.ballooncount > 0)) && (_parent.Player1.balloons.ballooncount > 0)) {
_parent.bounce();
SFX.attachSound("bounce");
SFX.start();
}
if (((balloons.hitTest(_parent.Player2.legs.shoe) && (_parent.Player2._y < (_y - 10))) && (balloons.ballooncount > 0)) && (invincibility == 0)) {
balloons.pop();
_parent.bounce();
SFX.attachSound("bpop");
SFX.start();
}
if (invincibility > 0) {
invincibility--;
_alpha = (((invincibility % 2) - 1) * -100);
}
if (_y > 270) {
yvel = yvel - 2;
}
if (_y < 30) {
yvel = yvel + 2;
}
if ((_y > 400) && (lives > 0)) {
_y = 300;
yvel = -25;
invincibility = 50;
balloons.setballoon(2);
lives--;
SFX.attachSound("launch");
SFX.start();
}
if ((_y > 400) && (lives == 0)) {
lost = true;
playing = false;
ready = false;
charge = 0;
}
if (_x > 245) {
_x = 10;
}
if (_x < 10) {
_x = 245;
}
}
Instance of Symbol 32 MovieClip [event] "manager" in Symbol 1232 MovieClip Frame 15
onClipEvent (load) {
players = 2;
_parent.playSong("track2loc");
_parent.BGM.start(0, 100);
i = 4;
countout = 0;
yscroll = 0;
}
onClipEvent (enterFrame) {
if (_parent.Player1.strength == undefined) {
_parent.BGM.setVolume(_root.gamedata.data.BGMvol2);
_parent.Player1.varinit("1");
_parent.Player1.init();
_parent.p1stats.init();
_parent.Player1.xvel = 0;
_parent.Player1.yvel = 0;
}
if (Key.isDown(27)) {
countout = 50;
}
if (countout >= 50) {
_parent.gotoAndStop("Center");
}
}
Instance of Symbol 121 MovieClip "balloon" in Symbol 1232 MovieClip Frame 15
onClipEvent (load) {
ding = false;
SFX = new Sound(this);
SFX.attachSound("bpop");
}
onClipEvent (enterFrame) {
if (hitTest(_parent.Player1.legs.shoe)) {
ding = true;
SFX.start();
}
}
Instance of Symbol 427 MovieClip "instructor" in Symbol 1232 MovieClip Frame 15
onClipEvent (load) {
function repositionBalloon() {
_parent.balloon.ding = false;
do {
_parent.balloon._x = random(180) + 40;
_parent.balloon._y = random(220) + 50;
} while ((Math.abs(_parent.balloon._y - _parent.Player1._y) < 50) && (Math.abs(_parent.balloon._x - _parent.Player1._x) < 50));
}
index = 0;
maxlength = 20;
person = 1;
}
onClipEvent (enterFrame) {
if (index == 0) {
_parent.talkbox.stretch(140, 90);
say("Hi there. You can practice flying around here. If ya want instructions, just click. ");
}
if ((index == 2) && (_parent.Player1._y < 30)) {
_parent.talkbox.stretch(140, 110);
say(((("Nice job! Now, while flapping, press " + _parent.CodeToWord(_root.gamedata.data.keyLEFTKEY1)) + " to move left or ") + _parent.CodeToWord(_root.gamedata.data.keyRIGHTKEY1)) + " to move right. Try flying to the edge of the screen. ");
}
if ((index == 3) && (_parent.Player1._x < 30)) {
_parent.talkbox.stretch(140, 110);
say("Great! You're on a roll. Let's see if ya can maneuever yerself now. Pop that there balloon with yer feet. ");
_parent.balloon._x = 120;
_parent.balloon._y = 60;
}
if ((index == 4) && (_parent.balloon.ding)) {
_parent.balloon.ding = false;
_parent.talkbox.stretch(140, 110);
say("Very good. One more note: avoid the bottom. Here we keep ya floatin', but out there...no. Pop that. ");
_parent.balloon._x = 120;
_parent.balloon._y = 200;
}
if ((index >= 5) && (_parent.balloon.ding)) {
repositionBalloon();
if (index == 5) {
say("Yeah, actually, whenever you're ready for me to say more, just pop 'em balloons. ");
} else if (index == 7) {
say("Remember: Ya can only pop balloons with yer feet, unless ya got some sorta weapon. ");
} else if (index == 9) {
say("I suggest ya talk with the clerk at the accessory shop. He can explain better. ");
} else if (index == 11) {
say(("Oh yeah, about accessories: Press " + _parent.CodeToWord(_root.gamedata.data.keyADVANCE1)) + " to use your pack attachment. ");
} else if (index == 13) {
say("You see that yellow-red bar in the corner? That's yer power gauge. Yer pack's powered by it. ");
} else if (index == 15) {
say("You can only use yer accessory when the red light blinks on. It'll turn on when ya got enough energy. ");
} else if (index == 17) {
say("Don't worry - your gauge replenishes itself with time, so you don't have to be stingy with its use. ");
} else if (index == 19) {
say("Oh yeah, you also see those small balloons under the gauge? Those're yer spares. Be careful when they run out. ");
} else if (index == 21) {
_parent.talkbox.stretch(140, 90);
say("Ah, well, that's it. I'm spent. You go ahead and practice poppin'. ");
}
if (index < 21) {
_parent.talkbox.stretch(140, 110);
}
index++;
}
}
onClipEvent (mouseDown) {
if (index == 1) {
_parent.talkbox.stretch(140, 110);
say(("Alright then! For starters, press " + _parent.CodeToWord(_root.gamedata.data.keyBASIC1)) + " to flap yer arms. Reach the top of the stage, if ya will. ");
}
}
Instance of Symbol 808 MovieClip "p1stats" in Symbol 1232 MovieClip Frame 15
onClipEvent (load) {
player = "Player1";
}
Instance of Symbol 277 MovieClip "E X I T" in Symbol 1232 MovieClip Frame 15
onClipEvent (enterFrame) {
if (step == 4) {
_parent.gotoAndStop("Center");
}
}
Instance of Symbol 437 MovieClip "talkbox" in Symbol 1232 MovieClip Frame 15
onClipEvent (enterFrame) {
tb.talk = _parent.instructor.talk;
}
onClipEvent (load) {
remove();
}
Symbol 1232 MovieClip Frame 16
ST = "";
Symbol 1232 MovieClip Frame 17
ST = "";
Instance of Symbol 766 MovieClip "sample" in Symbol 1232 MovieClip Frame 17
onClipEvent (load) {
function Refresh() {
if ((_root.player2.data.name != undefined) && (_root.player2.data.name != "myname")) {
myname = _root.player2.data.name;
varinit("2");
init();
_y = show_y;
}
}
show_y = _y;
_y = 400;
}
onClipEvent (enterFrame) {
if (_root.player2.data.name == "random") {
myname = "";
_root.player2.data.rank = _root.gamedata.data.skill;
_parent.ai._alpha = 100;
} else {
_parent.ai._alpha = 25;
}
}
Instance of Symbol 277 MovieClip "RANDOM" in Symbol 1232 MovieClip Frame 17
onClipEvent (load) {
function scramble(range) {
var _local1 = random(range);
return(int(range - ((_local1 * _local1) / range)));
}
function randomColor(tone, gaudiness, brightness) {
if (tone == "med") {
H = random(256);
} else if (tone == "earth") {
H = scramble(36.5714285714286);
} else if (tone == "human") {
H = scramble(36.5714285714286) + random(219.428571428571);
} else {
H = random(tone);
}
if (gaudiness == "bright") {
S = scramble(180) + 25;
} else if (gaudiness == "med") {
S = scramble(100) + 50;
} else if (gaudiness == "soft") {
S = scramble(50) + 50;
} else {
S = random(gaudiness);
}
if (brightness == "light") {
L = scramble(150) + 100;
} else if (brightness == "med") {
L = scramble(180) + 50;
} else if (brightness == "dark") {
L = scramble(50) + 50;
} else {
L = random(brightness);
}
return(_parent.HexHSL(H, S, L));
}
function correctWear(number, male) {
switch (_root.player2.data[("wear" + number) + "style"]) {
case 6 :
case 11 :
case 12 :
case 30 :
_root.player2.data[("wear" + number) + "style"] = 1;
return(undefined);
case 15 :
_root.player2.data.eyestyle = 17;
case 13 :
case 14 :
if (!male) {
_root.player2.data[("wear" + number) + "style"] = 1;
return(undefined);
}
_root.player2.data[("wear" + number) + "color"] = _root.player2.data.haircolor;
return(undefined);
case 17 :
_root.player2.data[("wear" + number) + "color"] = "004077";
return(undefined);
case 20 :
if (male) {
_root.player2.data[("wear" + number) + "style"] = 1;
return(undefined);
}
case 22 :
if (male) {
_root.player2.data[("wear" + number) + "style"] = 1;
return(undefined);
}
_root.player2.data[("wear" + number) + "color"] = "000000";
return(undefined);
case 23 :
case 24 :
if (male) {
_root.player2.data[("wear" + number) + "style"] = 1;
return(undefined);
}
case 28 :
_root.player2.data.bangstyle = 27;
return(undefined);
}
return(undefined);
}
bt._xscale = 80;
bt._yscale = 80;
}
onClipEvent (enterFrame) {
_parent.sample.Refresh();
if (step == 4) {
_root.player2.flush(1200);
delete _root.player2;
_root.gamedata.data.checkout2 = 0;
_root.player2 = SharedObject.getLocal("_random_");
step = 1;
_root.player2.data.name = "random";
var male = true;
if (random(3) == 1) {
male = false;
}
var H;
var S;
var L = 0;
H = scramble(32);
S = 40 + scramble(80);
L = 50 + ((scramble(160) + scramble(160)) / 2);
_root.player2.data.skincolor = _parent.HexHSL(H, S, L);
H = random(256);
S = 50 + scramble(100);
L = 50 + scramble(150);
_root.player2.data.haircolor = _parent.HexHSL(H, S, L);
_root.player2.data.haircolor = randomColor("human", "med", 256);
_root.player2.data.ballooncolor = randomColor("med", "med", "med");
_root.player2.data.shirtcolor = randomColor("med", "soft", "med");
_root.player2.data.overcolor = randomColor("med", "soft", "med");
_root.player2.data.sleevecolor = randomColor("med", "soft", "med");
_root.player2.data.glovecolor = randomColor("earth", "med", "med");
_root.player2.data.wear1color = randomColor("med", "med", "med");
_root.player2.data.wear2color = randomColor("med", "med", "med");
_root.player2.data.wear3color = randomColor("med", "med", "med");
_root.player2.data.pantscolor = randomColor("med", "med", "dark");
if (random(3) != 1) {
_root.player2.data.shoescolor = randomColor("earth", "soft", "dark");
} else {
_root.player2.data.shoescolor = randomColor("human", "soft", "dark");
}
with (_root.player2) {
data.maxyvel = 5;
data.maxxvel = 6;
data.strength = 3;
data.overwear = true;
data.scalpstyle = random(14) + 1;
if ((data.scalpstyle == 12) && (!male)) {
data.scalpstyle = 1;
}
data.bangstyle = random(30) + 1;
if ((data.scalpstyle == 12) || (data.scalpstyle == 27)) {
data.scalpstyle = 1;
}
data.sidestyle = random(17) + 2;
if ((this.male && (data.sidestyle >= 13)) && (data.sidestyle <= 15)) {
data.sidestyle = random(11) + 2;
}
if (this.male && (data.sidestyle == 5)) {
data.sidestyle = random(3) + 2;
}
data.backstyle = random(21) + 1;
if (this.male && (((data.backstyle == 4) || (data.backstyle == 10)) || (data.backstyle >= 15))) {
data.backstyle = random(2) + 1;
}
data.wear1style = random(30) + 1;
do {
data.wear2style = random(30) + 1;
} while (data.wear2style != data.wear1style);
do {
data.wear3style = random(30) + 1;
} while ((data.wear3style != data.wear2style) && (data.wear3style != data.wear1style));
correctWear(1, male);
correctWear(2, male);
correctWear(3, male);
data.eyestyle = random(13) + 1;
if (((data.eyestyle == 11) || (data.eyestyle == 12)) && (male)) {
data.eyestyle = (int(random(5) / 4) * 16) + 1;
}
data.browstyle = random(7) + 2;
if ((!male) && (data.browstyle >= 7)) {
data.browstyle = 10;
}
data.shirtstyle = random(19) + 1;
if (this.male && (((data.shirtstyle == 14) || (data.shirtstyle == 15)) || (data.shirtstyle == 17))) {
data.shirtstyle = random(13) + 1;
}
data.sleevestyle = random(19) + 1;
data.glovestyle = random(15) + 1;
if (data.glovestyle == 8) {
data.glovestyle = 1;
}
data.overstyle = random(0) + 1;
if (male && ((data.overstyle == 6) || (data.overstyle == 17))) {
data.overstyle = 1;
}
if ((data.overstyle == 14) || (data.overstyle == 16)) {
data.overstyle = 1;
}
data.pantstyle = random(18) + 1;
if (this.male && (data.pantstyle >= 12)) {
data.pantstyle = random(12) + 1;
}
data.shoestyle = random(16) + 1;
data.accpack = random(18) + 1;
data.rank = 1;
data.gender = "neutral";
}
_root.player2.flush(1200);
_parent.sample.Refresh();
}
}
Instance of Symbol 318 MovieClip "ai" in Symbol 1232 MovieClip Frame 17
onClipEvent (enterFrame) {
if ((percent == undefined) || (_alpha == 25)) {
if (_root.gamedata.data.skill == undefined) {
_root.gamedata.data.skill = 55;
}
percent = (_root.gamedata.data.skill - 10) / 0.9;
} else if (_alpha == 100) {
_root.gamedata.data.skill = (percent * 0.9) + 10;
_parent.rank.text = int(percent);
}
}
Symbol 1232 MovieClip Frame 18
ST = "";
compFight = false;
Instance of Symbol 766 MovieClip "sample" in Symbol 1232 MovieClip Frame 18
onClipEvent (load) {
myselect = -1;
}
onClipEvent (enterFrame) {
if ((myselect != _parent.namelist.woo.Selected.select) && (_parent.namelist.woo.Selected.select != _root.gamedata.data.checkout1)) {
myselect = _parent.namelist.woo.Selected.select;
_root.player2.flush(1200);
delete _root.player2;
_root.gamedata.data.checkout2 = 0;
_root.player2 = SharedObject.getLocal(_parent.namelist.filename);
_root.gamedata.data.checkout2 = _parent.namelist.woo.Selected.select;
varinit("2");
init();
_visible = true;
}
if (_root.player2.data.name != undefined) {
_parent.OK._alpha = 100;
} else {
_parent.OK._alpha = 25;
_visible = false;
}
}
Instance of Symbol 927 MovieClip "namelist" in Symbol 1232 MovieClip Frame 18
onClipEvent (load) {
_root.register = SharedObject.getLocal("register");
woo.Selected.select = _root.gamedata.data.checkout2;
filename = _root.filename(_parent.charaname2);
}
onClipEvent (enterFrame) {
woo.p1s.select = _root.gamedata.data.checkout1;
woo.p2s.select = _root.gamedata.data.checkout2;
if (_root.player1.data.name != undefined) {
_parent.charaname1 = _root.player1.data.name;
} else {
_parent.charaname1 = "---";
}
if (_root.player2.data.name != undefined) {
_parent.charaname2 = _root.player2.data.name;
} else {
_parent.charaname2 = "---";
}
}
Symbol 1232 MovieClip Frame 19
ST = "";
Instance of Symbol 32 MovieClip [event] "guy" in Symbol 1232 MovieClip Frame 19
onClipEvent (enterFrame) {
_parent.stn.text = stagename;
switch (_parent.stagetype) {
case 0 :
_parent.stagetype = 10;
break;
case 1 :
stagename = "City Nocturne";
break;
case 2 :
stagename = "Lake Bridge";
break;
case 3 :
stagename = "Miyajima";
break;
case 4 :
stagename = "High Clouds";
break;
case 5 :
stagename = "Ice Cavern";
break;
case 6 :
stagename = "Lava Side";
break;
case 7 :
stagename = "L.Franklin Forest";
break;
case 8 :
stagename = "Painted Mountains";
break;
case 9 :
stagename = "Shrine Top";
break;
case 10 :
stagename = "Mellow Falls";
break;
default :
_parent.stagetype = 1;
}
}
Instance of Symbol 277 MovieClip "FISH" in Symbol 1232 MovieClip Frame 19
onClipEvent (load) {
bt._xscale = 120;
bt._yscale = 80;
if (_root.gamedata.data.fish == undefined) {
_root.gamedata.data.fish = true;
}
}
onClipEvent (enterFrame) {
if (step == 4) {
_root.gamedata.data.fish = !_root.gamedata.data.fish;
step = 1;
}
}
Instance of Symbol 807 MovieClip in Symbol 1232 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.gamedata.data.fish) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 277 MovieClip "AC" in Symbol 1232 MovieClip Frame 19
onClipEvent (load) {
bt._xscale = 120;
bt._yscale = 80;
if (_root.gamedata.data.ac == undefined) {
_root.gamedata.data.ac = false;
}
}
onClipEvent (enterFrame) {
if (step == 4) {
_root.gamedata.data.ac = !_root.gamedata.data.ac;
step = 1;
}
}
Instance of Symbol 807 MovieClip in Symbol 1232 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.gamedata.data.ac) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (!_root.gamedata.data.ac) {
if (_parent.stagetype == 4) {
_parent.airinfo.text = "Air pressure increases balloon size by 25%";
} else if (_parent.stagetype == 5) {
_parent.airinfo.text = "Cold reduces balloon size by 50%";
} else if (_parent.stagetype == 6) {
_parent.airinfo.text = "Balloons heat up towards the bottom";
} else {
_parent.airinfo.text = "Normal conditions";
}
} else {
_parent.airinfo.text = "Atmosphere conditioned";
}
}
Instance of Symbol 452 MovieClip [MusicPreview] "preview" in Symbol 1232 MovieClip Frame 19
onClipEvent (enterFrame) {
gotoAndStop(_parent.stagetype + 8);
}
Symbol 1232 MovieClip Frame 20
ST = "";
_root.warp = false;
var restore = _root.player1.data.rank;
rankdiff = _root.player2.data.rank - _root.player1.data.rank;
rankratio = 100;
if (_root.player1.data.rank > 0) {
rankration = _root.player2.data.rank / _root.player1.data.rank;
}
if (rankdiff == undefined) {
rankdiff = 0;
}
if (scorediff > 0) {
if (scorediff > 4) {
if (rankdiff >= 0) {
message1 = "Wow, that was quite a display of skill! Good news: your mannager said your rank rose by ";
} else if (_root.player2.data.rank < 100) {
message1 = "Hm...good show, but it may be time you moved on to stronger opponents. Well, your rank rose by ";
} else {
message1 = "Nice, nice! That's quite some talent you got! Anyhow, your manager said your rank rose by ";
}
} else {
message1 = "Hey! Congratulations on your win! Your manager said your rank rose by ";
}
if (rankdiff > 0) {
promo = ((1 + rankdiff) * (scorediff + 5)) / 20;
} else {
promo = ((1 / (1 - rankdiff)) * (scorediff + 5)) / 20;
}
} else if (scorediff == 0) {
message1 = "My, that was a close one. Well, your manager said your rank ";
promo = rankdiff / 2;
if (promo >= 0) {
message1 = message1 + "rose by ";
} else {
message1 = message1 + "dropped by ";
}
} else if (scorediff < 0) {
if (rankratio > 1.25) {
message1 = "Eee, well, you WERE going against a stronger opponent. Anyhow, your manager said your rank ";
} else if (rankration < 0.75) {
message1 = "Wow. That was very unexpected. Anyhow, your manager said your rank ";
} else {
message1 = "Sorry to hear what happened. Anyhow, your manager said your rank ";
}
if (rankdiff >= 0) {
promo = (rankdiff * (scorediff + 5)) / 16;
} else {
promo = (rankdiff * (5 - scorediff)) / 20;
}
if (promo >= 0) {
message1 = message1 + "rose by ";
} else {
message1 = message1 + "dropped by ";
}
}
if (promo != undefined) {
_root.player1.data.rank = _root.player1.data.rank + promo;
}
if (_root.player1.data.rank == undefined) {
_root.player1.data.rank = restore;
}
salary = 9.5 + (int(_root.player1.data.rank) * 0.5);
message1 = message1 + (((numberToDecimal(promo) + " points. Here's your paycheck for $") + numberToDecimal(salary)) + ". ");
if (scorediff >= 0) {
message1 = message1 + "See you next time! ";
} else {
message1 = message1 + "Better luck next time. ";
}
if (salary != undefined) {
_root.player1.data.cash = _root.player1.data.cash + salary;
}
pay.text = numberToDecimal(salary);
if (promo >= 0) {
clerk.person = 3;
} else {
clerk.person = 4;
}
Instance of Symbol 427 MovieClip "clerk" in Symbol 1232 MovieClip Frame 20
onClipEvent (load) {
index = 0;
maxlength = 20;
}
onClipEvent (enterFrame) {
if (index == 0) {
_parent.talkbox.stretch(250, 75);
_parent.talkbox.pos(210, 70);
_parent.talkbox.remove();
say(_parent.message1);
index++;
}
}
Instance of Symbol 437 MovieClip "talkbox" in Symbol 1232 MovieClip Frame 20
onClipEvent (enterFrame) {
tb.talk = _parent.clerk.talk;
}
onClipEvent (load) {
NEXT.remove();
}
Symbol 1232 MovieClip Frame 21
playSong("track1loc");
Instance of Symbol 427 MovieClip "clerk" in Symbol 1232 MovieClip Frame 21
onClipEvent (load) {
index = 0;
maxlength = 32;
person = 10;
}
onClipEvent (enterFrame) {
if (_parent.talkbox.pushed) {
index++;
_parent.talkbox.pushed = false;
}
if (index == 0) {
_parent.help.gotoAndPlay(1);
_parent.talkbox.stretch(200, 85);
_parent.talkbox.disp();
say("Alright! So you've got a problem: You've played Balloon Duel before, and all of a sudden your saved data is gone. ");
}
if (index == 2) {
_parent.help.gotoAndPlay(11);
_parent.talkbox.stretch(200, 85);
say("To explain how this could have happened, I must first explain how Balloon Duel stores user data. ");
}
if (index == 4) {
_parent.help.gotoAndPlay(21);
_parent.talkbox.stretch(200, 85);
say("Everything is recorded as a 'Shared Object,' which is closely related to internet cookies. ");
}
if (index == 6) {
_parent.help.gotoAndPlay(41);
_parent.talkbox.stretch(200, 95);
say("So if Player A is playing Balloon Duel and creates a character and all, Balloon Duel will save his character to a location just for him. ");
}
if (index == 8) {
_parent.help.gotoAndPlay(81);
_parent.talkbox.stretch(200, 125);
say("If his sister Player B then logs on to her own profile and decides to play Balloon Duel, the program will notice a change in users and start managing data in a different location. ");
}
if (index == 10) {
_parent.help.gotoAndPlay(161);
_parent.talkbox.stretch(200, 85);
say("If this is the case, all Player A needs to do to restore his data is to log back on to his profile. ");
}
if (index == 12) {
_parent.help.gotoAndPlay(231);
_parent.talkbox.stretch(200, 95);
say("However, I'm unaware of what happens in an operating system other than Windows, so I'm afraid I can't offer any advice there. ");
}
if (index == 14) {
_parent.help.gotoAndPlay(251);
_parent.talkbox.stretch(200, 85);
say("There is another situation that could occur that would cause the program to not recognize the user. ");
}
if (index == 16) {
_parent.help.gotoAndPlay(271);
_parent.talkbox.stretch(200, 120);
say("If you were to play Balloon Duel from a different location, be it on the internet or from harddrive, that copy of Balloon Duel would manage data in its own location. ");
}
if (index == 18) {
_parent.help.gotoAndPlay(301);
_parent.talkbox.stretch(200, 95);
say("The solution is to either go back and play from the original copy or to export your Balloon Fighter from the original and import him in to the new. ");
}
if (index == 20) {
_parent.help.gotoAndPlay(361);
_parent.talkbox.stretch(200, 95);
say("The last solution is the trickiest: You'll have to find where your original data was and then copy it over the new data. ");
}
if (index == 22) {
_parent.help.gotoAndPlay(381);
_parent.talkbox.stretch(200, 95);
say("To do this, run a search on your computer for a file called GAMEDATA.SOL. Several results may pop up. Look in the folders in which they are found. ");
}
if (index == 24) {
_parent.help.gotoAndPlay(441);
_parent.talkbox.stretch(200, 95);
say("Hopefully you remember your Balloon Fighter's name. You'll find that name within one of those folders. That's where your original data was kept. ");
}
if (index == 26) {
_parent.help.gotoAndPlay(456);
_parent.talkbox.stretch(200, 115);
say("Alright, so you've found the original data. Now you need to find where to copy it to. Run a search for the last copy of GAMEDATA.SOL created. That's located in your target folder. ");
}
if (index == 28) {
_parent.help.gotoAndPlay(476);
_parent.talkbox.stretch(200, 85);
say("Copy the entire contents of the original folder and paste it into the target folder, overwriting it. ");
}
if (index == 30) {
_parent.help.gotoAndPlay(536);
_parent.talkbox.stretch(200, 70);
_parent.talkbox.remove();
say("Next time you play, all your old data will be there. Good luck! ");
}
}
Instance of Symbol 277 MovieClip "R E T U R N" in Symbol 1232 MovieClip Frame 21
onClipEvent (load) {
bt._xscale = 75;
_parent.rescale(_root.gamedata.data.screensize);
}
onClipEvent (enterFrame) {
if ((step == 4) && (_root.gamedata.data.exists)) {
_parent.BGM.stop();
_parent.gotoAndStop("Registration");
}
}
Symbol 1232 MovieClip Frame 23
function zap(who) {
if (who.balloons.ballooncount > 0) {
who.balloons.pop();
who.balloons.pop();
who.SFX.attachSound("bpop");
who.SFX.start();
shock.shock();
}
}
gravity = 0.25;
yscroll = 0;
xscroll = 1;
_root.LEFTKEY1 = _root.gamedata.data.keyLEFTKEY1;
_root.RIGHTKEY1 = _root.gamedata.data.keyRIGHTKEY1;
_root.BASIC1 = _root.gamedata.data.keyBASIC1;
_root.ADVANCE1 = _root.gamedata.data.keyADVANCE1;
_root.LEFTKEY2 = _root.gamedata.data.keyLEFTKEY2;
_root.RIGHTKEY2 = _root.gamedata.data.keyRIGHTKEY2;
_root.BASIC2 = _root.gamedata.data.keyBASIC2;
_root.ADVANCE2 = _root.gamedata.data.keyADVANCE2;
Player1.playing = true;
Player1.dir = (Player1.ori = 1);
Player1.charge = 0;
Player1.lives = 5;
Player1.init();
Instance of Symbol 244 MovieClip "wrap" in Symbol 1232 MovieClip Frame 23
onClipEvent (enterFrame) {
if ((_root.gamedata.data.backgrounds == 2) && (_parent.manager.pause == 0)) {
_x = (_x - 0.25);
}
if (_x <= -400) {
_x = (_x + 400);
}
}
Instance of Symbol 99 MovieClip "water2" in Symbol 1232 MovieClip Frame 23
onClipEvent (load) {
if (_root.gamedata.data.backgrounds < 2) {
unloadMovie (this);
}
}
Instance of Symbol 32 MovieClip [event] "manager" in Symbol 1232 MovieClip Frame 23
onClipEvent (load) {
function scoreUp() {
popped++;
if (timer < 3000) {
bonus = bonus + (int(timer / 100) / 10);
} else {
bonus = bonus + 3;
}
_parent.bp.text = popped;
_parent.cb.text = "$" + int(bonus);
}
players = 1;
_parent.playSong("track4loc");
i = 4;
countout = 0;
yscroll = 0;
xscroll = 1;
speed = 0;
newspeed = 0;
timer = 0;
sparks = 0;
balloons = 0;
pause = 0;
popped = 0;
bonus = 0;
if (_root.gamedata.data.backgrounds == 0) {
attachMovie("event", "bg", 0);
bg._xscale = 4000;
bg._yscale = 3000;
bg._x = 210;
bg._y = 150;
bg.gotoAndStop(1);
tempcolor = new Color(bg);
tempcolor.setRGB(_root.game.HSLtoRGB(_root.gamedata.data.bgcolor));
delete tempcolor;
}
}
onClipEvent (enterFrame) {
if (timer < 400) {
if ((timer % 100) == 0) {
_parent.plotter1.enqueue(3);
}
if (((timer + 50) % 100) == 0) {
_parent.plotter2.enqueue(3);
}
}
if (((((timer + 25) % 50) == 0) && (pause == 0)) && (random(4) != 0)) {
balloons++;
attachMovie("BT Balloon", "Balloon" + balloons, balloons);
}
if (((timer > 500) && ((timer % 50) == 0)) && (pause == 0)) {
var i = 0;
var x = (random(5) * 10);
var dir = ((random(2) * 2) - 1);
var mag = (random(3) + 5);
if (random(4) != 0) {
var i = int(random(4) + 1);
}
while (i > 0) {
attachMovie("Spark", "Spark" + sparks, sparks + 200);
this["Spark" + sparks].dir = dir;
this["Spark" + sparks].mag = mag;
this["Spark" + sparks]._y = random(15) * 20;
this["Spark" + sparks]._x = -x;
sparks++;
i--;
}
}
if (pause > 0) {
pause--;
if (pause > 0) {
xscroll = 0;
speed = 0;
_parent.water1.stop();
_parent.water2.stop();
} else {
xscroll = 1;
speed = newspeed;
_parent.water1.play();
_parent.water2.play();
}
} else {
timer++;
}
if (timer == 600) {
newspeed = 1.5;
}
if (timer == 1200) {
newspeed = 1.75;
}
if (timer == 3000) {
newspeed = 2;
}
if (speed < newspeed) {
speed = speed + 0.005;
}
if (_parent.Player1.strength == undefined) {
_parent.BGM.setVolume(_root.gamedata.data.BGMvol4);
_parent.Player1.varinit("1");
_parent.Player1.init();
_parent.p1stats.init();
_parent.Player1.xvel = 0;
_parent.Player1.yvel = 0;
}
_parent.Player1.charge = 0;
if (_parent.Player1._y > 350) {
_parent.Player1.playing = false;
countout++;
}
if (Key.isDown(27)) {
countout = 50;
}
if (countout >= 50) {
_parent.BGM.stop();
_root.player1.data.cash = _root.player1.data.cash + int(bonus);
_parent.gotoAndStop("ArenaDesk");
}
}
Instance of Symbol 766 MovieClip "Player1" in Symbol 1232 MovieClip Frame 23
onClipEvent (load) {
SFX = new Sound(this);
rules = "standard";
ID = 1;
opponent = "Player2";
balloons.realangle = 0;
lost = false;
invincibility = 100;
}
onClipEvent (enterFrame) {
if (playing) {
if (Key.isDown(_root.RIGHTKEY1)) {
dir = 1;
} else if (Key.isDown(_root.LEFTKEY1)) {
dir = -1;
} else {
dir = 0;
}
if (Key.isDown(_root.BASIC1) && (ready)) {
this.flap(strength, dir);
ready = false;
}
if (!Key.isDown(_root.BASIC1)) {
ready = true;
}
if ((Key.isDown(_root.ADVANCE1) && (_parent.p1stats.light._currentframe == 2)) && (ready2)) {
pack.acc.gotoAndPlay(2);
charge = charge - pack.used;
ready2 = false;
}
if ((!Key.isDown(_root.ADVANCE1)) || (pack.hold == true)) {
ready2 = true;
}
if (Key.isDown(38) && (charge == 100)) {
accpack++;
charge = charge - 20;
}
if (Key.isDown(40) && (charge == 100)) {
accpack--;
charge = charge - 20;
}
if (Key.isDown(32)) {
_parent.manager.config = false;
}
if (Key.isDown(13)) {
trace((("_x = " + _x) + "\rxvel - ") + xvel);
}
}
}
onClipEvent (enterFrame) {
if (_x > 400) {
if (xvel > 0) {
xvel = 0;
}
_x = 400;
}
if (_x < 0) {
if (xvel < 0) {
xvel = 0;
}
_x = 0;
}
_x = (_x - _parent.manager.xscroll);
}
Instance of Symbol 774 MovieClip "fish" in Symbol 1232 MovieClip Frame 23
onClipEvent (load) {
provoke = 0;
movement = 0;
scale = 40;
SFX = new Sound(this);
}
onClipEvent (enterFrame) {
movement++;
_x = ((250 * Math.cos(movement / 40)) + 200);
dir = Math.sin(movement / 40);
if (dir < 0) {
_xscale = (-scale);
} else {
_xscale = scale;
}
if (_parent.Player1._y > 260) {
if (provoke < 30) {
provoke++;
}
} else if (provoke > 0) {
provoke--;
}
_y = (330 - (30 * Math.sin(provoke / 20)));
var p1dist = (_parent.Player1._x - _x);
if (((_parent.Player1._y > 260) && (Math.abs(p1dist) < Math.abs(dir * 80))) && ((p1dist * dir) < 0)) {
gobble();
}
if (gobbling) {
if (_parent.collision(activeFish, _parent.Player1) && (_parent.Player1.invincibility == 0)) {
Player1catch = true;
}
if (Player1catch) {
_parent.Player1._x = ((_xscale / 100) * fishmouth._x) + _x;
_parent.Player1._y = ((scale / 100) * fishmouth._y) + _y;
_parent.Player1.xvel = 0;
_parent.Player1.yvel = 5;
if (_parent.Player1.balloons.ballooncount > 0) {
_parent.Player1.balloons.pop();
}
}
}
}
Instance of Symbol 32 MovieClip [event] "plotter1" in Symbol 1232 MovieClip Frame 23
onClipEvent (load) {
function enqueue(howMany) {
_y = ((random(13) * 20) + 40);
queue = queue + howMany;
}
function plot() {
if (queue > 0) {
_y = (_y + ((random(3) - 1) * 20));
if (_y < 40) {
_y = 40;
}
if (_y > 280) {
_y = 280;
}
queue--;
_parent.manager.attachMovie("Spark", "Spark" + _parent.manager.sparks, _parent.manager.sparks + 200);
_parent.manager["Spark" + _parent.manager.sparks]._y = _y;
_parent.manager.sparks++;
}
}
queue = 0;
}
onClipEvent (enterFrame) {
if (((_parent.manager.timer < 400) && ((_parent.manager.timer % 25) == 0)) && (_parent.manager.pause == 0)) {
plot();
}
}
Instance of Symbol 32 MovieClip [event] "plotter2" in Symbol 1232 MovieClip Frame 23
onClipEvent (load) {
function enqueue(howMany) {
_y = ((random(13) * 20) + 40);
queue = queue + howMany;
}
function plot() {
if (queue > 0) {
_y = (_y + ((random(3) - 1) * 10));
if (_y < 40) {
_y = 40;
}
if (_y > 280) {
_y = 280;
}
queue--;
_parent.manager.attachMovie("Spark", "Spark" + _parent.manager.sparks, _parent.manager.sparks + 200);
_parent.manager["Spark" + _parent.manager.sparks]._y = _y;
_parent.manager.sparks++;
}
}
queue = 0;
}
onClipEvent (enterFrame) {
if (((_parent.manager.timer < 400) && ((_parent.manager.timer % 25) == 0)) && (_parent.manager.pause == 0)) {
plot();
}
}
Instance of Symbol 1227 MovieClip "shock" in Symbol 1232 MovieClip Frame 23
onClipEvent (enterFrame) {
if (zap) {
_x = _parent.Player1._x;
_y = _parent.Player1._y;
_rotation = (_rotation + 20);
_alpha = (_alpha-1);
}
}