Frame 1
function Center(MC) {
MC._x = (Stage.width / 2) - (MC._width / 2);
MC._y = (Stage.height / 2) - (MC._height / 2);
}
function toggleFullScreen() {
if (Stage.displayState == "normal") {
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
}
}
function goWalfas() {
getURL ("http://www.walfas.org/", "_blank");
}
function addCMItem(S, F) {
var _local1 = new ContextMenuItem(S, F);
myContextMenu.customItems.push(_local1);
}
Stage.scaleMode = "noScale";
Stage.align = "TL";
GameData = new Object();
_root.attachMovie("Preloader", "preloader", 10);
preloader.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (3);
} else {
var _local2 = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
preloader.percent.text = String(_local2) + "%";
preloader.loaderBar._xscale = _local2;
}
};
var myContextMenu = new ContextMenu();
myContextMenu.builtInItems.play = false;
myContextMenu.builtInItems.rewind = false;
myContextMenu.builtInItems.forward_back = false;
myContextMenu.builtInItems.loop = false;
myContextMenu.builtInItems.print = false;
addCMItem("Full Screen Mode!", toggleFullScreen);
addCMItem("http://www.walfas.org", goWalfas);
_root.menu = myContextMenu;
stop();
Frame 3
function applyFilters() {
var _local1 = [];
if (GameData.Screenshots[GameData.Target._name].ColorMode == "greyscale") {
_local1.push(grayfilter);
} else if (GameData.Screenshots[GameData.Target._name].ColorMode == "inverse") {
_local1.push(inversefilter);
} else {
_local1.push(colorfilter);
}
if (GameData.Screenshots[GameData.Target._name].Blur) {
var _local2 = GameData.Screenshots[GameData.Target._name].BlurSettings;
var _local3 = new flash.filters.BlurFilter(_local2.X, _local2.Y, _local2.Q);
_local1.push(_local3);
}
GameData.Target.pic.filters = _local1;
}
function DevPositioner(MC) {
if (GameData.DevMode) {
MC.onPress = function () {
this.startDrag();
};
MC.onRelease = function () {
this.stopDrag();
trace((("X: " + this._x) + " Y: ") + this._y);
};
}
}
function getStageList() {
s = GameData.Depths.StageList.length - 1;
while (s >= 0) {
trace((GameData.Depths.StageList[s].Name + ": ") + GameData.Depths.StageList[s].Depth);
s--;
}
}
function Find(MC) {
if (GameData.DevMode) {
if (MC) {
MC._visible = true;
trace((("X: " + MC._x) + " Y:") + MC._y);
} else {
trace("Uh oh! It's really gone.");
}
}
}
function CheckOrigin() {
var _local2 = new LoadVars();
_local2.onLoad = function (success) {
if (success) {
GameData.Origin = this.from.toString();
} else {
GameData.Origin = "Local";
}
};
_local2.load("origin.txt");
}
function LoadSavedData() {
if (my_so.data.ClickStopsSpin == undefined) {
my_so.data.ClickStopsSpin = GameData.ClickStopsSpin;
} else {
GameData.ClickStopsSpin = my_so.data.ClickStopsSpin;
}
if (my_so.data.PresetWithItems == undefined) {
my_so.data.PresetWithItems = GameData.PresetWithItems;
} else {
GameData.PresetWithItems = my_so.data.PresetWithItems;
}
if (my_so.data.MassLocking == undefined) {
my_so.data.MassLocking = GameData.MassLocking;
} else {
GameData.MassLocking = my_so.data.MassLocking;
}
if (my_so.data.OldQS == undefined) {
my_so.data.OldQS = GameData.OldQS;
} else {
GameData.OldQS = my_so.data.OldQS;
}
if (my_so.data.KeepColors == undefined) {
my_so.data.KeepColors = GameData.KeepColors;
} else {
GameData.KeepColors = my_so.data.KeepColors;
}
if (my_so.data.Mute == undefined) {
my_so.data.Mute = GameData.Mute;
} else {
GameData.Mute = my_so.data.Mute;
}
if (my_so.data.PongHiScore == undefined) {
my_so.data.PongHiScore = GameData.Pong.HiScore;
} else {
GameData.Pong.HiScore = my_so.data.PongHiScore;
}
if (my_so.data.DefaultChar == undefined) {
my_so.data.DefaultChar = GameData.DefaultChar;
} else {
GameData.DefaultChar = my_so.data.DefaultChar;
}
if (my_so.data.HeadRotates == undefined) {
my_so.data.HeadRotates = GameData.HeadRotates;
} else {
GameData.HeadRotates = my_so.data.HeadRotates;
}
if (my_so.data.SwitchArrows == undefined) {
my_so.data.SwitchArrows = GameData.SwitchArrows;
} else {
GameData.SwitchArrows = my_so.data.SwitchArrows;
}
if (my_so.data.ASpeed == undefined) {
my_so.data.ASpeed = GameData.ASpeed;
} else {
GameData.ASpeed = my_so.data.ASpeed;
}
if (my_so.data.KeylockPinned == undefined) {
my_so.data.KeylockPinned = GameData.KeylockPinned;
} else {
GameData.KeylockPinned = my_so.data.KeylockPinned;
}
if (my_so.data.UntargetablePinned == undefined) {
my_so.data.UntargetablePinned = GameData.UntargetablePinned;
} else {
GameData.UntargetablePinned = my_so.data.UntargetablePinned;
}
}
function newPreset(N, B, E, M, H1, H2, A, S, I, W, Ac) {
GameData.Presets[N] = new Object();
GameData.Presets[N].bodyFrame = B;
GameData.Presets[N].eyeFrame = E;
GameData.Presets[N].mouthFrame = M;
GameData.Presets[N].headFrame = H1;
GameData.Presets[N].hatFrame = H2;
GameData.Presets[N].armFrame = A;
GameData.Presets[N].shoeFrame = S;
GameData.Presets[N].itemFrame = I;
GameData.Presets[N].wingFrame = W;
GameData.Presets[N].accFrame = Ac;
}
function compareString(str1, str2, num) {
var _local3 = true;
l = 0;
while (l < num) {
if (str1.charAt(l) != str2.charAt(l)) {
trace((str1.charAt(l) + "_") + str2.charAt(l));
_local3 = false;
}
l++;
}
return(_local3);
}
function playSound(T) {
if (!GameData.Mute) {
_root.GameData.Sounds[T].start();
}
}
function setBGDrag(MC) {
MC.onPress = function () {
this._parent.startDrag();
};
MC.onRelease = function () {
this._parent.stopDrag();
};
MC.onReleaseOutside = function () {
this._parent.stopDrag();
};
}
function SwapColor(MC, P, C) {
var _local1 = new Color(MC);
_local1.setRGB(GameData.Palette[P][C]);
}
function PositionMenu(MC, H, V, X, Y, Xclip, Yclip) {
GameData.Menus.Targets[MC._name] = MC;
MC.Valign = V;
MC.Halign = H;
MC.Xmod = X;
MC.Ymod = Y;
MC.XClip = Xclip;
MC.YClip = Yclip;
}
function resetRenameMenu() {
Interface.RenameMenu.OK.onRelease = function () {
Interface.TargetFrame.bName.text = Interface.RenameMenu.iName.text;
if (GameData.TargetType == "Character") {
GameData.Characters[GameData.Target._name].Name = Interface.RenameMenu.iName.text;
} else if (GameData.TargetType == "Object") {
GameData.Objects[GameData.Target._name].Name = Interface.RenameMenu.iName.text;
} else if (GameData.TargetType == "SpeechBubble") {
GameData.SpeechBubbles[GameData.Target._name].Name = Interface.RenameMenu.iName.text;
} else if (GameData.TargetType == "Screenshot") {
GameData.Screenshots[GameData.Target._name].Name = Interface.RenameMenu.iName.text;
}
SwapColor(this.BG, "Buttons", 1);
CloseMenus(3);
};
}
function fixScales() {
if (game.Type == "Pong") {
pongFixScale();
}
var _local2 = Math.round((Stage.width * 100) / 550);
var _local1 = Math.round((Stage.height * 100) / 400);
if (_local2 < _local1) {
nFscale = _local2;
} else {
nFscale = _local1;
}
if (GameData.BGAutoScale) {
Interface.BGMenu.sX.text = nFscale;
bg._xscale = nFscale;
bg._yscale = nFscale;
bg._x = (Stage.width - (550 * (nFscale / 100))) / 2;
bg._y = (Stage.height - (400 * (nFscale / 100))) / 2;
}
ClearClicker._width = Stage.width;
ClearClicker._height = Stage.height;
Dimmer._width = Stage.width;
Dimmer._height = Stage.height;
ClickBlocker._width = Stage.width;
ClickBlocker._height = Stage.height;
TopDimmer._width = Stage.width;
TopDimmer._height = Stage.height;
if (GameData.Menus.AutoScale) {
nFscale = Math.floor(nFscale / 5) * 5;
GameData.Menus.Size = nFscale;
Interface._xscale = GameData.Menus.Size;
Interface._yscale = GameData.Menus.Size;
}
}
function fixOpsMenu() {
if (GameData.ClickStopsSpin) {
Interface.OpsMenu.ID0.gotoAndStop(2);
} else {
Interface.OpsMenu.ID0.gotoAndStop(1);
}
if (GameData.Mute) {
Interface.OpsMenu.ID1.gotoAndStop(2);
} else {
Interface.OpsMenu.ID1.gotoAndStop(1);
}
if (GameData.PresetWithItems) {
Interface.OpsMenu.ID2.gotoAndStop(2);
} else {
Interface.OpsMenu.ID2.gotoAndStop(1);
}
if (GameData.MassLocking) {
Interface.OpsMenu.ID3.gotoAndStop(2);
} else {
Interface.OpsMenu.ID3.gotoAndStop(1);
}
if (GameData.OldQS) {
Interface.OpsMenu.ID4.gotoAndStop(2);
} else {
Interface.OpsMenu.ID4.gotoAndStop(1);
}
if (GameData.KeepColors) {
Interface.OpsMenu.ID5.gotoAndStop(2);
} else {
Interface.OpsMenu.ID5.gotoAndStop(1);
}
if (GameData.HeadRotates) {
Interface.OpsMenu.ID6.gotoAndStop(2);
} else {
Interface.OpsMenu.ID6.gotoAndStop(1);
}
if (GameData.SwitchArrows) {
Interface.OpsMenu.ID7.gotoAndStop(2);
} else {
Interface.OpsMenu.ID7.gotoAndStop(1);
}
if (GameData.KeylockPinned) {
Interface.OpsMenu.ID8.gotoAndStop(2);
} else {
Interface.OpsMenu.ID8.gotoAndStop(1);
}
if (GameData.UntargetablePinned) {
Interface.OpsMenu.ID9.gotoAndStop(2);
} else {
Interface.OpsMenu.ID9.gotoAndStop(1);
}
Interface.OpsMenu.dChar.text = GameData.DefaultChar;
Interface.OpsMenu.aSpeed.text = GameData.ASpeed;
}
function openCOMenu() {
setCharLook(Interface.COMenu.char, GameData.Characters[GameData.Target._name]);
l = 0;
while (l < GameData.PartsArray.length) {
if (GameData.Characters[GameData.Target._name].Locks[GameData.PartsArray[l]]) {
Interface.COMenu["Prev" + l]._visible = false;
Interface.COMenu["Next" + l]._visible = false;
Interface.COMenu["Lock" + l].gotoAndStop(2);
} else {
Interface.COMenu["Prev" + l]._visible = true;
Interface.COMenu["Next" + l]._visible = true;
Interface.COMenu["Lock" + l].gotoAndStop(1);
}
l++;
}
Interface.COMenu.cName.text = GameData.Characters[GameData.Target._name].Name;
Interface.COMenu.cScale.text = GameData.Characters[GameData.Target._name].Scale;
Interface.COMenu.cRot.text = GameData.Target._rotation;
Interface.COMenu.cX.text = GameData.Target._x;
Interface.COMenu.cY.text = GameData.Target._y;
CloseMenus(1);
OpenMenu(1, Interface.COMenu, Interface.EditMenu.ID0.BG);
}
function updateCOMenu() {
if ((GameData.TargetType == "Character") && (Interface.COMenu._visible)) {
Interface.COMenu.cName.text = GameData.Characters[GameData.Target._name].Name;
Interface.COMenu.cScale.text = GameData.Characters[GameData.Target._name].Scale;
Interface.COMenu.cRot.text = GameData.Target._rotation;
Interface.COMenu.cX.text = GameData.Target._x;
Interface.COMenu.cY.text = GameData.Target._y;
}
}
function setMenuPositions() {
var _local1 = new Array();
for (m in GameData.Menus.Targets) {
_local1.push(m);
}
var _local2 = 0;
while (_local1.length > 0) {
if (tFMC(_local1, GameData.Menus.Targets[_local1[_local2]].XClip._name) || (tFMC(_local1, GameData.Menus.Targets[_local1[_local2]].YClip._name))) {
_local2++;
} else {
fixMenuScale(_local1[_local2]);
_local1.splice(_local2, 1);
}
if (_local2 >= _local1.length) {
_local2 = 0;
}
}
}
function tFMC(tAr, tM) {
j = 0;
while (j < tAr.length) {
if (tAr[j] == tM) {
return(true);
}
j++;
}
return(false);
}
function fixMenuScale(m) {
if (GameData.Menus.Targets[m].Valign == "T") {
GameData.Menus.Targets[m]._y = GameData.Menus.Targets[m].Ymod;
} else if (GameData.Menus.Targets[m].Valign == "B") {
GameData.Menus.Targets[m]._y = (400 - GameData.Menus.Targets[m]._height) + GameData.Menus.Targets[m].Ymod;
} else if (GameData.Menus.Targets[m].Valign == "C") {
GameData.Menus.Targets[m]._y = GameData.Menus.Targets[m].YClip._y + GameData.Menus.Targets[m].Ymod;
} else {
GameData.Menus.Targets[m]._y = (200 - (GameData.Menus.Targets[m]._height / 2)) + GameData.Menus.Targets[m].Ymod;
}
if (GameData.Menus.Targets[m].Halign == "L") {
GameData.Menus.Targets[m]._x = GameData.Menus.Targets[m].Xmod;
} else if (GameData.Menus.Targets[m].Halign == "R") {
GameData.Menus.Targets[m]._x = (400 - GameData.Menus.Targets[m]._height) + GameData.Menus.Targets[m].Xmod;
} else if (GameData.Menus.Targets[m].Halign == "C") {
GameData.Menus.Targets[m]._x = GameData.Menus.Targets[m].XClip._x + GameData.Menus.Targets[m].Xmod;
} else {
GameData.Menus.Targets[m]._x = (200 - (GameData.Menus.Targets[m]._height / 2)) + GameData.Menus.Targets[m].Xmod;
}
}
function makeButton(T, N, L, D) {
T.attachMovie("Button", N, D);
Center(T[N]);
T[N].bName.text = L;
setButtonStyle(T[N]);
}
function makeNewMenu(T, N, D) {
T.createEmptyMovieClip(N, GameData.Menus.DMax++);
T[N].Size = D;
i = 0;
while (i < D) {
T[N].attachMovie("MenuItem", "ID" + i, i);
T[N]["ID" + i]._y = i * 20;
T[N]["ID" + i].bName.text = "Menu Item " + i;
setButtonStyle(T[N]["ID" + i]);
T[N]["ID" + i].onRelease = function () {
CallFunction(this);
SwapColor(this.BG, "Buttons", 1);
};
i++;
}
T[N]._visible = false;
}
function CallFunction(MC) {
var _local1 = MC.Action.split("-");
if (_local1.length > 1) {
if (_local1[0] == "Open") {
GameData.Menus.Functions.OpenMenu(MC, _local1[1], Number(_local1[2]));
} else if (_local1.length == 2) {
GameData.Menus.Functions[_local1[0]](MC, _local1[1]);
}
} else {
GameData.Menus.Functions[MC.Action](MC);
}
}
function AddMenuItem(T, B, F) {
GameData.Menus[T].Items.push({Name:B, Action:F});
}
function makeMenu(T, N, D, MI, X, Y) {
T.createEmptyMovieClip(N, D);
ScaleMenu(T[N]);
i = 0;
while (i < MI.length) {
T[N].attachMovie("MenuItem", "ID" + i, i);
T[N]["ID" + i]._x = X;
T[N]["ID" + i]._y = i * -20;
T[N]["ID" + i].bName.text = MI[i];
if (MI[i] != "QuickChange") {
setButtonStyle(T[N]["ID" + i]);
}
i++;
}
T[N]._y = Y - T[N]._height;
T[N]._visible = false;
}
function resetHelp() {
playSound("Pop");
Interface.HelpWindow.Next._visible = false;
Interface.HelpWindow.TellMore._visible = false;
Interface.HelpWindow.WalfasLink._visible = false;
Interface.HelpWindow.BasicHelpMenu._visible = true;
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Intro;
}
function setMenuListener(MC, T, L) {
if (MC._parent._name == "PartsMenu") {
MC.onRelease = function () {
if (GameData.Locks[this.bName.text] || (GameData.Characters[GameData.Target._name].Locks[this.bName.text])) {
OpenMenu(L, Interface.HelpWindow, this);
resetHelp();
Interface.HelpWindow.BasicHelpMenu._visible = false;
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Locks;
Interface.HelpWindow.Next._visible = true;
Interface.HelpWindow.Next.onRelease = function () {
Interface.HelpWindow._visible = false;
};
} else if (T._visible) {
CloseMenus(L);
SwapColor(this.BG, "Buttons", 1);
} else {
OpenMenu(L, T, this.BG);
SwapColor(this.BG, "Buttons", 2);
}
};
} else if (T._name == "PresetMenu") {
MC.onRelease = function () {
i = 0;
while (i < 13) {
TMFix(Interface.PresetMenu.Ops["ID" + i], "PresetList");
i++;
}
if (T._visible) {
CloseMenus(L);
SwapColor(this.BG, "Buttons", 1);
} else {
OpenMenu(L, T, this);
SwapColor(this.BG, "Buttons", 2);
}
};
} else {
MC.onRelease = function () {
if (T._visible) {
CloseMenus(L);
SwapColor(this.BG, "Buttons", 1);
} else {
OpenMenu(L, T, this);
SwapColor(this.BG, "Buttons", 2);
}
};
}
MC.onReleaseOutside = function () {
if (T._visible) {
SwapColor(this.BG, "Buttons", 2);
} else {
SwapColor(this.BG, "Buttons", 0);
}
};
MC.onRollOut = function () {
if (T._visible) {
SwapColor(this.BG, "Buttons", 2);
} else {
SwapColor(this.BG, "Buttons", 0);
}
};
}
function NewOpenMenu(MC, T, L) {
if (T._visible) {
CloseMenus(L);
} else {
OpenMenu(L, T, MC);
}
}
function addPinPreview(MC) {
MC.attachMovie("Pin", "pin", 15);
MC.pin._x = 100;
MC.pin._y = -7;
MC.pin._xscale = -30;
MC.pin._yscale = 30;
MC.pin._visible = false;
}
function checkLocks(T, M) {
l = 0;
while (l < 10) {
if (T.Locks[M["ID" + l].bName.text]) {
M["ID" + l].checkbox.gotoAndStop(2);
} else {
M["ID" + l].checkbox.gotoAndStop(1);
}
l++;
}
}
function setButtonStyle(MC) {
SwapColor(MC.BG, "Buttons", 0);
MC.BG._alpha = GameData.Buttons.Opacity;
var _local3 = new TextFormat();
_local3.color = GameData.Palette.Buttons[3];
MC.bName.setTextFormat(_local3);
MC.onRollOver = function () {
SwapColor(this.BG, "Buttons", 1);
};
MC.onRollOut = function () {
SwapColor(this.BG, "Buttons", 0);
};
MC.onPress = function () {
SwapColor(this.BG, "Buttons", 2);
};
MC.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
};
MC.onReleaseOutside = function () {
SwapColor(this.BG, "Buttons", 0);
};
}
function setManipulator() {
Manipulator._x = GameData.Target._x;
Manipulator._y = GameData.Target._y;
setOrbit(Manipulator.RotateTool, GameData.Target._rotation, 30);
Manipulator.ScaleTool._x = GameData.Target._xscale / 2;
Manipulator.ScaleTool._y = GameData.Target._yscale / 2;
if (GameData.TargetType == "Cluster") {
Manipulator.Positioner._visible = true;
Manipulator.Positioner._x = GameData.Clusters[GameData.Target._name].Px;
Manipulator.Positioner._y = GameData.Clusters[GameData.Target._name].Py;
Manipulator.BScaleTool._visible = false;
Manipulator.BTextTool._visible = false;
} else if (GameData.TargetType == "SpeechBubble") {
Manipulator.Positioner._visible = true;
Manipulator.Positioner._x = GameData.Target.Bubble._x;
Manipulator.Positioner._y = GameData.Target.Bubble._y;
Manipulator.BScaleTool._visible = true;
Manipulator.BScaleTool._x = GameData.Target.Bubble._xscale;
Manipulator.BScaleTool._y = GameData.Target.Bubble._yscale;
Manipulator.BTextTool._visible = true;
Manipulator.BTextTool._x = GameData.Target.D._x;
Manipulator.BTextTool._y = GameData.Target.D._y;
} else {
Manipulator.Positioner._visible = false;
Manipulator.BScaleTool._visible = false;
Manipulator.BTextTool._visible = false;
}
Manipulator._visible = true;
}
function makeThumbMenu(MC, T, pT, pX, pY, pS, X, Y, sT) {
if (T == "BGs") {
var _local3 = 250;
} else {
var _local3 = 200;
}
MC.SMod = 0;
MC.attachMovie("BGBox", "DaMask", 5);
MC.DaMask._width = _local3;
MC.DaMask._height = 240;
MC.createEmptyMovieClip("Ops", 10);
MC.Ops.Roll = false;
MC.Ops.Scrolled = 0;
MC.Ops.Type = sT;
MC.Ops.ScrolledT = 0;
MC.Ops.Top = 0;
if (GameData[T]) {
MC.Ops.Max = (GameData[T].length - 12) * 20;
} else {
MC.Ops.Max = (GameData.Parts[T].length - 12) * 20;
}
MC.Ops.setMask(MC.DaMask);
i = 0;
while (i < 13) {
MC.Ops.attachMovie("ObjMenuItem", "ID" + i, i);
MC.Ops["ID" + i].ID = i;
MC.Ops["ID" + i].BG._width = _local3;
MC.Ops["ID" + i].bName._width = _local3;
MC.Ops["ID" + i]._y = (i * 20) - 2;
MC.Ops["ID" + i]._x = 30;
MC.Ops["ID" + i].pX = pX;
MC.Ops["ID" + i].pY = pY;
MC.Ops["ID" + i].pS = pS;
MC.Ops["ID" + i].attachMovie(pT, "preview", 10);
if (T == "Eyes") {
MC.Ops["ID" + i].attachMovie("Eye2", "preview2", 9);
} else if (T == "Hair") {
MC.Ops["ID" + i].attachMovie("Hair2", "preview2", 11);
}
TMFix(MC.Ops["ID" + i], T);
setButtonStyle(MC.Ops["ID" + i]);
MC.Ops["ID" + i].onRollOver = function () {
MC.Ops.Roll = true;
SwapColor(this.BG, "Buttons", 1);
};
MC.Ops["ID" + i].onRollOut = function () {
MC.Ops.Roll = false;
SwapColor(this.BG, "Buttons", 0);
};
if (T == "BGs") {
MC.Ops["ID" + i].onRelease = function () {
SwapBG(this.ID);
SwapColor(this.BG, "Buttons", 1);
};
} else if (T == "PresetList") {
MC.Ops["ID" + i].onRelease = function () {
makeChar(GameData.PresetList[this.ID]);
SwapColor(this.BG, "Buttons", 1);
};
} else if (T == "ObjectArray") {
MC.Ops["ID" + i].onRelease = function () {
makeObject(this.ID);
SwapColor(this.BG, "Buttons", 1);
};
} else {
MC.Ops["ID" + i].onRelease = function () {
RootPartSwap(GameData.Target[this._parent.Type], T, this.ID);
SwapColor(this.BG, "Buttons", 1);
};
}
i++;
}
MC.Ops.onEnterFrame = function () {
if (this.Roll) {
this.ScrollRate = Math.round(((_root._ymouse - ((120 + this._parent.SMod) * (Interface._yscale / 100))) - this._parent._y) / GameData.MSRate);
if (Key.isDown(16)) {
this.ScrollRate = this.ScrollRate * 2;
}
if ((this.ScrolledT + this.ScrollRate) < 0) {
this._y = this._y - (this.ScrolledT * -1);
this.Scrolled = this.Scrolled + (this.ScrolledT * -1);
this.ScrolledT = 0;
} else if ((this.ScrolledT + this.ScrollRate) > this.Max) {
this._y = this._y - (this.Max - this.ScrolledT);
this.Scrolled = this.Scrolled + (this.Max - this.ScrolledT);
this.ScrolledT = this.Max;
} else {
this._y = this._y - this.ScrollRate;
this.Scrolled = this.Scrolled + this.ScrollRate;
this.ScrolledT = this.ScrolledT + this.ScrollRate;
}
if (this.Scrolled > 20) {
while (this.Scrolled > 20) {
this["ID" + this.Top]._y = this["ID" + this.Top]._y + 260;
this["ID" + this.Top].ID = this["ID" + this.Top].ID + 13;
TMFix(this["ID" + this.Top], T);
this.Scrolled = this.Scrolled - 20;
this.Top++;
if (this.Top == 13) {
this.Top = 0;
}
}
} else if (this.Scrolled < 0) {
while (this.Scrolled < 0) {
this.Top--;
if (this.Top < 0) {
this.Top = 12;
}
this["ID" + this.Top]._y = this["ID" + this.Top]._y - 260;
this["ID" + this.Top].ID = this["ID" + this.Top].ID - 13;
TMFix(this["ID" + this.Top], T);
this.Scrolled = this.Scrolled + 20;
}
}
}
};
if (MC._name == "BGMenu") {
PositionMenu(MC, "C", "C", X, Y, Interface.MainMenu, Interface.MainMenu);
} else {
PositionMenu(MC, "C", "C", X, Y, Interface.TargetFrame, Interface.TargetFrame);
}
MC._visible = false;
}
function TMFix(MC, T) {
if (GameData.Parts[T]) {
MC.preview._x = MC.pX + GameData.Parts[T][MC.ID][2];
MC.preview._y = MC.pY + GameData.Parts[T][MC.ID][3];
MC.preview._xscale = MC.pS + GameData.Parts[T][MC.ID][4];
MC.preview._yscale = MC.pS + GameData.Parts[T][MC.ID][4];
if (T == "Eyes") {
MC.preview2._x = (MC.pX + GameData.Parts[T][MC.ID][2]) - 10;
MC.preview2._y = (MC.pY + GameData.Parts[T][MC.ID][3]) - 40;
MC.preview2._xscale = MC.pS + GameData.Parts[T][MC.ID][4];
MC.preview2._yscale = MC.pS + GameData.Parts[T][MC.ID][4];
} else if (T == "Hair") {
MC.preview.eye2._visible = false;
MC.preview2._x = MC.pX + GameData.Parts[T][MC.ID][2];
MC.preview2._y = MC.pY + GameData.Parts[T][MC.ID][3];
MC.preview2._xscale = MC.pS + GameData.Parts[T][MC.ID][4];
MC.preview2._yscale = MC.pS + GameData.Parts[T][MC.ID][4];
}
MC.swapDepths(MC.ID);
if ((MC.ID < 0) || (MC.ID >= GameData.Parts[T].length)) {
MC._visible = false;
} else {
MC._visible = true;
if (GameData.Parts[T][MC.ID] == "none") {
MC.bName.text = "None";
MC.preview.gotoAndStop(1);
MC.preview._visible = false;
MC.preview2._visible = false;
} else {
MC.preview._visible = true;
if (GameData.Parts[T][MC.ID] == "random") {
MC.bName.text = "Random";
MC.preview.gotoAndPlay(1);
if (T == "Hair") {
MC.preview.HairColor.gotoAndPlay(1);
}
} else {
MC.bName.text = GameData.Parts[T][MC.ID][0];
MC.preview.gotoAndStop(GameData.Parts[T][MC.ID][1]);
if (T == "Eyes") {
if (GameData.Parts[T][MC.ID][5]) {
MC.preview2._visible = true;
MC.preview2.gotoAndStop(GameData.Parts[T][MC.ID][5]);
} else {
MC.preview2._visible = false;
}
} else if (T == "Hair") {
MC.preview.HairColor.gotoAndStop(GameData.Parts[T][MC.ID][1]);
if (GameData.Parts[T][MC.ID][5]) {
MC.preview2._visible = true;
MC.preview2.gotoAndStop(GameData.Parts[T][MC.ID][5]);
MC.preview2.HairColor.gotoAndStop(GameData.Parts[T][MC.ID][5]);
} else {
MC.preview2._visible = false;
}
}
}
}
}
} else {
if (T == "ObjectArray") {
MC.preview._x = MC.pX + GameData.ObjectArray[MC.ID][2];
MC.preview._y = MC.pY + GameData.ObjectArray[MC.ID][3];
MC.preview._xscale = MC.pS + GameData.ObjectArray[MC.ID][4];
MC.preview._yscale = MC.pS + GameData.ObjectArray[MC.ID][4];
} else {
MC.preview._x = MC.pX;
MC.preview._y = MC.pY;
MC.preview._xscale = MC.pS;
MC.preview._yscale = MC.pS;
}
MC.swapDepths(MC.ID);
if ((MC.ID < 0) || (MC.ID >= GameData[T].length)) {
MC._visible = false;
} else {
MC._visible = true;
if (GameData[T][MC.ID] == "none") {
MC.bName.text = "None";
MC.preview.gotoAndStop(1);
MC.preview._visible = false;
} else {
MC.preview._visible = true;
if (T == "PresetList") {
MC.preview.hair.eye2._visible = false;
MC.bName.text = GameData[T][MC.ID];
if (GameData.Parts.Hats[GameData.Presets[GameData[T][MC.ID]].hatFrame][1]) {
MC.preview.hat.gotoAndStop(GameData.Parts.Hats[GameData.Presets[GameData[T][MC.ID]].hatFrame][1]);
MC.preview.hat._visible = true;
} else {
MC.preview.hat._visible = false;
}
MC.preview.hair.gotoAndStop(GameData.Parts.Hair[GameData.Presets[GameData[T][MC.ID]].headFrame][1]);
MC.preview.hair.HairColor.gotoAndStop(GameData.Parts.Hair[GameData.Presets[GameData[T][MC.ID]].headFrame][1]);
if (GameData.Parts.Hair[GameData.Presets[GameData[T][MC.ID]].headFrame][5]) {
MC.preview.head2.gotoAndStop(GameData.Parts.Hair[GameData.Presets[GameData[T][MC.ID]].headFrame][5]);
MC.preview.head2.HairColor.gotoAndStop(GameData.Parts.Hair[GameData.Presets[GameData[T][MC.ID]].headFrame][5]);
MC.preview.head2._visible = true;
} else {
MC.preview.head2._visible = false;
}
MC.preview.eyes.gotoAndStop(GameData.Parts.Eyes[GameData.Presets[GameData[T][MC.ID]].eyeFrame][1]);
if (GameData.Parts.Mouth[GameData.Presets[GameData[T][MC.ID]].mouthFrame][1]) {
MC.preview.mouth.gotoAndStop(GameData.Parts.Mouth[GameData.Presets[GameData[T][MC.ID]].mouthFrame][1]);
MC.preview.mouth._visible = true;
} else {
MC.preview.mouth._visible = false;
}
if (GameData.Parts.Acc[GameData.Presets[GameData[T][MC.ID]].accFrame][1]) {
MC.preview.accessory.gotoAndStop(GameData.Parts.Acc[GameData.Presets[GameData[T][MC.ID]].accFrame][1]);
MC.preview.accessory._visible = true;
} else {
MC.preview.accessory._visible = false;
}
} else if (GameData[T][MC.ID] == "random") {
MC.bName.text = "Random";
MC.preview.play();
} else {
MC.bName.text = GameData[T][MC.ID][0];
MC.preview.gotoAndStop(GameData[T][MC.ID][1]);
}
}
}
}
}
function ICenter(MC) {
MC._x = 275 - (MC._width / 2);
MC._y = 200 - (MC._height / 2);
}
function OpenMenu(L, M, S) {
if (GameData[("L" + L) + "Menu"] != M) {
CloseMenus(L);
}
GameData[("L" + L) + "Menu"] = M;
GameData[("L" + L) + "MenuS"] = S;
S.onRollOut = function () {
SwapColor(this.BG, "Buttons", 2);
};
M._visible = true;
}
function CloseMenus(L) {
while (L <= GameData.Menus.Max) {
if (GameData[("L" + L) + "Menu"]) {
GameData[("L" + L) + "Menu"]._visible = false;
SwapColor(GameData[("L" + L) + "MenuS"].BG, "Buttons", 0);
GameData[("L" + L) + "MenuS"].onRollOut = function () {
SwapColor(this.BG, "Buttons", 0);
};
}
L++;
}
}
function fixMenuDepths(Mar) {
i = 0;
while (i < Mar.length) {
GameData.Menus.Targets[Mar[i]].swapDepths((GameData.Menus.DMax - 1) - i);
i++;
}
}
function getRGB(R, G, B) {
var _local1 = new Array();
var _local2 = "0x";
_local1.push(Math.floor(R / 16));
_local1.push(R - (Math.floor(R / 16) * 16));
_local1.push(Math.floor(G / 16));
_local1.push(G - (Math.floor(G / 16) * 16));
_local1.push(Math.floor(B / 16));
_local1.push(B - (Math.floor(B / 16) * 16));
i = 0;
while (i < _local1.length) {
if (_local1[i] == 10) {
_local1[i] = "A";
} else if (_local1[i] == 11) {
_local1[i] = "B";
} else if (_local1[i] == 12) {
_local1[i] = "C";
} else if (_local1[i] == 13) {
_local1[i] = "D";
} else if (_local1[i] == 14) {
_local1[i] = "E";
} else if (_local1[i] == 15) {
_local1[i] = "F";
}
_local2 = _local2 + _local1[i];
i++;
}
return(_local2);
}
function toRGB(C) {
if (C.toUpperCase() == "A") {
return(10);
}
if (C.toUpperCase() == "B") {
return(11);
}
if (C.toUpperCase() == "C") {
return(12);
}
if (C.toUpperCase() == "D") {
return(13);
}
if (C.toUpperCase() == "E") {
return(14);
}
if (C.toUpperCase() == "F") {
return(15);
}
return(Number(C));
}
function getFriction(N) {
return(1 - (N / 100));
}
function setOrbit(MC, A, D) {
A = A - 90;
var _local1 = (A * Math.PI) / 180;
var _local3 = D * Math.cos(_local1);
var _local2 = D * Math.sin(_local1);
MC._x = _local3;
MC._y = _local2;
}
function Propel(MC, A, D) {
A = A - 90;
var _local1 = (A * Math.PI) / 180;
var _local3 = D * Math.cos(_local1);
var _local2 = D * Math.sin(_local1);
MC.XMov = MC.XMov + _local3;
MC.YMov = MC.YMov + _local2;
}
function getDist(MC, X, Y) {
if (MC._parent._name == "fusionlab") {
var _local3 = X - (((MC._parent._x + MC._x) * (bg._xscale / 100)) + MC._parent._parent._x);
var _local2 = Y - (((MC._parent._y + MC._y) * (bg._yscale / 100)) + MC._parent._parent._y);
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
return(Math.sqrt(((X - MC._x) * (X - MC._x)) + ((Y - MC._y) * (Y - MC._y))));
}
function getMouseAngle(X, Y) {
var _local3 = X - _root._xmouse;
var _local2 = Y - _root._ymouse;
angle = (-Math.atan2(_local3, _local2)) / (Math.PI/180);
return(angle);
}
function getAngle(X, Y, X2, Y2) {
var _local2 = X - X2;
var _local1 = Y - Y2;
angle = (-Math.atan2(_local2, _local1)) / (Math.PI/180);
return(angle);
}
function getDID(N) {
i = 0;
while (i < GameData.Depths.StageList.length) {
if (GameData.Depths.StageList[i].Name == N) {
var _local1 = i;
var _local2 = true;
}
i++;
}
if (_local2) {
return(_local1);
}
trace("Doesn't exist in depth array!");
}
function VFlip() {
if (GameData.TargetType == "SpeechBubble") {
GameData.Target.Bubble.YFace = GameData.Target.Bubble.YFace * -1;
GameData.Target.Bubble._yscale = GameData.Target.Bubble._yscale * -1;
} else {
GameData.Target.YFace = GameData.Target.YFace * -1;
GameData.Target._yscale = GameData.Target._yscale * -1;
}
}
function HFlip() {
if (GameData.TargetType == "SpeechBubble") {
GameData.Target.Bubble.XFace = GameData.Target.Bubble.XFace * -1;
GameData.Target.Bubble._xscale = GameData.Target.Bubble._xscale * -1;
} else {
GameData.Target.XFace = GameData.Target.XFace * -1;
GameData.Target._xscale = GameData.Target._xscale * -1;
}
}
function Scramble(MC) {
MC.Spin = random(200) - 100;
MC.XMov = random(200) - 100;
MC.YMov = random(200) - 100;
}
function screenShot(MC) {
var _local2 = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
MC.attachBitmap(_local2, 10, "auto", true);
var _local5 = new flash.geom.Matrix();
var _local3 = new flash.geom.Matrix();
var _local1 = new flash.geom.Matrix();
_local1.scale(bg._xscale / 100, bg._yscale / 100);
_local1.translate(bg._x, bg._y);
var _local4 = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
_local3.concat(_local1);
if (GameData.BG != 0) {
_local2.draw(bg, _local3, _local4);
}
_local2.draw(stage, _local5, _local4);
}
function mimeLook(MC, T) {
T.head.gotoAndStop(MC.head._currentframe);
T.head.eye2._visible = MC.head.eye2._visible;
T.head.eye2.gotoAndStop(MC.head.eye2._currentframe);
T.head.HairColor.gotoAndStop(MC.head.HairColor._currentframe);
if (MC.head.HairColor.RGB) {
ColorPalette(T.head.HairColor, MC.head.HairColor.RGB);
}
T.arms.gotoAndStop(MC.arms._currentframe);
T.legs.gotoAndStop(MC.legs._currentframe);
T.body.gotoAndStop(MC.body._currentframe);
T.eyes.gotoAndStop(MC.eyes._currentframe);
T.hat.gotoAndStop(MC.hat._currentframe);
T.head2.gotoAndStop(MC.head2._currentframe);
T.head2.HairColor.gotoAndStop(MC.head2._currentframe);
if (MC.head.HairColor.RGB) {
ColorPalette(T.head2.HairColor, MC.head.HairColor.RGB);
}
T.accessory.gotoAndStop(MC.accessory._currentframe);
T.item.gotoAndStop(MC.item._currentframe);
T.wings.gotoAndStop(MC.wings._currentframe);
T.mouth.gotoAndStop(MC.mouth._currentframe);
T.hat._visible = MC.hat._visible;
T.head2._visible = MC.head2._visible;
T.accessory._visible = MC.accessory._visible;
T.arms._visible = MC.arms._visible;
T.legs._visible = MC.legs._visible;
T.item._visible = MC.item._visible;
T.wings._visible = MC.wings._visible;
T.mouth._visible = MC.mouth._visible;
}
function spawnChar(MC, O, D) {
}
function makePresetChar(T, P, N, D) {
T.attachMovie("Char", N, D);
T[N].head.gotoAndStop(GameData.Parts.Hair[GameData.Presets[P].headFrame][1]);
T[N].head.eye2._visible = false;
T[N].head.HairColor.gotoAndStop(GameData.Parts.Hair[GameData.Presets[P].headFrame][1]);
T[N].body.gotoAndStop(GameData.Parts.Body[GameData.Presets[P].bodyFrame][1]);
T[N].arms.gotoAndStop(GameData.Parts.Arms[GameData.Presets[P].armFrame][1]);
T[N].legs.gotoAndStop(GameData.Parts.Shoes[GameData.Presets[P].shoeFrame][1]);
T[N].eyes.gotoAndStop(GameData.Parts.Eyes[GameData.Presets[P].eyeFrame][1]);
if (GameData.Parts.Hair[GameData.Presets[P].headFrame][5]) {
T[N].head2.gotoAndStop(GameData.Parts.Hair[GameData.Presets[P].headFrame][5]);
T[N].head2.HairColor.gotoAndStop(GameData.Parts.Hair[GameData.Presets[P].headFrame][5]);
T[N].head2._visible = true;
} else {
T[N].head2._visible = false;
}
if (GameData.Parts.Hats[GameData.Presets[P].hatFrame] != "none") {
T[N].hat.gotoAndStop(GameData.Parts.Hair[GameData.Presets[P].hatFrame][1] - 1);
T[N].hat._visible = true;
} else {
T[N].hat._visible = false;
}
if (GameData.Parts.Mouth[GameData.Presets[P].mouthFrame] != "none") {
T[N].mouth.gotoAndStop(GameData.Parts.Mouth[GameData.Presets[P].mouthFrame][1]);
T[N].mouth._visible = true;
} else {
T[N].mouth._visible = false;
}
if (GameData.Parts.Acc[GameData.Presets[P].accFrame] != "none") {
T[N].accessory.gotoAndStop(GameData.Parts.Acc[GameData.Presets[P].accFrame][1]);
T[N].accessory._visible = true;
} else {
T[N].accessory._visible = false;
}
if (GameData.Parts.Back[GameData.Presets[P].wingFrame] != "none") {
T[N].wings.gotoAndStop(GameData.Parts.Back[GameData.Presets[P].wingFrame][1]);
T[N].wings._visible = true;
} else {
T[N].wings._visible = false;
}
if (GameData.Parts.Items[GameData.Presets[P].itemFrame] != "none") {
T[N].item.gotoAndStop(GameData.Parts.Items[GameData.Presets[P].itemFrame][1]);
T[N].item._visible = true;
} else {
T[N].item._visible = false;
}
}
function SetMenu(L, T, S, X, Y) {
if ((Interface[("Level" + L) + "Menu"].Type != T) || (!Interface[("Level" + L) + "Menu"]._visible)) {
CloseMenus(L);
GameData[("L" + L) + "Menu"] = Interface[("Level" + L) + "Menu"];
GameData[("L" + L) + "MenuS"] = S;
SwapColor(S.BG, "Buttons", 2);
S.onRollOut = function () {
SwapColor(this.BG, "Buttons", 2);
};
Interface[("Level" + L) + "Menu"]._visible = true;
Interface[("Level" + L) + "Menu"].Type = T;
Interface[("Level" + L) + "Menu"]._x = (S._x + X) + GameData.Menus[T].XMod;
Interface[("Level" + L) + "Menu"]._y = ((S._y + Y) - (GameData.Menus[T].Items.length * 20)) + GameData.Menus[T].YMod;
i = 0;
while (i < Interface[("Level" + L) + "Menu"].Size) {
if (i < GameData.Menus[T].Items.length) {
Interface[("Level" + L) + "Menu"]["ID" + i]._visible = true;
Interface[("Level" + L) + "Menu"]["ID" + i].Action = GameData.Menus[T].Items[i].Action;
Interface[("Level" + L) + "Menu"]["ID" + i].bName.text = GameData.Menus[T].Items[i].Name;
Interface[("Level" + L) + "Menu"]["ID" + i].bName._width = GameData.Menus[T].Size;
Interface[("Level" + L) + "Menu"]["ID" + i].BG._width = GameData.Menus[T].Size;
} else {
Interface[("Level" + L) + "Menu"]["ID" + i]._visible = false;
}
i++;
}
} else {
CloseMenus(L);
}
}
function fixTargetScale(tScale) {
GameData[getArray()][GameData.Target._name].Scale = tScale;
if (GameData.TargetType == "Rain") {
for (d in GameData.Target) {
if (d.substr(0, 4) == "Drop") {
fixDropScale(GameData.Target[d]);
}
}
} else if (GameData.TargetType == "SpeechBubble") {
GameData.Target._xscale = tScale;
GameData.Target._yscale = tScale;
} else {
GameData.Target._xscale = tScale * GameData.Target.XFace;
GameData.Target._yscale = tScale * GameData.Target.YFace;
}
}
function Target(MC) {
if (!GameData.GameOn) {
if (GameData.Characters[MC._name]) {
if (MC == stage["Boxing Chen"].Target) {
resetBoxingChen();
}
CloseMenus(1);
GameData.Target = MC;
GameData.TargetType = "Character";
Interface.TargetFrame._visible = true;
Interface.TargetFrame.bName.text = GameData.Characters[MC._name].Name;
Interface.TargetFrame.preview.gotoAndStop(1);
mimeLook(MC, Interface.TargetFrame.preview.char);
SwapPart(Interface.TargetFrame.preview.char.hair, "Hair", GameData.Characters[MC._name].headFrame);
Interface.TargetFrame.preview.char.hair.eye2._visible = GameData.Target.head.eye2._visible;
Interface.TargetFrame.preview.char.hair.eye2.gotoAndStop(GameData.Target.head.eye2._currentframe);
ColorPalette(Interface.TargetFrame.preview.char.hair.HairColor, MC.head.HairColor.RGB);
ColorPalette(Interface.TargetFrame.preview.char.head2.HairColor, MC.head.HairColor.RGB);
Interface.TargetFrame.onRelease = function () {
SetMenu(1, "CharacterMenu", this, 30, 0);
};
} else if (GameData.Screenshots[MC._name]) {
CloseMenus(1);
GameData.Target = MC;
GameData.TargetType = "Screenshot";
Interface.TargetFrame._visible = true;
Interface.TargetFrame.bName.text = GameData.Screenshots[MC._name].Name;
Interface.TargetFrame.preview.gotoAndStop(5);
Interface.TargetFrame.onRelease = function () {
SetMenu(1, "SSMenu", this, 30, 0);
};
} else if (GameData.Objects[MC._name]) {
CloseMenus(1);
GameData.Target = MC;
GameData.TargetType = "Object";
Interface.TargetFrame._visible = true;
Interface.TargetFrame.bName.text = GameData.Objects[MC._name].Name;
Interface.TargetFrame.preview.gotoAndStop(3);
Interface.TargetFrame.preview.obj.gotoAndStop(GameData.ObjectArray[GameData.Objects[MC._name].Type][1]);
Interface.TargetFrame.onRelease = function () {
SetMenu(1, "ObjectMenu", this, 30, 0);
};
} else if (GameData.Rain[MC._name]) {
CloseMenus(1);
GameData.Target = MC;
GameData.TargetType = "Rain";
Interface.TargetFrame._visible = true;
Interface.TargetFrame.bName.text = GameData.Rain[MC._name].Name;
Interface.TargetFrame.preview.gotoAndStop(3);
Interface.TargetFrame.preview.obj.gotoAndStop(GameData.ObjectArray[GameData.Rain[MC._name].Type][1]);
Interface.TargetFrame.onRelease = function () {
SetMenu(1, "RainMenu", this, 30, 0);
};
} else if (GameData.Clusters[MC._name]) {
CloseMenus(1);
GameData.Target = MC;
GameData.TargetType = "Cluster";
Interface.TargetFrame._visible = true;
Interface.TargetFrame.bName.text = GameData.Clusters[MC._name].Name;
Interface.TargetFrame.preview.gotoAndStop(3);
Interface.TargetFrame.preview.obj.gotoAndStop(GameData.ObjectArray[GameData.Clusters[MC._name].Type][1]);
Interface.TargetFrame.onRelease = function () {
SetMenu(1, "ClusterMenu", this, 30, 0);
};
} else if (GameData.Toys[MC._name]) {
CloseMenus(1);
GameData.Target = MC;
GameData.TargetType = "Toy";
Interface.TargetFrame._visible = true;
Interface.TargetFrame.bName.text = MC._name;
Interface.TargetFrame.preview.gotoAndStop(2);
Interface.TargetFrame.preview.toy.gotoAndStop(GameData.Toys[MC._name].frame);
if (GameData.Target._name == "Clone Capsule") {
if (GameData.Toys["Clone Capsule"].Mode == 4) {
Interface.TargetFrame.preview.toy.lights.play();
} else {
Interface.TargetFrame.preview.toy.lights.gotoAndStop(GameData.Toys["Clone Capsule"].Mode);
}
if (GameData.Target.char._visible) {
setCharLook(Interface.TargetFrame.preview.toy.char, GameData.Toys["Clone Capsule"].Char);
Interface.TargetFrame.preview.toy.char._visible = true;
} else {
Interface.TargetFrame.preview.toy.char._visible = false;
}
}
setMenuListener(Interface.TargetFrame, Interface, 1);
Interface.TargetFrame.onRelease = function () {
if (Interface[GameData.Target._name + "Menu"]._visible) {
CloseMenus(1);
SwapColor(this.BG, "Buttons", 1);
} else if (Interface[GameData.Target._name + "EmptyMenu"]._visible) {
CloseMenus(1);
SwapColor(this.BG, "Buttons", 1);
} else {
if ((GameData.Target._name == "Clone Capsule") && (!stage["Clone Capsule"].char._visible)) {
OpenMenu(1, Interface[GameData.Target._name + "EmptyMenu"], this.BG);
} else {
OpenMenu(1, Interface[GameData.Target._name + "Menu"], this.BG);
}
SwapColor(this.BG, "Buttons", 2);
}
};
Interface.TargetFrame.onRollOut = function () {
if (Interface[GameData.Target._name + "Menu"]._visible) {
SwapColor(this.BG, "Buttons", 2);
} else {
SwapColor(this.BG, "Buttons", 0);
}
};
} else if (GameData.SpeechBubbles[MC._name]) {
CloseMenus(1);
GameData.Target = MC;
GameData.TargetType = "SpeechBubble";
Interface.TargetFrame._visible = true;
Interface.TargetFrame.bName.text = GameData.SpeechBubbles[MC._name].Name;
Interface.TargetFrame.preview.gotoAndStop(4);
Interface.TargetFrame.preview.bubble.D.text = MC.D.text;
Interface.TargetFrame.preview.bubble.Bubble.gotoAndStop(GameData.SpeechBubbles[MC._name].Type);
Interface.TargetFrame.onRelease = function () {
SetMenu(1, "BubbleMenu", this, 30, 0);
};
} else {
GameData.Target = "";
Interface.TargetFrame._visible = false;
Interface.TargetFrame._visible = false;
}
if (GameData.Target.Pin) {
Interface.TargetFrame.pin._visible = true;
} else {
Interface.TargetFrame.pin._visible = false;
}
if ((GameData.ShowManipulator && (GameData.Target)) && (Interface._visible)) {
setManipulator();
} else {
Manipulator._visible = false;
}
GameData.DLSelect = GameData.Target.getDepth();
}
}
function SwapPart(T, A, N) {
if (GameData.Parts[A][N] == "none") {
T._visible = false;
} else {
T._visible = true;
if ((GameData.Parts[A][N] == "random") || (N >= GameData.Parts[A].length)) {
N = SwapPart(T, A, random(GameData.Parts[A].length));
} else {
T.gotoAndStop(GameData.Parts[A][N][1]);
if (A == "Eyes") {
if (GameData.Parts[A][N][5] > 0) {
T._parent.head.eye2._visible = true;
T._parent.head.eye2.gotoAndStop(GameData.Parts[A][N][5]);
T._parent.head.eye2.HairColor.gotoAndStop(GameData.Parts[A][N][5]);
if (T._parent == GameData.Target) {
Interface.TargetFrame.preview.char.hair.eye2.gotoAndStop(GameData.Parts[A][N][5]);
Interface.TargetFrame.preview.char.hair.eye2._visible = true;
}
} else {
T._parent.head.eye2._visible = false;
if (T._parent == GameData.Target) {
Interface.TargetFrame.preview.char.hair.eye2._visible = false;
}
}
} else if (A == "Hair") {
T.HairColor.gotoAndStop(GameData.Parts[A][N][1]);
if (GameData.Parts[A][N][5] > 0) {
T._parent.head2._visible = true;
T._parent.head2.gotoAndStop(GameData.Parts[A][N][5]);
T._parent.head2.HairColor.gotoAndStop(GameData.Parts[A][N][5]);
} else {
T._parent.head2._visible = false;
}
if ((!GameData.KeepColors) || (!T.HairColor.RGB)) {
colorHex = "0x" + GameData.Parts.Hair[N][6];
ColorPalette(T.HairColor, colorHex);
ColorPalette(T._parent.head2.HairColor, colorHex);
GameData.Characters[T._parent._name].HairColor = colorHex;
}
}
}
}
return(N);
}
function AddProp(N, T, L) {
stage.attachMovie(L, N, GameData.Depths.Max);
GameData[T][N].Depth = GameData.Depths.Max;
if (T != "Toys") {
GameData.Depths.StageList.push({Name:N, Type:T, Depth:GameData.Depths.Max++});
GameData.Depths.StageList.sortOn("Depth", Array.DESCENDING | Array.NUMERIC);
} else {
GameData.Depths.Max++;
}
}
function AddClickHandler(MC, T) {
if (T == "Character") {
MC.head.onPress = function () {
if (GameData.HeadRotates) {
clickCheck(this._parent, "rotate");
} else {
clickCheck(this._parent, "drag");
}
};
setActionRelease(MC.head);
MC.body.onPress = function () {
clickCheck(this._parent, "drag");
};
setActionRelease(MC.body);
} else if (T == "SpeechBubble") {
setBubbleClickHandlers(MC);
} else {
MC.onPress = function () {
clickCheck(this, "drag");
};
setActionRelease(MC);
}
}
function RemoveClickHandler(MC, T) {
if (T == "Character") {
delete MC.head.onPress;
delete MC.head.onRelease;
delete MC.head.onReleaseOutside;
delete MC.body.onPress;
delete MC.body.onRelease;
delete MC.body.onReleaseOutside;
} else if (T == "SpeechBubble") {
delete MC.Bubble.head.onPress;
delete MC.Bubble.head.onRelease;
delete MC.Bubble.head.onReleaseOutside;
delete MC.Bubble.body.onPress;
delete MC.Bubble.body.onRelease;
delete MC.Bubble.body.onReleaseOutside;
} else {
delete MC.onPress;
delete MC.onRelease;
delete MC.onReleaseOutside;
}
}
function makeScreenShot() {
var _local1 = "Snapshot" + (GameData.SSID++);
stage.createEmptyMovieClip(_local1, GameData.Depths.Max);
stage[_local1].createEmptyMovieClip("pic", 10);
GameData.Depths.StageList.push({Name:_local1, Type:T, Depth:GameData.Depths.Max++});
GameData.Depths.StageList.sortOn("Depth", Array.DESCENDING | Array.NUMERIC);
screenShot(stage[_local1].pic);
stage[_local1].Pin = false;
stage[_local1].XFace = 1;
stage[_local1].YFace = 1;
var _local2 = Math.round(stage[_local1].pic._width / 2);
var _local3 = Math.round(stage[_local1].pic._height / 2);
stage[_local1].pic._x = _local2 * -1;
stage[_local1].pic._y = _local3 * -1;
stage[_local1]._x = _local2;
stage[_local1]._y = _local3;
GameData.Screenshots[_local1] = new Object();
GameData.Screenshots[_local1].Name = _local1;
GameData.Screenshots[_local1].Type = T;
GameData.Screenshots[_local1].Scale = 100;
GameData.Screenshots[_local1].BlurSettings = new Object();
GameData.Screenshots[_local1].BlurSettings.X = 30;
GameData.Screenshots[_local1].BlurSettings.Y = 30;
GameData.Screenshots[_local1].BlurSettings.Q = 5;
AddClickHandler(stage[_local1], "Screenshot");
}
function smoothImageLoad(imgURL, targetMovie) {
var i = 0;
do {
i++;
} while (eval ("_root.smoothImageLoadTemp" + i) != undefined);
tmc = _root.createEmptyMovieClip("smoothImageLoadTemp" + i, _root.getNextHighestDepth());
tmc.createEmptyMovieClip("ti", tmc.getNextHighestDepth());
tmc.tm = targetMovie;
with (tmc) {
tmcl = new MovieClipLoader();
tmcl.onLoadComplete = function () {
ti.onEnterFrame = function () {
pixelData = new flash.display.BitmapData(ti._width, ti._height, true, 0);
pixelData.draw(ti);
tm.attachBitmap(pixelData, 1, true, true);
tm.smoothImageLoadComplete();
removeMovieClip(ti._parent);
};
};
tmcl.loadClip(imgURL, tmc.ti);
}
}
function makeImage(url) {
var _local1 = "Snapshot" + (GameData.SSID++);
stage.createEmptyMovieClip(_local1, GameData.Depths.Max);
stage[_local1].createEmptyMovieClip("pic", 10);
GameData.Depths.StageList.push({Name:_local1, Type:T, Depth:GameData.Depths.Max++});
GameData.Depths.StageList.sortOn("Depth", Array.DESCENDING | Array.NUMERIC);
smoothImageLoad(url, stage[_local1].pic);
stage[_local1].Pin = false;
stage[_local1].XFace = 1;
stage[_local1].YFace = 1;
var _local2 = Math.round(stage[_local1].pic._width / 2);
var _local3 = Math.round(stage[_local1].pic._height / 2);
stage[_local1].pic._x = _local2 * -1;
stage[_local1].pic._y = _local3 * -1;
stage[_local1]._x = _local2;
stage[_local1]._y = _local3;
GameData.Screenshots[_local1] = new Object();
GameData.Screenshots[_local1].Name = _local1;
GameData.Screenshots[_local1].Type = T;
GameData.Screenshots[_local1].Scale = 100;
GameData.Screenshots[_local1].BlurSettings = new Object();
GameData.Screenshots[_local1].BlurSettings.X = 30;
GameData.Screenshots[_local1].BlurSettings.Y = 30;
GameData.Screenshots[_local1].BlurSettings.Q = 5;
AddClickHandler(stage[_local1], "Screenshot");
}
function makeRain(T) {
var _local1 = "Rain" + (GameData.RainID++);
stage.createEmptyMovieClip(_local1, GameData.Depths.Max);
GameData.Depths.StageList.push({Name:_local1, Type:T, Depth:GameData.Depths.Max++});
GameData.Depths.StageList.sortOn("Depth", Array.DESCENDING | Array.NUMERIC);
stage[_local1]._x = Stage.width / 2;
stage[_local1]._y = Stage.height / 2;
stage[_local1].Pin = false;
stage[_local1].XFace = 1;
stage[_local1].YFace = 1;
stage[_local1].attachMovie("BGBox", "BG", -10);
stage[_local1].BG._x = -1 * (Stage.width / 2);
stage[_local1].BG._y = -1 * (Stage.height / 2);
stage[_local1].BG._width = Stage.width;
stage[_local1].BG._height = Stage.height;
stage[_local1].BG._alpha = 0;
GameData.Rain[_local1] = new Object();
GameData.Rain[_local1].Name = _local1;
GameData.Rain[_local1].Type = T;
GameData.Rain[_local1].Scale = 100;
GameData.Rain[_local1].Qty = 7;
GameData.Rain[_local1].Qt = 0;
GameData.Rain[_local1].Rmin = 10;
GameData.Rain[_local1].Rmax = 30;
GameData.Rain[_local1].Xmin = 5;
GameData.Rain[_local1].Xmax = 15;
GameData.Rain[_local1].Ymin = 15;
GameData.Rain[_local1].Ymax = 20;
GameData.Rain[_local1].Px = -1 * (Stage.width / 2);
GameData.Rain[_local1].Py = -1 * (Stage.height / 2);
fixRain(stage[_local1]);
AddClickHandler(stage[_local1], "Rain");
return(stage[_local1]);
}
function fixRain(mc) {
q = GameData.Rain[mc._name].Qty;
while (q < GameData.Rain[mc._name].Qt) {
mc["Drop" + q].removeMovieClip();
q++;
}
i = 0;
while (i < GameData.Rain[mc._name].Qty) {
if (!mc["Drop" + i]) {
mc.attachMovie("Objects", "Drop" + i, i);
mc["Drop" + i].gotoAndStop(GameData.ObjectArray[GameData.Rain[mc._name].Type][1]);
}
SetDrop(mc["Drop" + i]);
if (i < (GameData.Rain[mc._name].Qty / 4)) {
mc["Drop" + i].Smod = -50;
} else if (i < ((GameData.Rain[mc._name].Qty / 5) * 4)) {
mc["Drop" + i].Smod = -25;
} else {
mc["Drop" + i].Smod = 0;
}
fixDropScale(mc["Drop" + i]);
GameData.Rain[mc._name].Qt = i;
i++;
}
}
function fixDropScale(mcd) {
mcd._xscale = GameData.Rain[mcd._parent._name].Scale + mcd.Smod;
mcd._yscale = GameData.Rain[mcd._parent._name].Scale + mcd.Smod;
}
function SetDrop(mcd) {
mcd._rotation = 0;
mcd._y = -50 + GameData.Rain[mcd._parent._name].Py;
mcd._x = (random(Stage.width + 100) - 50) + GameData.Rain[mcd._parent._name].Px;
mcd.Rot = random(GameData.Rain[mcd._parent._name].Rmax - GameData.Rain[mcd._parent._name].Rmin) + GameData.Rain[mcd._parent._name].Rmin;
mcd.XMov = random(GameData.Rain[mcd._parent._name].Xmax - GameData.Rain[mcd._parent._name].Xmin) + GameData.Rain[mcd._parent._name].Xmin;
mcd.YMov = random(GameData.Rain[mcd._parent._name].Ymax - GameData.Rain[mcd._parent._name].Ymin) + GameData.Rain[mcd._parent._name].Ymin;
}
function makeCluster(T) {
var _local1 = "Cluster" + (GameData.ClusterID++);
stage.createEmptyMovieClip(_local1, GameData.Depths.Max);
GameData.Depths.StageList.push({Name:_local1, Type:T, Depth:GameData.Depths.Max++});
GameData.Depths.StageList.sortOn("Depth", Array.DESCENDING | Array.NUMERIC);
stage[_local1]._x = Stage.width / 2;
stage[_local1]._y = Stage.height / 2;
stage[_local1].Pin = false;
stage[_local1].XFace = 1;
stage[_local1].YFace = 1;
GameData.Clusters[_local1] = new Object();
GameData.Clusters[_local1].Name = _local1;
GameData.Clusters[_local1].Type = T;
GameData.Clusters[_local1].Rows = 3;
GameData.Clusters[_local1].Cols = 6;
GameData.Clusters[_local1].Spread = 360;
GameData.Clusters[_local1].Distance = 200;
GameData.Clusters[_local1].StartDist = 0;
GameData.Clusters[_local1].Px = 0;
GameData.Clusters[_local1].Py = 0;
GameData.Clusters[_local1].Dir = "Out";
GameData.Clusters[_local1].Scale = 100;
GameData.Clusters[_local1].Spiral = 10;
GameData.Clusters[_local1].RMod = 10;
GameData.Clusters[_local1].Qt = GameData.Clusters[_local1].Rows * GameData.Clusters[_local1].Cols;
fixCluster(stage[_local1]);
AddClickHandler(stage[_local1], "Cluster");
return(stage[_local1]);
}
function fixCluster(MC) {
var _local3 = GameData.Clusters[MC._name].Rows * GameData.Clusters[MC._name].Cols;
var _local2 = 0;
var _local5 = GameData.Clusters[MC._name].Spread / GameData.Clusters[MC._name].Cols;
var _local4 = (GameData.Clusters[MC._name].Distance - GameData.Clusters[MC._name].StartDist) / GameData.Clusters[MC._name].Rows;
var _local6 = -1 * (GameData.Clusters[MC._name].Spread / 2);
q = _local3 - 1;
while (q < GameData.Clusters[MC._name].Qt) {
MC["Shot" + q].removeMovieClip();
q++;
}
i = 0;
while (i < GameData.Clusters[MC._name].Rows) {
j = 0;
while (j < GameData.Clusters[MC._name].Cols) {
if (_local2 < _local3) {
MC.attachMovie("Objects", "Shot" + _local2, _local2);
MC["Shot" + _local2].gotoAndStop(GameData.ObjectArray[GameData.Clusters[MC._name].Type][1]);
MC["Shot" + _local2].Angle = (_local6 - ((j + 1) * _local5)) + (i * GameData.Clusters[MC._name].Spiral);
MC["Shot" + _local2].Dist = ((i + 1) * _local4) + GameData.Clusters[MC._name].StartDist;
setOrbit(MC["Shot" + _local2], MC["Shot" + _local2].Angle, MC["Shot" + _local2].Dist);
_local2++;
}
j++;
}
i++;
}
GameData.Clusters[MC._name].Qt = _local2;
fixClusterShotAngle(MC, _local3);
}
function fixClusterShotAngle(MC, Qmax) {
var _local5 = GameData.Clusters[MC._name].Px;
var _local4 = GameData.Clusters[MC._name].Py;
if (GameData.Clusters[MC._name].Dir == "Linear") {
q = 0;
while (q < Qmax) {
MC["Shot" + q]._rotation = (getAngle(MC._x, MC._y, MC._x + _local5, MC._y + _local4) + GameData.Clusters[MC._name].RMod) - MC["Shot" + q]._parent._rotation;
q++;
}
} else if (GameData.Clusters[MC._name].Dir == "Random") {
q = 0;
while (q < Qmax) {
MC["Shot" + q]._rotation = random(360);
q++;
}
} else {
if (GameData.Clusters[MC._name].Dir == "Out") {
var _local6 = 180;
} else {
var _local6 = 0;
}
q = 0;
while (q < Qmax) {
var _local2 = getCSTruePos(MC["Shot" + q]);
MC["Shot" + q]._rotation = ((getAngle(_local2.X, _local2.Y, _local5, _local4) + _local6) + GameData.Clusters[MC._name].RMod) - MC["Shot" + q]._parent._rotation;
q++;
}
}
}
function getCSTruePos(MCb) {
var _local6 = (MCb.Angle - 90) + MCb._parent._rotation;
var _local2 = (_local6 * Math.PI) / 180;
var _local5 = MCb.Dist * Math.cos(_local2);
var _local4 = MCb.Dist * Math.sin(_local2);
var _local1 = new Object();
_local1.X = _local5;
_local1.Y = _local4;
return(_local1);
}
function makeObject(T) {
var _local1 = "Object" + (GameData.ObjID++);
AddProp(_local1, "Objects", "Objects");
stage[_local1].gotoAndStop(GameData.ObjectArray[T][1]);
stage[_local1]._x = Stage.width / 2;
stage[_local1]._y = Stage.height / 2;
stage[_local1].Pin = false;
stage[_local1].XFace = 1;
stage[_local1].YFace = 1;
GameData.Objects[_local1] = new Object();
GameData.Objects[_local1].Name = _local1;
GameData.Objects[_local1].Type = T;
GameData.Objects[_local1].Scale = 100;
if (T == 47) {
playSound("Boom");
}
AddClickHandler(stage[_local1], "Object");
}
function makeChar(T) {
var _local1 = "Char" + (GameData.CharID++);
AddProp(_local1, "Characters", "Char");
stage[_local1].Spin = 0;
var _local4 = T.split("-");
if ((_local4.length > 1) && (_local4[0].toLowerCase() == "dna")) {
_local4.shift();
var _local14 = _local4.join("-");
var _local2 = _local14.split(":");
var _local15 = _local2[1];
if (_local2[2]) {
var _local5 = _local2[2];
} else {
var _local5 = 100;
}
var _local8 = _local2[3];
var _local6 = _local2[4];
if (_local2[0] < 3.23) {
var _local9 = Number(_local2[5]) + 1;
var _local16 = GameData.Parts.Hair[_local6][6];
} else {
var _local9 = _local2[5];
var _local16 = _local2[13];
}
if (_local2[0] < 3.2) {
var _local7 = Number(_local2[6]) + 1;
var _local10 = Number(_local2[7]) + 1;
} else {
var _local7 = _local2[6];
var _local10 = _local2[7];
}
var _local19 = _local2[8];
var _local13 = _local2[9];
var _local18 = _local2[10];
var _local17 = _local2[11];
var _local20 = _local2[12];
var _local11 = stage["Clone Capsule"]._x;
var _local12 = stage["Clone Capsule"]._y;
if (!_local15) {
_local15 = "Mutant Clone";
_local19 = 66;
_local13 = 36;
} else {
_local19 = _local2[8];
_local13 = _local2[9];
}
} else if (T == "Capsule Clone") {
var _local15 = GameData.Toys["Clone Capsule"].Char.Name;
var _local9 = GameData.Toys["Clone Capsule"].Char.bodyFrame;
var _local19 = GameData.Toys["Clone Capsule"].Char.eyeFrame;
var _local13 = GameData.Toys["Clone Capsule"].Char.mouthFrame;
var _local8 = GameData.Toys["Clone Capsule"].Char.hatFrame;
var _local6 = GameData.Toys["Clone Capsule"].Char.headFrame;
var _local16 = GameData.Toys["Clone Capsule"].Char.HairColor.substr(2, 6);
var _local7 = GameData.Toys["Clone Capsule"].Char.armFrame;
var _local10 = GameData.Toys["Clone Capsule"].Char.shoeFrame;
var _local20 = GameData.Toys["Clone Capsule"].Char.wingFrame;
var _local18 = GameData.Toys["Clone Capsule"].Char.itemFrame;
var _local17 = GameData.Toys["Clone Capsule"].Char.accFrame;
var _local5 = GameData.Toys["Clone Capsule"].Char.Scale;
var _local11 = stage["Clone Capsule"]._x;
var _local12 = stage["Clone Capsule"]._y;
} else if (GameData.Presets[T]) {
var _local15 = T;
var _local9 = GameData.Presets[T].bodyFrame;
var _local19 = GameData.Presets[T].eyeFrame;
var _local13 = GameData.Presets[T].mouthFrame;
var _local8 = GameData.Presets[T].hatFrame;
var _local6 = GameData.Presets[T].headFrame;
var _local16 = GameData.Parts.Hair[_local6][6];
var _local7 = GameData.Presets[T].armFrame;
var _local10 = GameData.Presets[T].shoeFrame;
var _local20 = GameData.Presets[T].wingFrame;
if (GameData.PresetWithItems) {
var _local18 = GameData.Presets[T].itemFrame;
var _local17 = GameData.Presets[T].accFrame;
} else {
var _local18 = 0;
var _local17 = 0;
}
var _local5 = 100;
var _local11 = Stage.width / 2;
var _local12 = (Stage.height / 2) + 50;
} else {
if (T) {
var _local15 = T;
} else {
var _local15 = _local1;
}
var _local9 = random(GameData.Parts.Body.length);
var _local19 = random(GameData.Parts.Eyes.length);
var _local13 = random(GameData.Parts.Mouth.length);
var _local8 = random(GameData.Parts.Hats.length);
var _local6 = random(GameData.Parts.Hair.length);
var _local16 = GameData.Parts.Hair[_local6][6];
var _local7 = random(GameData.Parts.Arms.length);
var _local10 = random(GameData.Parts.Shoes.length);
var _local20 = random(GameData.Parts.Back.length);
var _local18 = random(GameData.Parts.Items.length);
var _local17 = random(GameData.Parts.Acc.length);
var _local5 = 100;
var _local11 = Stage.width / 2;
var _local12 = (Stage.height / 2) + 50;
}
GameData.Characters[_local1] = new Object();
RootPartSwap(stage[_local1].eyes, "Eyes", String(_local19));
RootPartSwap(stage[_local1].mouth, "Mouth", String(_local13));
RootPartSwap(stage[_local1].hat, "Hats", String(_local8));
RootPartSwap(stage[_local1].item, "Items", String(_local18));
RootPartSwap(stage[_local1].wings, "Back", String(_local20));
RootPartSwap(stage[_local1].accessory, "Acc", String(_local17));
RootPartSwap(stage[_local1].head, "Hair", String(_local6));
RootPartSwap(stage[_local1].body, "Body", String(_local9));
RootPartSwap(stage[_local1].arms, "Arms", String(_local7));
RootPartSwap(stage[_local1].legs, "Shoes", String(_local10));
GameData.Characters[_local1].Name = _local15;
GameData.Characters[_local1].Scale = _local5;
GameData.Characters[_local1].Locks = new Object();
GameData.Characters[_local1].Locks.Mouth = false;
GameData.Characters[_local1].Locks.Eyes = false;
GameData.Characters[_local1].Locks.Hair = false;
GameData.Characters[_local1].Locks.Body = false;
GameData.Characters[_local1].Locks.Arms = false;
GameData.Characters[_local1].Locks.Shoes = false;
GameData.Characters[_local1].Locks.Back = false;
GameData.Characters[_local1].Locks.Accessory = false;
GameData.Characters[_local1].Locks.Items = false;
GameData.Characters[_local1].Locks.Hats = false;
colorHex = "0x" + _local16;
GameData.Characters[_local1].HairColor = colorHex;
ColorPalette(stage[_local1].head.HairColor, colorHex);
stage[_local1].Pin = false;
stage[_local1]._x = _local11;
stage[_local1]._y = _local12;
stage[_local1]._xscale = _local5;
stage[_local1]._yscale = _local5;
if (T == "Capsule Clone") {
stage[_local1].XFace = GameData.Toys["Clone Capsule"].Target.XFace;
stage[_local1].YFace = GameData.Toys["Clone Capsule"].Target.YFace;
stage[_local1]._xscale = stage[_local1]._xscale * stage[_local1].XFace;
stage[_local1]._yscale = stage[_local1]._yscale * stage[_local1].YFace;
} else {
stage[_local1].XFace = 1;
stage[_local1].YFace = 1;
}
AddClickHandler(stage[_local1], "Character");
return(stage[_local1]);
}
function makeSpeechBubble(T) {
var _local1 = "Bubble" + (GameData.BubbleID++);
AddProp(_local1, "SpeechBubbles", "SpeechBubble");
GameData.SpeechBubbles[_local1] = new Object();
GameData.SpeechBubbles[_local1].Name = _local1;
GameData.SpeechBubbles[_local1].Type = T;
GameData.SpeechBubbles[_local1].Scale = 100;
GameData.SpeechBubbles[_local1].XScale = 100;
GameData.SpeechBubbles[_local1].YScale = 100;
GameData.SpeechBubbles[_local1].FontColor = "0x000000";
stage[_local1]._x = 200;
stage[_local1]._y = 200;
stage[_local1].Pin = false;
stage[_local1].Bubble.XFace = 1;
stage[_local1].Bubble.YFace = 1;
stage[_local1].Bubble.gotoAndStop(T);
if (T == 4) {
stage[_local1].D._y = 0;
stage[_local1].D.text = "Double click this to edit text.";
} else {
stage[_local1].D.text = "\n\n\nDouble click this to edit text.";
}
AddClickHandler(stage[_local1], "SpeechBubble");
playSound("Pop");
return(stage[stage[_local1]]);
}
function setBubbleClickHandlers(MC) {
MC.Bubble.head.onPress = function () {
clickCheck(this._parent._parent, "rotate");
};
setActionRelease(MC.Bubble.head);
MC.Bubble.body.onPress = function () {
clickCheck(this._parent._parent, "drag");
};
setActionRelease(MC.Bubble.body);
MC.D.onSetFocus = function () {
GameData.KeyLock = true;
};
MC.D.onKillFocus = function () {
GameData.KeyLock = false;
setBubble(GameData.Target);
Interface.TargetFrame.preview.bubble.D.text = GameData.Target.D.text;
};
}
function setKeyLocks(MC) {
MC.onSetFocus = function () {
GameData.KeyLock = true;
};
MC.onKillFocus = function () {
GameData.KeyLock = false;
};
}
function clickCheck(MC, A) {
if (GameData.ClickStopsSpin) {
MC.Spin = 0;
}
MC.XMov = 0;
MC.YMov = 0;
if (Key.isDown(16)) {
Target(MC);
if (GameData.TargetType == "Character") {
MC.OldScale = GameData.Characters[MC._name].Scale;
GameData.Xmod = _root._xmouse;
GameData.Ymod = _root._ymouse;
GameData.Action = "scale";
} else if (GameData.TargetType == "Object") {
MC.OldScale = GameData.Objects[MC._name].Scale;
GameData.Xmod = _root._xmouse;
GameData.Ymod = _root._ymouse;
GameData.Action = "scale";
} else if (GameData.TargetType == "Screenshot") {
MC.OldScale = GameData.Screenshots[MC._name].Scale;
GameData.Xmod = _root._xmouse;
GameData.Ymod = _root._ymouse;
GameData.Action = "scale";
} else if (GameData.TargetType == "SpeechBubble") {
MC.OldScale = GameData.SpeechBubbles[MC._name].Scale;
MC.OldXScale = GameData.SpeechBubbles[MC._name].XScale;
MC.OldYScale = GameData.SpeechBubbles[MC._name].YScale;
GameData.Xmod = _root._xmouse;
GameData.Ymod = _root._ymouse;
GameData.Action = "scale";
} else {
MC.OldScale = GameData[getArray()][MC._name].Scale;
GameData.Xmod = _root._xmouse;
GameData.Ymod = _root._ymouse;
GameData.Action = "scale";
}
} else if (Key.isDown(17)) {
Target(MC);
if (GameData.TargetType == "SpeechBubble") {
GameData.Target.Bubble.startDrag();
} else if ((GameData.TargetType == "Character") && (GameData.HeadRotates)) {
GameData.DoubleClick = GameData.DCrate;
GameData.Action = "drag";
GameData.Xmod = _root._xmouse - MC._x;
GameData.Ymod = _root._ymouse - MC._y;
} else {
GameData.DoubleClick = GameData.DCrate;
GameData.Action = "rotate";
GameData.Xmod = _root._xmouse - MC._x;
GameData.Ymod = _root._ymouse - MC._y;
}
} else if ((GameData.DoubleClick > 0) && (GameData.Target == MC)) {
if (GameData.Target._name == "Grouchy Reimu") {
HaxSignBE();
} else if (GameData.Target._name == "Clone Capsule") {
if (stage["Clone Capsule"].char._visible) {
activateCloneCapsule();
} else {
openDNAInput();
}
} else if (GameData.TargetType == "SpeechBubble") {
if (GameData.Target.D.type == "dynamic") {
editBubble(GameData.Target);
} else {
setBubble(GameData.Target);
}
} else if (GameData.TargetType == "Object") {
OpenMenu(1, Interface.GeneralOptions);
OnLoadHandler(Interface.GeneralOptions);
} else if (GameData.TargetType == "Screenshot") {
GameData.Menus.Functions.OpenWindow(this, "SnapshotOptions");
} else if (GameData.TargetType == "Cluster") {
GameData.Menus.Functions.OpenWindow(this, "ClusterOptions");
} else if (GameData.TargetType == "Rain") {
GameData.Menus.Functions.OpenWindow(this, "RainOptions");
} else if (GameData.TargetType == "Character") {
openCOMenu();
}
} else {
GameData.DoubleClick = GameData.DCrate;
GameData.Action = A;
GameData.Xmod = _root._xmouse - MC._x;
GameData.Ymod = _root._ymouse - MC._y;
Target(MC);
}
}
function editBubble(MC) {
MC.D.type = "input";
MC.D.selectable = true;
Selection.setFocus(MC.D);
}
function setBubble(MC) {
MC.D.type = "dynamic";
MC.D.selectable = false;
}
function setActionRelease(MC) {
MC.onRelease = function () {
releaseHandler();
};
MC.onReleaseOutside = function () {
releaseHandler();
};
}
function releaseHandler() {
if (GameData.TargetType == "Character") {
if ((stage["Clone Capsule"]._visible && (getDist(stage["Clone Capsule"], _root._xmouse, _root._ymouse) < 50)) && (!stage["Clone Capsule"].char._visible)) {
injectCloneCapsule(GameData.Target);
} else if ((bg.fusionlab && (getDist(bg.fusionlab.fusion1, _root._xmouse, _root._ymouse) < 50)) && (!bg.fusionlab.fusion1.char._visible)) {
injectFusionTank(1, GameData.Target);
} else if ((bg.fusionlab && (getDist(bg.fusionlab.fusion2, _root._xmouse, _root._ymouse) < 50)) && (!bg.fusionlab.fusion2.char._visible)) {
injectFusionTank(2, GameData.Target);
} else if (stage["Mysterious Gap"]._visible && (getDist(stage["Mysterious Gap"], _root._xmouse, _root._ymouse) < 50)) {
if (!GameData.GameOn) {
pongStart();
}
}
} else if (GameData.TargetType == "SpeechBubble") {
GameData.Target.Bubble.stopDrag();
} else if (GameData.Target._name == "Boxing Chen") {
BoxingChenAttack();
}
_root.GameData.Action = "";
}
function BringToFront(MC) {
var _local1 = getDID(MC._name);
_local1--;
while (_local1 > -1) {
MC.swapDepths(GameData.Depths.StageList[_local1].Depth);
_local1--;
}
fixDepthList();
}
function SendToBack(MC) {
var _local1 = getDID(MC._name);
_local1++;
while (_local1 < GameData.Depths.StageList.length) {
MC.swapDepths(GameData.Depths.StageList[_local1].Depth);
_local1++;
}
fixDepthList();
}
function fixDepthList() {
i = 0;
while (i < GameData.Depths.StageList.length) {
GameData.Depths.StageList[i].Depth = stage[GameData.Depths.StageList[i].Name].getDepth();
i++;
}
GameData.Depths.StageList.sortOn("Depth", Array.DESCENDING | Array.NUMERIC);
}
function BringForward(MC) {
var _local1 = getDID(MC._name);
if (_local1 > 0) {
MC.swapDepths(GameData.Depths.StageList[_local1 - 1].Depth);
}
fixDepthList();
}
function SendBackward(MC) {
var _local1 = getDID(MC._name);
if (_local1 < (GameData.Depths.StageList.length - 1)) {
MC.swapDepths(GameData.Depths.StageList[_local1 + 1].Depth);
}
fixDepthList();
}
function Delete(MC) {
var _local1 = MC._name;
if (GameData.Toys[_local1]) {
if (_local1 == "Boxing Chen") {
resetBoxingChen();
}
MC._visible = false;
Target();
} else {
if (GameData.Characters[_local1]) {
delete GameData.Characters[_local1];
} else if (GameData.SpeechBubbles[_local1]) {
delete GameData.SpeechBubbles[_local1];
} else if (GameData.Objects[_local1]) {
delete GameData.Objects[_local1];
}
MC.removeMovieClip();
if (MC._name == _local1) {
trace("Delete failed! " + MC);
}
}
if (GameData.Target == MC) {
Target();
CloseMenus(1);
Manipulator._visible = false;
}
GameData.Depths.StageList.splice(getDID(_local1), 1);
}
function RandomizeAll(MC) {
if ((!GameData.Characters[MC._name].Locks.Hats) && (!GameData.Locks.Hats)) {
RootPartSwap(MC.hat, "Hats", "random");
}
if ((!GameData.Characters[MC._name].Locks.Back) && (!GameData.Locks.Back)) {
RootPartSwap(MC.wings, "Back", "random");
}
if ((!GameData.Characters[MC._name].Locks.Items) && (!GameData.Locks.Items)) {
RootPartSwap(MC.item, "Items", "random");
}
if ((!GameData.Characters[MC._name].Locks.Accessory) && (!GameData.Locks.Accessory)) {
RootPartSwap(MC.accessory, "Acc", "random");
}
if ((!GameData.Characters[MC._name].Locks.Hair) && (!GameData.Locks.Hair)) {
RootPartSwap(MC.head, "Hair", "random");
}
if ((!GameData.Characters[MC._name].Locks.Body) && (!GameData.Locks.Body)) {
RootPartSwap(MC.body, "Body", "random");
}
if ((!GameData.Characters[MC._name].Locks.Arms) && (!GameData.Locks.Arms)) {
RootPartSwap(MC.arms, "Arms", "random");
}
if ((!GameData.Characters[MC._name].Locks.Shoes) && (!GameData.Locks.Shoes)) {
RootPartSwap(MC.legs, "Shoes", "random");
}
if ((!GameData.Characters[MC._name].Locks.Eyes) && (!GameData.Locks.Eyes)) {
RootPartSwap(MC.eyes, "Eyes", "random");
}
if ((!GameData.Characters[MC._name].Locks.Mouth) && (!GameData.Locks.Mouth)) {
RootPartSwap(MC.mouth, "Mouth", "random");
}
}
function RootPartSwap(MC, T, N) {
if (N == "random") {
var _local2 = SwapPart(MC, T, GameData.Parts[T].length - 1);
} else {
var _local2 = SwapPart(MC, T, Number(N));
}
if (T == "Hats") {
GameData.Characters[MC._parent._name].hatFrame = _local2;
} else if (T == "Acc") {
GameData.Characters[MC._parent._name].accFrame = _local2;
} else if (T == "Back") {
GameData.Characters[MC._parent._name].wingFrame = _local2;
} else if (T == "Items") {
GameData.Characters[MC._parent._name].itemFrame = _local2;
} else if (T == "Hair") {
GameData.Characters[MC._parent._name].headFrame = _local2;
} else if (T == "Arms") {
GameData.Characters[MC._parent._name].armFrame = _local2;
} else if (T == "Shoes") {
GameData.Characters[MC._parent._name].shoeFrame = _local2;
} else if (T == "Body") {
GameData.Characters[MC._parent._name].bodyFrame = _local2;
} else if (T == "Eyes") {
GameData.Characters[MC._parent._name].eyeFrame = _local2;
} else if (T == "Mouth") {
GameData.Characters[MC._parent._name].mouthFrame = _local2;
}
if (GameData.Target == MC._parent) {
if (T == "Hats") {
SwapPart(Interface.TargetFrame.preview.char.hat, T, _local2);
} else if (T == "Acc") {
SwapPart(Interface.TargetFrame.preview.char.accessory, T, _local2);
} else if (T == "Hair") {
SwapPart(Interface.TargetFrame.preview.char.hair, T, _local2);
} else if (T == "Eyes") {
SwapPart(Interface.TargetFrame.preview.char.eyes, T, _local2);
} else if (T == "Mouth") {
SwapPart(Interface.TargetFrame.preview.char.mouth, T, _local2);
}
}
}
function setCharLook(T, S) {
if (GameData.Parts.Hats[S.hatFrame][1]) {
T.hat._visible = true;
T.hat.gotoAndStop(GameData.Parts.Hats[S.hatFrame][1]);
} else {
T.hat._visible = false;
}
T.head.gotoAndStop(GameData.Parts.Hair[S.headFrame][1]);
T.head.HairColor.gotoAndStop(GameData.Parts.Hair[S.headFrame][1]);
if (S.HairColor) {
ColorPalette(T.head.HairColor, S.HairColor);
}
if (GameData.Parts.Eyes[S.eyeFrame][5]) {
T.head.eye2._visible = true;
T.head.eye2.gotoAndStop(GameData.Parts.Eyes[S.eyeFrame][5]);
} else {
T.head.eye2._visible = false;
}
if (GameData.Parts.Hair[S.headFrame][5]) {
T.head2._visible = true;
T.head2.gotoAndStop(GameData.Parts.Hair[S.headFrame][5]);
T.head2.HairColor.gotoAndStop(GameData.Parts.Hair[S.headFrame][5]);
if (GameData.Target.head.HairColor.RGB) {
ColorPalette(T.head2.HairColor, GameData.Target.head.HairColor.RGB);
}
} else {
T.head2._visible = false;
}
if (GameData.Parts.Body[S.bodyFrame][1]) {
T.body._visible = true;
T.body.gotoAndStop(GameData.Parts.Body[S.bodyFrame][1]);
} else {
T.body._visible = false;
}
if (GameData.Parts.Arms[S.armFrame][1]) {
T.arms._visible = true;
T.arms.gotoAndStop(GameData.Parts.Arms[S.armFrame][1]);
} else {
T.arms._visible = false;
}
if (GameData.Parts.Shoes[S.shoeFrame][1]) {
T.legs._visible = true;
T.legs.gotoAndStop(GameData.Parts.Shoes[S.shoeFrame][1]);
} else {
T.legs._visible = false;
}
T.eyes.gotoAndStop(GameData.Parts.Eyes[S.eyeFrame][1]);
if (GameData.Parts.Items[S.itemFrame][1]) {
T.item._visible = true;
T.item.gotoAndStop(GameData.Parts.Items[S.itemFrame][1]);
} else {
T.item._visible = false;
}
if (GameData.Parts.Back[S.wingFrame][1]) {
T.wings._visible = true;
T.wings.gotoAndStop(GameData.Parts.Back[S.wingFrame][1]);
} else {
T.wings._visible = false;
}
if (GameData.Parts.Acc[S.accFrame][1]) {
T.accessory._visible = true;
T.accessory.gotoAndStop(GameData.Parts.Acc[S.accFrame][1]);
} else {
T.accessory._visible = false;
}
if (GameData.Parts.Mouth[S.mouthFrame][1]) {
T.mouth._visible = true;
T.mouth.gotoAndStop(GameData.Parts.Mouth[S.mouthFrame][1]);
} else {
T.mouth._visible = false;
}
}
function QuickSwap(MC, N, T) {
if ((!GameData.Characters[MC._name].Locks.Hats) && ((T == "Hats") || (T == "All"))) {
var _local5 = GameData.Characters[MC._name].hatFrame + N;
if (_local5 < 1) {
_local5 = GameData.Parts.Hats.length - 2;
} else if (_local5 > (GameData.Parts.Hats.length - 2)) {
_local5 = 1;
}
RootPartSwap(MC.hat, "Hats", String(_local5));
}
if ((!GameData.Characters[MC._name].Locks.Eyes) && ((T == "Eyes") || ((T == "All") && (!GameData.OldQS)))) {
var _local11 = GameData.Characters[MC._name].eyeFrame + N;
if (_local11 < 0) {
_local11 = GameData.Parts.Eyes.length - 2;
} else if (_local11 > (GameData.Parts.Eyes.length - 2)) {
_local11 = 0;
}
RootPartSwap(MC.eyes, "Eyes", String(_local11));
}
if ((!GameData.Characters[MC._name].Locks.Mouth) && ((T == "Mouth") || ((T == "All") && (!GameData.OldQS)))) {
var _local8 = GameData.Characters[MC._name].mouthFrame + N;
if (_local8 < 1) {
_local8 = GameData.Parts.Mouth.length - 2;
} else if (_local8 > (GameData.Parts.Mouth.length - 2)) {
_local8 = 1;
}
RootPartSwap(MC.mouth, "Mouth", String(_local8));
}
if ((!GameData.Characters[MC._name].Locks.Hair) && ((T == "Hair") || (T == "All"))) {
var _local7 = GameData.Characters[MC._name].headFrame + N;
if (_local7 < 0) {
_local7 = GameData.Parts.Hair.length - 2;
} else if (_local7 > (GameData.Parts.Hair.length - 2)) {
_local7 = 0;
}
RootPartSwap(MC.head, "Hair", String(_local7));
}
if ((!GameData.Characters[MC._name].Locks.Arms) && ((T == "Arms") || (T == "All"))) {
var _local4 = GameData.Characters[MC._name].armFrame + N;
if (_local4 < 0) {
_local4 = GameData.Parts.Arms.length - 2;
} else if (_local4 > (GameData.Parts.Arms.length - 2)) {
_local4 = 0;
}
RootPartSwap(MC.arms, "Arms", String(_local4));
}
if ((!GameData.Characters[MC._name].Locks.Shoes) && ((T == "Shoes") || (T == "All"))) {
var _local13 = GameData.Characters[MC._name].shoeFrame + N;
if (_local13 < 0) {
_local13 = GameData.Parts.Shoes.length - 2;
} else if (_local4 > (GameData.Parts.Shoes.length - 2)) {
_local13 = 0;
}
RootPartSwap(MC.legs, "Shoes", String(_local13));
}
if ((!GameData.Characters[MC._name].Locks.Body) && ((T == "Body") || (T == "All"))) {
var _local6 = GameData.Characters[MC._name].bodyFrame + N;
if (_local6 < 1) {
_local6 = GameData.Parts.Body.length - 2;
} else if (_local6 > (GameData.Parts.Body.length - 2)) {
_local6 = 1;
}
RootPartSwap(MC.body, "Body", String(_local6));
}
if ((!GameData.Characters[MC._name].Locks.Items) && ((T == "Items") || ((T == "All") && (!GameData.OldQS)))) {
var _local9 = GameData.Characters[MC._name].itemFrame + N;
if (_local9 < 0) {
_local9 = GameData.Parts.Items.length - 2;
} else if (_local9 > (GameData.Parts.Items.length - 2)) {
_local9 = 0;
}
RootPartSwap(MC.item, "Items", String(_local9));
}
if ((!GameData.Characters[MC._name].Locks.Back) && ((T == "Back") || ((T == "All") && (!GameData.OldQS)))) {
var _local12 = GameData.Characters[MC._name].wingFrame + N;
if (_local12 < 0) {
_local12 = GameData.Parts.Back.length - 2;
} else if (_local12 > (GameData.Parts.Back.length - 2)) {
_local12 = 0;
}
RootPartSwap(MC.wings, "Back", String(_local12));
}
if ((!GameData.Characters[MC._name].Locks.Accessory) && ((T == "Accessory") || ((T == "All") && (!GameData.OldQS)))) {
var _local10 = GameData.Characters[MC._name].accFrame + N;
if (_local10 < 0) {
_local10 = GameData.Parts.Acc.length - 2;
} else if (_local10 > (GameData.Parts.Acc.length - 2)) {
_local10 = 0;
}
RootPartSwap(MC.accessory, "Acc", String(_local10));
}
}
function resetBoxingChen() {
if (stage["Boxing Chen"].Target) {
stage["Boxing Chen"]._xscale = 100;
stage["Boxing Chen"]._yscale = 100;
stage["Boxing Chen"].Target._rotation = stage["Boxing Chen"].TR;
stage["Boxing Chen"].Target.eyes.gotoAndStop(GameData.Parts.Eyes[GameData.Characters[stage["Boxing Chen"].Target._name].eyeFrame][1]);
if (GameData.Characters[stage["Boxing Chen"].Target._name].mouthFrame) {
stage["Boxing Chen"].Target.mouth.gotoAndStop(GameData.Parts.Mouth[GameData.Characters[stage["Boxing Chen"].Target._name].mouthFrame][1]);
stage["Boxing Chen"].Target.mouth._visible = true;
} else {
stage["Boxing Chen"].Target.mouth._visible = false;
}
stage["Boxing Chen"].Target = undefined;
}
}
function openDNAInput() {
OpenMenu(1, Interface.DNAMenu);
Interface.DNAMenu.Title.text = "DNA Strand Input";
Interface.DNAMenu.DNAdata.setNewTextFormat(GameData.TextFormats.Base);
Interface.DNAMenu.DNAdata.text = "Enter DNA";
Interface.DNAMenu.OK.bName.text = "Spawn";
Interface.DNAMenu.OK.onRelease = function () {
SwapColor(MC.BG, "Buttons", 1);
makeFromDNA(Interface.DNAMenu.DNAdata.text);
CloseMenus(1);
};
}
function showDNAstrand(O) {
OpenMenu(1, Interface.DNAMenu);
Interface.DNAMenu.Title.text = "DNA Strand";
Interface.DNAMenu.DNAdata.setNewTextFormat(GameData.TextFormats.Base);
Interface.DNAMenu.DNAdata.text = getDNA(O);
Interface.DNAMenu.OK.bName.text = "Close";
Interface.DNAMenu.OK.onRelease = function () {
SwapColor(MC.BG, "Buttons", 1);
CloseMenus(1);
};
}
function makeFromDNA(X) {
if (GameData.Presets[X]) {
var _local1 = makeChar(X);
} else {
var _local1 = makeChar("DNA-" + X);
}
injectCloneCapsule(_local1);
}
function getDNA(O) {
var _local1 = GameData.Version + ":";
_local1 = _local1 + (O.Name + ":");
_local1 = _local1 + (O.Scale + ":");
_local1 = _local1 + (O.hatFrame + ":");
_local1 = _local1 + (O.headFrame + ":");
_local1 = _local1 + (O.bodyFrame + ":");
_local1 = _local1 + (O.armFrame + ":");
_local1 = _local1 + (O.shoeFrame + ":");
_local1 = _local1 + (O.eyeFrame + ":");
_local1 = _local1 + (O.mouthFrame + ":");
_local1 = _local1 + (O.itemFrame + ":");
_local1 = _local1 + (O.accFrame + ":");
_local1 = _local1 + (O.wingFrame + ":");
_local1 = _local1 + O.HairColor.substr(2, 6);
return(_local1);
}
function injectCloneCapsule(MC) {
playSound("Pop");
GameData.Toys["Clone Capsule"].Char = GameData.Characters[MC._name];
GameData.Toys["Clone Capsule"].Target = MC;
setCharLook(stage["Clone Capsule"].char, GameData.Toys["Clone Capsule"].Char);
stage["Clone Capsule"].char._visible = true;
MC._visible = false;
Target(stage["Clone Capsule"]);
}
function ejectCloneCapsule() {
stage["Clone Capsule"].char._visible = false;
Interface.TargetFrame.preview.toy.char._visible = false;
GameData.Toys["Clone Capsule"].Target._visible = true;
GameData.Toys["Clone Capsule"].Target._x = stage["Clone Capsule"]._x;
GameData.Toys["Clone Capsule"].Target._y = stage["Clone Capsule"]._y;
GameData.Toys["Clone Capsule"].Target.XMov = random(10) + 20;
GameData.Toys["Clone Capsule"].Target.YMov = random(5) + 10;
}
function activateCloneCapsule() {
if (GameData.Toys["Clone Capsule"].Mode == 1) {
var _local1 = makeChar("Capsule Clone");
_local1.XMov = random(10) + 20;
_local1.YMov = random(5) + 10;
} else if (GameData.Toys["Clone Capsule"].Mode == 2) {
c = 0;
while (c < 6) {
var _local1 = makeChar("Capsule Clone");
_local1.XMov = random(10) + 20;
_local1.YMov = random(5) + 10;
_local1._xscale = GameData.ScaleLimit;
_local1._yscale = GameData.ScaleLimit;
GameData.Characters[_local1._name].Scale = GameData.ScaleLimit;
c++;
}
} else if (GameData.Toys["Clone Capsule"].Mode == 3) {
ejectCloneCapsule();
GameData.Toys["Clone Capsule"].Target._xscale = 100;
GameData.Toys["Clone Capsule"].Target._yscale = 100;
GameData.Characters[GameData.Toys["Clone Capsule"].Target._name].Scale = 100;
Scramble(GameData.Toys["Clone Capsule"].Target);
CloseMenus(1);
} else {
var _local1 = makeChar("Capsule Clone");
_local1.XMov = random(10) + 20;
_local1.YMov = random(5) + 10;
Scramble(_local1);
}
}
function HaxSignBE() {
stage["Grouchy Reimu"]._visible = false;
_root.attachMovie("HaxSign", "HaxSign", 9999);
GameData.Chat.Doom = 120;
HaxSign.clock = 60;
HaxSign._xscale = (Stage.width * 100) / 550;
HaxSign._yscale = (Stage.height * 100) / 400;
HaxSign.onEnterFrame = function () {
if (this.clock > 0) {
this.clock--;
} else {
this.removeMovieClip();
}
};
for (c in GameData.Characters) {
if (stage[c]._visible && (!stage[c].Pin)) {
stage[c].Doom = random(100) + 100;
}
}
Target();
}
function tinkerCloneCapsule() {
GameData.Toys["Clone Capsule"].Mode = random(4) + 1;
if (GameData.Toys["Clone Capsule"].Mode == 4) {
stage["Clone Capsule"].lights.play();
if (Interface.TargetFrame.preview.toy.lights) {
Interface.TargetFrame.preview.toy.lights.play();
}
} else {
stage["Clone Capsule"].lights.gotoAndStop(GameData.Toys["Clone Capsule"].Mode);
if (Interface.TargetFrame.preview.toy.lights) {
Interface.TargetFrame.preview.toy.lights.gotoAndStop(GameData.Toys["Clone Capsule"].Mode);
}
}
}
function setBGProperties() {
bg._x = Number(Interface.BGMenu.lX.text);
bg._y = Number(Interface.BGMenu.lY.text);
bg._xscale = Number(Interface.BGMenu.sX.text);
bg._yscale = Number(Interface.BGMenu.sX.text);
bg._rotation = Number(Interface.BGMenu.rD.text);
Dimmer._alpha = 100 - Number(Interface.BGMenu.Br.text);
GameData.Friction = getFriction(Number(Interface.BGMenu.Fr.text));
}
function SwapBG(ID) {
if (bg.fusionlab) {
c = 1;
while (c <= 3) {
if (bg.fusionlab["fusion" + c].char._visible) {
ejectFusionTank(c);
}
c++;
}
} else if (bg.yuyuko) {
StopYuyuko();
}
if (GameData.BGs[ID] == "none") {
bg._visible = false;
GameData.BG = 0;
} else {
bg._visible = true;
if (GameData.BGs[ID] == "random") {
SwapBG(random(GameData.BGs.length));
} else {
bg.gotoAndStop(GameData.BGs[ID][1]);
GameData.BG = ID;
}
}
if (bg.nameBox1) {
i = 0;
while (i < 5) {
bg["nameBox" + i].html = true;
bg["nameBox" + i].htmlText = ((GameData.Imageboard.PostHeaders[i][0] + " <font color=\"#000000\" size=\"14\">") + GameData.Imageboard.PostHeaders[i][1]) + "</font>";
bg["hitBox" + i]._alpha = 0;
bg["hitBox" + i].ID = i;
bg["hitBox" + i].onRelease = function () {
Interface.RenameMenu.ID = this.ID;
Interface.RenameMenu.iName.text = GameData.Imageboard.PostHeaders[this.ID][0];
var _local2 = new TextFormat();
_local2.font = "Arial";
Interface.RenameMenu.iName.setTextFormat(_local2);
Selection.setFocus(Interface.RenameMenu.iName);
Selection.setSelection(0, 0);
Interface.RenameMenu.OK.onRelease = function () {
GameData.Imageboard.PostHeaders[this._parent.ID][0] = Interface.RenameMenu.iName.text;
bg["nameBox" + this._parent.ID].htmlText = ((GameData.Imageboard.PostHeaders[this._parent.ID][0] + " <font color=\"#000000\" size=\"14\">") + GameData.Imageboard.PostHeaders[this._parent.ID][1]) + "</font>";
CloseMenus(1);
};
OpenMenu(3, Interface.RenameMenu, this.BG);
};
bg["tB" + i].onSetFocus = function () {
GameData.KeyLock = true;
};
bg["tB" + i].onKillFocus = function () {
GameData.KeyLock = false;
};
i++;
}
} else if (bg.randomColor) {
myColor = Math.round(Math.random() * 16777215);
myColoredObject = new Color(bg.randomColor);
myColoredObject.setRGB(myColor);
} else if (bg.yuyuko) {
bg.hitBox.onEnterFrame = function () {
if (this.DB > 0) {
this.DB--;
}
};
bg.hitBox.onRelease = function () {
if (this.DB > 0) {
if (bg.yuyuko._currentframe == 1) {
bg.yuyuko.gotoAndStop(2);
} else {
StopYuyuko();
}
this.DB = 0;
} else {
this.DB = _root.GameData.DCrate;
}
};
}
}
function StopYuyuko() {
bg.yuyuko.gotoAndStop(1);
for (c in stage) {
if (GameData.Characters[c]) {
setCharLook(stage[c], GameData.Characters[c]);
stage[c]._xscale = GameData.Characters[c].Scale;
stage[c]._yscale = GameData.Characters[c].Scale;
}
}
}
function injectFusionTank(N, T) {
playSound("Pop");
setCharLook(bg.fusionlab["fusion" + N].char, GameData.Characters[T._name]);
bg.fusionlab["fusion" + N].char._visible = true;
bg.fusionlab["fusion" + N].lights.gotoAndStop(1);
fixFusionLights();
bg.fusionlab["fusion" + N].Target = T;
T._visible = false;
Target();
}
function fixFusionLights() {
if (bg.fusionlab.fusion1.char._visible && (bg.fusionlab.fusion2.char._visible)) {
bg.fusionlab.fusion3.lights.gotoAndStop(1);
} else if (bg.fusionlab.fusion1.char._visible || (bg.fusionlab.fusion2.char._visible)) {
bg.fusionlab.fusion3.lights.gotoAndStop(2);
} else {
bg.fusionlab.fusion3.lights.gotoAndStop(3);
}
}
function activateFusion() {
if (bg.fusionlab.fusion3.char._visible) {
ejectFusionTank(3);
} else {
var _local1 = GameData.Version + ":";
var _local3 = GameData.Characters[bg.fusionlab.fusion1.Target._name].Name;
var _local2 = GameData.Characters[bg.fusionlab.fusion2.Target._name].Name;
n = 0;
while (n < GameData.Fusion.Names.length) {
if (((_local3 == GameData.Fusion.Names[n][0]) && (_local2 == GameData.Fusion.Names[n][1])) || ((_local2 == GameData.Fusion.Names[n][0]) && (_local3 == GameData.Fusion.Names[n][1]))) {
var _local4 = GameData.Fusion.Names[n][2];
} else {
var _local4 = _local3 + _local2;
}
n++;
}
_local1 = _local1 + (_local4 + ":");
var _local11 = Number(GameData.Characters[bg.fusionlab.fusion1.Target._name].Scale);
var _local9 = Number(GameData.Characters[bg.fusionlab.fusion2.Target._name].Scale);
var _local13 = (_local11 + _local9) / 2;
_local1 = _local1 + (_local13 + ":");
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].hatFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].hatFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].headFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].headFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].bodyFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].bodyFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].armFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].armFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].shoeFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].shoeFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].eyeFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].eyeFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].mouthFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].mouthFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].itemFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].itemFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].accFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].accFrame + ":");
}
if (random(2)) {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion1.Target._name].wingFrame + ":");
} else {
_local1 = _local1 + (GameData.Characters[bg.fusionlab.fusion2.Target._name].wingFrame + ":");
}
var _local7 = random(3);
if (_local7 == 1) {
_local1 = _local1 + GameData.Characters[bg.fusionlab.fusion1.Target._name].HairColor.substr(2, 6);
} else if (_local7 == 2) {
_local1 = _local1 + GameData.Characters[bg.fusionlab.fusion2.Target._name].HairColor.substr(2, 6);
} else {
var _local6 = GameData.Characters[bg.fusionlab.fusion1.Target._name].HairColor;
var _local5 = GameData.Characters[bg.fusionlab.fusion2.Target._name].HairColor;
var _local16 = (toRGB(_local6.charAt(2)) * 16) + toRGB(_local6.charAt(3));
var _local20 = (toRGB(_local6.charAt(4)) * 16) + toRGB(_local6.charAt(5));
var _local18 = (toRGB(_local6.charAt(6)) * 16) + toRGB(_local6.charAt(7));
var _local14 = (toRGB(_local5.charAt(2)) * 16) + toRGB(_local5.charAt(3));
var _local19 = (toRGB(_local5.charAt(4)) * 16) + toRGB(_local5.charAt(5));
var _local17 = (toRGB(_local5.charAt(6)) * 16) + toRGB(_local5.charAt(7));
var _local12 = (_local16 + _local14) / 2;
var _local10 = (_local20 + _local19) / 2;
var _local15 = (_local18 + _local17) / 2;
_local1 = _local1 + getRGB(_local12, _local10, _local15).substr(2, 6);
}
var _local8 = makeChar("DNA-" + _local1);
injectFusionTank(3, _local8);
}
}
function ejectFusionTank(N) {
bg.fusionlab["fusion" + N].char._visible = false;
bg.fusionlab["fusion" + N].lights.gotoAndStop(3);
bg.fusionlab["fusion" + N].Target._visible = true;
fixFusionLights();
bg.fusionlab["fusion" + N].Target._x = bg.fusionlab["fusion" + N]._x;
bg.fusionlab["fusion" + N].Target._y = bg.fusionlab["fusion" + N]._y;
Scramble(bg.fusionlab["fusion" + N].Target);
}
function BoxingChenAttack() {
var _local5 = new Array();
for (c in GameData.Characters) {
var _local1 = getDist(stage["Boxing Chen"], stage[c]._x, stage[c]._y);
if (stage[c]._visible && (_local1 < (GameData.Toys["Boxing Chen"].Range * (GameData.Characters[c].Scale / 100)))) {
_local5.push({ID:c, Dist:_local1});
}
}
_local5.sortOn(["Dist", "ID"]);
var _local2 = stage[_local5[0].ID];
if (_local2) {
playSound("Boxing");
stage["Boxing Chen"].Spin = 0;
stage["Boxing Chen"].XMov = 0;
stage["Boxing Chen"].YMov = 0;
stage["Boxing Chen"].AttackRoll = 85;
stage["Boxing Chen"].Target = _local2;
stage["Boxing Chen"].TR = _local2._rotation;
stage["Boxing Chen"]._x = _local2._x + ((30 * Math.abs(_local2._xscale)) / 100);
stage["Boxing Chen"]._y = _local2._y - ((20 * Math.abs(_local2._yscale)) / 100);
stage["Boxing Chen"]._xscale = Math.abs(_local2._xscale);
stage["Boxing Chen"]._yscale = Math.abs(_local2._yscale);
if (_local2._yscale < 0) {
_local2._rotation = 270;
} else {
_local2._rotation = 90;
}
_local2.eyes.gotoAndStop(8);
_local2.mouth.gotoAndStop(27);
_local2.mouth._visible = true;
if (stage["Boxing Chen"].getDepth() < _local2.getDepth()) {
BringToFront(stage["Boxing Chen"]);
}
}
}
GameData.Pong = new Object();
GameData.Depths = new Object();
GameData.Menus = new Object();
GameData.Menus.Functions = new Object();
GameData.Menus.OnLoad = new Object();
GameData.Keys = new Object();
GameData.Keys.Functions = new Object();
grayscaleA = [];
colorscaleA = [];
inversecolorsA = [];
grayscaleA = grayscaleA.concat([0.33, 0.33, 0.33, 0, 0]);
grayscaleA = grayscaleA.concat([0.33, 0.33, 0.33, 0, 0]);
grayscaleA = grayscaleA.concat([0.33, 0.33, 0.33, 0, 0]);
grayscaleA = grayscaleA.concat([0, 0, 0, 1, 0]);
colorscaleA = colorscaleA.concat([1, 0, 0, 0, 0]);
colorscaleA = colorscaleA.concat([0, 1, 0, 0, 0]);
colorscaleA = colorscaleA.concat([0, 0, 1, 0, 0]);
colorscaleA = colorscaleA.concat([0, 0, 0, 1, 0]);
inversecolorsA = inversecolorsA.concat([0, 1, 1, 0, 0]);
inversecolorsA = inversecolorsA.concat([1, 0, 1, 0, 0]);
inversecolorsA = inversecolorsA.concat([1, 1, 0, 0, 0]);
inversecolorsA = inversecolorsA.concat([0, 0, 0, 1, 0]);
grayfilter = new flash.filters.ColorMatrixFilter(grayscaleA);
colorfilter = new flash.filters.ColorMatrixFilter(colorscaleA);
inversefilter = new flash.filters.ColorMatrixFilter(inversecolorsA);
GameData.Keys.Functions.RightBudge = function () {
if ((Key.isDown(16) && (!GameData.SwitchArrows)) || (Key.isDown(17) && (GameData.SwitchArrows))) {
GameData.Target._rotation = GameData.Target._rotation + GameData.ASpeed;
} else if ((Key.isDown(16) && (GameData.SwitchArrows)) || (Key.isDown(17) && (!GameData.SwitchArrows))) {
GameData[getArray()][GameData.Target._name].Scale = GameData[getArray()][GameData.Target._name].Scale + GameData.ASpeed;
fixTargetScale(GameData[getArray()][GameData.Target._name].Scale);
} else {
GameData.Target._x = GameData.Target._x + GameData.ASpeed;
}
};
GameData.Keys.Functions.LeftBudge = function () {
if ((Key.isDown(16) && (!GameData.SwitchArrows)) || (Key.isDown(17) && (GameData.SwitchArrows))) {
GameData.Target._rotation = GameData.Target._rotation - GameData.ASpeed;
} else if ((Key.isDown(16) && (GameData.SwitchArrows)) || (Key.isDown(17) && (!GameData.SwitchArrows))) {
if ((GameData[getArray()][GameData.Target._name].Scale - GameData.ASpeed) >= GameData.ScaleLimit) {
GameData[getArray()][GameData.Target._name].Scale = GameData[getArray()][GameData.Target._name].Scale - GameData.ASpeed;
fixTargetScale(GameData[getArray()][GameData.Target._name].Scale);
} else {
GameData[getArray()][GameData.Target._name].Scale = GameData.ScaleLimit;
fixTargetScale(GameData[getArray()][GameData.Target._name].Scale);
}
} else {
GameData.Target._x = GameData.Target._x - GameData.ASpeed;
}
};
GameData.Keys.Functions.NextTarget = function () {
var _local1 = false;
if (Key.isDown(16)) {
i = GameData.Depths.StageList.length - 1;
while (i >= 0) {
if (stage[GameData.Depths.StageList[i].Name].Pin && (!ft)) {
var ft = stage[GameData.Depths.StageList[i].Name];
}
if (GameData.Depths.StageList[i].Depth > GameData.DLSelect) {
if (stage[GameData.Depths.StageList[i].Name].Pin) {
Target(stage[GameData.Depths.StageList[i].Name]);
GameData.DLSelect = GameData.Depths.StageList[i].Depth;
_local1 = true;
break;
}
}
i--;
}
} else {
var ft = stage[GameData.Depths.StageList[GameData.Depths.StageList.length - 1].Name];
i = GameData.Depths.StageList.length - 1;
while (i >= 0) {
if (GameData.Depths.StageList[i].Depth > GameData.DLSelect) {
Target(stage[GameData.Depths.StageList[i].Name]);
GameData.DLSelect = GameData.Depths.StageList[i].Depth;
_local1 = true;
break;
}
i--;
}
}
if (!_local1) {
Target(ft);
}
};
GameData.Keys.Functions.PrevTarget = function () {
var _local1 = false;
if (Key.isDown(16)) {
i = 0;
while (i < GameData.Depths.StageList.length) {
if (stage[GameData.Depths.StageList[i].Name].Pin && (!ft)) {
var ft = stage[GameData.Depths.StageList[i].Name];
}
if (GameData.Depths.StageList[i].Depth < GameData.DLSelect) {
if (stage[GameData.Depths.StageList[i].Name].Pin) {
Target(stage[GameData.Depths.StageList[i].Name]);
GameData.DLSelect = GameData.Depths.StageList[i].Depth;
_local1 = true;
break;
}
}
i++;
}
} else {
var ft = stage[GameData.Depths.StageList[0].Name];
i = 0;
while (i < GameData.Depths.StageList.length) {
if (GameData.Depths.StageList[i].Depth < GameData.DLSelect) {
Target(stage[GameData.Depths.StageList[i].Name]);
GameData.DLSelect = GameData.Depths.StageList[i].Depth;
_local1 = true;
break;
}
i++;
}
}
if (!_local1) {
Target(ft);
}
};
GameData.Menus.Functions.CloseWindow = function (S) {
S._parent._visible = false;
};
GameData.Menus.Functions.Delete = function (S) {
Delete(GameData.Target);
Interface.Level1Menu._visible = false;
};
GameData.Menus.Functions.DefaultColor = function (S) {
GameData.Screenshots[GameData.Target._name].Greyscale = false;
GameData.Screenshots[GameData.Target._name].Blur = false;
GameData.Target.pic.filters = [colorfilter];
};
GameData.Menus.Functions.Greyscale = function (S) {
if (GameData.Screenshots[GameData.Target._name].ColorMode == "greyscale") {
GameData.Screenshots[GameData.Target._name].ColorMode = "normal";
} else {
GameData.Screenshots[GameData.Target._name].ColorMode = "greyscale";
}
applyFilters();
};
GameData.Menus.Functions.InverseColors = function (S) {
if (GameData.Screenshots[GameData.Target._name].ColorMode == "inverse") {
GameData.Screenshots[GameData.Target._name].ColorMode = "normal";
} else {
GameData.Screenshots[GameData.Target._name].ColorMode = "inverse";
}
applyFilters();
};
GameData.Menus.Functions.Blur = function (S) {
if (GameData.Screenshots[GameData.Target._name].Blur) {
GameData.Screenshots[GameData.Target._name].Blur = false;
} else {
GameData.Screenshots[GameData.Target._name].Blur = true;
}
applyFilters();
};
GameData.Menus.Functions.SetFilter = function (S, T) {
if (T == "Blur") {
GameData.Screenshots[GameData.Target._name].BlurSettings.X = Number(S._parent.xI.text);
GameData.Screenshots[GameData.Target._name].BlurSettings.Y = Number(S._parent.yI.text);
GameData.Screenshots[GameData.Target._name].BlurSettings.Q = Number(S._parent.qI.text);
GameData.Screenshots[GameData.Target._name].Blur = true;
}
applyFilters();
};
GameData.Menus.Functions.ClearFilter = function (S, T) {
GameData.Screenshots[GameData.Target._name][T] = false;
applyFilters();
};
GameData.Menus.Functions.Glow = function (S) {
var _local1 = new flash.filters.GlowFilter(102, 0.7, 9, 9, 3, 3, true, false);
GameData.Target.pic.filters = new Array(_local1);
};
GameData.Menus.Functions.ImportImage = function (S, T) {
OpenMenu(1, Interface.DNAMenu);
Interface.DNAMenu.Title.text = "Import Image";
Interface.DNAMenu.DNAdata.setNewTextFormat(GameData.TextFormats.FURL);
Interface.DNAMenu.DNAdata.text = "Enter URL";
Interface.DNAMenu.OK.bName.text = "Import";
Interface.DNAMenu.OK.onRelease = function () {
SwapColor(MC.BG, "Buttons", 1);
if (GameData.Origin != "Local") {
var _local2 = GameData.Origin.length;
var _local3 = Interface.DNAMenu.DNAdata.text.substr(0, _local2);
if (_local3 == GameData.Origin) {
makeImage(Interface.DNAMenu.DNAdata.text);
CloseMenus(1);
} else {
GameData.Menus.Functions.OpenHelp();
Interface.HelpWindow.BasicHelpMenu._visible = false;
playSound("Pop");
Interface.HelpWindow.Next._visible = true;
SwapColor(this.BG, "Buttons", 1);
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Import;
Interface.HelpWindow.Next.onRelease = function () {
resetHelp();
};
}
} else {
makeImage(Interface.DNAMenu.DNAdata.text);
CloseMenus(1);
}
};
};
GameData.Menus.Functions.MakeBubble = function (S, T) {
makeSpeechBubble(T);
};
GameData.Menus.Functions.Randomize = function (S, T) {
if (T == "All") {
for (c in GameData.Characters) {
RandomizeAll(stage[c]);
}
} else {
RandomizeAll(GameData.Target);
}
};
GameData.Menus.Functions.OpenWindow = function (S, T) {
OpenMenu(1, Interface[T]);
OnLoadHandler(Interface[T]);
};
GameData.Menus.Functions.GeneralOptions = function (S) {
OpenMenu(1, Interface.GeneralOptions);
OnLoadHandler(Interface.GeneralOptions);
};
GameData.Menus.Functions.BubbleOptions = function (S) {
OpenMenu(1, Interface.BubbleWindow, this.BG);
Interface.BubbleWindow.gX.text = GameData.Target._x;
Interface.BubbleWindow.gY.text = GameData.Target._y;
Interface.BubbleWindow.gXs.text = GameData.Target._xscale;
Interface.BubbleWindow.gYs.text = GameData.Target._yscale;
Interface.BubbleWindow.gR.text = GameData.Target._rotation;
Interface.BubbleWindow.bX.text = GameData.Target.Bubble._x;
Interface.BubbleWindow.bY.text = GameData.Target.Bubble._y;
Interface.BubbleWindow.bXs.text = GameData.Target.Bubble._xscale;
Interface.BubbleWindow.bYs.text = GameData.Target.Bubble._yscale;
Interface.BubbleWindow.bR.text = GameData.Target.Bubble._rotation;
Interface.BubbleWindow.tX.text = GameData.Target.D._x;
Interface.BubbleWindow.tY.text = GameData.Target.D._y;
Interface.BubbleWindow.tR.text = GameData.Target.D._rotation;
};
GameData.Menus.Functions.SetText = function (S) {
CloseMenus(1);
editBubble(GameData.Target);
};
GameData.Menus.Functions.SetFont = function (S, T) {
var _local1 = new TextFormat();
_local1.font = T;
GameData.Target.D.setTextFormat(_local1);
GameData.Target.D.setNewTextFormat(_local1);
};
GameData.Menus.Functions.SetDefaultColor = function (S) {
if (GameData.TargetType == "Character") {
colorHex = "0x" + GameData.Parts.Hair[GameData.Characters[GameData.Target._name].headFrame][6];
GameData.Characters[GameData.Target._name].HairColor = colorHex;
ColorPalette(GameData.Target.head.HairColor, colorHex);
ColorPalette(Interface.TargetFrame.preview.char.hair.HairColor, colorHex);
ColorPalette(GameData.Target.head2.HairColor, colorHex);
ColorPalette(Interface.TargetFrame.preview.char.head2.HairColor, colorHex);
} else if (GameData.TargetType == "SpeechBubble") {
colorHex = "0x000000";
var _local1 = new TextFormat();
_local1.color = colorHex;
GameData.Target.D.setTextFormat(_local1);
GameData.Target.D.setNewTextFormat(_local1);
}
ColorPalette(Interface.ColorizeMenu.palette.Cp.BG, colorHex);
Interface.ColorizeMenu.palette.Rs._x = (toRGB(colorHex.charAt(2)) * 16) + toRGB(colorHex.charAt(3));
Interface.ColorizeMenu.palette.Gs._x = (toRGB(colorHex.charAt(4)) * 16) + toRGB(colorHex.charAt(5));
Interface.ColorizeMenu.palette.Bs._x = (toRGB(colorHex.charAt(6)) * 16) + toRGB(colorHex.charAt(7));
};
GameData.Menus.Functions.SetRandomColor = function (S) {
Interface.ColorizeMenu.palette.Rs._x = random(256);
Interface.ColorizeMenu.palette.Gs._x = random(256);
Interface.ColorizeMenu.palette.Bs._x = random(256);
SwapPalette(Interface.ColorizeMenu.palette);
};
GameData.Menus.Functions.ColorizeMenu = function (S) {
colorHex = GameData.Characters[GameData.Target._name].HairColor;
ColorPalette(Interface.ColorizeMenu.palette.Cp.BG, colorHex);
Interface.ColorizeMenu.palette.Rs._x = (toRGB(colorHex.charAt(2)) * 16) + toRGB(colorHex.charAt(3));
Interface.ColorizeMenu.palette.Gs._x = (toRGB(colorHex.charAt(4)) * 16) + toRGB(colorHex.charAt(5));
Interface.ColorizeMenu.palette.Bs._x = (toRGB(colorHex.charAt(6)) * 16) + toRGB(colorHex.charAt(7));
OpenMenu(1, Interface.ColorizeMenu);
OnLoadHandler(Interface.ColorizeMenu);
};
GameData.Menus.Functions.ClusterDir = function (S) {
if (GameData.Clusters[GameData.Target._name].Dir == "Out") {
GameData.Clusters[GameData.Target._name].Dir = "In";
S.bName.text = "In";
} else if (GameData.Clusters[GameData.Target._name].Dir == "In") {
GameData.Clusters[GameData.Target._name].Dir = "Linear";
S.bName.text = "Linear";
} else if (GameData.Clusters[GameData.Target._name].Dir == "Linear") {
GameData.Clusters[GameData.Target._name].Dir = "Random";
S.bName.text = "Random";
} else {
GameData.Clusters[GameData.Target._name].Dir = "Out";
S.bName.text = "Out";
}
fixCluster(GameData.Target);
OnLoadHandler(Interface.ClusterOptions);
};
GameData.Menus.Functions.LocksMenu = function (S) {
if (Interface.LockMenu._visible) {
CloseMenus(2);
SwapColor(S.BG, "Buttons", 1);
} else {
checkLocks(GameData.Characters[GameData.Target._name], Interface.LockMenu);
OpenMenu(2, Interface.LockMenu, this.BG);
SwapColor(S.BG, "Buttons", 2);
}
};
GameData.Menus.Functions.Clusterize = function (S) {
var _local2 = GameData.Objects[GameData.Target._name].Scale;
var _local1 = makeCluster(GameData.Objects[GameData.Target._name].Type);
_local1._xscale = _local2;
_local1._yscale = _local2;
GameData.Clusters[_local1._name].Scale = _local2;
Delete(GameData.Target);
Target(_local1);
};
GameData.Menus.Functions.TurnIntoRain = function (S) {
var _local2 = GameData.Objects[GameData.Target._name].Scale;
var _local1 = makeRain(GameData.Objects[GameData.Target._name].Type);
_local1._xscale = _local2;
_local1._yscale = _local2;
GameData.Rain[_local1._name].Scale = _local2;
Delete(GameData.Target);
Target(_local1);
};
GameData.Menus.Functions.CharOptions = function (S) {
openCOMenu();
};
GameData.Menus.Functions.ShowTargetDNA = function (S) {
showDNAstrand(GameData.Characters[GameData.Target._name]);
};
GameData.Menus.Functions.BringToFront = function (S) {
BringToFront(GameData.Target);
};
GameData.Menus.Functions.BringForward = function (S) {
BringForward(GameData.Target);
};
GameData.Menus.Functions.SendBackward = function (S) {
SendBackward(GameData.Target);
};
GameData.Menus.Functions.SendToBack = function (S) {
SendToBack(GameData.Target);
};
GameData.Menus.Functions.VerticalFlip = function (S) {
VFlip();
};
GameData.Menus.Functions.HorizontalFlip = function (S) {
HFlip();
};
GameData.Menus.Functions.Rename = function (S) {
if (Interface.RenameMenu._visible) {
CloseMenus(3);
SwapColor(this.BG, "Buttons", 1);
} else {
resetRenameMenu();
var _local2 = new TextFormat();
_local2.font = "Wild Words";
Interface.RenameMenu.iName.setNewTextFormat(_local2);
if (GameData.TargetType == "Character") {
Interface.RenameMenu.iName.text = GameData.Characters[GameData.Target._name].Name;
} else if (GameData.TargetType == "Object") {
Interface.RenameMenu.iName.text = GameData.Objects[GameData.Target._name].Name;
} else if (GameData.TargetType == "SpeechBubble") {
Interface.RenameMenu.iName.text = GameData.SpeechBubbles[GameData.Target._name].Name;
} else if (GameData.TargetType == "Screenshot") {
Interface.RenameMenu.iName.text = GameData.Screenshots[GameData.Target._name].Name;
}
Selection.setFocus(Interface.RenameMenu.iName);
OpenMenu(3, Interface.RenameMenu, this.BG);
SwapColor(this.BG, "Buttons", 2);
}
};
GameData.Menus.Functions.PartsList = function (S) {
if (S.bName.text == "Mouth") {
var _local3 = Interface.MouthMenu;
} else if (S.bName.text == "Eyes") {
var _local3 = Interface.EyesMenu;
} else if (S.bName.text == "Hair") {
var _local3 = Interface.HairMenu;
} else if (S.bName.text == "Body") {
var _local3 = Interface.BodyMenu;
} else if (S.bName.text == "Arms") {
var _local3 = Interface.ArmsMenu;
} else if (S.bName.text == "Shoes") {
var _local3 = Interface.ShoesMenu;
} else if (S.bName.text == "Back") {
var _local3 = Interface.BackMenu;
} else if (S.bName.text == "Accessory") {
var _local3 = Interface.AccMenu;
} else if (S.bName.text == "Items") {
var _local3 = Interface.ItemMenu;
} else if (S.bName.text == "Hat") {
var _local3 = Interface.HatMenu;
}
if (GameData.Locks[S.bName.text] || (GameData.Characters[GameData.Target._name].Locks[S.bName.text])) {
OpenMenu(3, Interface.HelpWindow, this);
resetHelp();
Interface.HelpWindow.BasicHelpMenu._visible = false;
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Locks;
Interface.HelpWindow.Next._visible = true;
Interface.HelpWindow.Next.onRelease = function () {
Interface.HelpWindow._visible = false;
};
} else if (_local3._visible) {
CloseMenus(3);
SwapColor(S.BG, "Buttons", 1);
} else {
_local3._x = S._parent._x + 210;
OpenMenu(3, _local3, S);
SwapColor(S.BG, "Buttons", 2);
}
};
GameData.Menus.Functions.OpenHelp = function (S) {
if (Interface.HelpWindow._visible) {
CloseMenus(2);
SwapColor(S.BG, "Buttons", 1);
} else {
resetHelp();
CloseMenus(1);
OpenMenu(2, Interface.HelpWindow, S);
SwapColor(S.BG, "Buttons", 2);
}
};
GameData.Menus.Functions.NewChar = function (S) {
makeChar();
};
GameData.Menus.Functions.OpenMenu = function (S, T, L) {
if (GameData.Menus[T]) {
SetMenu(L, T, S, S._parent._x, S._parent._y);
} else {
var _local2 = Interface[T];
_local2._x = S._parent._x + 110;
NewOpenMenu(S, _local2, L);
}
};
GameData.Menus.Functions.OptionsMenu = function (S) {
OpenMenu(1, Interface.OpsMenu, S);
fixOpsMenu();
SwapColor(S.BG, "Buttons", 1);
};
GameData.Menus.Functions.Shrink = function (S, T) {
if ((T == "Characters") || (T == "All")) {
for (c in GameData.Characters) {
if (GameData.Characters[c].Scale > 40) {
GameData.Characters[c].Scale = 40;
stage[c]._xscale = 40 * stage[c].XFace;
stage[c]._yscale = 40 * stage[c].YFace;
}
}
}
if ((T == "Objects") || (T == "All")) {
for (c in GameData.Objects) {
if (GameData.Objects[c].Scale > 40) {
GameData.Objects[c].Scale = 40;
stage[c]._xscale = 40 * stage[c].XFace;
stage[c]._yscale = 40 * stage[c].YFace;
}
}
}
if ((T == "Bubbles") || (T == "All")) {
for (c in GameData.SpeechBubbles) {
if (GameData.SpeechBubbles[c].Scale > 40) {
GameData.SpeechBubbles[c].Scale = 40;
stage[c]._xscale = 40 * stage[c].XFace;
stage[c]._yscale = 40 * stage[c].YFace;
}
}
}
if ((T == "Screenshots") || (T == "All")) {
for (c in GameData.Screenshots) {
if (GameData.Screenshots[c].Scale > 40) {
GameData.Screenshots[c].Scale = 40;
stage[c]._xscale = 40 * stage[c].XFace;
stage[c]._yscale = 40 * stage[c].YFace;
}
}
}
};
GameData.Menus.Functions.Clear = function (S, T) {
if ((T == "Characters") || (T == "All")) {
for (c in GameData.Characters) {
Delete(stage[c]);
}
}
if ((T == "Clusters") || (T == "All")) {
for (c in GameData.Clusters) {
Delete(stage[c]);
}
}
if ((T == "Objects") || (T == "All")) {
for (c in GameData.Objects) {
Delete(stage[c]);
}
}
if ((T == "Bubbles") || (T == "All")) {
for (c in GameData.SpeechBubbles) {
Delete(stage[c]);
}
}
if ((T == "Screenshots") || (T == "All")) {
for (c in GameData.Screenshots) {
Delete(stage[c]);
}
}
if ((T == "BG") || (T == "All")) {
SwapBG(0);
}
};
GameData.Menus.Functions.Scramble = function (S) {
for (c in GameData.Characters) {
Scramble(stage[c]);
}
};
GameData.Menus.Functions.ShowToy = function (S, T) {
if (stage[T]._visible) {
Delete(stage[T]);
} else {
GameData.Depths.StageList.push({Name:T, Type:"Toys", Depth:stage[T].getDepth()});
GameData.Depths.StageList.sortOn("Depth", Array.DESCENDING | Array.NUMERIC);
stage[T]._visible = true;
if (T == "GravityWell") {
SendToBack(stage[T]);
} else if (T != "Mysterious Gap") {
BringToFront(stage[T]);
}
}
};
GameData.Menus.OnLoad.isXLoc = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Target._x;
};
GameData.Menus.OnLoad.isYLoc = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Target._y;
};
GameData.Menus.OnLoad.isScale = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData[getArray()][GameData.Target._name].Scale;
};
GameData.Menus.OnLoad.isRotation = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Target._rotation;
};
GameData.Menus.OnLoad.isAlpha = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Target._alpha;
};
GameData.Menus.OnLoad.isClusterRows = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Clusters[GameData.Target._name].Rows;
};
GameData.Menus.OnLoad.isClusterCols = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Clusters[GameData.Target._name].Cols;
};
GameData.Menus.OnLoad.isClusterDist = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Clusters[GameData.Target._name].Distance;
};
GameData.Menus.OnLoad.isClusterSpiral = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Clusters[GameData.Target._name].Spiral;
};
GameData.Menus.OnLoad.isClusterSpread = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Clusters[GameData.Target._name].Spread;
};
GameData.Menus.OnLoad.isClusterRMod = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Clusters[GameData.Target._name].RMod;
};
GameData.Menus.OnLoad.isClusterSD = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Clusters[GameData.Target._name].StartDist;
};
GameData.Menus.OnLoad.ClusterPoint = function (MC, i) {
if (GameData.Clusters[GameData.Target._name].TowardsPoint) {
MC[MC.OnLoad[i][0]].gotoAndStop(2);
} else {
MC[MC.OnLoad[i][0]].gotoAndStop(1);
}
};
GameData.Menus.OnLoad.isClusterDir = function (MC, i) {
MC[MC.OnLoad[i][0]].bName.text = GameData.Clusters[GameData.Target._name].Dir;
};
GameData.Menus.OnLoad.isRDensity = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Rain[GameData.Target._name].Qty;
};
GameData.Menus.OnLoad.isRTwirlMin = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Rain[GameData.Target._name].Rmin;
};
GameData.Menus.OnLoad.isRTwirlMax = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Rain[GameData.Target._name].Rmax;
};
GameData.Menus.OnLoad.isRXMin = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Rain[GameData.Target._name].Xmin;
};
GameData.Menus.OnLoad.isRXMax = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Rain[GameData.Target._name].Xmax;
};
GameData.Menus.OnLoad.isRYMin = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Rain[GameData.Target._name].Ymin;
};
GameData.Menus.OnLoad.isRYMax = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Rain[GameData.Target._name].Ymax;
};
GameData.Menus.OnLoad.isRGB = function (MC, i) {
if (GameData.TargetType == "Character") {
MC[MC.OnLoad[i][0]].text = GameData.Characters[GameData.Target._name].HairColor.substr(2, 6);
} else if (GameData.TargetType == "SpeechBubble") {
MC[MC.OnLoad[i][0]].text = GameData.SpeechBubbles[GameData.Target._name].FontColor.substr(2, 6);
}
};
GameData.Menus.OnLoad.isBlurX = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Screenshots[GameData.Target._name].BlurSettings.X;
};
GameData.Menus.OnLoad.isBlurY = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Screenshots[GameData.Target._name].BlurSettings.Y;
};
GameData.Menus.OnLoad.isBlurQ = function (MC, i) {
MC[MC.OnLoad[i][0]].text = GameData.Screenshots[GameData.Target._name].BlurSettings.Q;
};
nextFrame();
Frame 4
var my_so = SharedObject.getLocal("walfas_create_savedata");
GameData.Version = 3.29;
GameData.DevMode = true;
GameData.Action = "";
GameData.Target = "";
GameData.Friction = 0.9;
GameData.ScaleLimit = 10;
GameData.DCrate = 15;
GameData.CharID = 0;
GameData.ObjID = 0;
GameData.BubbleID = 0;
GameData.SSID = 0;
GameData.ClusterID = 0;
GameData.RainID = 0;
GameData.BG = 0;
GameData.DLSelect = 0;
GameData.MSRate = 15;
GameData.ASpeed = 1;
GameData.GameOn = false;
GameData.SwitchArrows = false;
GameData.ShowManipulator = false;
GameData.ShowManipulatorMenu = true;
GameData.BGAutoScale = true;
GameData.ClickStopsSpin = true;
GameData.PresetWithItems = true;
GameData.MassLocking = false;
GameData.OldQS = true;
GameData.KeepColor = false;
GameData.Mute = false;
GameData.KeylockPinned = false;
GameData.UntargetablePinned = false;
GameData.HeadRotates = true;
GameData.StageCache = true;
GameData.DefaultChar = "Meiling";
GameData.Pong.HiScore = 0;
GameData.Depths.Max = 0;
GameData.Depths.StageList = new Array();
GameData.Menus.Max = 3;
GameData.Menus.AutoScale = true;
GameData.Menus.DMax = 0;
GameData.Menus.Size = 100;
GameData.Menus.Targets = new Object();
GameData.Menus.MainMenu = new Object();
GameData.Menus.MainMenu.Size = 140;
GameData.Menus.MainMenu.XMod = 0;
GameData.Menus.MainMenu.YMod = 0;
GameData.Menus.MainMenu.Items = new Array();
AddMenuItem("MainMenu", "Options", "OptionsMenu");
AddMenuItem("MainMenu", "Insert", "Open-InsertMenu-2");
AddMenuItem("MainMenu", "Global Locks", "Open-GlobalLockMenu-2");
AddMenuItem("MainMenu", "Stage", "Open-StageMenu-2");
AddMenuItem("MainMenu", "Background", "Open-BGMenu-2");
AddMenuItem("MainMenu", "Toys", "Open-ToyMenu-2");
AddMenuItem("MainMenu", "Load Preset", "Open-PresetMenu-2");
AddMenuItem("MainMenu", "New Character", "NewChar");
AddMenuItem("MainMenu", "Help Me Eirin!", "OpenHelp");
GameData.Menus.CharacterMenu = new Object();
GameData.Menus.CharacterMenu.Size = 140;
GameData.Menus.CharacterMenu.XMod = 0;
GameData.Menus.CharacterMenu.YMod = 0;
GameData.Menus.CharacterMenu.Items = new Array();
AddMenuItem("CharacterMenu", "Show DNA", "ShowTargetDNA");
AddMenuItem("CharacterMenu", "Options", "CharOptions");
AddMenuItem("CharacterMenu", "Colorize", "ColorizeMenu");
AddMenuItem("CharacterMenu", "Lock Parts", "LocksMenu");
AddMenuItem("CharacterMenu", "Change Parts", "Open-PartsMenu-2");
AddMenuItem("CharacterMenu", "Edit", "Open-EditMenu-2");
AddMenuItem("CharacterMenu", "Randomize", "Randomize");
AddMenuItem("CharacterMenu", "Delete", "Delete");
GameData.Menus.ObjectMenu = new Object();
GameData.Menus.ObjectMenu.Size = 140;
GameData.Menus.ObjectMenu.XMod = 0;
GameData.Menus.ObjectMenu.YMod = 0;
GameData.Menus.ObjectMenu.Items = new Array();
AddMenuItem("ObjectMenu", "Options", "OpenWindow-GeneralOptions");
AddMenuItem("ObjectMenu", "Clusterize", "Clusterize");
AddMenuItem("ObjectMenu", "Rain!", "TurnIntoRain");
AddMenuItem("ObjectMenu", "Edit", "Open-EditMenu-2");
AddMenuItem("ObjectMenu", "Delete", "Delete");
GameData.Menus.RainMenu = new Object();
GameData.Menus.RainMenu.Size = 140;
GameData.Menus.RainMenu.XMod = 0;
GameData.Menus.RainMenu.YMod = 0;
GameData.Menus.RainMenu.Items = new Array();
AddMenuItem("RainMenu", "Options", "OpenWindow-RainOptions");
AddMenuItem("RainMenu", "Edit", "Open-EditMenu-2");
AddMenuItem("RainMenu", "Delete", "Delete");
GameData.Menus.SSMenu = new Object();
GameData.Menus.SSMenu.Size = 140;
GameData.Menus.SSMenu.XMod = 0;
GameData.Menus.SSMenu.YMod = 0;
GameData.Menus.SSMenu.Items = new Array();
AddMenuItem("SSMenu", "Options", "OpenWindow-SnapshotOptions");
AddMenuItem("SSMenu", "Filters", "Open-FilterMenu-2");
AddMenuItem("SSMenu", "Edit", "Open-EditMenu-2");
AddMenuItem("SSMenu", "Delete", "Delete");
GameData.Menus.FilterMenu = new Object();
GameData.Menus.FilterMenu.Size = 140;
GameData.Menus.FilterMenu.XMod = 140;
GameData.Menus.FilterMenu.YMod = 40;
GameData.Menus.FilterMenu.Items = new Array();
AddMenuItem("FilterMenu", "Reset", "DefaultColor");
AddMenuItem("FilterMenu", "Greyscale", "Greyscale");
AddMenuItem("FilterMenu", "Inverse Colors", "InverseColors");
AddMenuItem("FilterMenu", "Blur", "OpenWindow-BlurSettings");
GameData.Menus.ClusterMenu = new Object();
GameData.Menus.ClusterMenu.Size = 140;
GameData.Menus.ClusterMenu.XMod = 0;
GameData.Menus.ClusterMenu.YMod = 0;
GameData.Menus.ClusterMenu.Items = new Array();
AddMenuItem("ClusterMenu", "Options", "OpenWindow-ClusterOptions");
AddMenuItem("ClusterMenu", "Edit", "Open-EditMenu-2");
AddMenuItem("ClusterMenu", "Delete", "Delete");
GameData.Menus.BubbleMenu = new Object();
GameData.Menus.BubbleMenu.Size = 140;
GameData.Menus.BubbleMenu.XMod = 0;
GameData.Menus.BubbleMenu.YMod = 0;
GameData.Menus.BubbleMenu.Items = new Array();
AddMenuItem("BubbleMenu", "Options", "BubbleOptions");
AddMenuItem("BubbleMenu", "Colorize", "ColorizeMenu");
AddMenuItem("BubbleMenu", "Set Font", "Open-FontMenu-2");
AddMenuItem("BubbleMenu", "Edit", "Open-EditMenu-2");
AddMenuItem("BubbleMenu", "Set Text", "SetText");
AddMenuItem("BubbleMenu", "Delete", "Delete");
GameData.Menus.FontMenu = new Object();
GameData.Menus.FontMenu.Size = 140;
GameData.Menus.FontMenu.XMod = 140;
GameData.Menus.FontMenu.YMod = 40;
GameData.Menus.FontMenu.Items = new Array();
AddMenuItem("FontMenu", "Arial", "SetFont-Arial");
AddMenuItem("FontMenu", "Brankovic", "SetFont-Brankovic");
AddMenuItem("FontMenu", "Geek a byte", "SetFont-Geek a byte");
AddMenuItem("FontMenu", "GungsuhChe", "SetFont-GungsuhChe");
AddMenuItem("FontMenu", "MS UI Gothic", "SetFont-MS UI Gothic");
AddMenuItem("FontMenu", "Necropsy", "SetFont-Necropsy");
AddMenuItem("FontMenu", "Wild Words", "SetFont-Wild Words");
GameData.Menus.EditMenu = new Object();
GameData.Menus.EditMenu.Size = 140;
GameData.Menus.EditMenu.XMod = 140;
GameData.Menus.EditMenu.YMod = 40;
GameData.Menus.EditMenu.Items = new Array();
AddMenuItem("EditMenu", "Rename", "Rename");
AddMenuItem("EditMenu", "Horizontal Flip", "HorizontalFlip");
AddMenuItem("EditMenu", "Vertical Flip", "VerticalFlip");
AddMenuItem("EditMenu", "Send to Back", "SendToBack");
AddMenuItem("EditMenu", "Send Backward", "SendBackward");
AddMenuItem("EditMenu", "Bring Forward", "BringForward");
AddMenuItem("EditMenu", "Bring to Front", "BringToFront");
GameData.Menus.PartsMenu = new Object();
GameData.Menus.PartsMenu.Size = 100;
GameData.Menus.PartsMenu.XMod = -100;
GameData.Menus.PartsMenu.YMod = 40;
GameData.Menus.PartsMenu.Items = new Array();
AddMenuItem("PartsMenu", "Mouth", "PartsList");
AddMenuItem("PartsMenu", "Eyes", "PartsList");
AddMenuItem("PartsMenu", "Hair", "PartsList");
AddMenuItem("PartsMenu", "Body", "PartsList");
AddMenuItem("PartsMenu", "Arms", "PartsList");
AddMenuItem("PartsMenu", "Shoes", "PartsList");
AddMenuItem("PartsMenu", "Back", "PartsList");
AddMenuItem("PartsMenu", "Accessory", "PartsList");
AddMenuItem("PartsMenu", "Items", "PartsList");
AddMenuItem("PartsMenu", "Hat", "PartsList");
GameData.Menus.StageMenu = new Object();
GameData.Menus.StageMenu.Size = 140;
GameData.Menus.StageMenu.XMod = 140;
GameData.Menus.StageMenu.YMod = 40;
GameData.Menus.StageMenu.Items = new Array();
AddMenuItem("StageMenu", "Clear", "Open-ClearMenu-3");
AddMenuItem("StageMenu", "Randomize All", "Randomize-All");
AddMenuItem("StageMenu", "Scramble!", "Scramble");
AddMenuItem("StageMenu", "Shrink", "Open-ShrinkMenu-3");
GameData.Menus.ShrinkMenu = new Object();
GameData.Menus.ShrinkMenu.Size = 140;
GameData.Menus.ShrinkMenu.XMod = 140;
GameData.Menus.ShrinkMenu.YMod = 40;
GameData.Menus.ShrinkMenu.Items = new Array();
AddMenuItem("ShrinkMenu", "Characters", "Shrink-Characters");
AddMenuItem("ShrinkMenu", "Objects", "Shrink-Objects");
AddMenuItem("ShrinkMenu", "Bubbles", "Shrink-Bubbles");
AddMenuItem("ShrinkMenu", "Screenshots", "Shrink-Screenshots");
AddMenuItem("ShrinkMenu", "Everything", "Shrink-All");
GameData.Menus.ClearMenu = new Object();
GameData.Menus.ClearMenu.Size = 140;
GameData.Menus.ClearMenu.XMod = 140;
GameData.Menus.ClearMenu.YMod = 100;
GameData.Menus.ClearMenu.Items = new Array();
AddMenuItem("ClearMenu", "Characters", "Clear-Characters");
AddMenuItem("ClearMenu", "Clusters", "Clear-Clusters");
AddMenuItem("ClearMenu", "Objects", "Clear-Objects");
AddMenuItem("ClearMenu", "Bubbles", "Clear-Bubbles");
AddMenuItem("ClearMenu", "Screenshots", "Clear-Screenshots");
AddMenuItem("ClearMenu", "Background", "Clear-BG");
AddMenuItem("ClearMenu", "Everything", "Clear-All");
GameData.Menus.InsertMenu = new Object();
GameData.Menus.InsertMenu.Size = 140;
GameData.Menus.InsertMenu.XMod = 140;
GameData.Menus.InsertMenu.YMod = 40;
GameData.Menus.InsertMenu.Items = new Array();
AddMenuItem("InsertMenu", "Object", "Open-ObjectList-3");
AddMenuItem("InsertMenu", "Bubble", "Open-makeBubbleMenu-3");
AddMenuItem("InsertMenu", "Image", "ImportImage");
GameData.Menus.makeBubbleMenu = new Object();
GameData.Menus.makeBubbleMenu.Size = 140;
GameData.Menus.makeBubbleMenu.XMod = 140;
GameData.Menus.makeBubbleMenu.YMod = 40;
GameData.Menus.makeBubbleMenu.Items = new Array();
AddMenuItem("makeBubbleMenu", "Speech", "MakeBubble-1");
AddMenuItem("makeBubbleMenu", "Thought", "MakeBubble-2");
AddMenuItem("makeBubbleMenu", "Box", "MakeBubble-3");
AddMenuItem("makeBubbleMenu", "Floating", "MakeBubble-4");
GameData.Menus.ToyMenu = new Object();
GameData.Menus.ToyMenu.Size = 140;
GameData.Menus.ToyMenu.XMod = 140;
GameData.Menus.ToyMenu.YMod = 40;
GameData.Menus.ToyMenu.Items = new Array();
AddMenuItem("ToyMenu", "Mysterious Gap", "ShowToy-Mysterious Gap");
AddMenuItem("ToyMenu", "Clone Capsule", "ShowToy-Clone Capsule");
AddMenuItem("ToyMenu", "Boxing Chen", "ShowToy-Boxing Chen");
AddMenuItem("ToyMenu", "Gravity Well", "ShowToy-Gravity Well");
AddMenuItem("ToyMenu", "Grouchy Reimu", "ShowToy-Grouchy Reimu");
GameData.Buttons = new Object();
GameData.Buttons.Opacity = 85;
GameData.Keys.Dev = false;
GameData.Keys.Space = false;
GameData.Keys.G = false;
GameData.Keys.R = false;
GameData.Keys.F = false;
GameData.Keys.L = false;
GameData.Keys.U = false;
GameData.Keys.P = false;
GameData.Keys.T = false;
GameData.Keys.M = false;
GameData.Keys.S = false;
GameData.Keys.C = false;
GameData.Keys.D = false;
GameData.Keys.Delete = false;
GameData.Keys.Insert = false;
GameData.Keys.Up = false;
GameData.Keys.Down = false;
GameData.Keys.Left = false;
GameData.Keys.Right = false;
GameData.Keys.NextT = false;
GameData.Keys.PrevT = false;
GameData.Locks = new Object();
GameData.Locks.Mouth = false;
GameData.Locks.Eyes = false;
GameData.Locks.Hair = false;
GameData.Locks.Body = false;
GameData.Locks.Arms = false;
GameData.Locks.Shoes = false;
GameData.Locks.Back = false;
GameData.Locks.Accessory = false;
GameData.Locks.Items = false;
GameData.Locks.Hats = false;
GameData.Help = new Object();
GameData.Help.WalfasLinkX = -40;
GameData.Help.WalfasLinkY = 50;
GameData.Help.Locks = "That part is locked!\n\n";
GameData.Help.Locks = GameData.Help.Locks + "Go to target character's\nlock settings to unlock it.\n\n";
GameData.Help.Locks = GameData.Help.Locks + "If the character's lock for this part is unchecked, then try the global lock settings under the main menu.\n\n";
GameData.Help.Locks = GameData.Help.Locks + "The global lock and unlock all will also affect each character's locks.";
GameData.Help.Intro = "Hello, Eirin here to\nhelp you with learning\nhow to use this program.\n\n";
GameData.Help.Intro = GameData.Help.Intro + "What would you like to know?";
GameData.Help.Basics = "Click \"New Character\"\nto spawn a new character.\n";
GameData.Help.Basics = GameData.Help.Basics + "You can click on characters\nto select them. ";
GameData.Help.Basics = GameData.Help.Basics + "Dragging their body will move them. ";
GameData.Help.Basics = GameData.Help.Basics + "Dragging their head will rotate them. ";
GameData.Help.Basics = GameData.Help.Basics + "Holding shift while dragging will scale them.\n\n";
GameData.Help.Basics = GameData.Help.Basics + "When you click on a character, a target frame will appear on the bottom. ";
GameData.Help.Basics = GameData.Help.Basics + "Clicking this will bring up more options.";
GameData.Help.Updates = ("Welcome to version " + GameData.Version) + " of create.swf!\n\n";
GameData.Help.Updates = GameData.Help.Updates + "Text in text bubbles can now be colorized!\n\n";
GameData.Help.Updates = GameData.Help.Updates + "Check the target menu for snapshots for the new filters option! ";
GameData.Help.Updates = GameData.Help.Updates + "You can import external images now from the insert menu. ";
GameData.Help.Updates = GameData.Help.Updates + "Save and run create.swf locally to import from anywhere!";
GameData.Help.Import = "\n\nYou're viewing this online!\n\n";
GameData.Help.Import = GameData.Help.Import + "You will only be able to import images from walfas.org.\n\n";
GameData.Help.Import = GameData.Help.Import + "If you wish to import images from anywhere, download the create.swf and run it locally.";
GameData.Help.About = ("This is version " + GameData.Version) + " of\ncreate.swf.\n\n";
GameData.Help.About = GameData.Help.About + "This program is property of\n\n\n\nand was originally created by KirbyM. ";
GameData.Help.About = GameData.Help.About + "The new version was coded by Thefre.";
GameData.Help.Rumors = new Array();
GameData.Help.Rumors.push("\n\n\n\nI hear Nitori is researching cloning technology.");
GameData.Help.Rumors.push("\n\n\n\nSuika has been playing tricks on people lately.");
GameData.Help.Rumors.push("\n\n\n\nBetter not get Reimu angry!");
GameData.Help.Rumors.push("\n\n\n\nI heard there's been a mysterious gap floating around Gensokyo.");
GameData.Help.Rumors.push("\n\n\n\nI think Chen is lurking around somewhere.");
GameData.Help.Rumors.push("\n\n\n\nI hear some of the backgrounds are interactive!");
GameData.Help.Rumors.push("\n\n\n\nI think Marisa stole some of my...\"Precious Things\".");
GameData.Help.Rumors.push("\n\n\n\nThis is only a demo! There's still lots more features planned.");
GameData.Chat = new Object();
GameData.Chat.Active = true;
GameData.Chat.D = 0;
GameData.Chat.L = 0;
GameData.Chat.Delay = 15;
GameData.Chat.Doom = 0;
GameData.Chat.Users = new Object();
GameData.Chat.Users.LOLSpark = new Array();
GameData.Chat.Users.LOLSpark.push("Hey Reimu!");
GameData.Chat.Users.LOLSpark.push("Hey Reimu!!");
GameData.Chat.Users.LOLSpark.push("Hey Reimu!!!!");
GameData.Chat.Users.LOLSpark.push("Reimu!!");
GameData.Chat.Users.LOLSpark.push("Reimuuuuu!!");
GameData.Chat.Users.LOLSpark.push("Raymoooooo!!");
GameData.Chat.Users.LOLSpark.push("Reimu Reimu Reimu");
GameData.Chat.Users.LOLSpark.push("Reimu!! Are you there???");
GameData.Chat.Users.WakiMiko = new Array();
GameData.Chat.Users.WakiMiko.push("stop it please");
GameData.Chat.Users.WakiMiko.push("STOOOOOOOOOOP");
GameData.Chat.Users.WakiMiko.push("SHUT THE HELL UP ALREADY");
GameData.Chat.Users.Cirno9 = new Array();
GameData.Chat.Users.Cirno9.push("Hooray!");
GameData.Chat.Users.Cirno9.push("I AM A GENIUS");
GameData.Chat.Users.Cirno9.push("I AM THE STRONGEST");
GameData.Chat.Users.Patchy = new Array();
GameData.Chat.Users.Patchy.push("Please stop spamming.");
GameData.Chat.Users.Patchy.push("Marisa, when are you returning my book?");
GameData.Chat.Users.Patchy.push("You are all a bunch of noobs...");
GameData.Chat.Users.Patchy.push("So I have this idea for a rocket...");
GameData.Chat.Users.YuKaRi = new Array();
GameData.Chat.Users.YuKaRi.push("HeY gUyS wAtS gOiNg On?!!1!");
GameData.Chat.Users.YuKaRi.push("OmG mY cAt Is StUcK uP a TrEe AgAiN!!!1!");
GameData.Chat.Users.YuKaRi.push("LOLOL DiD yOu SeE tHe ViD oF rEiMu In K1???");
GameData.Chat.Users.YuKaRi.push("OMG MY SHIFT BUTTON IS STUCK");
GameData.Chat.Users.YuKaRi.push("MaRiSa Is On DrUgS LOL");
GameData.Chat.Users.YuKaRi.push("I nUkEd YuKa LOLOL");
GameData.Chat.UserList = new Array();
for (u in GameData.Chat.Users) {
GameData.Chat.UserList.push(u);
}
GameData.Palette = new Object();
GameData.Palette.Skin = new Array();
GameData.Palette.Skin.push("0xFFF1DD");
GameData.Palette.Skin.push("0xFFE7DD");
GameData.Palette.Skin.push("0xDED4BB");
GameData.Palette.Skin.push("0xCC9900");
GameData.Palette.Skin.push("0x663300");
GameData.Palette.Skin.push("0xFFFFCC");
GameData.Palette.Skin.push("0xFFCCFF");
GameData.Palette.Skin.push("0xCCCCFF");
GameData.Palette.Buttons = new Array();
GameData.Palette.Buttons.push("0xFFFFFF");
GameData.Palette.Buttons.push("0xCCCCCC");
GameData.Palette.Buttons.push("0x999999");
GameData.Palette.Buttons.push("0x000000");
GameData.Sounds = new Object();
GameData.Sounds.Boom = new Sound();
GameData.Sounds.Boom.attachSound("Fire");
GameData.Sounds.ChatBeep = new Sound();
GameData.Sounds.ChatBeep.attachSound("IMbeep");
GameData.Sounds.Boxing = new Sound();
GameData.Sounds.Boxing.attachSound("Owned");
GameData.Sounds.KO = new Sound();
GameData.Sounds.KO.attachSound("KOsound");
GameData.Sounds.Meow = new Sound();
GameData.Sounds.Meow.attachSound("Meow");
GameData.Sounds.Cash = new Sound();
GameData.Sounds.Cash.attachSound("Cash");
GameData.Sounds.Pop = new Sound();
GameData.Sounds.Pop.attachSound("Bubble");
GameData.Sounds.Death = new Sound();
GameData.Sounds.Death.attachSound("Death");
GameData.Sounds.Graze = new Sound();
GameData.Sounds.Graze.attachSound("Graze");
GameData.Sounds.ItemGet = new Sound();
GameData.Sounds.ItemGet.attachSound("ItemGet");
GameData.Sounds.MenuSelect = new Sound();
GameData.Sounds.MenuSelect.attachSound("MenuSelect");
GameData.Sounds.PowerUp = new Sound();
GameData.Sounds.PowerUp.attachSound("PowerUpS");
GameData.Sounds.Truck = new Sound();
GameData.Sounds.Truck.attachSound("TruckHonk");
GameData.Sounds.Kyuh = new Sound();
GameData.Sounds.Kyuh.attachSound("Kyuh");
GameData.Fusion = new Object();
GameData.Fusion.Names = new Array();
GameData.Fusion.Names.push(["Alice", "Marisa", "Malice"]);
GameData.Imageboard = new Object();
GameData.Imageboard.PostHeaders = new Array();
GameData.Imageboard.PostHeaders.push(["My NaMe Is YuKaRi", "4/1/08 (Tues) 13:37 No.123"]);
GameData.Imageboard.PostHeaders.push(["wakimiko", "4/1/08 (Tues) 13:39 No.125"]);
GameData.Imageboard.PostHeaders.push(["iLikeKFC", "4/1/08 (Tues) 13:50 No.135"]);
GameData.Imageboard.PostHeaders.push(["Patchy", "4/1/08 (Tues) 13:56 No.138"]);
GameData.Imageboard.PostHeaders.push(["cirno9", "4/1/08 (Tues) 14:00 No.141"]);
GameData.Parts = new Object();
GameData.Parts.Hats = new Array();
GameData.Parts.Hats.push("none");
GameData.Parts.Hats.push(["China Hat", 1, 0, 0, 0]);
GameData.Parts.Hats.push(["Red Ribbon", 2, 0, 0, 0]);
GameData.Parts.Hats.push(["Witch Hat", 3, 0, 0, 0]);
GameData.Parts.Hats.push(["Sakuya Band", 4, 0, 0, 0]);
GameData.Parts.Hats.push(["Yukari Cap", 5, 0, 0, 0]);
GameData.Parts.Hats.push(["Flandre Cap", 6, 0, 0, 0]);
GameData.Parts.Hats.push(["Yuyuko Cap", 7, 0, 0, 0]);
GameData.Parts.Hats.push(["Headphones", 8, 0, -20, -5]);
GameData.Parts.Hats.push(["Blue Ribbon", 9, 0, 0, 0]);
GameData.Parts.Hats.push(["Eirin Hat", 10, 0, 0, 0]);
GameData.Parts.Hats.push(["Youmu Band", 11, 0, 0, 0]);
GameData.Parts.Hats.push(["Patchy Cap", 12, 0, 0, 0]);
GameData.Parts.Hats.push(["Hairband", 13, 0, 0, 0]);
GameData.Parts.Hats.push(["Reisen's Ears", 14, 0, 0, 0]);
GameData.Parts.Hats.push(["Mokou's Bow", 15, 0, 0, 0]);
GameData.Parts.Hats.push(["Sparrow Cap", 16, 0, 0, 0]);
GameData.Parts.Hats.push(["Bunny Ears", 17, 0, 0, 0]);
GameData.Parts.Hats.push(["Bento Hat", 18, 0, 0, 0]);
GameData.Parts.Hats.push(["Ran's Cap", 19, 0, 0, 0]);
GameData.Parts.Hats.push(["Letty's Cap", 20, 0, 0, 0]);
GameData.Parts.Hats.push(["Chen's Cap", 21, 0, 0, 0]);
GameData.Parts.Hats.push(["Suika's Horns", 22, 0, 0, 0]);
GameData.Parts.Hats.push(["Remilia's Cap", 23, 0, 0, 0]);
GameData.Parts.Hats.push(["Lily White's Cap", 24, 0, 0, 0]);
GameData.Parts.Hats.push(["Lily Black's Cap", 25, 0, 0, 0]);
GameData.Parts.Hats.push(["Hair Beads", 26, 0, 0, 0]);
GameData.Parts.Hats.push(["Kappa Cap", 27, 0, 0, 0]);
GameData.Parts.Hats.push(["Judgement Helm", 28, 0, 0, 0]);
GameData.Parts.Hats.push(["Bug Feelers", 29, 0, 0, 0]);
GameData.Parts.Hats.push(["Rumia's Ribbon", 30, 0, 0, 0]);
GameData.Parts.Hats.push(["Tengu Hat", 31, 0, 0, 0]);
GameData.Parts.Hats.push(["Mini Tengu Hat", 32, 0, 0, 0]);
GameData.Parts.Hats.push(["Devil Wings", 33, 0, 0, 0]);
GameData.Parts.Hats.push(["Lunasa's Hat", 34, 0, 0, 0]);
GameData.Parts.Hats.push(["Merlin's Hat", 35, 0, 0, 0]);
GameData.Parts.Hats.push(["Lyrica's Hat", 36, 0, 0, 0]);
GameData.Parts.Hats.push(["Yellow Ribbon", 37, 0, 0, 0]);
GameData.Parts.Hats.push(["Medicine's Knot", 38, 0, 0, 0]);
GameData.Parts.Hats.push(["EX-Keine's Horns", 39, 0, 0, 0]);
GameData.Parts.Hats.push(["Top Hat", 40, 0, 0, 0]);
GameData.Parts.Hats.push(["The Frog God", 41, 0, 0, 0]);
GameData.Parts.Hats.push(["Hina Ribbon", 42, 0, 0, 0]);
GameData.Parts.Hats.push(["Frog Clip", 43, 0, 0, 0]);
GameData.Parts.Hats.push(["Rope Bandana", 44, 0, 0, 0]);
GameData.Parts.Hats.push(["Harvest Cap", 45, 0, 0, 0]);
GameData.Parts.Hats.push(["Maple Leaves", 46, 0, 0, 0]);
GameData.Parts.Hats.push(["Shinki's Beads", 47, 0, 0, 0]);
GameData.Parts.Hats.push(["Mima Cap", 48, 0, 0, 0]);
GameData.Parts.Hats.push(["Safety Hat", 49, 0, 0, 0]);
GameData.Parts.Hats.push(["Tokiko's Clip", 50, 0, 0, 0]);
GameData.Parts.Hats.push(["Sunny Band", 51, 0, 0, 0]);
GameData.Parts.Hats.push(["Star Ribbon", 52, 0, 0, 0]);
GameData.Parts.Hats.push(["Luna Cap", 53, 0, 0, 0]);
GameData.Parts.Hats.push(["Flower Clip", 54, 0, 0, 0]);
GameData.Parts.Hats.push(["Fedora", 55, 0, 0, 0]);
GameData.Parts.Hats.push(["Maribel's Cap", 56, 0, 0, 0]);
GameData.Parts.Hats.push(["Sailor Hat", 57, 0, 0, 0]);
GameData.Parts.Hats.push(["Summer Hat", 58, 0, 0, 0]);
GameData.Parts.Hats.push(["Old Red Ribbon", 59, 0, 0, 0]);
GameData.Parts.Hats.push(["Black Ribbon", 60, 0, 0, 0]);
GameData.Parts.Hats.push(["Peach Hat", 61, 0, 0, 0]);
GameData.Parts.Hats.push(["Iku's Hat", 62, 0, 0, 0]);
GameData.Parts.Hats.push(["Yuugi's Horn", 63, 0, 0, 0]);
GameData.Parts.Hats.push(["Kisume's Beads", 64, 0, 0, 0]);
GameData.Parts.Hats.push(["Headset", 65, 0, -20, -5]);
GameData.Parts.Hats.push(["Orange Band", 66, 0, 0, 0]);
GameData.Parts.Hats.push(["Toyohime's Hat", 67, 0, 0, 0]);
GameData.Parts.Hats.push(["PC-98 Witch Hat", 68, 0, 0, 0]);
GameData.Parts.Hats.push(["Chef's Hat", 69, 0, 0, 0]);
GameData.Parts.Hats.push(["PC-98 Alice Bow", 70, 0, 0, 0]);
GameData.Parts.Hats.push(["Kurumi's Bow", 71, 0, 0, 0]);
GameData.Parts.Hats.push(["Luize's Hat", 72, 0, 0, 0]);
GameData.Parts.Hats.push(["Utsuho's Bow", 73, 0, 0, 0]);
GameData.Parts.Hats.push(["Orin's Cat Ears", 74, 0, 0, 0]);
GameData.Parts.Hats.push(["Satori Band", 75, 0, 0, 0]);
GameData.Parts.Hats.push(["Koishi's Hat", 76, 0, 0, 0]);
GameData.Parts.Hats.push(["Yumeko Band", 77, 0, 0, 0]);
GameData.Parts.Hats.push(["Ruukoto Band", 78, 0, 0, 0]);
GameData.Parts.Hats.push(["Mugetu Band", 79, 0, 0, 0]);
GameData.Parts.Hats.push(["VIVIT Band", 80, 0, 0, 0]);
GameData.Parts.Hats.push(["Gengetu's Bow", 81, 0, 0, 0]);
GameData.Parts.Hats.push(["Halo", 82, 0, 0, 0]);
GameData.Parts.Hats.push(["Konngara's Horn", 83, 0, 0, 0]);
GameData.Parts.Hats.push(["Police Cap", 84, 0, 0, 0]);
GameData.Parts.Hats.push(["Orange's Hat", 85, 0, 0, 0]);
GameData.Parts.Hats.push(["Rikako Band", 86, 0, 0, 0]);
GameData.Parts.Hats.push(["Rika's Hat", 87, 0, 0, 0]);
GameData.Parts.Hats.push(["Yuki's Hat", 88, 0, 0, 0]);
GameData.Parts.Hats.push(["Mai's Bow", 89, 0, 0, 0]);
GameData.Parts.Hats.push(["Ellen's Band", 90, 0, 0, 0]);
GameData.Parts.Hats.push(["Kana's Hat", 91, 0, 0, 0]);
GameData.Parts.Hats.push(["Elly's Hat", 92, 0, 0, 0]);
GameData.Parts.Hats.push(["Orange Planet", 93, 0, 0, 0]);
GameData.Parts.Hats.push(["Meira's Band", 94, 0, 0, 0]);
GameData.Parts.Hats.push(["Elis' Bow", 95, 0, 0, 0]);
GameData.Parts.Hats.push(["Shingyoku F", 96, 0, 0, 0]);
GameData.Parts.Hats.push(["Shingyoku M", 97, 0, 0, 0]);
GameData.Parts.Hats.push(["Yuka (PJ's)", 98, 0, 0, 0]);
GameData.Parts.Hats.push(["Yukari Cap 2", 99, 0, 0, 0]);
GameData.Parts.Hats.push(["Marisa Hat (SA)", 100, 0, 0, 0]);
GameData.Parts.Hats.push(["MoonRabbit Helm", 101, 0, 0, 0]);
GameData.Parts.Hats.push(["Mouse Ears", 102, 0, 0, 0]);
GameData.Parts.Hats.push(["Non-existent!", 103, 0, 0, 0]);
GameData.Parts.Hats.push(["Ichirin's Veil", 104, 0, 0, 0]);
GameData.Parts.Hats.push(["Marisa Hat (UFO)", 105, 0, 0, 0]);
GameData.Parts.Hats.push(["Zombie Halo", 106, 0, 0, 0]);
GameData.Parts.Hats.push(["Shanghai Bow", 107, 0, 0, 0]);
GameData.Parts.Hats.push(["Non-existent!", 108, 0, 0, 0]);
GameData.Parts.Hats.push(["Non-existent!", 109, 0, 0, 0]);
GameData.Parts.Hats.push("random");
GameData.Parts.Items = new Array();
GameData.Parts.Items.push("none");
GameData.Parts.Items.push(["Miko Stick", 1, -20, 0, 0]);
GameData.Parts.Items.push(["Broom", 2, 0, 0, -10]);
GameData.Parts.Items.push(["Knife", 3, -20, 0, 0]);
GameData.Parts.Items.push(["Gap", 4, 0, 0, 0]);
GameData.Parts.Items.push(["Levatein", 5, 0, 0, 0]);
GameData.Parts.Items.push(["MEAT", 6, -20, 0, 2]);
GameData.Parts.Items.push(["Popsicle", 7, -20, 0, 2]);
GameData.Parts.Items.push(["Pet Frog", 8, -20, -18, 0]);
GameData.Parts.Items.push(["Bow", 9, 0, -2, -3]);
GameData.Parts.Items.push(["Youmu Set", 10, 6, 10, -13]);
GameData.Parts.Items.push(["Book", 11, -15, -15, 10]);
GameData.Parts.Items.push(["Alice's Grimoire", 12, -15, -15, 10]);
GameData.Parts.Items.push(["Mallet", 13, -6, 0, -5]);
GameData.Parts.Items.push(["Cleaver", 14, -20, 0, 1]);
GameData.Parts.Items.push(["Cell Phone", 15, -20, -10, 10]);
GameData.Parts.Items.push(["Arm Cannon", 16, -20, -10, 10]);
GameData.Parts.Items.push(["Pink Gloves", 17, 0, -10, 10]);
GameData.Parts.Items.push(["Bunny Doll", 18, -13, -10, 1]);
GameData.Parts.Items.push(["Plunger", 19, -20, 0, 0]);
GameData.Parts.Items.push(["Magic Staff", 20, -13, 0, -5]);
GameData.Parts.Items.push(["Sword & Shield", 21, 0, 7, -9]);
GameData.Parts.Items.push(["Amulet", 22, -8, -8, 0]);
GameData.Parts.Items.push(["Meat Cleaver", 23, -20, -2, 0]);
GameData.Parts.Items.push(["Kite", 24, -20, 33, -5]);
GameData.Parts.Items.push(["Water Gun", 25, -7, -3, -5]);
GameData.Parts.Items.push(["Fork and Knife", 26, 0, -2, 0]);
GameData.Parts.Items.push(["Dual Fans", 27, 0, -10, -5]);
GameData.Parts.Items.push(["Mic", 28, -5, 0, 0]);
GameData.Parts.Items.push(["Carrot", 29, -10, 0, 0]);
GameData.Parts.Items.push(["Carrot Stick", 30, -13, 8, -5]);
GameData.Parts.Items.push(["Fried Eggs", 31, -17, 3, -3]);
GameData.Parts.Items.push(["Baseball Bat", 32, -22, 0, -2]);
GameData.Parts.Items.push(["Truck", 33, -10, -8, 0]);
GameData.Parts.Items.push(["Flames of Fury!!", 34, 0, 0, 0]);
GameData.Parts.Items.push(["W-Melon Blade", 35, -8, 7, -8]);
GameData.Parts.Items.push(["Suika Shackles", 36, 0, -4, 0]);
GameData.Parts.Items.push(["Suika's Gourd", 37, -10, -10, 0]);
GameData.Parts.Items.push(["Beer", 38, -10, -10, 0]);
GameData.Parts.Items.push(["Gungnir", 39, -10, 0, -10]);
GameData.Parts.Items.push(["Parasol", 40, -6, 2, -10]);
GameData.Parts.Items.push(["Scythe", 41, 0, 3, -10]);
GameData.Parts.Items.push(["Wrench", 42, 1, -2, -3]);
GameData.Parts.Items.push(["Judgement Stick", 43, -5, -7, 0]);
GameData.Parts.Items.push(["Fishing Pole", 44, -17, 8, -5]);
GameData.Parts.Items.push(["Flashlight", 45, -10, 12, -15]);
GameData.Parts.Items.push(["Camera", 46, -10, -5, 0]);
GameData.Parts.Items.push(["Leaf Fan", 47, -10, -5, 0]);
GameData.Parts.Items.push(["Momizi's Gear", 48, 0, 2, -5]);
GameData.Parts.Items.push(["Tea", 49, -10, 0, 0]);
GameData.Parts.Items.push(["Violin", 50, -25, 0, 0]);
GameData.Parts.Items.push(["Trumpet", 51, -25, 3, 0]);
GameData.Parts.Items.push(["Keyboard", 52, -25, 0, 0]);
GameData.Parts.Items.push(["Flower", 53, -15, 0, 0]);
GameData.Parts.Items.push(["Boxing Gloves", 54, 0, 0, 0]);
GameData.Parts.Items.push(["Suzuran", 55, -15, 0, 0]);
GameData.Parts.Items.push(["Another flower", 56, -5, -2, -5]);
GameData.Parts.Items.push(["Sunflower", 57, -5, 3, -8]);
GameData.Parts.Items.push(["Leek", 58, -18, 0, 0]);
GameData.Parts.Items.push(["Sub Sandwich", 59, -15, -8, 0]);
GameData.Parts.Items.push(["Spatula", 60, -15, -8, 0]);
GameData.Parts.Items.push(["Crescent Staff", 61, -4, 5, -10]);
GameData.Parts.Items.push(["Warhead", 62, 0, 3, -10]);
GameData.Parts.Items.push(["Water Buckets", 63, 0, -8, 0]);
GameData.Parts.Items.push(["Thick Book", 64, -8, -5, 0]);
GameData.Parts.Items.push(["Milk", 65, -6, -5, 0]);
GameData.Parts.Items.push(["Ice Cream", 66, -8, 2, 0]);
GameData.Parts.Items.push(["Banana", 67, -8, -5, 0]);
GameData.Parts.Items.push(["Paintbrush", 68, -5, 2, -8]);
GameData.Parts.Items.push(["Scroll", 69, -2, -3, -10]);
GameData.Parts.Items.push(["Dual Swords", 70, 6, 10, -13]);
GameData.Parts.Items.push(["Chair", 71, -5, 0, -10]);
GameData.Parts.Items.push(["Cross", 72, 0, 3, -10]);
GameData.Parts.Items.push(["Staff", 73, 0, 3, -10]);
GameData.Parts.Items.push(["Sanae's Stick", 74, -13, 0, 0]);
GameData.Parts.Items.push(["Youmu's Sword", 75, -16, 5, -5]);
GameData.Parts.Items.push(["Dark Sword", 76, -16, 5, -5]);
GameData.Parts.Items.push(["Tenshi's Sword", 77, -16, 5, -5]);
GameData.Parts.Items.push(["Whip", 78, -16, 0, -5]);
GameData.Parts.Items.push(["Kendama", 79, -16, 0, 0]);
GameData.Parts.Items.push(["Sparkler", 80, -16, 0, 0]);
GameData.Parts.Items.push(["Bowl O' Sake", 81, -16, 0, 0]);
GameData.Parts.Items.push(["Sariel's Staff", 82, -16, 0, 0]);
GameData.Parts.Items.push(["Konngara's Sword", 83, -16, 0, 0]);
GameData.Parts.Items.push(["Nightstick", 84, -16, 0, 0]);
GameData.Parts.Items.push(["Mini-Hakkero", 85, -16, 0, 5]);
GameData.Parts.Items.push(["Orange's Baton", 86, -16, 0, 5]);
GameData.Parts.Items.push(["Test Tubes", 87, -16, 0, 5]);
GameData.Parts.Items.push(["Christmas Blade", 88, -16, 0, -5]);
GameData.Parts.Items.push(["NEET-hime Staff", 89, -16, 0, -5]);
GameData.Parts.Items.push(["Meira's Sword", 90, -16, 0, -5]);
GameData.Parts.Items.push(["Star Wand", 91, -16, 0, -4]);
GameData.Parts.Items.push(["Yuka's Watch", 92, -16, 0, -4]);
GameData.Parts.Items.push(["Weather Vanes", 93, -16, 0, -4]);
GameData.Parts.Items.push(["Kogasa Umbrella", 94, -16, 0, -4]);
GameData.Parts.Items.push(["Ichirin's Ring", 95, -16, 0, 0]);
GameData.Parts.Items.push(["Marisa's Wand", 96, -16, 0, 0]);
GameData.Parts.Items.push(["Erhu", 97, -16, 0, 0]);
GameData.Parts.Items.push("random");
GameData.Parts.Back = new Array();
GameData.Parts.Back.push("none");
GameData.Parts.Back.push(["Flandre's Wings", 1, 0, 0, 0]);
GameData.Parts.Back.push(["Ice Fairy Wings", 2, 0, -10, 0]);
GameData.Parts.Back.push(["Dark Wings", 3, 0, 0, 0]);
GameData.Parts.Back.push(["Night Bird Wings", 4, 0, 0, 0]);
GameData.Parts.Back.push(["Blue Bird Wings", 5, 0, 0, 0]);
GameData.Parts.Back.push(["Pixie Wings", 6, 0, -10, 0]);
GameData.Parts.Back.push(["Phoenix Wings", 7, 0, 0, 0]);
GameData.Parts.Back.push(["Pink Cape", 8, 2, -10, 0]);
GameData.Parts.Back.push(["Nine Tails", 9, 0, -10, 0]);
GameData.Parts.Back.push(["Chen's Tails", 10, -5, -46, 10]);
GameData.Parts.Back.push(["Remilia's Wings", 11, -5, -10, 0]);
GameData.Parts.Back.push(["Lily Wings", 12, -3, -10, 0]);
GameData.Parts.Back.push(["Backpack", 13, 4, -12, 2]);
GameData.Parts.Back.push(["Wriggle Cape", 14, 4, -12, 0]);
GameData.Parts.Back.push(["Tengu Wings", 15, 0, 0, 0]);
GameData.Parts.Back.push(["Wolf Tail", 16, 0, -46, 10]);
GameData.Parts.Back.push(["Devil Set", 17, 0, -10, 0]);
GameData.Parts.Back.push(["Golden Wings", 18, 0, -5, 0]);
GameData.Parts.Back.push(["EX-Keine's Tail", 19, -5, -85, 20]);
GameData.Parts.Back.push(["Sacred Ring", 20, 5, 10, -5]);
GameData.Parts.Back.push(["Shinki's Wings", 21, 7, 8, -5]);
GameData.Parts.Back.push(["Tokiko's Wings", 22, 0, 0, 0]);
GameData.Parts.Back.push(["Sunny Wings", 23, 3, -5, -2]);
GameData.Parts.Back.push(["Starry Wings", 24, 3, -5, -2]);
GameData.Parts.Back.push(["Lunar Wings", 25, 3, -5, -2]);
GameData.Parts.Back.push(["Myon", 26, -10, 14, 0]);
GameData.Parts.Back.push(["The Gap", 27, 0, 10, -5]);
GameData.Parts.Back.push(["Yuyuko's Fan", 28, 0, 10, -5]);
GameData.Parts.Back.push(["Gravity Well", 29, -10, 2, -2]);
GameData.Parts.Back.push(["Hang Rope", 30, 0, -30, 2]);
GameData.Parts.Back.push(["Evil Eye Sigma", 31, 15, 20, -5]);
GameData.Parts.Back.push(["Iku's Shawl", 32, 5, 10, -5]);
GameData.Parts.Back.push(["Kurumi's Wings", 33, 5, 10, -5]);
GameData.Parts.Back.push(["Utsuho's Wings", 34, 5, 10, -7]);
GameData.Parts.Back.push(["Orin's Tails", 35, -5, -46, 10]);
GameData.Parts.Back.push(["Heart With Eye", 36, 10, 10, 5]);
GameData.Parts.Back.push(["Gengetu's Wings", 37, 5, 10, 0]);
GameData.Parts.Back.push(["Sariel's Wings", 38, 5, 10, 0]);
GameData.Parts.Back.push(["Mai's Wings", 39, 5, 10, 0]);
GameData.Parts.Back.push(["Mima's Wings", 40, 5, 10, 0]);
GameData.Parts.Back.push(["Elis' Wings", 41, 5, 10, 0]);
GameData.Parts.Back.push(["Rope+Onbashiras", 42, 5, 10, 0]);
GameData.Parts.Back.push(["Mouse Tail", 43, 5, 10, 0]);
GameData.Parts.Back.push(["Z. Fairy Wings", 44, 5, 10, 0]);
GameData.Parts.Back.push("random");
GameData.Parts.Acc = new Array();
GameData.Parts.Acc.push("none");
GameData.Parts.Acc.push(["Glasses", 1, 0, 0, 0]);
GameData.Parts.Acc.push(["Monocle", 2, -6, -4, 0]);
GameData.Parts.Acc.push(["Black Mask", 3, 0, -10, 0]);
GameData.Parts.Acc.push(["Flu Mask", 4, 0, -6, 0]);
GameData.Parts.Acc.push(["Amulet", 5, 0, 8, 0]);
GameData.Parts.Acc.push(["GAR Shades", 6, 0, 0, 0]);
GameData.Parts.Acc.push(["Sun Glasses", 7, 0, 0, 0]);
GameData.Parts.Acc.push(["Rectangle Glasses", 8, 0, 0, 0]);
GameData.Parts.Acc.push(["Blush", 9, -4, -10, 6]);
GameData.Parts.Acc.push(["3D Glasses", 10, 0, 0, 0]);
GameData.Parts.Acc.push(["Knife", 11, 0, 22, 0]);
GameData.Parts.Acc.push(["Mustache", 12, 0, 0, 0]);
GameData.Parts.Acc.push(["Eye Patch", 13, 0, 3, 0]);
GameData.Parts.Acc.push(["Cross Scar", 14, 0, 0, 0]);
GameData.Parts.Acc.push(["Big Glasses 1", 15, 0, 0, 0]);
GameData.Parts.Acc.push(["Big Glasses 2", 16, 0, 0, 0]);
GameData.Parts.Acc.push(["Big Glasses 3", 17, 0, 0, 0]);
GameData.Parts.Acc.push(["Pink Scarf", 18, 10, -18, 0]);
GameData.Parts.Acc.push(["Knight Visor", 19, 5, 2, -5]);
GameData.Parts.Acc.push(["Melody", 20, -15, 10, -5]);
GameData.Parts.Acc.push(["Flames", 21, 8, 5, -10]);
GameData.Parts.Acc.push(["Stylish Glasses", 22, 0, -3, 0]);
GameData.Parts.Acc.push(["Happiness", 23, -5, 10, -10]);
GameData.Parts.Acc.push(["Censored", 24, 0, 0, 0]);
GameData.Parts.Acc.push(["Power Up!", 25, 10, 5, -14]);
GameData.Parts.Acc.push(["Twirly", 26, -20, 13, 0]);
GameData.Parts.Acc.push(["Wanted", 27, 11, 5, -13]);
GameData.Parts.Acc.push(["Eyebrows", 28, 0, 3, 0]);
GameData.Parts.Acc.push(["Happy Mask", 29, 0, 0, 0]);
GameData.Parts.Acc.push(["Faceguard", 30, 3, 0, -3]);
GameData.Parts.Acc.push(["Mole", 31, -5, 0, 0]);
GameData.Parts.Acc.push(["Cross Bands", 32, 10, 0, 0]);
GameData.Parts.Acc.push(["Darkness", 33, 10, 5, -15]);
GameData.Parts.Acc.push(["Crow", 34, 0, 23, 0]);
GameData.Parts.Acc.push(["Tengu Scarf 1", 35, 4, -13, -5]);
GameData.Parts.Acc.push(["Tengu Scarf 2", 36, 4, -13, -5]);
GameData.Parts.Acc.push(["Wolf Ears", 37, 2, 15, -3]);
GameData.Parts.Acc.push(["Scouter", 38, -7, 3, 0]);
GameData.Parts.Acc.push(["Gundam", 39, 5, -4, -10]);
GameData.Parts.Acc.push(["Doll", 40, 7, 23, 0]);
GameData.Parts.Acc.push(["Camo Make-up", 41, 0, -3, 0]);
GameData.Parts.Acc.push(["Clever Disguise", 42, 0, 0, 0]);
GameData.Parts.Acc.push(["Worry Brows", 43, 0, 4, 0]);
GameData.Parts.Acc.push(["Marisa", 44, -10, 10, -8]);
GameData.Parts.Acc.push(["Zap!", 45, 10, 5, -14]);
GameData.Parts.Acc.push(["Basket", 46, 4, -25, 0]);
GameData.Parts.Acc.push(["Visor", 47, 2, 10, 0]);
GameData.Parts.Acc.push(["More Glasses", 48, 0, 0, 0]);
GameData.Parts.Acc.push(["White Beard", 49, 0, -13, 0]);
GameData.Parts.Acc.push(["Bandit Mask", 50, 0, -11, 0]);
GameData.Parts.Acc.push(["Sunny", 51, -12, 7, -9]);
GameData.Parts.Acc.push(["Sweat Drop", 52, 13, 0, 0]);
GameData.Parts.Acc.push(["Toast", 53, 0, -15, 0]);
GameData.Parts.Acc.push(["Fish", 54, -3, -17, 0]);
GameData.Parts.Acc.push(["Rain Cloud", 55, -5, 12, -10]);
GameData.Parts.Acc.push(["Bandage", 56, 2, 6, 0]);
GameData.Parts.Acc.push(["Shout", 57, -7, 0, -10]);
GameData.Parts.Acc.push(["Angry Eyebrows", 58, 0, 3, 0]);
GameData.Parts.Acc.push(["Youki's Beard", 59, 0, -13, 0]);
GameData.Parts.Acc.push(["Inner Tube", 60, 0, -30, 2]);
GameData.Parts.Acc.push(["Satori's Third Eye", 61, 8, -2, -10]);
GameData.Parts.Acc.push(["Police Badge", 62, 0, -10, 0]);
GameData.Parts.Acc.push(["Letty's Pin", 63, 0, -10, 0]);
GameData.Parts.Acc.push(["Small Glasses", 64, 0, 0, 0]);
GameData.Parts.Acc.push(["Red Mark", 65, 0, -10, 0]);
GameData.Parts.Acc.push(["Koishi's Third Eye", 66, 5, -5, -10]);
GameData.Parts.Acc.push(["Smoke Pipe", 67, -5, 0, -5]);
GameData.Parts.Acc.push(["Satsuki Beads", 68, -5, 0, -5]);
GameData.Parts.Acc.push("random");
GameData.Parts.Body = new Array();
GameData.Parts.Body.push("none");
GameData.Parts.Body.push(["Meiling", 1, 0, 0, 0]);
GameData.Parts.Body.push(["Reimu", 2, 0, 0, 0]);
GameData.Parts.Body.push(["Marisa", 3, 0, 0, 0]);
GameData.Parts.Body.push(["Sakuya", 4, 0, 0, 0]);
GameData.Parts.Body.push(["Yukari", 5, 0, 0, 0]);
GameData.Parts.Body.push(["Flandre", 6, 0, 0, 0]);
GameData.Parts.Body.push(["Yuyuko", 7, 0, 0, 0]);
GameData.Parts.Body.push(["Kaguya", 8, 0, 0, 0]);
GameData.Parts.Body.push(["Cirno", 9, 0, 0, 0]);
GameData.Parts.Body.push(["Eirin", 10, 0, 0, 0]);
GameData.Parts.Body.push(["Youmu", 11, 0, 0, 0]);
GameData.Parts.Body.push(["Patchouli", 12, 0, 0, 0]);
GameData.Parts.Body.push(["Alice", 13, 0, 0, 0]);
GameData.Parts.Body.push(["Reisen", 14, 0, 0, 0]);
GameData.Parts.Body.push(["Mokou", 15, 0, 0, 0]);
GameData.Parts.Body.push(["Mystia", 16, 0, 0, 0]);
GameData.Parts.Body.push(["Tewi", 17, 0, 0, 0]);
GameData.Parts.Body.push(["Keine", 18, 0, 0, 0]);
GameData.Parts.Body.push(["Ran", 19, 0, 0, 0]);
GameData.Parts.Body.push(["Letty", 20, 0, 0, 0]);
GameData.Parts.Body.push(["Chen", 21, 0, 0, 0]);
GameData.Parts.Body.push(["Suika", 22, 0, 0, 0]);
GameData.Parts.Body.push(["Remilia", 23, 0, 0, 0]);
GameData.Parts.Body.push(["Lily White", 24, 0, 0, 0]);
GameData.Parts.Body.push(["Lily Black", 25, 0, 0, 0]);
GameData.Parts.Body.push(["Komachi", 26, 0, 0, 0]);
GameData.Parts.Body.push(["Nitori", 27, 0, 0, 0]);
GameData.Parts.Body.push(["Sikieiki", 28, 0, 0, 0]);
GameData.Parts.Body.push(["Wriggle", 29, 0, 0, 0]);
GameData.Parts.Body.push(["Rumia", 30, 0, 0, 0]);
GameData.Parts.Body.push(["Aya", 31, 0, 0, 0]);
GameData.Parts.Body.push(["Momizi", 32, 0, 0, 0]);
GameData.Parts.Body.push(["Koakuma", 33, 0, 0, 0]);
GameData.Parts.Body.push(["Lunasa", 34, 0, 0, 0]);
GameData.Parts.Body.push(["Merlin", 35, 0, 0, 0]);
GameData.Parts.Body.push(["Lyrica", 36, 0, 0, 0]);
GameData.Parts.Body.push(["Daiyousei", 37, 0, 0, 0]);
GameData.Parts.Body.push(["Medicine", 38, 0, 0, 0]);
GameData.Parts.Body.push(["EX-Keine", 39, 0, 0, 0]);
GameData.Parts.Body.push(["Yuka", 40, 0, 0, 0]);
GameData.Parts.Body.push(["Suwako", 41, 0, 0, 0]);
GameData.Parts.Body.push(["Hina", 42, 0, 0, 0]);
GameData.Parts.Body.push(["Sanae", 43, 0, 0, 0]);
GameData.Parts.Body.push(["Kanako", 44, 0, 0, 0]);
GameData.Parts.Body.push(["Minoriko", 45, 0, 0, 0]);
GameData.Parts.Body.push(["Shizuha", 46, 0, 0, 0]);
GameData.Parts.Body.push(["Shinki", 47, 0, 0, 0]);
GameData.Parts.Body.push(["Mima", 48, 0, 0, 0]);
GameData.Parts.Body.push(["Rinnosuke", 49, 0, 0, 0]);
GameData.Parts.Body.push(["Tokiko", 50, 0, 0, 0]);
GameData.Parts.Body.push(["Sunny Milk", 51, 0, 0, 0]);
GameData.Parts.Body.push(["Star Sapphire", 52, 0, 0, 0]);
GameData.Parts.Body.push(["Luna Child", 53, 0, 0, 0]);
GameData.Parts.Body.push(["Akyu", 54, 0, 0, 0]);
GameData.Parts.Body.push(["Renko", 55, 0, 0, 0]);
GameData.Parts.Body.push(["Maribel", 56, 0, 0, 0]);
GameData.Parts.Body.push(["Chiyuri", 57, 0, 0, 0]);
GameData.Parts.Body.push(["Yumemi", 58, 0, 0, 0]);
GameData.Parts.Body.push(["Reimu (PC-98)", 59, 0, 0, 0]);
GameData.Parts.Body.push(["Yamame", 60, 0, 0, 0]);
GameData.Parts.Body.push(["Tenshi", 61, 0, 0, 0]);
GameData.Parts.Body.push(["Iku", 62, 0, 0, 0]);
GameData.Parts.Body.push(["Yuugi", 63, 0, 0, 0]);
GameData.Parts.Body.push(["Kisume", 64, 0, -4, -5]);
GameData.Parts.Body.push(["Parsee", 65, 0, 0, 0]);
GameData.Parts.Body.push(["Yorihime", 66, 0, 0, 0]);
GameData.Parts.Body.push(["Toyohime", 67, 0, 0, 0]);
GameData.Parts.Body.push(["Marisa (PC-98)", 68, 0, 0, 0]);
GameData.Parts.Body.push(["Youki", 69, 0, 0, 0]);
GameData.Parts.Body.push(["PC-98 Alice", 70, 0, 0, 0]);
GameData.Parts.Body.push(["Kurumi", 71, 0, 0, 0]);
GameData.Parts.Body.push(["Luize", 72, 0, 0, 0]);
GameData.Parts.Body.push(["Utsuho", 73, 0, 0, 0]);
GameData.Parts.Body.push(["Orin", 74, 0, 0, 0]);
GameData.Parts.Body.push(["Satori", 75, 0, 0, 0]);
GameData.Parts.Body.push(["Koishi", 76, 0, 0, 0]);
GameData.Parts.Body.push(["Yumeko", 77, 0, 0, 0]);
GameData.Parts.Body.push(["Ruukoto", 78, 0, 0, 0]);
GameData.Parts.Body.push(["Mugetu", 79, 0, 0, 0]);
GameData.Parts.Body.push(["VIVIT", 80, 0, 0, 0]);
GameData.Parts.Body.push(["Gengetu", 81, 0, 0, 0]);
GameData.Parts.Body.push(["Sariel", 82, 0, 0, 0]);
GameData.Parts.Body.push(["Konngara", 83, 0, 0, 0]);
GameData.Parts.Body.push(["Kotohime", 84, 0, 0, 0]);
GameData.Parts.Body.push(["Orange", 85, 0, 0, 0]);
GameData.Parts.Body.push(["Rikako", 86, 0, 0, 0]);
GameData.Parts.Body.push(["Rika", 87, 0, 0, 0]);
GameData.Parts.Body.push(["Yuki", 88, 0, 0, 0]);
GameData.Parts.Body.push(["Mai", 89, 0, 0, 0]);
GameData.Parts.Body.push(["Ellen", 90, 0, 0, 0]);
GameData.Parts.Body.push(["Kana", 91, 0, 0, 0]);
GameData.Parts.Body.push(["Elly", 92, 0, 0, 0]);
GameData.Parts.Body.push(["Sara", 93, 0, 0, 0]);
GameData.Parts.Body.push(["Meira", 94, 0, 0, 0]);
GameData.Parts.Body.push(["Elis", 95, 0, 0, 0]);
GameData.Parts.Body.push(["Shingyoku F", 96, 0, 0, 0]);
GameData.Parts.Body.push(["Shingyoku M", 97, 0, 0, 0]);
GameData.Parts.Body.push(["Yuka (PJ's)", 98, 0, 0, 0]);
GameData.Parts.Body.push(["Yukari (PCB)", 99, 0, 0, 0]);
GameData.Parts.Body.push(["Marisa (SA)", 100, 0, 0, 0]);
GameData.Parts.Body.push(["Reisen (SWR)", 101, 0, 0, 0]);
GameData.Parts.Body.push(["Nazrin", 102, 0, 0, 0]);
GameData.Parts.Body.push(["Kogasa", 103, 0, 0, 0]);
GameData.Parts.Body.push(["Ichirin", 104, 0, 0, 0]);
GameData.Parts.Body.push(["Marisa (UFO)", 105, 0, 0, 0]);
GameData.Parts.Body.push(["Zombie Fairy", 106, 0, 0, 0]);
GameData.Parts.Body.push(["Shanghai", 107, 0, 0, 0]);
GameData.Parts.Body.push(["Rin Satsuki", 108, 0, 0, 0]);
GameData.Parts.Body.push(["Layla", 109, 0, 0, 0]);
GameData.Parts.Body.push("random");
GameData.Parts.Shoes = new Array();
GameData.Parts.Shoes.push("none");
GameData.Parts.Shoes.push(["Meiling", 1, 0, 0, 0]);
GameData.Parts.Shoes.push(["Reimu", 2, 0, 0, 0]);
GameData.Parts.Shoes.push(["Marisa", 3, 0, 0, 0]);
GameData.Parts.Shoes.push(["Sakuya", 4, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yukari", 5, 0, 0, 0]);
GameData.Parts.Shoes.push(["Flandre", 6, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yuyuko", 7, 0, 0, 0]);
GameData.Parts.Shoes.push(["Kaguya", 8, 0, 0, 0]);
GameData.Parts.Shoes.push(["Cirno", 9, 0, 0, 0]);
GameData.Parts.Shoes.push(["Eirin", 10, 0, 0, 0]);
GameData.Parts.Shoes.push(["Youmu", 11, 0, 0, 0]);
GameData.Parts.Shoes.push(["Patchouli", 12, 0, 0, 0]);
GameData.Parts.Shoes.push(["Alice", 13, 0, 0, 0]);
GameData.Parts.Shoes.push(["Reisen", 14, 0, 0, 0]);
GameData.Parts.Shoes.push(["Mokou", 15, 0, 0, 0]);
GameData.Parts.Shoes.push(["Mystia", 16, 0, 0, 0]);
GameData.Parts.Shoes.push(["Tewi", 17, 0, 0, 0]);
GameData.Parts.Shoes.push(["Keine", 18, 0, 0, 0]);
GameData.Parts.Shoes.push(["Ran", 19, 0, 0, 0]);
GameData.Parts.Shoes.push(["Letty", 20, 0, 0, 0]);
GameData.Parts.Shoes.push(["Chen", 21, 0, 0, 0]);
GameData.Parts.Shoes.push(["Suika", 22, 0, 0, 0]);
GameData.Parts.Shoes.push(["Remilia", 23, 0, 0, 0]);
GameData.Parts.Shoes.push(["Lily White", 24, 0, 0, 0]);
GameData.Parts.Shoes.push(["Lily Black", 25, 0, 0, 0]);
GameData.Parts.Shoes.push(["Komachi", 26, 0, 0, 0]);
GameData.Parts.Shoes.push(["Nitori", 27, 0, 0, 0]);
GameData.Parts.Shoes.push(["Sikieiki", 28, 0, 0, 0]);
GameData.Parts.Shoes.push(["Wriggle", 29, 0, 0, 0]);
GameData.Parts.Shoes.push(["Rumia", 30, 0, 0, 0]);
GameData.Parts.Shoes.push(["Aya", 31, 0, 0, 0]);
GameData.Parts.Shoes.push(["Momizi", 32, 0, 0, 0]);
GameData.Parts.Shoes.push(["Koakuma", 33, 0, 0, 0]);
GameData.Parts.Shoes.push(["Lunasa", 34, 0, 0, 0]);
GameData.Parts.Shoes.push(["Merlin", 35, 0, 0, 0]);
GameData.Parts.Shoes.push(["Lyrica", 36, 0, 0, 0]);
GameData.Parts.Shoes.push(["Daiyousei", 37, 0, 0, 0]);
GameData.Parts.Shoes.push(["Medicine", 38, 0, 0, 0]);
GameData.Parts.Shoes.push(["EX-Keine", 39, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yuka", 40, 0, 0, 0]);
GameData.Parts.Shoes.push(["Suwako", 41, 0, 0, 0]);
GameData.Parts.Shoes.push(["Hina", 42, 0, 0, 0]);
GameData.Parts.Shoes.push(["Sanae", 43, 0, 0, 0]);
GameData.Parts.Shoes.push(["Kanako", 44, 0, 0, 0]);
GameData.Parts.Shoes.push(["Minoriko", 45, 0, 0, 0]);
GameData.Parts.Shoes.push(["Shizuha", 46, 0, 0, 0]);
GameData.Parts.Shoes.push(["Shinki", 47, 0, 0, 0]);
GameData.Parts.Shoes.push(["Mima", 48, 0, 0, 0]);
GameData.Parts.Shoes.push(["Rinnosuke", 49, 0, 0, 0]);
GameData.Parts.Shoes.push(["Tokiko", 50, 0, 0, 0]);
GameData.Parts.Shoes.push(["Sunny Milk", 51, 0, 0, 0]);
GameData.Parts.Shoes.push(["Star Sapphire", 52, 0, 0, 0]);
GameData.Parts.Shoes.push(["Luna Child", 53, 0, 0, 0]);
GameData.Parts.Shoes.push(["Akyu", 54, 0, 0, 0]);
GameData.Parts.Shoes.push(["Renko", 55, 0, 0, 0]);
GameData.Parts.Shoes.push(["Maribel", 56, 0, 0, 0]);
GameData.Parts.Shoes.push(["Chiyuri", 57, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yumemi", 58, 0, 0, 0]);
GameData.Parts.Shoes.push(["Reimu (PC-98)", 59, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yamame", 60, 0, 0, 0]);
GameData.Parts.Shoes.push(["Tenshi", 61, 0, 0, 0]);
GameData.Parts.Shoes.push(["Iku", 62, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yuugi", 63, 0, 0, 0]);
GameData.Parts.Shoes.push(["Parsee", 64, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yorihime", 65, 0, 0, 0]);
GameData.Parts.Shoes.push(["Toyohime", 66, 0, 0, 0]);
GameData.Parts.Shoes.push(["Marisa (PC-98)", 67, 0, 0, 0]);
GameData.Parts.Shoes.push(["Youki", 68, 0, 0, 0]);
GameData.Parts.Shoes.push(["PC-98 Alice", 69, 0, 0, 0]);
GameData.Parts.Shoes.push(["Kurumi", 70, 0, 0, 0]);
GameData.Parts.Shoes.push(["Luize", 71, 0, 0, 0]);
GameData.Parts.Shoes.push(["Utsuho", 72, 0, 0, 0]);
GameData.Parts.Shoes.push(["Orin", 73, 0, 0, 0]);
GameData.Parts.Shoes.push(["Satori", 74, 0, 0, 0]);
GameData.Parts.Shoes.push(["Koishi", 75, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yumeko", 76, 0, 0, 0]);
GameData.Parts.Shoes.push(["Ruukoto", 77, 0, 0, 0]);
GameData.Parts.Shoes.push(["Mugetu", 78, 0, 0, 0]);
GameData.Parts.Shoes.push(["VIVIT", 79, 0, 0, 0]);
GameData.Parts.Shoes.push(["Gengetu", 80, 0, 0, 0]);
GameData.Parts.Shoes.push(["Sariel", 81, 0, 0, 0]);
GameData.Parts.Shoes.push(["Konngara", 82, 0, 0, 0]);
GameData.Parts.Shoes.push(["Kotohime", 83, 0, 0, 0]);
GameData.Parts.Shoes.push(["Orange", 84, 0, 0, 0]);
GameData.Parts.Shoes.push(["Rikako", 85, 0, 0, 0]);
GameData.Parts.Shoes.push(["Rika", 86, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yuki", 87, 0, 0, 0]);
GameData.Parts.Shoes.push(["Mai", 88, 0, 0, 0]);
GameData.Parts.Shoes.push(["Ellen", 89, 0, 0, 0]);
GameData.Parts.Shoes.push(["Kana", 90, 0, 0, 0]);
GameData.Parts.Shoes.push(["Elly", 91, 0, 0, 0]);
GameData.Parts.Shoes.push(["Sara", 92, 0, 0, 0]);
GameData.Parts.Shoes.push(["Meira", 93, 0, 0, 0]);
GameData.Parts.Shoes.push(["Elis", 94, 0, 0, 0]);
GameData.Parts.Shoes.push(["Shingyoku F", 95, 0, 0, 0]);
GameData.Parts.Shoes.push(["Shingyoku M", 96, 0, 0, 0]);
GameData.Parts.Shoes.push(["Yuka (PJ's)", 97, 0, 0, 0]);
GameData.Parts.Shoes.push(["Ghost", 98, 0, 0, 0]);
GameData.Parts.Shoes.push(["Marisa (SA)", 99, 0, 0, 0]);
GameData.Parts.Shoes.push(["Reisen (SWR)", 100, 0, 0, 0]);
GameData.Parts.Shoes.push(["Nazrin", 101, 0, 0, 0]);
GameData.Parts.Shoes.push(["Kogasa", 102, 0, 0, 0]);
GameData.Parts.Shoes.push(["Ichirin", 103, 0, 0, 0]);
GameData.Parts.Shoes.push(["Marisa", 104, 0, 0, 0]);
GameData.Parts.Shoes.push(["Zombie Fairy", 105, 0, 0, 0]);
GameData.Parts.Shoes.push(["Shanghai", 106, 0, 0, 0]);
GameData.Parts.Shoes.push(["Rin Satsuki", 107, 0, 0, 0]);
GameData.Parts.Shoes.push(["Layla", 108, 0, 0, 0]);
GameData.Parts.Shoes.push("random");
GameData.Parts.Arms = new Array();
GameData.Parts.Arms.push("none");
GameData.Parts.Arms.push(["Meiling", 1, 0, 0, 0]);
GameData.Parts.Arms.push(["Reimu", 2, 0, 0, 0]);
GameData.Parts.Arms.push(["Marisa", 3, 0, 0, 0]);
GameData.Parts.Arms.push(["Sakuya", 4, 0, 0, 0]);
GameData.Parts.Arms.push(["Yukari", 5, 0, 0, 0]);
GameData.Parts.Arms.push(["Flandre", 6, 0, 0, 0]);
GameData.Parts.Arms.push(["Yuyuko", 7, 0, 0, 0]);
GameData.Parts.Arms.push(["Kaguya", 8, 0, 0, 0]);
GameData.Parts.Arms.push(["Cirno", 9, 0, 0, 0]);
GameData.Parts.Arms.push(["Eirin", 10, 0, 0, 0]);
GameData.Parts.Arms.push(["Youmu", 11, 0, 0, 0]);
GameData.Parts.Arms.push(["Patchouli", 12, 0, 0, 0]);
GameData.Parts.Arms.push(["Alice", 13, 0, 0, 0]);
GameData.Parts.Arms.push(["Reisen", 14, 0, 0, 0]);
GameData.Parts.Arms.push(["Mokou", 15, 0, 0, 0]);
GameData.Parts.Arms.push(["Mystia", 16, 0, 0, 0]);
GameData.Parts.Arms.push(["Tewi", 17, 0, 0, 0]);
GameData.Parts.Arms.push(["Keine", 18, 0, 0, 0]);
GameData.Parts.Arms.push(["Ran", 19, 0, 0, 0]);
GameData.Parts.Arms.push(["Letty", 20, 0, 0, 0]);
GameData.Parts.Arms.push(["Chen", 21, 0, 0, 0]);
GameData.Parts.Arms.push(["Suika", 22, 0, 0, 0]);
GameData.Parts.Arms.push(["Remilia", 23, 0, 0, 0]);
GameData.Parts.Arms.push(["Lily White", 24, 0, 0, 0]);
GameData.Parts.Arms.push(["Lily Black", 25, 0, 0, 0]);
GameData.Parts.Arms.push(["Komachi", 26, 0, 0, 0]);
GameData.Parts.Arms.push(["Nitori", 27, 0, 0, 0]);
GameData.Parts.Arms.push(["Sikieiki", 28, 0, 0, 0]);
GameData.Parts.Arms.push(["Wriggle", 29, 0, 0, 0]);
GameData.Parts.Arms.push(["Rumia", 30, 0, 0, 0]);
GameData.Parts.Arms.push(["Aya", 31, 0, 0, 0]);
GameData.Parts.Arms.push(["Momizi", 32, 0, 0, 0]);
GameData.Parts.Arms.push(["Koakuma", 33, 0, 0, 0]);
GameData.Parts.Arms.push(["Lunasa", 34, 0, 0, 0]);
GameData.Parts.Arms.push(["Merlin", 35, 0, 0, 0]);
GameData.Parts.Arms.push(["Lyrica", 36, 0, 0, 0]);
GameData.Parts.Arms.push(["Daiyousei", 37, 0, 0, 0]);
GameData.Parts.Arms.push(["Medicine", 38, 0, 0, 0]);
GameData.Parts.Arms.push(["EX-Keine", 39, 0, 0, 0]);
GameData.Parts.Arms.push(["Yuka", 40, 0, 0, 0]);
GameData.Parts.Arms.push(["Suwako", 41, 0, 0, 0]);
GameData.Parts.Arms.push(["Hina", 42, 0, 0, 0]);
GameData.Parts.Arms.push(["Sanae", 43, 0, 0, 0]);
GameData.Parts.Arms.push(["Kanako", 44, 0, 0, 0]);
GameData.Parts.Arms.push(["Minoriko", 45, 0, 0, 0]);
GameData.Parts.Arms.push(["Shizuha", 46, 0, 0, 0]);
GameData.Parts.Arms.push(["Shinki", 47, 0, 0, 0]);
GameData.Parts.Arms.push(["Mima", 48, 0, 0, 0]);
GameData.Parts.Arms.push(["Rinnosuke", 49, 0, 0, 0]);
GameData.Parts.Arms.push(["Tokiko", 50, 0, 0, 0]);
GameData.Parts.Arms.push(["Sunny Milk", 51, 0, 0, 0]);
GameData.Parts.Arms.push(["Star Sapphire", 52, 0, 0, 0]);
GameData.Parts.Arms.push(["Luna Child", 53, 0, 0, 0]);
GameData.Parts.Arms.push(["Akyu", 54, 0, 0, 0]);
GameData.Parts.Arms.push(["Renko", 55, 0, 0, 0]);
GameData.Parts.Arms.push(["Maribel", 56, 0, 0, 0]);
GameData.Parts.Arms.push(["Chiyuri", 57, 0, 0, 0]);
GameData.Parts.Arms.push(["Yumemi", 58, 0, 0, 0]);
GameData.Parts.Arms.push(["Reimu (PC-98)", 59, 0, 0, 0]);
GameData.Parts.Arms.push(["Yamame", 60, 0, 0, 0]);
GameData.Parts.Arms.push(["Tenshi", 61, 0, 0, 0]);
GameData.Parts.Arms.push(["Iku", 62, 0, 0, 0]);
GameData.Parts.Arms.push(["Yuugi", 63, 0, 0, 0]);
GameData.Parts.Arms.push(["Parsee", 64, 0, 0, 0]);
GameData.Parts.Arms.push(["Yorihime", 65, 0, 0, 0]);
GameData.Parts.Arms.push(["Toyohime", 66, 0, 0, 0]);
GameData.Parts.Arms.push(["Marisa (PC-98)", 67, 0, 0, 0]);
GameData.Parts.Arms.push(["Youki", 68, 0, 0, 0]);
GameData.Parts.Arms.push(["PC-98 Alice", 69, 0, 0, 0]);
GameData.Parts.Arms.push(["Kurumi", 70, 0, 0, 0]);
GameData.Parts.Arms.push(["Luize", 71, 0, 0, 0]);
GameData.Parts.Arms.push(["Utsuho", 72, 0, 0, 0]);
GameData.Parts.Arms.push(["Orin", 73, 0, 0, 0]);
GameData.Parts.Arms.push(["Satori", 74, 0, 0, 0]);
GameData.Parts.Arms.push(["Koishi", 75, 0, 0, 0]);
GameData.Parts.Arms.push(["Yumeko", 76, 0, 0, 0]);
GameData.Parts.Arms.push(["Ruukoto", 77, 0, 0, 0]);
GameData.Parts.Arms.push(["Mugetu", 78, 0, 0, 0]);
GameData.Parts.Arms.push(["VIVIT", 79, 0, 0, 0]);
GameData.Parts.Arms.push(["Gengetu", 80, 0, 0, 0]);
GameData.Parts.Arms.push(["Sariel", 81, 0, 0, 0]);
GameData.Parts.Arms.push(["Konngara", 82, 0, 0, 0]);
GameData.Parts.Arms.push(["Kotohime", 83, 0, 0, 0]);
GameData.Parts.Arms.push(["Orange", 84, 0, 0, 0]);
GameData.Parts.Arms.push(["Rikako", 85, 0, 0, 0]);
GameData.Parts.Arms.push(["Rika", 86, 0, 0, 0]);
GameData.Parts.Arms.push(["Yuki", 87, 0, 0, 0]);
GameData.Parts.Arms.push(["Mai", 88, 0, 0, 0]);
GameData.Parts.Arms.push(["Ellen", 89, 0, 0, 0]);
GameData.Parts.Arms.push(["Kana", 90, 0, 0, 0]);
GameData.Parts.Arms.push(["Elly", 91, 0, 0, 0]);
GameData.Parts.Arms.push(["Sara", 92, 0, 0, 0]);
GameData.Parts.Arms.push(["Meira", 93, 0, 0, 0]);
GameData.Parts.Arms.push(["Elis", 94, 0, 0, 0]);
GameData.Parts.Arms.push(["Shingyoku F", 95, 0, 0, 0]);
GameData.Parts.Arms.push(["Shingyoku M", 96, 0, 0, 0]);
GameData.Parts.Arms.push(["Yuka (PJ's)", 97, 0, 0, 0]);
GameData.Parts.Arms.push(["Yukari (PCB)", 98, 0, 0, 0]);
GameData.Parts.Arms.push(["Marisa (SA)", 99, 0, 0, 0]);
GameData.Parts.Arms.push(["Reisen (SWR)", 100, 0, 0, 0]);
GameData.Parts.Arms.push(["Nazrin", 101, 0, 0, 0]);
GameData.Parts.Arms.push(["Kogasa", 102, 0, 0, 0]);
GameData.Parts.Arms.push(["Ichirin", 103, 0, 0, 0]);
GameData.Parts.Arms.push(["Marisa (UFO)", 104, 0, 0, 0]);
GameData.Parts.Arms.push(["Zombie Fairy", 105, 0, 0, 0]);
GameData.Parts.Arms.push(["Shanghai", 106, 0, 0, 0]);
GameData.Parts.Arms.push(["Rin Satsuki", 107, 0, 0, 0]);
GameData.Parts.Arms.push(["Layla", 108, 0, 0, 0]);
GameData.Parts.Arms.push("random");
GameData.Parts.Hair = new Array();
GameData.Parts.Hair.push(["Meiling", 1, 0, 0, 0, 2, "EB585A"]);
GameData.Parts.Hair.push(["Reimu", 2, 0, 0, 0, 0, "283960"]);
GameData.Parts.Hair.push(["Marisa", 3, 0, 0, 0, 0, "FFFF6F"]);
GameData.Parts.Hair.push(["Sakuya", 4, 0, 0, 0, 0, "E6E6E6"]);
GameData.Parts.Hair.push(["Yukari", 5, 0, 0, 0, 0, "FFFF80"]);
GameData.Parts.Hair.push(["Flandre", 6, 0, 0, 0, 0, "FFFF80"]);
GameData.Parts.Hair.push(["Yuyuko", 7, 0, 0, 0, 0, "FF9999"]);
GameData.Parts.Hair.push(["Kaguya", 8, 0, 0, 0, 0, "444444"]);
GameData.Parts.Hair.push(["Cirno", 9, 0, 0, 0, 0, "49CAE9"]);
GameData.Parts.Hair.push(["Eirin", 10, 0, 0, 0, 0, "F2F2F2"]);
GameData.Parts.Hair.push(["Youmu", 11, 0, 0, 0, 0, "F2F2F2"]);
GameData.Parts.Hair.push(["Patchouli", 12, 0, 0, 0, 0, "AB80BF"]);
GameData.Parts.Hair.push(["Alice", 13, 0, 0, 0, 0, "FFFF80"]);
GameData.Parts.Hair.push(["Reisen", 14, 0, 0, 0, 0, "E788FF"]);
GameData.Parts.Hair.push(["Mokou", 15, 0, 0, 0, 0, "EEEEEE"]);
GameData.Parts.Hair.push(["Mystia", 16, 0, 0, 0, 0, "F19FAD"]);
GameData.Parts.Hair.push(["Tewi", 17, 0, 0, 0, 0, "333333"]);
GameData.Parts.Hair.push(["Keine", 18, 0, 0, 0, 0, "D2D2DC"]);
GameData.Parts.Hair.push(["Ran", 19, 0, 0, 0, 0, "FEE170"]);
GameData.Parts.Hair.push(["Letty", 20, 0, 0, 0, 0, "E1D5FF"]);
GameData.Parts.Hair.push(["Chen", 21, 0, 0, 0, 0, "994D00"]);
GameData.Parts.Hair.push(["Suika", 22, 0, 0, 0, 0, "FEB74E"]);
GameData.Parts.Hair.push(["Remilia", 23, 0, 0, 0, 0, "80A2D5"]);
GameData.Parts.Hair.push(["Lily White", 24, 0, 0, 0, 0, "FEFDA3"]);
GameData.Parts.Hair.push(["Lily Black", 25, 0, 0, 0, 0, "F3BB69"]);
GameData.Parts.Hair.push(["Komachi", 26, 0, 0, 0, 0, "CB4545"]);
GameData.Parts.Hair.push(["Nitori", 27, 0, 0, 0, 0, "4B95F6"]);
GameData.Parts.Hair.push(["Sikieiki", 28, 0, 0, 0, 0, "BBD5C5"]);
GameData.Parts.Hair.push(["Wriggle", 29, 0, 0, 0, 0, "497255"]);
GameData.Parts.Hair.push(["Rumia", 30, 0, 0, 0, 0, "FEF39A"]);
GameData.Parts.Hair.push(["Aya", 31, 0, 0, 0, 0, "332B1A"]);
GameData.Parts.Hair.push(["Momizi", 32, 0, 0, 0, 0, "FBFBFB"]);
GameData.Parts.Hair.push(["Koakuma", 33, 0, 0, 0, 0, "9C1F1F"]);
GameData.Parts.Hair.push(["Lunasa", 34, 0, 0, 0, 0, "FEF4A3"]);
GameData.Parts.Hair.push(["Merlin", 35, 0, 0, 0, 0, "DDF2FF"]);
GameData.Parts.Hair.push(["Lyrica", 36, 0, 0, 0, 0, "A3827E"]);
GameData.Parts.Hair.push(["Daiyousei", 37, 0, 0, 0, 0, "A4F4B4"]);
GameData.Parts.Hair.push(["Medicine", 38, 0, 0, 0, 0, "FFF9A4"]);
GameData.Parts.Hair.push(["EX-Keine", 39, 0, 0, 0, 0, "D2D2DC"]);
GameData.Parts.Hair.push(["Yuka", 40, 0, 0, 0, 0, "309C30"]);
GameData.Parts.Hair.push(["Suwako", 41, 0, 0, 0, 0, "FAFFC4"]);
GameData.Parts.Hair.push(["Hina", 42, 0, 0, 0, 1, "87E791"]);
GameData.Parts.Hair.push(["Sanae", 43, 0, 0, 0, 0, "98F898"]);
GameData.Parts.Hair.push(["Kanako", 44, 0, 0, 0, 0, "6767E4"]);
GameData.Parts.Hair.push(["Minoriko", 45, 0, 0, 0, 0, "FFCC57"]);
GameData.Parts.Hair.push(["Shizuha", 46, 0, 0, 0, 0, "FFF06F"]);
GameData.Parts.Hair.push(["Shinki", 47, 0, 0, 0, 0, "EDEAFB"]);
GameData.Parts.Hair.push(["Mima", 48, 0, 0, 0, 0, "48771A"]);
GameData.Parts.Hair.push(["Rinnosuke", 49, 0, 0, 0, 0, "FBFBFB"]);
GameData.Parts.Hair.push(["Tokiko", 50, 0, 0, 0, 0, "EEEEEE"]);
GameData.Parts.Hair.push(["Sunny Milk", 51, 0, 0, 0, 0, "F7ED8C"]);
GameData.Parts.Hair.push(["Star Sapphire", 52, 0, 0, 0, 0, "444444"]);
GameData.Parts.Hair.push(["Luna Child", 53, 0, 0, 0, 0, "ECEB57"]);
GameData.Parts.Hair.push(["Akyu", 54, 0, 0, 0, 0, "C073C0"]);
GameData.Parts.Hair.push(["Renko", 55, 0, 0, 0, 0, "947252"]);
GameData.Parts.Hair.push(["Maribel", 56, 0, 0, 0, 0, "FFF177"]);
GameData.Parts.Hair.push(["Chiyuri", 57, 0, 0, 0, 0, "FEF4AB"]);
GameData.Parts.Hair.push(["Yumemi", 58, 0, 0, 0, 0, "934242"]);
GameData.Parts.Hair.push(["Reimu (PC-98)", 59, 0, 0, 0, 0, "890099"]);
GameData.Parts.Hair.push(["Yamame", 60, 0, 0, 0, 0, "FEF1C4"]);
GameData.Parts.Hair.push(["Tenshi", 61, 0, 0, 0, 0, "2987C5"]);
GameData.Parts.Hair.push(["Iku", 62, 0, 0, 0, 0, "8C75EA"]);
GameData.Parts.Hair.push(["Yuugi", 63, 0, 0, 0, 0, "EFDDAF"]);
GameData.Parts.Hair.push(["Kisume", 64, 0, 0, 0, 0, "20AD79"]);
GameData.Parts.Hair.push(["Parsee", 65, 0, 0, 0, 0, "F9E586"]);
GameData.Parts.Hair.push(["Yorihime", 66, 0, 0, 0, 0, "D6CBDE"]);
GameData.Parts.Hair.push(["Toyohime", 67, 0, 0, 0, 0, "FEEDB9"]);
GameData.Parts.Hair.push(["Marisa (PC-98)", 68, 0, 0, 0, 0, "FEFE54"]);
GameData.Parts.Hair.push(["Youki", 69, 0, 0, 0, 0, "F7F7F7"]);
GameData.Parts.Hair.push(["PC-98 Alice", 70, 0, 0, 0, 0, "FEFE54"]);
GameData.Parts.Hair.push(["Kurumi", 71, 0, 0, 0, 0, "FFFF77"]);
GameData.Parts.Hair.push(["Luize", 72, 0, 0, 0, 0, "FEFDAB"]);
GameData.Parts.Hair.push(["Utsuho", 73, 0, 0, 0, 0, "3C3C3C"]);
GameData.Parts.Hair.push(["Orin", 74, 0, 0, 0, 0, "D76464"]);
GameData.Parts.Hair.push(["Satori", 75, 0, 0, 0, 0, "E3BBFF"]);
GameData.Parts.Hair.push(["Koishi", 76, 0, 0, 0, 0, "DDFFE7"]);
GameData.Parts.Hair.push(["Yumeko", 77, 0, 0, 0, 0, "FEFE70"]);
GameData.Parts.Hair.push(["Ruukoto", 78, 0, 0, 0, 0, "70FE70"]);
GameData.Parts.Hair.push(["Mugetu", 79, 0, 0, 0, 0, "FEFD89"]);
GameData.Parts.Hair.push(["VIVIT", 80, 0, 0, 0, 0, "ED5F5F"]);
GameData.Parts.Hair.push(["Gengetu", 81, 0, 0, 0, 0, "FFFF5E"]);
GameData.Parts.Hair.push(["Sariel", 82, 0, 0, 0, 0, "DDDDFF"]);
GameData.Parts.Hair.push(["Konngara", 83, 0, 0, 0, 0, "3C3C3C"]);
GameData.Parts.Hair.push(["Kotohime", 84, 0, 0, 0, 3, "BF0000"]);
GameData.Parts.Hair.push(["Orange", 85, 0, 0, 0, 0, "EB585A"]);
GameData.Parts.Hair.push(["Rikako", 86, 0, 0, 0, 0, "980198"]);
GameData.Parts.Hair.push(["Rika", 87, 0, 0, 0, 0, "7A380E"]);
GameData.Parts.Hair.push(["Yuki", 88, 0, 0, 0, 0, "FEFE54"]);
GameData.Parts.Hair.push(["Mai", 89, 0, 0, 0, 0, "ABABFE"]);
GameData.Parts.Hair.push(["Ellen", 90, 0, 0, 0, 0, "FEFD92"]);
GameData.Parts.Hair.push(["Kana", 91, 0, 0, 0, 0, "FFFFA2"]);
GameData.Parts.Hair.push(["Elly", 92, 0, 0, 0, 0, "FFFF88"]);
GameData.Parts.Hair.push(["Sara", 93, 0, 0, 0, 0, "EFABBA"]);
GameData.Parts.Hair.push(["Meira", 94, 0, 0, 0, 0, "B835B9"]);
GameData.Parts.Hair.push(["Elis", 95, 0, 0, 0, 0, "EEED09"]);
GameData.Parts.Hair.push(["Shingyoku F", 96, 0, 0, 0, 0, "D22D2D"]);
GameData.Parts.Hair.push(["Shingyoku M", 97, 0, 0, 0, 0, "393939"]);
GameData.Parts.Hair.push(["Yuka (PJ's)", 98, 0, 0, 0, 0, "23AB23"]);
GameData.Parts.Hair.push(["Yukari (PCB)", 99, 0, 0, 0, 0, "FFFF80"]);
GameData.Parts.Hair.push(["Marisa (SA)", 100, 0, 0, 0, 0, "F5E981"]);
GameData.Parts.Hair.push(["Reisen II", 101, 0, 0, 0, 0, "BFB4D3"]);
GameData.Parts.Hair.push(["Nazrin", 102, 0, 0, 0, 0, "969696"]);
GameData.Parts.Hair.push(["Kogasa", 103, 0, 0, 0, 0, "6AA8AE"]);
GameData.Parts.Hair.push(["Ichirin", 104, 0, 0, 0, 0, "B8BCE0"]);
GameData.Parts.Hair.push(["Marisa (UFO)", 105, 0, 0, 0, 0, "FFF600"]);
GameData.Parts.Hair.push(["Zombie Fairy", 106, 0, 0, 0, 0, "D9DDFF"]);
GameData.Parts.Hair.push(["Shanghai", 107, 0, 0, 0, 0, "FFFF80"]);
GameData.Parts.Hair.push(["Rin Satsuki", 108, 0, 0, 0, 0, "F5FABA"]);
GameData.Parts.Hair.push(["Layla", 109, 0, 0, 0, 0, "51B087"]);
GameData.Parts.Hair.push("random");
GameData.Parts.Eyes = new Array();
GameData.Parts.Eyes.push(["Eye 1", 1, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 2", 2, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 3", 3, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 4", 4, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 5", 5, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 6", 6, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 7", 7, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 8", 8, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 9", 9, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 10", 10, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 11", 11, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 12", 12, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 13", 13, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 14", 14, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 15", 15, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 16", 16, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 17", 17, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 18", 18, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 19", 19, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 20", 20, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 21", 21, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 22", 22, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 23", 23, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 24", 24, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 25", 25, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 26", 26, 0, 7, 0, 1]);
GameData.Parts.Eyes.push(["Eye 27", 27, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 28", 28, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 29", 29, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 30", 30, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 31", 31, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 32", 32, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 33", 33, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 34", 34, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 35", 35, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 36", 36, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 37", 37, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 38", 38, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 39", 39, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 40", 40, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 41", 41, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 42", 42, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 43", 43, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 44", 44, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 45", 45, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 46", 46, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 47", 47, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 48", 48, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 49", 49, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 50", 50, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 51", 51, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 52", 52, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 53", 53, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 54", 54, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 55", 55, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 56", 56, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 57", 57, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 58", 58, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 59", 59, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 60", 60, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 61", 61, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 62", 62, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 63", 63, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 64", 64, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 65", 65, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 66", 66, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 67", 67, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 68", 68, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 69", 69, 0, 7, 0, 2]);
GameData.Parts.Eyes.push(["Eye 70", 70, 0, 7, 0, 3]);
GameData.Parts.Eyes.push(["Eye 71", 71, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 72", 72, 0, 7, 0, 4]);
GameData.Parts.Eyes.push(["Eye 73", 73, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 74", 74, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 75", 75, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 76", 76, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 77", 77, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 78", 78, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 79", 79, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 80", 80, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 81", 81, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 82", 82, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 83", 83, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 84", 84, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 85", 85, 0, 0, 0, 0]);
GameData.Parts.Eyes.push(["Eye 86", 86, 0, 0, 0, 0]);
GameData.Parts.Eyes.push("random");
GameData.Parts.Mouth = new Array();
GameData.Parts.Mouth.push("none");
GameData.Parts.Mouth.push(["Mouth 1", 1, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 2", 2, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 3", 3, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 4", 4, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 5", 5, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 6", 6, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 7", 7, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 8", 8, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 9", 9, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 10", 10, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 11", 11, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 12", 12, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 13", 13, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 14", 14, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 15", 15, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 16", 16, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 17", 17, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 18", 18, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 19", 19, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 20", 20, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 21", 21, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 22", 22, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 23", 23, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 24", 24, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 25", 25, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 26", 26, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 27", 27, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 28", 28, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 29", 29, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 30", 30, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 31", 31, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 32", 32, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 33", 33, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 34", 34, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 35", 35, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 36", 36, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 37", 37, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 38", 38, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 39", 39, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 40", 40, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 41", 41, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 42", 42, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 43", 43, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 44", 44, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 45", 45, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 46", 46, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 47", 47, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 48", 48, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 49", 49, 0, 0, 0]);
GameData.Parts.Mouth.push(["Mouth 50", 50, 0, 0, 0]);
GameData.Parts.Mouth.push("random");
GameData.BGs = new Array();
GameData.BGs.push("none");
GameData.BGs.push(["Scarlet Mansion", 1]);
GameData.BGs.push(["Flandre's Room", 2]);
GameData.BGs.push(["Yukari's Bedroom", 3]);
GameData.BGs.push(["Yukari's House", 4]);
GameData.BGs.push(["Yukari's Yard", 5]);
GameData.BGs.push(["Scarlet Library", 6]);
GameData.BGs.push(["Night Mountain", 7]);
GameData.BGs.push(["Magic Forest", 8]);
GameData.BGs.push(["Marisa's House", 9]);
GameData.BGs.push(["Hakurei Shrine", 10]);
GameData.BGs.push(["Alice's Room", 11]);
GameData.BGs.push(["Alice's House", 12]);
GameData.BGs.push(["Yuyuko's Hallway", 13]);
GameData.BGs.push(["Yuyuko's Kitchen", 14]);
GameData.BGs.push(["Sakura Tree 1", 15]);
GameData.BGs.push(["Sakura Tree 2", 16]);
GameData.BGs.push(["Shrine Day", 25]);
GameData.BGs.push(["Shrine Night", 17]);
GameData.BGs.push(["Bamboo Forest", 18]);
GameData.BGs.push(["K-1 Classroom 1", 19]);
GameData.BGs.push(["K-1 Classroom 2", 20]);
GameData.BGs.push(["K-1 Classroom 3", 21]);
GameData.BGs.push(["K-1 Classroom 4", 22]);
GameData.BGs.push(["Snow Field", 23]);
GameData.BGs.push(["Bar", 24]);
GameData.BGs.push(["Reimu Burger Register", 26]);
GameData.BGs.push(["Reimu Burger Kitchen", 27]);
GameData.BGs.push(["Reimu Burger Diner", 28]);
GameData.BGs.push(["Reimu Burger Dead End", 30]);
GameData.BGs.push(["Reimu Burger Hallway", 31]);
GameData.BGs.push(["Cruise Ship Entrance", 32]);
GameData.BGs.push(["Cruise Ship Room", 33]);
GameData.BGs.push(["Cruise Ship Deck", 34]);
GameData.BGs.push(["The Dock", 35]);
GameData.BGs.push(["More Forest", 36]);
GameData.BGs.push(["Bamboo Forest Zoom!", 37]);
GameData.BGs.push(["Desktop", 38]);
GameData.BGs.push(["Random Color", 39]);
GameData.BGs.push(["Fusion Lab", 40]);
GameData.BGs.push(["Open Field", 41]);
GameData.BGs.push(["Open Field Dusk", 42]);
GameData.BGs.push(["Aya's House", 43]);
GameData.BGs.push(["Random Field", 44]);
GameData.BGs.push(["Scarlet X-Mas Tree", 45]);
GameData.BGs.push(["Reimu's Room", 46]);
GameData.BGs.push(["Reimu Burger X-Mas", 47]);
GameData.BGs.push(["Reimu's X-Mas Room", 48]);
GameData.BGs.push(["Empty Room", 49]);
GameData.BGs.push(["Sketchy Room", 50]);
GameData.BGs.push(["Sketchy Boxing Ring", 51]);
GameData.BGs.push(["Sketchy Field", 52]);
GameData.BGs.push(["Sketchy Snowfield", 53]);
GameData.BGs.push(["Sketchy BG", 54]);
GameData.BGs.push(["Sketchy Reimu's Room", 55]);
GameData.BGs.push(["Moriya Shrine Steps", 56]);
GameData.BGs.push(["Moriya Shrine Room", 57]);
GameData.BGs.push(["Moriya Shrine Yard", 58]);
GameData.BGs.push(["Moriya Shrine Opening", 59]);
GameData.BGs.push(["Moriya Shrine Room", 60]);
GameData.BGs.push(["It's a forest again", 61]);
GameData.BGs.push(["And another forest!", 62]);
GameData.BGs.push(["End of Gensokyo", 63]);
GameData.BGs.push(["Yuka Fight!!", 64]);
GameData.BGs.push(["Reimu's Door", 65]);
GameData.BGs.push(["Reimu's Door Open", 75]);
GameData.BGs.push(["Moriya Shrine Door", 66]);
GameData.BGs.push(["Alice in the Forest", 67]);
GameData.BGs.push(["Boxing Ring", 68]);
GameData.BGs.push(["Island", 69]);
GameData.BGs.push(["Saigyou Ayakashi", 70]);
GameData.BGs.push(["Imageboard", 71]);
GameData.BGs.push(["Yard with Chairs", 72]);
GameData.BGs.push(["Moriya Kotatsu", 73]);
GameData.BGs.push(["Hakurei Shrine Door", 74]);
GameData.BGs.push(["Death by Yuyuko", 76]);
GameData.BGs.push(["Reimu Burger Outside", 77]);
GameData.BGs.push(["MikoMart Outside", 78]);
GameData.BGs.push(["MikoMart Inside", 79]);
GameData.BGs.push(["MikoMart Outside 2", 80]);
GameData.BGs.push(["Reimu's Room Again", 81]);
GameData.BGs.push(["Shrine Exterior", 82]);
GameData.BGs.push(["Hakugyokurou", 83]);
GameData.BGs.push(["Some Mountain", 84]);
GameData.BGs.push(["Generic Sky", 85]);
GameData.BGs.push(["Mansion Gates", 86]);
GameData.BGs.push(["Mansion Path", 87]);
GameData.BGs.push(["Scarlet Hallway", 88]);
GameData.BGs.push(["The Moon", 89]);
GameData.BGs.push(["Beach", 90]);
GameData.BGs.push(["School Hallway", 91]);
GameData.BGs.push(["Mini-Stage", 92]);
GameData.BGs.push(["Pond", 93]);
GameData.BGs.push(["Another Field", 94]);
GameData.BGs.push(["Marisa's House 2", 95]);
GameData.BGs.push(["Nuclear Sector", 96]);
GameData.BGs.push(["Graveyard", 97]);
GameData.BGs.push(["Underground Cave", 98]);
GameData.BGs.push(["M. Shrine (No Signs)", 99]);
GameData.BGs.push(["M. Shrine (Snow)", 100]);
GameData.BGs.push(["River", 101]);
GameData.BGs.push(["Dark Room", 102]);
GameData.BGs.push(["City Street", 103]);
GameData.BGs.push(["Eientei", 104]);
GameData.BGs.push(["Green Tatami", 105]);
GameData.BGs.push(["Kourindou", 106]);
GameData.BGs.push(["Nines", 107]);
GameData.BGs.push(["Hearts", 108]);
GameData.BGs.push(["The Heavens", 109]);
GameData.BGs.push("random");
GameData.ObjectArray = new Array();
GameData.ObjectArray.push(["TV Set", 1, 4, 1, -6]);
GameData.ObjectArray.push(["Miko's Computer", 2, 5, 0, -2]);
GameData.ObjectArray.push(["Aya Box", 3, 5, 0, -5]);
GameData.ObjectArray.push(["Sketchy Comp", 4, 5, 2, -3]);
GameData.ObjectArray.push(["Robotic Arm", 5, 0, 4, 0]);
GameData.ObjectArray.push(["Grill", 6, 6, -1, -2]);
GameData.ObjectArray.push(["Cash Register", 7, 5, 0, -3]);
GameData.ObjectArray.push(["Barstool", 8, 3, 0, 0]);
GameData.ObjectArray.push(["Bar Counter", 9, 6, 0, -4]);
GameData.ObjectArray.push(["Pet Bunny", 10, 5, 0, 0]);
GameData.ObjectArray.push(["Shanghai", 11, 5, 0, 0]);
GameData.ObjectArray.push(["Myon", 12, 5, 0, 0]);
GameData.ObjectArray.push(["Mic Stand", 13, 5, 0, 0]);
GameData.ObjectArray.push(["Chen", 14, 5, 0, 0]);
GameData.ObjectArray.push(["Chen 2", 15, 5, 0, 0]);
GameData.ObjectArray.push(["Chen 3", 17, 5, 0, 0]);
GameData.ObjectArray.push(["FOE", 16, 5, 0, 0]);
GameData.ObjectArray.push(["Robot", 18, 5, 0, 0]);
GameData.ObjectArray.push(["Box", 19, 5, 0, 0]);
GameData.ObjectArray.push(["Chair", 20, 5, 0, -2]);
GameData.ObjectArray.push(["Frozen Frog", 21, 5, 0, 0]);
GameData.ObjectArray.push(["Watermelon", 22, 5, 0, 0]);
GameData.ObjectArray.push(["Moriya Kotatsu", 23, 5, 0, -3]);
GameData.ObjectArray.push(["Twuck", 24, 4, 0, 5]);
GameData.ObjectArray.push(["Gungnir", 25, 3, 0, -3]);
GameData.ObjectArray.push(["Sigh Breath", 26, 5, 0, 0]);
GameData.ObjectArray.push(["Aya's Cabinet", 27, 6, 0, -3]);
GameData.ObjectArray.push(["Aya's Computer", 28, 5, 0, -5]);
GameData.ObjectArray.push(["Ayangelion", 29, 4, 2, -6]);
GameData.ObjectArray.push(["Cirno Suika", 30, 5, 2, -6]);
GameData.ObjectArray.push(["Refridgerator", 31, 5, 1, -4]);
GameData.ObjectArray.push(["Ikubi Akius", 32, 5, 3, -6]);
GameData.ObjectArray.push(["M.Mart Counter", 33, 5, 3, -4]);
GameData.ObjectArray.push(["Radio", 34, 5, 3, 5]);
GameData.ObjectArray.push(["Reimu's Kotatsu", 35, 5, 0, 0]);
GameData.ObjectArray.push(["Burger Table", 36, 5, 0, -3]);
GameData.ObjectArray.push(["Sakura Tree", 37, 5, 3, -5]);
GameData.ObjectArray.push(["Sliding Door", 38, 5, 0, -5]);
GameData.ObjectArray.push(["Trash Can", 39, 5, 2, 0]);
GameData.ObjectArray.push(["Suzuran", 40, 5, 0, 5]);
GameData.ObjectArray.push(["Some Flower", 41, 5, 0, 0]);
GameData.ObjectArray.push(["Sunflower", 42, 5, 0, 0]);
GameData.ObjectArray.push(["Miko Stick", 43, 5, 0, 0]);
GameData.ObjectArray.push(["Youkai Warhead", 44, 5, 0, -3]);
GameData.ObjectArray.push(["Blanket", 45, 5, 0, -3]);
GameData.ObjectArray.push(["Matress", 46, 5, 0, -3]);
GameData.ObjectArray.push(["Rain Cloud", 47, 5, 0, -3]);
GameData.ObjectArray.push(["Fire", 48, 5, 0, -3]);
GameData.ObjectArray.push(["Light", 49, 5, 3, -7]);
GameData.ObjectArray.push(["Gap", 50, 5, 0, -3]);
GameData.ObjectArray.push(["Comic Panel", 51, 5, 0, -3]);
GameData.ObjectArray.push(["Point Item", 52, 5, 0, 5]);
GameData.ObjectArray.push(["Powerup Item", 53, 5, 0, 5]);
GameData.ObjectArray.push(["Pong Paddle", 54, 5, 0, -3]);
GameData.ObjectArray.push(["Barrier", 55, 5, 0, -4]);
GameData.ObjectArray.push(["Yukari's Dagger", 56, 5, 0, 5]);
GameData.ObjectArray.push(["Bullet", 57, 5, 0, 20]);
GameData.ObjectArray.push(["Thin Bullet", 58, 5, 0, 20]);
GameData.ObjectArray.push(["Other Bullet", 59, 5, 0, 20]);
GameData.ObjectArray.push(["Another One", 60, 5, 0, 20]);
GameData.ObjectArray.push(["Coin Bullet", 61, 5, 0, 30]);
GameData.ObjectArray.push(["Star Bullet", 62, 5, 0, 20]);
GameData.ObjectArray.push(["Suppository", 63, 5, 0, 20]);
GameData.ObjectArray.push(["Yin Yang Orb", 64, 5, 0, 20]);
GameData.ObjectArray.push(["Amulet", 65, 5, 0, 15]);
GameData.ObjectArray.push(["Knife", 66, 5, 0, 5]);
GameData.ObjectArray.push(["Levatein", 67, 5, 0, 0]);
GameData.ObjectArray.push(["Camera", 68, 5, 0, 5]);
GameData.ObjectArray.push(["Ice Shard", 69, 5, 0, 30]);
GameData.ObjectArray.push(["Witch Broom", 70, 0, 0, 0]);
GameData.ObjectArray.push(["Crescent Spear", 71, 0, 0, 0]);
GameData.ObjectArray.push(["Youmu Sword", 72, 5, 0, 0]);
GameData.ObjectArray.push(["Dark Sword", 73, 5, 0, 0]);
GameData.ObjectArray.push(["Ran's Arms", 74, 5, 0, 10]);
GameData.ObjectArray.push(["Basket", 75, 5, 0, 10]);
GameData.ObjectArray.push(["Bucket", 76, 5, 0, 0]);
GameData.ObjectArray.push(["Wanted Poster", 77, 5, 0, -3]);
GameData.ObjectArray.push(["Tenshi's Rock", 78, 5, 2, 0]);
GameData.ObjectArray.push(["Cloud", 79, 5, 0, -3]);
GameData.ObjectArray.push(["Tenshi's Sword", 80, 5, 0, 0]);
GameData.ObjectArray.push(["Rocket", 81, 5, 2, 0]);
GameData.ObjectArray.push(["Evil Eye Sigma", 82, 5, 0, -3]);
GameData.ObjectArray.push(["Darkness", 83, 5, 0, -3]);
GameData.ObjectArray.push(["Sketchy M.Spark", 84, -3, 0, -3]);
GameData.ObjectArray.push(["Extended Arms", 85, 5, 0, 2]);
GameData.ObjectArray.push(["Steamroller", 86, 5, 0, -4]);
GameData.ObjectArray.push(["Donation Box", 87, 5, 0, 0]);
GameData.ObjectArray.push(["Cat", 88, 5, 0, 0]);
GameData.ObjectArray.push(["Clock", 89, 5, 2, 0]);
GameData.ObjectArray.push(["Cat-on-a-Cup", 90, 5, 2, 2]);
GameData.ObjectArray.push(["Lemonade Pitcher", 91, 5, 2, 1]);
GameData.ObjectArray.push(["Product Stand", 92, 5, 2, -3]);
GameData.ObjectArray.push(["Kendama", 93, 5, 0, 0]);
GameData.ObjectArray.push(["Master Spark!!", 94, 0, 0, -9]);
GameData.ObjectArray.push(["Censor Bar", 95, 5, 0, 0]);
GameData.ObjectArray.push(["Sparkler", 96, 5, 0, 6]);
GameData.ObjectArray.push(["Outdoor Grill", 97, 5, 5, -3]);
GameData.ObjectArray.push(["Beach Umbrella", 98, 5, -5, -1]);
GameData.ObjectArray.push(["Beach Blanket", 99, 5, 0, 0]);
GameData.ObjectArray.push(["Sandcastle", 100, 5, 0, 4]);
GameData.ObjectArray.push(["Meat Patty", 101, 5, 0, 6]);
GameData.ObjectArray.push(["Inner Tube", 102, 5, 0, 3]);
GameData.ObjectArray.push(["Sign", 103, 5, 0, 3]);
GameData.ObjectArray.push(["Pool of... red.", 104, 5, 0, 0]);
GameData.ObjectArray.push(["Pink Umbrella", 105, 5, 2, -3]);
GameData.ObjectArray.push(["Nuclear Warning", 106, 5, 0, 3]);
GameData.ObjectArray.push(["Spinning Sun", 107, 5, 2, -3]);
GameData.ObjectArray.push(["Nuclear Reactor", 108, 5, 1, -6]);
GameData.ObjectArray.push(["Skull", 109, 5, 0, 4]);
GameData.ObjectArray.push(["Ghostly Aura", 110, 6, 0, 4]);
GameData.ObjectArray.push(["Wheelbarrow", 111, 5, 0, 0]);
GameData.ObjectArray.push(["Orin", 112, 5, 0, 0]);
GameData.ObjectArray.push(["Gravestone", 113, 5, 0, 0]);
GameData.ObjectArray.push(["Suika's Gourd", 114, 5, 0, 1]);
GameData.ObjectArray.push(["Heart With Eye", 115, 5, 0, 1]);
GameData.ObjectArray.push(["Noose", 116, 5, 0, -3]);
GameData.ObjectArray.push(["School Desk", 117, 5, 0, 1]);
GameData.ObjectArray.push(["Lycoris Flower", 118, 5, 0, 2]);
GameData.ObjectArray.push(["Sariel's Staff", 119, 5, 0, 2]);
GameData.ObjectArray.push(["Extended Arms 2", 120, 5, 0, 2]);
GameData.ObjectArray.push(["Nightstick", 121, 5, 0, 2]);
GameData.ObjectArray.push(["Mini-Hakkero", 122, 5, 0, 4]);
GameData.ObjectArray.push(["Orange's Baton", 123, 5, 0, 4]);
GameData.ObjectArray.push(["Test Tube", 124, 5, 0, 4]);
GameData.ObjectArray.push(["Flandre", 125, 5, 0, 0]);
GameData.ObjectArray.push(["Prinny", 126, 5, 0, 0]);
GameData.ObjectArray.push(["Tank", 127, 5, 0, -2]);
GameData.ObjectArray.push(["Flower Tank", 128, 5, 0, -2]);
GameData.ObjectArray.push(["Utsuho's Orb", 129, 5, 0, 0]);
GameData.ObjectArray.push(["Upward Arm", 130, 5, 0, 0]);
GameData.ObjectArray.push(["Upward Arm 2", 131, 5, 0, 0]);
GameData.ObjectArray.push(["Third Leg", 132, 5, 0, 0]);
GameData.ObjectArray.push(["Train Car", 133, 5, 0, -5]);
GameData.ObjectArray.push(["Stained Glass", 134, 5, 0, 0]);
GameData.ObjectArray.push(["Window", 135, 5, 0, 0]);
GameData.ObjectArray.push(["Hands-to-Face", 136, 5, 0, 0]);
GameData.ObjectArray.push(["Folding Screen", 137, 5, 0, -4]);
GameData.ObjectArray.push(["Dresser", 138, 5, 0, -2]);
GameData.ObjectArray.push(["Store Counter", 139, 5, 0, -4]);
GameData.ObjectArray.push(["Present", 140, 5, 0, 0]);
GameData.ObjectArray.push(["Truck-like Gift", 141, 5, 0, 0]);
GameData.ObjectArray.push(["Christmas Blade", 142, 5, 0, 0]);
GameData.ObjectArray.push(["NEET-hime Staff", 143, 5, 0, 0]);
GameData.ObjectArray.push(["Yukari's Tree", 144, 5, 0, -5]);
GameData.ObjectArray.push(["Alice's Tree", 145, 5, 0, -5]);
GameData.ObjectArray.push(["Mokou's Tree", 146, 5, 0, -5]);
GameData.ObjectArray.push(["Reimu's Tree", 147, 5, 0, -5]);
GameData.ObjectArray.push(["XMas Square", 148, 5, 0, -4]);
GameData.ObjectArray.push(["Elly's Scythe", 149, 5, 0, -3]);
GameData.ObjectArray.push(["Komachi's Scythe", 150, 5, 0, -3]);
GameData.ObjectArray.push(["Meira's Sword", 151, 2, 0, 0]);
GameData.ObjectArray.push(["Genji", 152, 5, 0, 0]);
GameData.ObjectArray.push(["Flying Eyeball", 153, 5, 0, 0]);
GameData.ObjectArray.push(["Konngara's Sword", 154, 2, 0, 0]);
GameData.ObjectArray.push(["Star Wand", 155, 5, 0, 0]);
GameData.ObjectArray.push(["Yuugen-Magan", 156, 5, 0, 0]);
GameData.ObjectArray.push(["Kikuri", 157, 5, 0, 0]);
GameData.ObjectArray.push(["Pink Pillow", 158, 5, 0, 0]);
GameData.ObjectArray.push(["Teacup+Plate", 159, 5, 0, 0]);
GameData.ObjectArray.push(["Yuka's Watch", 160, 5, 0, 0]);
GameData.ObjectArray.push(["Paper Umbrella", 161, 5, 0, 0]);
GameData.ObjectArray.push(["Smoke Pipe", 162, 5, 0, 0]);
GameData.ObjectArray.push(["Brick", 163, 5, 0, 0]);
GameData.ObjectArray.push(["Grey UFO", 164, 5, 0, 0]);
GameData.ObjectArray.push(["Kogasa's Umbrella", 165, 5, 0, 0]);
GameData.ObjectArray.push(["Unzan", 166, 5, 0, 0]);
GameData.ObjectArray.push(["Unzan 2", 167, 5, 0, 0]);
GameData.ObjectArray.push(["Unzan Fist", 168, 5, 0, 0]);
GameData.ObjectArray.push(["Unzan Fist 2", 169, 5, 0, 0]);
GameData.ObjectArray.push(["Red Cloud", 170, 5, 0, 0]);
GameData.ObjectArray.push(["Spring", 171, 5, 0, 0]);
GameData.ObjectArray.push(["Marisa's Wand", 172, 5, 0, 0]);
GameData.ObjectArray.push(["Boxing Chen", 173, 5, 0, 0]);
GameData.ObjectArray.push(["Teacup", 174, 5, 0, 0]);
GameData.ObjectArray.push(["Erhu", 175, 5, 0, 0]);
GameData.ObjectArray.push(["Erhu bow", 176, 5, 0, 0]);
GameData.ObjectArray.push(["Long sleeved", 177, 5, 0, 0]);
GameData.ObjectArray.push(["Short sleeved", 178, 5, 0, 0]);
GameData.Characters = new Object();
GameData.SpeechBubbles = new Object();
GameData.Objects = new Object();
GameData.Screenshots = new Object();
GameData.Clusters = new Object();
GameData.Rain = new Object();
GameData.Presets = new Object();
newPreset("Meiling", 1, 0, 0, 0, 1, 1, 1, 0, 0, 0);
newPreset("Reimu", 2, 0, 0, 1, 2, 2, 2, 1, 0, 0);
newPreset("Marisa", 3, 0, 0, 2, 3, 3, 3, 2, 0, 0);
newPreset("Sakuya", 4, 0, 0, 3, 4, 4, 4, 3, 0, 0);
newPreset("Yukari", 5, 0, 0, 4, 5, 5, 5, 4, 27, 0);
newPreset("Flandre", 6, 0, 1, 5, 6, 6, 6, 5, 1, 0);
newPreset("Yuyuko", 7, 0, 0, 6, 7, 7, 7, 27, 28, 0);
newPreset("Kaguya", 8, 0, 0, 7, 0, 8, 8, 0, 0, 0);
newPreset("Cirno", 9, 0, 1, 8, 9, 9, 9, 0, 2, 0);
newPreset("Eirin", 10, 0, 0, 9, 10, 10, 10, 0, 0, 0);
newPreset("Ran", 19, 0, 0, 18, 19, 19, 19, 0, 9, 0);
newPreset("Chen", 21, 6, 4, 20, 21, 21, 21, 0, 10, 0);
newPreset("Momizi", 32, 0, 0, 31, 32, 32, 32, 48, 16, 37);
newPreset("Youmu", 11, 0, 11, 10, 11, 11, 11, 10, 0, 0);
newPreset("Patchouli", 12, 0, 0, 11, 12, 12, 12, 11, 0, 0);
newPreset("Alice", 13, 0, 0, 12, 13, 13, 13, 12, 0, 0);
newPreset("Reisen", 14, 0, 0, 13, 14, 14, 14, 0, 0, 0);
newPreset("Mokou", 15, 0, 0, 14, 15, 15, 15, 0, 7, 0);
newPreset("Mystia", 16, 0, 0, 15, 16, 16, 16, 0, 4, 0);
newPreset("Tewi", 17, 0, 0, 16, 17, 17, 17, 0, 0, 0);
newPreset("Keine", 18, 0, 0, 17, 18, 18, 18, 0, 0, 0);
newPreset("Letty", 20, 0, 0, 19, 20, 20, 20, 0, 0, 63);
newPreset("Suika", 22, 31, 13, 21, 22, 22, 22, 36, 0, 0);
newPreset("Remilia", 23, 0, 0, 22, 23, 23, 23, 39, 11, 0);
newPreset("Lily White", 24, 0, 0, 23, 24, 24, 24, 0, 12, 0);
newPreset("Lily Black", 25, 0, 0, 24, 25, 25, 25, 0, 12, 0);
newPreset("Komachi", 26, 40, 22, 25, 26, 26, 26, 41, 0, 0);
newPreset("Nitori", 27, 0, 0, 26, 27, 27, 27, 42, 13, 0);
newPreset("Sikieiki", 28, 0, 0, 27, 28, 28, 28, 43, 0, 0);
newPreset("Wriggle", 29, 0, 0, 28, 29, 29, 29, 0, 14, 0);
newPreset("Rumia", 30, 0, 0, 29, 30, 30, 30, 0, 0, 33);
newPreset("Aya", 31, 0, 0, 30, 31, 31, 31, 47, 15, 36);
newPreset("Koakuma", 33, 0, 0, 32, 33, 33, 33, 0, 17, 0);
newPreset("Lunasa", 34, 0, 0, 33, 34, 34, 34, 50, 0, 0);
newPreset("Lyrica", 36, 0, 0, 35, 36, 36, 36, 52, 0, 0);
newPreset("Merlin", 35, 0, 0, 34, 35, 35, 35, 51, 0, 0);
newPreset("Daiyousei", 37, 0, 0, 36, 37, 37, 37, 0, 18, 0);
newPreset("Medicine", 38, 0, 0, 37, 38, 38, 38, 0, 0, 40);
newPreset("EX-Keine", 39, 0, 0, 38, 39, 39, 39, 0, 19, 0);
newPreset("Yuka", 40, 0, 0, 39, 0, 40, 40, 57, 0, 0);
newPreset("Suwako", 41, 0, 0, 40, 41, 41, 41, 0, 0, 0);
newPreset("Hina", 42, 0, 0, 41, 42, 42, 42, 0, 0, 0);
newPreset("Sanae", 43, 0, 0, 42, 43, 43, 43, 74, 0, 0);
newPreset("Kanako", 44, 0, 0, 43, 44, 44, 44, 0, 20, 0);
newPreset("Minoriko", 45, 0, 0, 44, 45, 45, 45, 0, 0, 0);
newPreset("Shizuha", 46, 0, 0, 45, 46, 46, 46, 0, 0, 0);
newPreset("Shinki", 47, 0, 0, 46, 47, 47, 47, 0, 21, 0);
newPreset("Mima", 48, 0, 0, 47, 48, 48, 48, 0, 0, 0);
newPreset("Rinnosuke", 49, 0, 0, 48, 0, 49, 49, 0, 0, 1);
newPreset("Tokiko", 50, 0, 0, 49, 50, 50, 50, 0, 22, 0);
newPreset("Sunny Milk", 51, 0, 0, 50, 51, 51, 51, 0, 23, 0);
newPreset("Star Sapphire", 52, 0, 0, 51, 52, 52, 52, 0, 24, 0);
newPreset("Luna Child", 53, 0, 0, 52, 53, 53, 53, 0, 25, 0);
newPreset("Akyu", 54, 0, 0, 53, 54, 54, 54, 69, 0, 0);
newPreset("Renko", 55, 0, 0, 54, 55, 55, 55, 0, 0, 0);
newPreset("Maribel", 56, 0, 0, 55, 56, 56, 56, 0, 0, 0);
newPreset("Chiyuri", 57, 0, 0, 56, 57, 57, 57, 0, 0, 0);
newPreset("Yumemi", 58, 0, 0, 57, 0, 58, 58, 0, 0, 0);
newPreset("Reimu (PC-98)", 59, 0, 0, 58, 59, 59, 59, 0, 0, 0);
newPreset("Tenshi", 61, 0, 0, 60, 61, 61, 61, 0, 0, 0);
newPreset("Iku", 62, 0, 0, 61, 62, 62, 62, 0, 32, 0);
newPreset("Yamame", 60, 0, 0, 59, 60, 60, 60, 0, 30, 0);
newPreset("Yuugi", 63, 0, 0, 62, 63, 63, 63, 81, 0, 0);
newPreset("Kisume", 64, 0, 0, 63, 64, 0, 0, 0, 0, 0);
newPreset("Parsee", 65, 0, 0, 64, 0, 64, 64, 0, 0, 0);
newPreset("Yorihime", 66, 0, 0, 65, 66, 65, 65, 0, 0, 0);
newPreset("Toyohime", 67, 0, 0, 66, 67, 66, 66, 0, 0, 0);
newPreset("Marisa (PC-98)", 68, 0, 0, 67, 68, 67, 67, 0, 0, 0);
newPreset("Youki", 69, 0, 0, 68, 0, 68, 68, 0, 0, 59);
newPreset("PC-98 Alice", 70, 0, 0, 69, 70, 69, 69, 0, 0, 0);
newPreset("Kurumi", 71, 0, 0, 70, 71, 70, 70, 0, 33, 0);
newPreset("Luize", 72, 31, 39, 71, 72, 71, 71, 0, 0, 0);
newPreset("Utsuho", 73, 0, 0, 72, 73, 72, 72, 0, 34, 0);
newPreset("Orin", 74, 0, 0, 73, 74, 73, 73, 0, 35, 0);
newPreset("Satori", 75, 73, 40, 74, 75, 74, 74, 0, 0, 61);
newPreset("Koishi", 76, 0, 23, 75, 76, 75, 75, 0, 36, 66);
newPreset("Yumeko", 77, 0, 0, 76, 77, 76, 76, 3, 0, 0);
newPreset("Ruukoto", 78, 31, 11, 77, 78, 77, 77, 0, 0, 0);
newPreset("Mugetu", 79, 0, 0, 78, 79, 78, 78, 0, 0, 0);
newPreset("VIVIT", 80, 0, 0, 79, 80, 79, 79, 0, 0, 0);
newPreset("Gengetu", 81, 0, 0, 80, 81, 80, 80, 0, 37, 0);
newPreset("Sariel", 82, 0, 0, 81, 0, 81, 81, 82, 38, 0);
newPreset("Konngara", 83, 0, 0, 82, 83, 82, 82, 83, 0, 0);
newPreset("Kotohime", 84, 0, 0, 83, 0, 83, 83, 0, 0, 0);
newPreset("Orange", 85, 0, 0, 84, 85, 84, 84, 86, 0, 0);
newPreset("Rikako", 86, 0, 0, 85, 86, 85, 85, 87, 0, 64);
newPreset("Rika", 87, 0, 0, 86, 87, 86, 86, 42, 31, 0);
newPreset("Yuki", 88, 0, 0, 87, 88, 87, 87, 0, 0, 0);
newPreset("Mai", 89, 0, 0, 88, 89, 88, 88, 0, 39, 0);
newPreset("Ellen", 90, 0, 0, 89, 90, 89, 89, 0, 0, 0);
newPreset("Kana", 91, 0, 0, 90, 91, 90, 90, 0, 0, 0);
newPreset("Elly", 92, 0, 0, 91, 92, 91, 91, 0, 0, 0);
newPreset("Sara", 93, 0, 0, 92, 0, 92, 92, 0, 0, 0);
newPreset("Meira", 94, 0, 0, 93, 94, 93, 93, 90, 0, 0);
newPreset("Elis", 95, 0, 0, 94, 95, 94, 94, 91, 41, 65);
newPreset("Shingyoku F", 96, 0, 0, 95, 96, 95, 95, 0, 0, 0);
newPreset("Shingyoku M", 97, 0, 0, 96, 97, 96, 96, 0, 0, 0);
newPreset("Yuka (PJ's)", 98, 0, 0, 97, 98, 97, 97, 0, 0, 0);
newPreset("Yukari (PCB)", 99, 0, 0, 98, 99, 98, 5, 0, 0, 0);
newPreset("Marisa (SA)", 100, 0, 11, 99, 100, 99, 99, 0, 0, 0);
newPreset("Reisen (SWR)", 101, 0, 0, 13, 14, 100, 100, 0, 0, 0);
newPreset("Reisen II", 14, 0, 0, 100, 101, 14, 14, 0, 0, 0);
newPreset("Nazrin", 102, 0, 11, 101, 102, 101, 101, 93, 43, 0);
newPreset("Kogasa", 103, 81, 0, 102, 0, 102, 102, 94, 0, 0);
newPreset("Ichirin", 104, 0, 0, 103, 104, 103, 103, 95, 0, 0);
newPreset("Marisa (UFO)", 105, 0, 11, 104, 105, 104, 104, 96, 0, 0);
newPreset("Zombie Fairy", 106, 85, 0, 105, 106, 105, 105, 0, 44, 0);
newPreset("Shanghai", 107, 0, 0, 106, 107, 106, 106, 0, 23, 0);
newPreset("Layla", 109, 31, 11, 108, 109, 108, 108, 0, 0, 0);
GameData.PresetList = new Array();
for (a in GameData.Presets) {
GameData.PresetList.push(a);
}
GameData.PresetList.sort();
GameData.Toys = new Object();
GameData.Toys["Grouchy Reimu"] = new Object();
GameData.Toys["Grouchy Reimu"].frame = 1;
GameData.Toys["Gravity Well"] = new Object();
GameData.Toys["Gravity Well"].frame = 2;
GameData.Toys["Gravity Well"].Power = 5;
GameData.Toys["Gravity Well"].ShiftPower = 2;
GameData.Toys["Gravity Well"].CtrlPower = 10;
GameData.Toys["Gravity Well"].Friction = 1;
GameData.Toys["Mysterious Gap"] = new Object();
GameData.Toys["Mysterious Gap"].frame = 3;
GameData.Toys["Clone Capsule"] = new Object();
GameData.Toys["Clone Capsule"].frame = 4;
GameData.Toys["Clone Capsule"].Mode = 1;
GameData.Toys["Clone Capsule"].Delay = 0;
GameData.Toys["Clone Capsule"].Char = new Object();
GameData.Toys["Boxing Chen"] = new Object();
GameData.Toys["Boxing Chen"].frame = 5;
GameData.Toys["Boxing Chen"].Range = 120;
nextFrame();
Frame 5
function addButton(W, N, X, Y, T, A) {
GameData.Frames[W][N] = new Object();
GameData.Frames[W][N].Type = "Button";
GameData.Frames[W][N].X = X;
GameData.Frames[W][N].Y = Y;
GameData.Frames[W][N].Text = T;
GameData.Frames[W][N].Action = A;
}
function addWindow(N, H, W, T) {
GameData.Frames[N] = new Object();
GameData.Frames[N].Height = H;
GameData.Frames[N].Width = W;
GameData.Frames[N].Title = new Object();
GameData.Frames[N].Title.Type = "Text";
GameData.Frames[N].Title.Format = "Header";
GameData.Frames[N].Title.Text = T;
GameData.Frames[N].Title.X = 10;
GameData.Frames[N].Title.Y = 10;
GameData.Frames[N].Title.Width = 280;
GameData.Frames[N].Title.Height = 28;
GameData.Frames[N].Line = new Object();
GameData.Frames[N].Line.Type = "Line";
GameData.Frames[N].Line.X = 10;
GameData.Frames[N].Line.Y = 38;
GameData.Frames[N].Line.Size = 280;
}
function addTextInput(W, N, X, Y, Lt, It, H, Lw, Iw) {
GameData.Frames[W][N + "L"] = new Object();
GameData.Frames[W][N + "L"].Type = "Text";
GameData.Frames[W][N + "L"].Format = "Base";
GameData.Frames[W][N + "L"].Text = Lt;
GameData.Frames[W][N + "L"].X = X;
GameData.Frames[W][N + "L"].Y = Y;
GameData.Frames[W][N + "L"].Width = Lw;
GameData.Frames[W][N + "L"].Height = H;
GameData.Frames[W][N + "I"] = new Object();
GameData.Frames[W][N + "I"].Type = "Text";
GameData.Frames[W][N + "I"].Input = true;
GameData.Frames[W][N + "I"].Format = "Base";
GameData.Frames[W][N + "I"].Text = It;
GameData.Frames[W][N + "I"].X = X + GameData.Frames[W][N + "L"].Width;
GameData.Frames[W][N + "I"].Y = Y;
GameData.Frames[W][N + "I"].Width = Iw;
GameData.Frames[W][N + "I"].Height = H;
}
function addText(W, N, X, Y, Lt, H, Lw) {
GameData.Frames[W][N + "L"] = new Object();
GameData.Frames[W][N + "L"].Type = "Text";
GameData.Frames[W][N + "L"].Format = "Base";
GameData.Frames[W][N + "L"].Text = Lt;
GameData.Frames[W][N + "L"].X = X;
GameData.Frames[W][N + "L"].Y = Y;
GameData.Frames[W][N + "L"].Width = Lw;
GameData.Frames[W][N + "L"].Height = H;
}
function addCheckBox(W, N, X, Y, Lt, H, Lw, Is, cbid) {
GameData.Frames[W][N + "L"] = new Object();
GameData.Frames[W][N + "L"].Type = "Text";
GameData.Frames[W][N + "L"].Format = "Base";
GameData.Frames[W][N + "L"].Text = Lt;
GameData.Frames[W][N + "L"].X = X;
GameData.Frames[W][N + "L"].Y = Y;
GameData.Frames[W][N + "L"].Width = Lw;
GameData.Frames[W][N + "L"].Height = H;
GameData.Frames[W][N + "I"] = new Object();
GameData.Frames[W][N + "I"].Type = "Checkbox";
GameData.Frames[W][N + "I"].ID = cbid;
GameData.Frames[W][N + "I"].X = X + GameData.Frames[W][N + "L"].Width;
GameData.Frames[W][N + "I"].Y = Y;
GameData.Frames[W][N + "I"].Scale = Is;
}
function makeFrame(F) {
var _local3 = 0;
Interface.createEmptyMovieClip(F, GameData.Menus.DMax++);
Interface[F].attachMovie("BGBox", "BG", _local3++);
Interface[F].BG._alpha = GameData.Buttons.Opacity;
setBGDrag(Interface[F].BG);
for (i in GameData.Frames[F]) {
if (i == "Height") {
Interface[F].BG._height = GameData.Frames[F][i];
} else if (i == "Width") {
Interface[F].BG._width = GameData.Frames[F][i];
} else if (GameData.Frames[F][i].Type == "Text") {
Interface[F].createTextField(i, _local3++, GameData.Frames[F][i].X, GameData.Frames[F][i].Y, GameData.Frames[F][i].Width, GameData.Frames[F][i].Height);
Interface[F][i].embedFonts = true;
Interface[F][i].setNewTextFormat(GameData.TextFormats[GameData.Frames[F][i].Format]);
if (GameData.Frames[F][i].Input) {
Interface[F][i].type = "input";
Interface[F][i].border = true;
setFocusHandler(Interface[F][i], GameData.Frames[F][i].Text);
setOnLoadHandler(Interface[F], i, GameData.Frames[F][i].Text);
} else {
Interface[F][i].selectable = false;
}
Interface[F][i].text = GameData.Frames[F][i].Text;
} else if (GameData.Frames[F][i].Type == "Line") {
Interface[F].attachMovie("BlackLine", i, _local3++);
Interface[F][i]._x = GameData.Frames[F][i].X;
Interface[F][i]._y = GameData.Frames[F][i].Y;
Interface[F][i]._width = GameData.Frames[F][i].Size;
} else if (GameData.Frames[F][i].Type == "Button") {
makeButton(Interface[F], i, GameData.Frames[F][i].Text, _local3++);
if (GameData.Frames[F][i].Text == "isClusterDir") {
setOnLoadHandler(Interface[F], i, GameData.Frames[F][i].Text);
}
Interface[F][i]._x = GameData.Frames[F][i].X;
Interface[F][i]._y = GameData.Frames[F][i].Y;
Interface[F][i].Action = GameData.Frames[F][i].Action;
Interface[F][i].onRelease = function () {
CallFunction(this);
SwapColor(this.BG, "Buttons", 1);
};
} else if (GameData.Frames[F][i].Type == "Checkbox") {
Interface[F].attachMovie("Checkbox", i, _local3++);
Interface[F][i]._x = GameData.Frames[F][i].X + 10;
Interface[F][i]._y = GameData.Frames[F][i].Y + 8;
Interface[F][i]._xscale = GameData.Frames[F][i].Scale;
Interface[F][i]._yscale = GameData.Frames[F][i].Scale;
Interface[F][i].ID = GameData.Frames[F][i].ID;
Interface[F][i].onRelease = function () {
Toggle(this, this.ID);
};
setOnLoadHandler(Interface[F], i, GameData.Frames[F][i].ID);
}
}
Interface[F]._visible = false;
ICenter(Interface[F]);
}
function getArray() {
if (GameData.TargetType == "Character") {
return("Characters");
}
if (GameData.TargetType == "Rain") {
return("Rain");
}
if (GameData.TargetType == "Object") {
return("Objects");
}
if (GameData.TargetType == "Screenshot") {
return("Screenshots");
}
if (GameData.TargetType == "SpeechBubble") {
return("SpeechBubbles");
}
if (GameData.TargetType == "Cluster") {
return("Clusters");
}
trace("Unknown Object");
return("Unknown");
}
function OnLoadHandler(MC) {
i = 0;
while (i < MC.OnLoad.length) {
if (GameData.Menus.OnLoad[MC.OnLoad[i][1]]) {
GameData.Menus.OnLoad[MC.OnLoad[i][1]](MC, i);
}
i++;
}
}
function Toggle(MC, T) {
if (T == "ClusterPoint") {
if (GameData.Clusters[GameData.Target._name].TowardsPoint) {
GameData.Clusters[GameData.Target._name].TowardsPoint = false;
MC.gotoAndStop(1);
} else {
GameData.Clusters[GameData.Target._name].TowardsPoint = true;
MC.gotoAndStop(2);
}
fixClusterShotAngle(GameData.Target, GameData.Clusters[GameData.Target._name].Qt);
}
}
function setOnLoadHandler(MC, T, A) {
if (!MC.OnLoad) {
MC.OnLoad = new Array();
}
MC.OnLoad.push([T, A]);
}
function setFocusHandler(T, H) {
T.onSetFocus = function () {
GameData.KeyLock = true;
};
if (H == "isXLoc") {
T.onKillFocus = function () {
GameData.Target._x = Number(this.text);
GameData.KeyLock = false;
};
} else if (H == "isYLoc") {
T.onKillFocus = function () {
GameData.Target._y = Number(this.text);
GameData.KeyLock = false;
};
} else if (H == "isRotation") {
T.onKillFocus = function () {
GameData.Target._rotation = Number(this.text);
GameData.KeyLock = false;
};
} else if (H == "isAlpha") {
T.onKillFocus = function () {
GameData.Target._alpha = Number(this.text);
GameData.KeyLock = false;
};
} else if (H == "isScale") {
T.onKillFocus = function () {
if (Number(this.text) < GameData.ScaleLimit) {
this.text = GameData.ScaleLimit;
}
GameData[getArray()][GameData.Target._name].Scale = Number(this.text);
GameData.Target._xscale = Number(this.text) * GameData.Target.XFace;
GameData.Target._yscale = Number(this.text) * GameData.Target.YFace;
GameData.KeyLock = false;
};
} else if (H == "isRScale") {
T.onKillFocus = function () {
if (Number(this.text) < GameData.ScaleLimit) {
this.text = GameData.ScaleLimit;
}
GameData[getArray()][GameData.Target._name].Scale = Number(this.text);
for (d in GameData.Target) {
fixDropScale(GameData.Target[d]);
}
GameData.KeyLock = false;
};
} else if (H == "isRDensity") {
T.onKillFocus = function () {
GameData.Rain[GameData.Target._name].Qty = Number(this.text);
fixRain(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isClusterRows") {
T.onKillFocus = function () {
GameData.Clusters[GameData.Target._name].Rows = Number(this.text);
fixCluster(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isClusterCols") {
T.onKillFocus = function () {
GameData.Clusters[GameData.Target._name].Cols = Number(this.text);
fixCluster(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isClusterDist") {
T.onKillFocus = function () {
GameData.Clusters[GameData.Target._name].Distance = Number(this.text);
fixCluster(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isClusterSpiral") {
T.onKillFocus = function () {
GameData.Clusters[GameData.Target._name].Spiral = Number(this.text);
fixCluster(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isClusterSpread") {
T.onKillFocus = function () {
GameData.Clusters[GameData.Target._name].Spread = Number(this.text);
fixCluster(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isClusterRMod") {
T.onKillFocus = function () {
GameData.Clusters[GameData.Target._name].RMod = Number(this.text);
fixCluster(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isClusterSD") {
T.onKillFocus = function () {
GameData.Clusters[GameData.Target._name].StartDist = Number(this.text);
fixCluster(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isRTwirlMin") {
T.onKillFocus = function () {
GameData.Rain[GameData.Target._name].Rmin = Number(this.text);
if (Number(this.text) > GameData.Rain[GameData.Target._name].Rmax) {
GameData.Rain[GameData.Target._name].Rmax = Number(this.text);
this._parent.tmaxI.text = this.text;
}
fixRain(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isRTwirlMax") {
T.onKillFocus = function () {
GameData.Rain[GameData.Target._name].Rmax = Number(this.text);
if (GameData.Rain[GameData.Target._name].Rmin > Number(this.text)) {
GameData.Rain[GameData.Target._name].Rmin = Number(this.text);
this._parent.tminI.text = this.text;
}
fixRain(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isRXMin") {
T.onKillFocus = function () {
GameData.Rain[GameData.Target._name].Xmin = Number(this.text);
if (Number(this.text) > GameData.Rain[GameData.Target._name].Xmax) {
GameData.Rain[GameData.Target._name].Xmax = Number(this.text);
this._parent.xmaxI.text = this.text;
}
fixRain(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isRXMax") {
T.onKillFocus = function () {
GameData.Rain[GameData.Target._name].Xmax = Number(this.text);
if (GameData.Rain[GameData.Target._name].Xmin > Number(this.text)) {
GameData.Rain[GameData.Target._name].Xmin = Number(this.text);
this._parent.xminI.text = this.text;
}
fixRain(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isRYMin") {
T.onKillFocus = function () {
GameData.Rain[GameData.Target._name].Ymin = Number(this.text);
if (Number(this.text) > GameData.Rain[GameData.Target._name].Ymax) {
GameData.Rain[GameData.Target._name].Ymax = Number(this.text);
this._parent.ymaxI.text = this.text;
}
fixRain(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isRYMax") {
T.onKillFocus = function () {
GameData.Rain[GameData.Target._name].Ymax = Number(this.text);
if (GameData.Rain[GameData.Target._name].Ymin > Number(this.text)) {
GameData.Rain[GameData.Target._name].Ymin = Number(this.text);
this._parent.yminI.text = this.text;
}
fixRain(GameData.Target);
GameData.KeyLock = false;
};
} else if (H == "isRGB") {
T.onKillFocus = function () {
colorHex = "0x" + this.text;
Interface.ColorizeMenu.palette.Rs._x = (toRGB(colorHex.charAt(2)) * 16) + toRGB(colorHex.charAt(3));
Interface.ColorizeMenu.palette.Gs._x = (toRGB(colorHex.charAt(4)) * 16) + toRGB(colorHex.charAt(5));
Interface.ColorizeMenu.palette.Bs._x = (toRGB(colorHex.charAt(6)) * 16) + toRGB(colorHex.charAt(7));
SwapPalette(Interface.ColorizeMenu.palette);
GameData.KeyLock = false;
};
} else {
T.onKillFocus = function () {
GameData.KeyLock = false;
};
}
}
function setColorSliderRelease(MC) {
MC.onRelease = function () {
CSRhandler(this);
};
MC.onReleaseOutside = function () {
CSRhandler(this);
};
}
function CSRhandler(MC) {
MC.stopDrag();
delete MC.onEnterFrame;
}
function SwapPalette(MC) {
var _local4 = Math.round(MC.Rs._x);
var _local5 = Math.round(MC.Gs._x);
var _local3 = Math.round(MC.Bs._x);
colorHex = getRGB(_local4, _local5, _local3);
ColorPalette(MC.Cp.BG, colorHex);
if (GameData.TargetType == "Character") {
GameData.Characters[GameData.Target._name].HairColor = colorHex;
MC._parent.rgbcI.text = GameData.Characters[GameData.Target._name].HairColor.substr(2, 6);
ColorPalette(GameData.Target.head.HairColor, colorHex);
ColorPalette(Interface.TargetFrame.preview.char.hair.HairColor, colorHex);
ColorPalette(GameData.Target.head2.HairColor, colorHex);
ColorPalette(Interface.TargetFrame.preview.char.head2.HairColor, colorHex);
} else if (GameData.TargetType == "SpeechBubble") {
GameData.SpeechBubbles[GameData.Target._name].FontColor = colorHex;
MC._parent.rgbcI.text = GameData.SpeechBubbles[GameData.Target._name].FontColor.substr(2, 6);
var _local2 = new TextFormat();
_local2.color = colorHex;
GameData.Target.D.setTextFormat(_local2);
GameData.Target.D.setNewTextFormat(_local2);
}
}
function ColorPalette(MC, Hexa) {
var _local1 = new Color(MC);
_local1.setRGB(Hexa);
MC.RGB = Hexa;
}
function OpsCheckHandler(cbID, Op) {
Interface.OpsMenu["ID" + cbID].onRelease = function () {
if (GameData[Op]) {
GameData[Op] = false;
this.gotoAndStop(1);
} else {
GameData[Op] = true;
this.gotoAndStop(2);
}
my_so.data[Op] = GameData[Op];
my_so.flush();
};
}
function pongStart() {
_root.createEmptyMovieClip("game", 200);
GameData.GameOn = true;
game.onEnterFrame = function () {
if (TopDimmer._alpha < 100) {
TopDimmer._alpha = TopDimmer._alpha + 10;
GameData.Target._rotation = GameData.Target._rotation + 30;
GameData.Target._xscale = GameData.Target._xscale * 0.9;
GameData.Target._yscale = GameData.Target._yscale * 0.9;
} else {
game.Paused = false;
game.Score = 0;
game.Graze = 0;
game.ShowScore = 0;
game.S = 0;
game.B = 0;
game.TimeBonus = 300;
game.TimeBonusC = 30;
game.Level = 1;
game.Type = "Pong";
GameData.Target._visible = false;
ClickBlocker._visible = true;
pongFixScale();
if (GameData.StageCache) {
_root.createEmptyMovieClip("stageShot", 55);
screenShot(stageShot);
stage._visible = false;
bg._visible = false;
Manipulator._visible = false;
}
game.attachMovie("BGBox", "TopBoundry", 1);
game.TopBoundry._height = 10;
game.TopBoundry._width = 510;
game.TopBoundry._x = 20;
game.TopBoundry._y = 30;
game.TopBoundry._alpha = GameData.Buttons.Opacity;
game.attachMovie("BGBox", "BottomBoundry", 2);
game.BottomBoundry._height = 10;
game.BottomBoundry._width = 510;
game.BottomBoundry._x = 20;
game.BottomBoundry._y = 360;
game.BottomBoundry._alpha = GameData.Buttons.Opacity;
game.attachMovie("ReimuBarrier", "bomb", 3);
game.bomb._xscale = 160;
game.bomb._yscale = 160;
game.bomb._y = 190;
game.bomb._visible = false;
game.createEmptyMovieClip("bonus", 5);
game.createEmptyMovieClip("shots", 99);
game.attachMovie("Char", "Player", 10);
game.Player.attachMovie("Focus", "hitbox", 10);
game.Player.hitbox._visible = false;
game.Player.Power = 0;
game.Player.attachMovie("ReimuBarrier", "block", 20);
game.Player.block._x = 50;
game.Player.block._y = -60;
game.Player.block._xscale = 110;
game.Player.block._yscale = 110;
game.Player.block._visible = false;
setCharLook(game.Player, GameData.Characters[GameData.Target._name]);
game.Player.eF = game.Player.eyes._currentframe;
game.Player.mF = game.Player.mouth._currentframe;
game.Player.mV = game.Player.mouth._visible;
game.Player._x = -50;
game.Player._y = 200;
game.Player._xscale = 30;
game.Player._yscale = 30;
game.Player.Lives = 3;
i = 0;
while (i < 4) {
game.attachMovie("Paddle", "Op" + i, i + 11);
game["Op" + i]._xscale = 30;
game["Op" + i]._yscale = 30;
game["Op" + i]._visible = false;
i++;
}
makePresetChar(game, "Yukari", "Yukari", 20);
game.Yukari.attachMovie("GapChar", "gap", 10);
game.Yukari.gap._xscale = -100;
game.Yukari.gap._x = 100;
game.Yukari.gap._y = -300;
game.Yukari.gap._rotation = 90;
game.Yukari.gap.char._xscale = -100;
game.Yukari.gap.char._x = 50;
game.Yukari.gap.char._y = -30;
game.Yukari.gap.char._rotation = 90;
game.Yukari.gap.truck._visible = false;
game.Yukari.gap._visible = false;
game.Yukari._x = 600;
game.Yukari._y = 200;
game.Yukari._xscale = -30;
game.Yukari._yscale = 30;
game.Yukari.Speed = 4;
game.Yukari.Life = 50;
game.Yukari.MaxLife = 50;
game.Yukari.GapC = 0;
game.Yukari.ShotDelay = 100;
game.Yukari.item._visible = false;
makePresetChar(game, "Ran", "Ran", 30);
game.Ran.attachMovie("Focus", "hitbox", 10);
game.Ran.hitbox._visible = false;
game.Ran._x = 610;
game.Ran._y = 295;
game.Ran._xscale = -30;
game.Ran._yscale = 30;
game.Ran.Speed = 10;
makePresetChar(game, "Chen", "Chen", 31);
game.Chen.attachMovie("Focus", "hitbox", 10);
game.Chen.hitbox._visible = false;
game.Chen._x = 610;
game.Chen._y = 295;
game.Chen._xscale = -30;
game.Chen._yscale = 30;
game.Chen.Speed = 7;
game.Chen._visible = false;
makePresetChar(game, "Yuyuko", "Yuyuko", 32);
game.Yuyuko._x = 610;
game.Yuyuko._y = 295;
game.Yuyuko._xscale = -30;
game.Yuyuko._yscale = 30;
game.Yuyuko.Speed = 4;
game.Yuyuko._visible = false;
game.Yuyuko.wings._visible = false;
game.Yuyuko.item._visible = false;
makePresetChar(game, "Youmu", "Youmu", 33);
game.Youmu.attachMovie("Focus", "hitbox", 10);
game.Youmu.hitbox._visible = false;
game.Youmu._x = 610;
game.Youmu._y = 295;
game.Youmu._xscale = -30;
game.Youmu._yscale = 30;
game.Youmu.Speed = 4;
game.Youmu._visible = false;
game.attachMovie("SpeechBubble", "Talky", 100);
game.Talky.Bubble.gotoAndStop(1);
game.Talky._visible = false;
game.attachMovie("WhiteText", "note", 101);
setFontSize(game.note.D, 12);
game.note.D.text = "Press space to continue.\nPress ctrl to skip.";
game.note.D._width = 200;
game.note.D._height = 60;
game.note._x = 40;
game.note._y = 330;
game.note._visible = false;
game.createEmptyMovieClip("Interface", 102);
game.Interface.attachMovie("WhiteText", "Stat1", 1);
setFontSize(game.Interface.Stat1.D, 10);
game.Interface.Stat1.D.text = "Life:\nPower:";
game.Interface.Stat1.D._height = 60;
game.Interface.Stat1.D._width = 200;
game.Interface.Stat1._x = 11;
game.Interface.Stat1._y = 375;
l = 0;
while (l < 3) {
game.Interface.attachMovie("LifeStar", "Life" + l, 2 + l);
game.Interface["Life" + l]._xscale = 15;
game.Interface["Life" + l]._yscale = 15;
game.Interface["Life" + l]._x = 48 + (l * 15);
game.Interface["Life" + l]._y = 379;
l++;
}
game.Interface.attachMovie("WhiteText", "Stat2", 5);
setFontSize(game.Interface.Stat2.D, 10);
game.Interface.Stat2.D.text = "Graze:\nTimeBonus:";
game.Interface.Stat2.D._height = 60;
game.Interface.Stat2.D._width = 200;
game.Interface.Stat2._x = 130;
game.Interface.Stat2._y = 375;
game.Interface.attachMovie("WhiteText", "Stat3", 6);
setFontSize(game.Interface.Stat3.D, 10);
game.Interface.Stat3.D.text = "Score:\nHi-Score:";
game.Interface.Stat3.D._height = 60;
game.Interface.Stat3.D._width = 200;
game.Interface.Stat3._x = 235;
game.Interface.Stat3._y = 375;
game.Interface.attachMovie("WhiteText", "Power", 7);
setFontSize(game.Interface.Power.D, 10);
game.Interface.Power.D.text = "0.00/5.00";
game.Interface.Power.D._height = 60;
game.Interface.Power.D._width = 200;
game.Interface.Power._x = 53;
game.Interface.Power._y = 387;
game.Interface.attachMovie("WhiteText", "YukariTag", 8);
setFontSize(game.Interface.YukariTag.D, 10);
game.Interface.YukariTag.D.text = "Yukari:";
game.Interface.YukariTag.D._height = 60;
game.Interface.YukariTag.D._width = 200;
game.Interface.YukariTag._x = 13;
game.Interface.YukariTag._y = 10;
game.Interface.attachMovie("LifeBar", "YukariLife", 9);
game.Interface.YukariLife._width = 0;
game.Interface.YukariLife._x = 55;
game.Interface.YukariLife._y = 8;
game.Interface.attachMovie("WhiteText", "Score", 10);
setFontSize(game.Interface.Score.D, 10);
game.Interface.Score.D.text = "0";
game.Interface.Score.D._height = 60;
game.Interface.Score.D._width = 200;
game.Interface.Score._x = 280;
game.Interface.Score._y = 374;
game.Interface.attachMovie("WhiteText", "HiScore", 11);
setFontSize(game.Interface.HiScore.D, 10);
game.Interface.HiScore.D.text = GameData.Pong.HiScore;
game.Interface.HiScore.D._height = 60;
game.Interface.HiScore.D._width = 200;
game.Interface.HiScore._x = 289;
game.Interface.HiScore._y = 387;
game.Interface.attachMovie("WhiteText", "TimeBonus", 12);
setFontSize(game.Interface.TimeBonus.D, 10);
game.Interface.TimeBonus.D.text = game.TimeBonus;
game.Interface.TimeBonus.D._height = 60;
game.Interface.TimeBonus.D._width = 200;
game.Interface.TimeBonus._x = 194;
game.Interface.TimeBonus._y = 387;
game.Interface.attachMovie("WhiteText", "Graze", 13);
setFontSize(game.Interface.Graze.D, 10);
game.Interface.Graze.D.text = 0;
game.Interface.Graze.D._height = 60;
game.Interface.Graze.D._width = 200;
game.Interface.Graze._x = 168;
game.Interface.Graze._y = 375;
game.Interface.attachMovie("WhiteText", "Pause", 14);
setFontSize(game.Interface.Pause.D, 10);
game.Interface.Pause.D.text = "Paused";
game.Interface.Pause.D._height = 60;
game.Interface.Pause.D._width = 200;
game.Interface.Pause._x = 249;
game.Interface.Pause._y = 45;
game.Interface.Pause._visible = false;
game.Interface.attachMovie("WhiteText", "Info", 15);
setFontSize(game.Interface.Info.D, 10);
game.Interface.Info.D.text = "Up/Down Arrows to move.\nShift or Z to focus.\nX to bomb.\nP to pause.\nDon't let anyone past you!";
game.Interface.Info.D._height = 60;
game.Interface.Info.D._width = 200;
game.Interface.Info._x = 48;
game.Interface.Info._y = 260;
game.Interface.Info._visible = false;
game.createEmptyMovieClip("Exit", 200);
game.Exit.attachMovie("Gap", "BG", 1);
game.Exit.attachMovie("WhiteText", "D", 2);
game.Exit.D.D.text = "Exit";
game.Exit.BG._xscale = 25;
game.Exit.BG._yscale = 25;
game.Exit.BG._rotation = 90;
game.Exit.BG._x = 75;
game.Exit._x = 460;
game.Exit._y = 370;
game.Exit.onRollOver = function () {
this.BG._x = 85;
this.BG._y = -5;
this.BG._xscale = 35;
this.BG._yscale = 35;
};
game.Exit.onRollOut = function () {
this.BG._x = 75;
this.BG._y = 0;
this.BG._xscale = 25;
this.BG._yscale = 25;
};
game.Exit.onRelease = function () {
this._visible = false;
game.Player._xscale = game.Player._xscale * -1;
game.onEnterFrame = function () {
game.Player._x = game.Player._x - 5;
if (TopDimmer._alpha < 100) {
TopDimmer._alpha = TopDimmer._alpha + 10;
} else {
pongExit();
}
};
};
this.onEnterFrame = function () {
game.onEnterFrame = function () {
if (TopDimmer._alpha > 0) {
TopDimmer._alpha = TopDimmer._alpha - 10;
} else {
pongStage(0);
}
};
};
}
};
}
function pongSprayShot(A, S, N) {
var _local1 = S / N;
var _local5 = A - (S / 2);
s = 0;
while (s < N) {
pongSpawnShot(A + (s * _local1));
s++;
}
}
function pongSpawnShot(A) {
A = A - 90;
game.shots.attachMovie("YukariShot", "Shot" + game.B, game.B);
game.shots["Shot" + game.B]._rotation = A;
game.shots["Shot" + game.B]._xscale = 40;
game.shots["Shot" + game.B]._yscale = 40;
game.shots["Shot" + game.B]._x = game.Yukari._x;
game.shots["Shot" + game.B]._y = game.Yukari._y;
var _local1 = (A * Math.PI) / 180;
var _local4 = 10 * Math.cos(_local1);
var _local2 = 10 * Math.sin(_local1);
game.shots["Shot" + game.B].XMov = _local4;
game.shots["Shot" + game.B].YMov = _local2;
game.B++;
}
function setFontSize(MC, N) {
var _local1 = new TextFormat();
_local1.size = N;
MC.setNewTextFormat(_local1);
}
function pongFixScale() {
var _local2 = (Stage.width * 100) / 550;
var _local3 = (Stage.height * 100) / 400;
if (_local2 < _local3) {
var _local1 = _local2;
} else {
var _local1 = _local3;
}
game._xscale = _local1;
game._yscale = _local1;
game._x = (Stage.width - (550 * (_local1 / 100))) / 2;
}
function facialExpression(MC, E, M) {
MC.eyes.gotoAndStop(E);
if (M == 0) {
MC.mouth._visible = false;
} else {
MC.mouth.gotoAndStop(M);
MC.mouth._visible = true;
}
}
function pongStage() {
game.Talky._visible = false;
if (game.S == 0) {
game.onEnterFrame = function () {
game.Player._x = game.Player._x + 2;
game.Yukari._x = game.Yukari._x - 2;
game.Ran._x = game.Ran._x - 2;
if (game.Player._x > 50) {
pongStage();
}
};
} else if (game.S == 1) {
facialExpression(game.Yukari, 5, 1);
popTalk(game.Talky, "So, you come into my domain to disturb my sleep! Now we must fight, one on one!", 352, 97, 100, 100, 0, -129.85, 0, 0, 5, 6, -96, 46, 0);
game.note._visible = true;
game.Interface.Info._visible = true;
game.onEnterFrame = function () {
pongController();
pongNext();
};
} else if (game.S == 2) {
facialExpression(game.Ran, 2, 2);
popTalk(game.Talky, "I fail to see how\nthis is one on one...", 402, 392, 100, 100, 0, -130, -91.35, 0, 3, -72, 68, 30, -178);
} else if (game.S == 3) {
facialExpression(game.Ran, 1, 0);
facialExpression(game.Yukari, 5, 2);
popTalk(game.Talky, "Ran...", 417, 88, 100, 100, 0, -129.85, 0, 0, 1, 5, -37, 25, 0);
} else if (game.S == 4) {
facialExpression(game.Yukari, 7, 9);
popTalk(game.Talky, "SHUT UP!", 398, 68, 165, 165, 0, -129.85, 0, 0, 1, 5, -37, 25, 0);
} else if (game.S == 5) {
game.note.removeMovieClip();
game.Interface.Info.removeMovieClip();
facialExpression(game.Yukari, 1, 1);
game.onEnterFrame = function () {
pongController();
if (this.Yukari._y < this.Ran._y) {
this.Yukari._y = this.Yukari._y + 5;
} else {
pongResetBall(this.Ran);
facialExpression(this.Ran, 29, 9);
this.onEnterFrame = function () {
pongMainLoop();
};
}
};
} else if (game.S == 6) {
facialExpression(game.Ran, 1, 0);
facialExpression(game.Yukari, 5, 2);
popTalk(game.Talky, "What is this?! Ran!\nWhy are we losing?!", 370, 230, 148, 148, 0, -129.85, -91.35, 0, 1.6, -78.4, -65, 31, 0);
game.onEnterFrame = function () {
pongCutscene();
pongNext();
};
} else if (game.S == 7) {
facialExpression(game.Ran, 1, 2);
facialExpression(game.Yukari, 5, 0);
popTalk(game.Talky, "Maybe if you did more\nthan just throw me\naround...", 343, 267, 100, 100, 0, -129.85, -91.35, 0, 1, -83, -76, 53, -14.6354634269027);
} else if (game.S == 8) {
facialExpression(game.Yukari, 5, 9);
facialExpression(game.Ran, 1, 0);
popTalk(game.Talky, "Shut up! I'm trying\nto think.", 363, 217, 109, 109, 0, -129.85, -91.35, 0, 5, -85, -59, 30, 0);
} else if (game.S == 9) {
facialExpression(game.Yukari, 5, 0);
facialExpression(game.Ran, 1, 2);
popTalk(game.Talky, "Okay... It's\njust...", 398, 297, 100, 100, 0, -129.85, -91.35, 0, 4, -82, -46, 32, 0);
} else if (game.S == 10) {
facialExpression(game.Yukari, 5, 14);
facialExpression(game.Ran, 7, 18);
popTalk(game.Talky, "Ran, SHUT UP!", 343, 254, 166, 166, 0, -129.85, -91.35, 0, 6, -85, -51, 20, 0);
} else if (game.S == 11) {
facialExpression(game.Yukari, 5, 0);
facialExpression(game.Ran, 22, 2);
popTalk(game.Talky, "But... you asked\nme a question.", 405, 399, 100, 100, 0, -129.85, -91.35, 0, 3, -71, 61, 27, 179.462322208026);
} else if (game.S == 12) {
facialExpression(game.Yukari, 12, 2);
facialExpression(game.Ran, 22, 0);
popTalk(game.Talky, "It was rhetorical!", 383, 209, 100, 100, 0, -129.85, -91.35, 0, 6, -84, -61, 27, 0.366322603450499);
} else if (game.S == 13) {
facialExpression(game.Yukari, 12, 0);
facialExpression(game.Ran, 12, 2);
popTalk(game.Talky, "Alright already...\nsorry...", 395, 310, 100, 100, 0, -129.85, -91.35, 0, 6, -84, -59, 29, 0.366322603450499);
} else if (game.S == 14) {
facialExpression(game.Yukari, 1, 1);
facialExpression(game.Ran, 1, 0);
popTalk(game.Talky, "Ran, I just came\nup with a brilliant\nidea!", 398, 197, 100, 100, 0, -129.85, -91.35, 0, 9, -77, -69, 41, 0.366322603450499);
} else if (game.S == 15) {
facialExpression(game.Ran, 1, 2);
popTalk(game.Talky, "...What?", 418, 309, 100, 100, 0, -129.85, -91.35, 0, 6, -84, -32, 21, 0.366322603450499);
} else if (game.S == 16) {
facialExpression(game.Ran, 1, 0);
game.onEnterFrame = function () {
pongController();
if (this.Yukari._y < this.Ran._y) {
this.Yukari._y = this.Yukari._y + 5;
} else {
pongStage();
}
};
} else if (game.S == 17) {
facialExpression(game.Yukari, 7, 8);
facialExpression(game.Ran, 29, 9);
popTalk(game.Talky, "Missiles away!", 375, 329, 155, 155, 0, -129.85, -91.35, 0, 6, -84, -49, 14, 0.366322603450499);
game.onEnterFrame = function () {
pongController();
pongNext();
};
} else if (game.S == 18) {
pongNextLevel();
game.onEnterFrame = function () {
pongMainLoop();
};
} else if (game.S == 19) {
game.Yukari.GapC = 0;
game.Yukari.gap._visible = false;
facialExpression(game.Ran, 1, 0);
facialExpression(game.Yukari, 5, 1);
popTalk(game.Talky, "Looks like it's time\nfor me to use my secret\nweapon!", 370, 197, 100, 100, 0, -129.85, -91.35, 0, 8, -75, -79, 39, 0);
game.onEnterFrame = function () {
pongCutscene();
pongNext();
};
} else if (game.S == 20) {
facialExpression(game.Ran, 1, 2);
popTalk(game.Talky, "You have a secret\nweapon?", 383, 300, 100, 100, 0, -129.85, -91.35, 0, 8, -82, -61, 24, 0);
} else if (game.S == 21) {
facialExpression(game.Yukari, 2, 2);
facialExpression(game.Ran, 1, 0);
popTalk(game.Talky, "Of course! You\nshould know what\nit is!", 390, 189, 100, 100, 0, -129.85, -91.35, 0, 6, -82, -63, 36, 0);
} else if (game.S == 22) {
facialExpression(game.Yukari, 1, 1);
game.onEnterFrame = function () {
pongController();
if (this.Yukari._y < this.Ran._y) {
this.Yukari._y = this.Yukari._y + 5;
} else {
pongStage();
}
};
} else if (game.S == 23) {
facialExpression(game.Ran, 41, 2);
popTalk(game.Talky, "Umm...", 429, 396, 100, 100, 0, -129.85, -91.35, 0, 1, -79, 37, 21, -170.346175941947);
game.onEnterFrame = function () {
pongController();
pongNext();
};
} else if (game.S == 24) {
pongNextLevel();
pongYukariGap(game.Chen);
game.onEnterFrame = function () {
pongMainLoop();
};
} else if (game.S == 25) {
game.Yukari.GapC = 0;
game.Yukari.gap._visible = false;
facialExpression(game.Yukari, 54, 14);
facialExpression(game.Ran, 1, 0);
popTalk(game.Talky, "What?! We lost again!\nRan! This is your fault\nsomehow!", 364, 209, 115, 115, 0, -129.85, -91.35, 0, 6, -80, -73, 30, 0);
game.onEnterFrame = function () {
pongCutscene();
pongNext();
};
} else if (game.S == 26) {
facialExpression(game.Yukari, 54, 0);
facialExpression(game.Ran, 12, 2);
popTalk(game.Talky, "Maybe you would do\nbetter if you paid\nattention to chen.", 374, 289, 97, 97, 0, -129.85, -91.35, 0, 7.75, -73.9, -78, 35, 0);
} else if (game.S == 27) {
facialExpression(game.Yukari, 5, 2);
facialExpression(game.Ran, 1, 0);
popTalk(game.Talky, "I can't concentrate\non more than one thing\nran! I'm only human!", 373, 193, 97, 97, 0, -129.85, -91.35, 0, 7.75, -73.9, -78, 35, 0);
} else if (game.S == 28) {
facialExpression(game.Yukari, 5, 0);
facialExpression(game.Ran, 12, 2);
popTalk(game.Talky, "Actually, you're not\nhuman...", 373, 309, 97, 97, 0, -129.85, -91.35, 0, 7.75, -81.1, -75, 28, 0);
} else if (game.S == 29) {
facialExpression(game.Yukari, 1, 1);
facialExpression(game.Ran, 1, 0);
popTalk(game.Talky, "I know! I've thought\nup of another brilliant\nplan!", 402, 195, 97, 97, 0, -129.85, -91.35, 0, 7.75, -81.1, -80, 35, 0);
} else if (game.S == 30) {
facialExpression(game.Yukari, 1, 0);
pongYukariGap(game.Yuyuko);
game.onEnterFrame = function () {
if (game.Yukari.GapC > 0) {
game.Yukari.gap.char._x = game.Yukari.gap.char._x - 20;
game.Yukari.GapC--;
if (game.Yukari.GapC == 0) {
game.Yukari.gap._visible = false;
game.Yukari.Target._x = game.Yukari._x - 50;
game.Yukari.Target._y = game.Yukari._y;
game.Yukari.Target._visible = true;
facialExpression(game.Yuyuko, 33, 14);
popTalk(game.Talky, "Where am I?!", 324, 248, 169, 169, 0, -129.85, -91.35, 0, 4.65, -88.3, -52, 20, 0);
game.onEnterFrame = function () {
pongCutscene();
pongNext();
};
}
}
};
} else if (game.S == 31) {
game.Yuyuko._xscale = 30;
facialExpression(game.Yukari, 1, 1);
facialExpression(game.Yuyuko, 1, 0);
popTalk(game.Talky, "Yuyuko! Help me\nthrow chen at this\npest!", 433, 167, 100, 100, 0, -129.85, -91.35, 0, 8, -74, -60, 37, 0);
} else if (game.S == 32) {
facialExpression(game.Yukari, 1, 0);
facialExpression(game.Yuyuko, 1, 1);
popTalk(game.Talky, "K.", 359, 361, 314, 314, 0, -129.85, -91.35, 0, 3, -84, -18, 10, 0);
} else if (game.S == 33) {
facialExpression(game.Yuyuko, 1, 0);
facialExpression(game.Ran, 2, 2);
popTalk(game.Talky, "I thought you wanted\na one on one fight.", 393, 295, 100, 100, 0, -129.85, -91.35, 0, 8, -84, -80, 35, 0);
} else if (game.S == 34) {
facialExpression(game.Ran, 2, 0);
facialExpression(game.Yukari, 2, 2);
popTalk(game.Talky, "Ran...", 447, 102, 100, 100, 0, -129.85, 0, 0, 1, 5, -37, 25, 0);
} else if (game.S == 35) {
facialExpression(game.Yukari, 2, 0);
game.onEnterFrame = function () {
pongController();
if (this.Yukari._y < (this.Ran._y - 50)) {
this.Yukari._y = this.Yukari._y + 5;
} else {
pongStage();
}
};
} else if (game.S == 36) {
facialExpression(game.Ran, 7, 9);
popTalk(game.Talky, "I know! I know!", 371, 322, 127, 127, 0, -129.85, -91.35, 0, 6, -89, -65, 25, 0);
game.onEnterFrame = function () {
pongController();
pongNext();
};
} else if (game.S == 37) {
pongNextLevel();
game.Yuyuko._xscale = -30;
pongResetBall(game.Ran);
pongResetBall(game.Chen);
game.onEnterFrame = function () {
pongMainLoop();
};
} else if (game.S == 38) {
game.Yukari.GapC = 0;
game.Yukari.gap._visible = false;
facialExpression(game.Ran, 2, 2);
popTalk(game.Talky, "I think it's time to\ngive up...", 390, 302, 100, 100, 0, -129.85, -91.35, 0, 8, -83, -67, 38, 0);
game.onEnterFrame = function () {
pongCutscene();
pongNext();
};
} else if (game.S == 39) {
facialExpression(game.Ran, 2, 0);
facialExpression(game.Yuyuko, 1, 1);
popTalk(game.Talky, "I'm hungry.", 362, 204, 100, 100, 0, -129.85, -91.35, 0, 5, -83, -42, 19, 0);
} else if (game.S == 40) {
facialExpression(game.Yuyuko, 1, 0);
facialExpression(game.Chen, 7, 13);
popTalk(game.Talky, "Nya.", 432, 113, 100, 100, 0, -129.85, -91.35, 0, 5, -83, -42, 19, 0);
playSound("Meow");
} else if (game.S == 41) {
game.Yuyuko._xscale = 30;
facialExpression(game.Chen, 7, 30);
facialExpression(game.Yukari, 5, 9);
popTalk(game.Talky, "Be quiet all of you!\nThere has to be a way\nto win!", 409, 168, 100, 100, 0, -129.85, -91.35, 0, 7, -76, -81, 34, 0);
} else if (game.S == 42) {
facialExpression(game.Yukari, 1, 0);
facialExpression(game.Yuyuko, 1, 1);
popTalk(game.Talky, "Maybe Youmu\ncould help.", 353, 195, 100, 100, 0, -129.85, -91.35, 0, 7, -79, -58, 24, 0);
} else if (game.S == 43) {
facialExpression(game.Yukari, 1, 1);
facialExpression(game.Yuyuko, 1, 0);
popTalk(game.Talky, "Good idea! Let\nme get her.", 418, 196, 100, 100, 0, -129.85, -91.35, 0, 7, -79, -58, 24, 0);
} else if (game.S == 44) {
facialExpression(game.Yukari, 1, 0);
pongYukariGap(game.Youmu);
game.onEnterFrame = function () {
if (game.Yukari.GapC > 0) {
game.Yukari.gap.char._x = game.Yukari.gap.char._x - 20;
game.Yukari.GapC--;
if (game.Yukari.GapC == 0) {
game.Yukari.gap._visible = false;
game.Yukari.Target._x = game.Yukari._x - 50;
game.Yukari.Target._y = game.Yukari._y;
game.Yukari.Target._visible = true;
facialExpression(game.Youmu, 33, 28);
popTalk(game.Talky, "Huh? Where\nis this?", 350, 290, 100, 100, 0, -129.85, -91.35, 0, 7, -79, -58, 24, 0);
game.onEnterFrame = function () {
pongCutscene();
pongNext();
};
}
}
};
} else if (game.S == 45) {
facialExpression(game.Yuyuko, 1, 1);
facialExpression(game.Youmu, 1, 0);
popTalk(game.Talky, "We need your\nhelp taking down\nthis pest.", 357, 164, 100, 100, 0, -129.85, -91.35, 0, 7, -74, -64, 34, 0);
} else if (game.S == 46) {
facialExpression(game.Yuyuko, 1, 0);
facialExpression(game.Youmu, 1, 2);
popTalk(game.Talky, "Oh, ok.", 374, 289, 100, 100, 0, -129.85, -91.35, 0, 2, -84, -31, 25, 0);
} else if (game.S == 47) {
pongNextLevel();
facialExpression(game.Youmu, 5, 0);
game.Yuyuko._xscale = -30;
pongResetBall(game.Ran);
pongResetBall(game.Chen);
pongResetBall(game.Youmu);
game.onEnterFrame = function () {
pongMainLoop();
};
} else if (game.S == 48) {
game.Yukari.GapC = 0;
game.Yukari.gap._visible = false;
facialExpression(game.Youmu, 1, 0);
facialExpression(game.Yukari, 7, 14);
popTalk(game.Talky, "That's it! Now I'm\nangry!", 420, 178, 100, 100, 0, -129.85, -91.35, 0, 8, -86, -58, 34, 0);
game.onEnterFrame = function () {
pongCutscene();
pongNext();
};
} else if (game.S == 49) {
facialExpression(game.Yukari, 7, 0);
facialExpression(game.Ran, 8, 28);
popTalk(game.Talky, "Uh oh, looks like\nshe's finally getting\nserious now.", 425, 255, 100, 100, 0, -129.85, -91.35, 0, 6, -72, -69, 43, 0);
} else if (game.S == 50) {
pongNextLevel();
facialExpression(game.Yukari, 5, 0);
facialExpression(game.Ran, 1, 0);
pongResetBall(game.Ran);
pongResetBall(game.Chen);
pongResetBall(game.Youmu);
game.onEnterFrame = function () {
pongMainLoop();
};
} else if (game.S == 51) {
game.Yukari.GapC = 0;
game.Yukari.gap._visible = false;
facialExpression(game.Yukari, 7, 14);
popTalk(game.Talky, "I've had enough\nof this!!", 394, 227, 188, 188, 0, -129.85, -91.35, 0, 3.8, -81.4, -53, 24, -1.36658017263622);
game.Wait = 50;
game.onEnterFrame = function () {
pongCutscene();
if (game.Wait > 0) {
game.Wait--;
} else {
game.attachMovie("GapChar", "GapTruck", 999);
game.GapTruck.char._visible = false;
game.GapTruck.truck._xscale = -100;
game.GapTruck.truck._x = 850;
game.GapTruck._x = 500;
game.GapTruck._y = 230;
game.GapTruck._xscale = 0;
game.GapTruck._yscale = 0;
game.GapTruck.S = false;
game.onEnterFrame = function () {
if (game.GapTruck._xscale < 100) {
game.GapTruck._xscale = game.GapTruck._xscale + 10;
game.GapTruck._yscale = game.GapTruck._yscale + 10;
} else {
if (!game.GapTruck.S) {
playSound("Truck");
game.GapTruck.S = true;
}
game.GapTruck.truck._x = game.GapTruck.truck._x - 60;
if ((game.GapTruck.truck._x + game.GapTruck._x) < (game.Player._x + 600)) {
game.Player.eyes.gotoAndStop(9);
game.Player.mouth.gotoAndStop(14);
game.Player.mouth._visible = true;
game.onEnterFrame = function () {
if (game.Player._xscale > 0) {
if (game.Player._xscale == 30) {
playSound("Boxing");
}
game.Player._xscale--;
game.Player._yscale--;
game.Player._rotation = game.Player._rotation - 15;
game.Player._x = game.Player._x - 60;
game.Player._y = game.Player._y - 60;
game.GapTruck.truck._x = game.GapTruck.truck._x - 60;
} else {
game.GapTruck._visible = false;
game.Interface._visible = false;
game.TopBoundry._visible = false;
game.BottomBoundry._visible = false;
game.Yukari.gap._visible = false;
game.Yukari.wings._visible = false;
game.Yukari._xscale = -150;
game.Yukari._yscale = 150;
game.Yukari._x = 450;
game.Yukari._y = 450;
game.Yukari.eyes.gotoAndStop(12);
game.Yukari.mouth.gotoAndStop(27);
game.Yukari.mouth._visible = true;
game.Yuyuko._visible = false;
game.Ran._visible = false;
game.Chen._visible = false;
game.Youmu._visible = false;
game.shots._visible = false;
game.bonus._visible = false;
game.attachMovie("WhiteText", "GameOver", 43);
setFontSize(game.GameOver.D, 50);
game.GameOver.D.text = "You win!";
game.GameOver.D._height = 60;
game.GameOver.D._width = 500;
game.GameOver._x = 100;
game.GameOver._y = 30;
game.attachMovie("WhiteText", "GameOverStats", 44);
setFontSize(game.GameOverStats.D, 20);
game.GameOverStats.D.text = "Your Score:\nHi-Score:";
game.GameOverStats.D._height = 60;
game.GameOverStats.D._width = 500;
game.GameOverStats._x = 17;
game.GameOverStats._y = 253;
game.Exit._x = 50;
game.Exit._y = 330;
game.Exit._xscale = 200;
game.Exit._yscale = 200;
game.attachMovie("WhiteText", "YourScore", 45);
setFontSize(game.YourScore.D, 20);
game.YourScore.D.text = game.Score;
game.YourScore.D._height = 60;
game.YourScore.D._width = 500;
game.YourScore._x = 160;
game.YourScore._y = 251;
game.attachMovie("WhiteText", "HiScore", 46);
setFontSize(game.HiScore.D, 20);
game.HiScore.D.text = GameData.Pong.HiScore;
my_so.data.PongHiScore = GameData.Pong.HiScore;
my_so.flush();
game.HiScore.D._height = 60;
game.HiScore.D._width = 500;
game.HiScore._x = 120;
game.HiScore._y = 275;
game.attachMovie("WhiteText", "GameOver2", 47);
setFontSize(game.GameOver2.D, 20);
game.GameOver2.D.text = "I guess...";
game.GameOver2.D._height = 60;
game.GameOver2.D._width = 500;
game.GameOver2._x = 22;
game.GameOver2._y = 88;
game.attachMovie("WhiteText", "GameOver3", 48);
setFontSize(game.GameOver3.D, 14);
game.GameOver3.D.text = "Yukari cheated...";
game.GameOver3.D._height = 60;
game.GameOver3.D._width = 500;
game.GameOver3._x = 157;
game.GameOver3._y = 130;
popTalk(game.Talky, "Did not", 263, 298, 128, 128, 0, -129.85, -91.35, 0, 6, -85, -30, 19, 0);
delete game.onEnterFrame;
}
};
}
}
};
}
};
}
game.S++;
}
function pongNextLevel() {
game.Level++;
game.Yukari.MaxLife = game.Level * 50;
game.Yukari.Life = game.Yukari.MaxLife;
game.TimeBonus = game.Level * 300;
game.Interface.TimeBonus.D.text = game.TimeBonus;
pongResetBall(this.Ran);
}
function pongCutscene() {
pongYukariLifeFix();
for (b in game.bonus) {
if (getDist(game.bonus[b], game.Player._x, game.Player._y) < 30) {
playSound("ItemGet");
if (game.bonus[b].Type == "P1") {
game.bonus[b].removeMovieClip();
pongGetPower(5);
} else if (game.bonus[b].Type == "P2") {
game.bonus[b].removeMovieClip();
pongGetPower(100);
} else {
game.bonus[b].removeMovieClip();
pongAddScore(10);
}
} else {
game.bonus[b]._x = game.bonus[b]._x + ((game.Player._x - game.bonus[b]._x) / 10);
game.bonus[b]._y = game.bonus[b]._y + ((game.Player._y - game.bonus[b]._y) / 10);
}
}
game.Yukari._y = game.Yukari._y + ((200 - game.Yukari._y) / 5);
game.Ran._y = game.Ran._y + ((300 - game.Ran._y) / 5);
game.Ran._x = game.Ran._x + ((500 - game.Ran._x) / 5);
game.Ran._rotation = game.Ran._rotation + ((-game.Ran._rotation) / 5);
if (game.Chen._visible) {
game.Chen._y = game.Chen._y + ((100 - game.Chen._y) / 5);
game.Chen._x = game.Chen._x + ((500 - game.Chen._x) / 5);
game.Chen._rotation = game.Chen._rotation + ((-game.Chen._rotation) / 5);
}
if (game.Yuyuko._visible) {
game.Yuyuko._y = game.Yuyuko._y + ((200 - game.Yuyuko._y) / 5);
game.Yuyuko._x = game.Yuyuko._x + ((430 - game.Yuyuko._x) / 5);
}
if (game.Youmu._visible) {
game.Youmu._y = game.Youmu._y + ((290 - game.Youmu._y) / 5);
game.Youmu._x = game.Youmu._x + ((435 - game.Youmu._x) / 5);
game.Youmu._rotation = game.Youmu._rotation + ((-game.Youmu._rotation) / 5);
}
pongController();
}
function pongYukariGap(T) {
mimeLook(T, game.Yukari.gap.char);
game.Yukari.gap.char._x = 50;
game.Yukari.gap._visible = true;
T._visible = false;
game.Yukari.Target = T;
game.Yukari.GapC = 20;
}
function popTalk(MC, T, X, Y, Xs, Ys, R, tX, tY, tR, bX, bY, bXs, bYs, bR) {
MC.D.text = T;
MC.D._x = tX;
MC.D._y = tY;
MC.D._rotation = tR;
MC.Bubble._x = bX;
MC.Bubble._y = bY;
MC.Bubble._xscale = bXs;
MC.Bubble._yscale = bYs;
MC.Bubble._rotation = bR;
MC._x = X;
MC._y = Y;
MC._xscale = Xs;
MC._yscale = Ys;
MC._rotation = R;
MC._visible = true;
playSound("Pop");
}
function pongController() {
if (Key.isDown(16) || (Key.isDown(90))) {
game.Player.hitbox._visible = true;
if ((game.Player.block._alpha < 20) || (!game.Player.block._visible)) {
game.Player.block._visible = true;
game.Player.block._alpha = 20;
}
game.Ran.hitbox._visible = true;
game.Chen.hitbox._visible = true;
game.Youmu.hitbox._visible = true;
if (Key.isDown(38)) {
pongMovePlayer(-4);
} else if (Key.isDown(40)) {
pongMovePlayer(4);
}
} else {
game.Player.hitbox._visible = false;
game.Ran.hitbox._visible = false;
game.Chen.hitbox._visible = false;
game.Youmu.hitbox._visible = false;
if (Key.isDown(38)) {
pongMovePlayer(-10);
} else if (Key.isDown(40)) {
pongMovePlayer(10);
}
}
i = 0;
while (i < 4) {
if (game["Op" + i]._visible) {
if (Key.isDown(16) || (Key.isDown(90))) {
game["Op" + i]._x = game["Op" + i]._x + (((game.Player._x + game["Op" + i].fXMod) - game["Op" + i]._x) / 3);
game["Op" + i]._y = game["Op" + i]._y + (((game.Player._y + game["Op" + i].fYMod) - game["Op" + i]._y) / 3);
} else {
game["Op" + i]._x = game["Op" + i]._x + (((game.Player._x + game["Op" + i].XMod) - game["Op" + i]._x) / 5);
game["Op" + i]._y = game["Op" + i]._y + (((game.Player._y + game["Op" + i].YMod) - game["Op" + i]._y) / 5);
}
}
i++;
}
if (game.Player.block._visible) {
if (((Key.isDown(16) || (Key.isDown(90))) && (game.Player.block._alpha > 20)) || (!(Key.isDown(16) || (Key.isDown(90))))) {
game.Player.block._alpha = game.Player.block._alpha - 5;
if (game.Player.block._alpha <= 0) {
game.Player.block._visible = false;
}
}
}
}
function pongMovePlayer(M) {
if ((game.Player._y + M) > GameData.Pong.Bottom) {
game.Player._y = GameData.Pong.Bottom;
} else if ((game.Player._y + M) < GameData.Pong.Top) {
game.Player._y = GameData.Pong.Top;
} else {
game.Player._y = game.Player._y + M;
}
}
function pongNext() {
if (Key.isDown(32)) {
if (!GameData.Keys.Space) {
pongStage();
GameData.Keys.Space = true;
}
} else {
GameData.Keys.Space = false;
}
if (Key.isDown(17)) {
pongStage();
}
}
function pongPaddleHit(MC, T) {
if (Math.abs((MC._x + MC.XMov) - T._x) < 30) {
if ((MC._y < (T._y + 30)) && (MC._y > (T._y - 70))) {
return(true);
}
}
return(false);
}
function pongBallMove(MC) {
if (MC.XMov < 0) {
var _local2 = false;
if (game.Player.Power >= 100) {
i = 0;
while (i < 4) {
if (game["Op" + i]._visible && (pongPaddleHit(MC, game["Op" + i]))) {
MC._x = game["Op" + i]._x - (MC.XMov - (MC._x - game["Op" + i]._x));
MC.XMov = MC.XMov * -1;
MC.YMov = MC.YMov + Math.floor((MC._y - (game["Op" + i]._y - 20)) / 10);
MC.XMov = MC.XMov - 0.1;
MC.Spin = MC.Spin - 0.1;
_local2 = true;
}
i++;
}
}
if (!_local2) {
if (pongPaddleHit(MC, game.Player)) {
if (game.Player.hitStun > 0) {
game.Player.hitStun = 30;
game.Player._rotation = game.Player._rotation - 5;
MC.XMov = MC.XMov - 0.1;
MC.Spin = MC.Spin - 0.1;
} else if (Key.isDown(16) || (Key.isDown(90))) {
game.Player.block._visible = true;
game.Player.block._alpha = 100;
MC.XMov = MC.XMov - 0.2;
MC.Spin = MC.Spin - 0.2;
} else {
game.Player.hitStun = 30;
game.Player._rotation = -15;
game.Player.eyes.gotoAndStop(7);
game.Player.mouth.gotoAndStop(9);
game.Player.mouth._visible = true;
MC.XMov = MC.XMov - 0.1;
MC.Spin = MC.Spin - 0.1;
}
MC._x = game.Player._x - (MC.XMov - (MC._x - game.Player._x));
MC.XMov = MC.XMov * -1;
MC.YMov = MC.YMov + Math.floor((MC._y - (game.Player._y - 20)) / 10);
} else if ((MC._x < 50) && (game.bomb.Limit > 0)) {
MC.XMov = MC.XMov * -1;
MC.XMov = MC.XMov + 1;
game.bomb.Limit = game.bomb.Limit - 25;
} else {
MC._x = MC._x + MC.XMov;
}
}
} else if (MC.XMov > 0) {
if (pongPaddleHit(MC, game.Yukari)) {
MC._x = game.Yukari._x - (MC.XMov - (MC._x - game.Yukari._x));
MC.XMov = MC.XMov * -1;
MC.YMov = MC.YMov + Math.floor((MC._y - (game.Yukari._y - 20)) / 10);
pongDamageYukari(1);
} else if (game.Yuyuko._visible && (pongPaddleHit(MC, game.Yuyuko))) {
MC._x = game.Yuyuko._x - (MC.XMov - (MC._x - game.Yuyuko._x));
MC.XMov = MC.XMov * -1;
MC.YMov = MC.YMov + Math.floor((MC._y - (game.Yuyuko._y - 20)) / 10);
} else {
MC._x = MC._x + MC.XMov;
}
}
if (((MC._y + MC.YMov) < GameData.Pong.Top) && (MC.YMov < 0)) {
MC._y = GameData.Pong.Top - (MC.YMov - (MC._y - GameData.Pong.Top));
MC.YMov = MC.YMov * -1;
} else if (((MC._y + MC.YMov) > GameData.Pong.Bottom) && (MC.YMov > 0)) {
MC._y = GameData.Pong.Bottom - (MC.YMov - (MC._y - GameData.Pong.Bottom));
MC.YMov = MC.YMov * -1;
} else {
MC._y = MC._y + MC.YMov;
}
MC._rotation = MC._rotation + MC.Spin;
if ((MC._x < -100) && (game.Yukari.GapC == 0)) {
pongYukariGap(MC);
pongLoseLife();
} else if ((MC._x > 800) && (game.Yukari.GapC == 0)) {
pongDamageYukari(10);
pongSpawnBonus(MC._x + ((random(21) - 10) * 5), MC._y + ((random(21) - 10) * 5), "S");
pongSpawnBonus(MC._x + ((random(21) - 10) * 5), MC._y + ((random(21) - 10) * 5), "S");
if (game.Yukari.Life < 1) {
pongSpawnBonus(MC._x + ((random(21) - 10) * 5), MC._y + ((random(21) - 10) * 5), "S");
pongSpawnBonus(MC._x + ((random(21) - 10) * 5), MC._y + ((random(21) - 10) * 5), "S");
} else {
pongSpawnBonus(MC._x, MC._y, "P1");
pongYukariGap(MC);
}
}
}
function pongDamageYukari(D) {
game.Yukari.Life = game.Yukari.Life - (D * ((game.Player.Power / 100) + 1));
pongAddScore(D);
if (game.Yukari.Life < 1) {
pongAddScore(game.TimeBonus);
game.Yukari.Life = 0;
for (s in game.shots) {
pongSpawnBonus(game.shots[s]._x, game.shots[s]._y, "S");
game.shots[s].removeMovieClip();
}
pongSpawnBonus(game.Yukari._x, game.Yukari._y, "P2");
pongStage();
}
}
function pongSpawnBonus(X, Y, T) {
if ((game.Player.Power == 500) || (T == "S")) {
game.bonus.attachMovie("PointItem", "BonusPoint" + game.B, game.B);
game.bonus["BonusPoint" + game.B]._x = X;
game.bonus["BonusPoint" + game.B]._y = Y;
game.bonus["BonusPoint" + game.B].Speed = 5;
game.bonus["BonusPoint" + game.B].XMov = -10;
game.bonus["BonusPoint" + game.B].Type = "S";
game.bonus["BonusPoint" + game.B]._xscale = 30;
game.bonus["BonusPoint" + game.B]._yscale = 30;
} else {
game.bonus.attachMovie("Powerup", "PowerUp" + game.B, game.B);
game.bonus["PowerUp" + game.B]._x = X;
game.bonus["PowerUp" + game.B]._y = Y;
game.bonus["PowerUp" + game.B].Speed = 5;
game.bonus["PowerUp" + game.B].XMov = -10;
game.bonus["PowerUp" + game.B].Type = T;
if (T == "P2") {
game.bonus["PowerUp" + game.B]._xscale = 50;
game.bonus["PowerUp" + game.B]._yscale = 50;
} else {
game.bonus["PowerUp" + game.B]._xscale = 30;
game.bonus["PowerUp" + game.B]._yscale = 30;
}
}
game.B++;
}
function pongResetBall(T) {
if (T._name == "Ran") {
T.XMov = T.Speed * -1;
if (game.Yukari._y > game.Player._y) {
T.YMov = 1;
} else {
T.YMov = -1;
}
T.Spin = T.Speed * -1;
} else if (T._name == "Chen") {
T.XMov = T.Speed * -1;
if (game.Yukari._y > game.Player._y) {
T.YMov = T.Speed;
} else {
T.YMov = T.Speed * -1;
}
T.Spin = T.Speed * -1;
} else if (T._name == "Youmu") {
T.XMov = T.Speed * -1;
T.YMov = 0;
T.Spin = 0;
}
T._rotation = T.Spin;
T.Mode = "Ball";
}
function pongShowPower() {
trace(game.Player.Power);
var _local1 = game.Player.Power / 100;
var _local2 = String(_local1);
if (_local2.length == 3) {
game.Interface.Power.D.text = _local1 + "0/5.00";
} else if (_local2.length == 1) {
game.Interface.Power.D.text = _local1 + ".00/5.00";
} else {
game.Interface.Power.D.text = _local1 + "/5.00";
}
}
function pongGetPower(N) {
if (game.Player.Power < 500) {
if ((game.Player.Power + N) >= 500) {
playSound("PowerUp");
for (b in game.bonus) {
if (game.bonus[b].T != "S") {
pongSpawnBonus(game.bonus[b]._x, game.bonus[b]._y, "S");
game.bonus[b].removeMovieClip();
}
}
game.Player.Power = 500;
} else {
game.Player.Power = game.Player.Power + N;
}
pongShowPower();
var _local1 = Math.floor((game.Player.Power / 100) - 1);
if (((_local1 >= 0) && (_local1 < 4)) && (!game["Op" + _local1]._visible)) {
playSound("PowerUp");
game["Op" + _local1]._x = game.Player._x;
game["Op" + _local1]._y = game.Player._y;
game["Op" + _local1]._visible = true;
pongPaddleFormation(_local1);
}
}
}
function pongPaddleFormation(N) {
if (N == 0) {
game.Op0.XMod = 50;
game.Op0.YMod = 0;
game.Op0.fXMod = 100;
game.Op0.fYMod = 0;
} else if (N == 1) {
game.Op0.XMod = 0;
game.Op0.YMod = 50;
game.Op0.fXMod = 50;
game.Op0.fYMod = 35;
game.Op1.XMod = 0;
game.Op1.YMod = -100;
game.Op1.fXMod = 50;
game.Op1.fYMod = -50;
} else if (N == 2) {
game.Op0.XMod = 0;
game.Op0.YMod = 50;
game.Op0.fXMod = 50;
game.Op0.fYMod = 35;
game.Op1.XMod = 0;
game.Op1.YMod = -100;
game.Op1.fXMod = 50;
game.Op1.fYMod = -50;
game.Op2.XMod = 50;
game.Op2.YMod = 0;
game.Op2.fXMod = 100;
game.Op2.fYMod = 0;
} else if (N == 3) {
game.Op0.XMod = 0;
game.Op0.YMod = 50;
game.Op0.fXMod = 50;
game.Op0.fYMod = 35;
game.Op1.XMod = 0;
game.Op1.YMod = -100;
game.Op1.fXMod = 50;
game.Op1.fYMod = -50;
game.Op2.XMod = 50;
game.Op2.YMod = 35;
game.Op2.fXMod = 0;
game.Op2.fYMod = 200;
game.Op3.XMod = 50;
game.Op3.YMod = -50;
game.Op3.fXMod = 0;
game.Op3.fYMod = -250;
}
}
function pongLoseLife() {
if (!game.bomb._visible) {
pongSpawnBonus(700, game.Player._y + 30, "P2");
pongSpawnBonus(700, game.Player._y - 30, "P2");
playSound("Death");
if (game.Player.Lives == 0) {
game.Player.eyes.gotoAndStop(9);
game.Player.mouth.gotoAndStop(14);
game.Player.mouth._visible = true;
game.onEnterFrame = function () {
if (game.Player._xscale > 0) {
game.Player._xscale--;
game.Player._yscale--;
game.Player._rotation = game.Player._rotation - 15;
} else {
game.Interface._visible = false;
game.TopBoundry._visible = false;
game.BottomBoundry._visible = false;
game.Yukari.gap._visible = false;
game.Yukari.wings._visible = false;
game.Yukari._xscale = -150;
game.Yukari._yscale = 150;
game.Yukari._x = 450;
game.Yukari._y = 450;
game.Yukari.eyes.gotoAndStop(1);
game.Yukari.mouth.gotoAndStop(1);
game.Yukari.mouth._visible = true;
game.Yuyuko._visible = false;
game.Ran._visible = false;
game.Chen._visible = false;
game.Youmu._visible = false;
game.shots._visible = false;
game.bonus._visible = false;
game.attachMovie("WhiteText", "GameOver", 43);
setFontSize(game.GameOver.D, 50);
game.GameOver.D.text = "Game Over";
game.GameOver.D._height = 60;
game.GameOver.D._width = 500;
game.GameOver._x = 100;
game.GameOver._y = 30;
game.attachMovie("WhiteText", "GameOverStats", 44);
setFontSize(game.GameOverStats.D, 20);
game.GameOverStats.D.text = "Your Score:\nHi-Score:";
game.GameOverStats.D._height = 60;
game.GameOverStats.D._width = 500;
game.GameOverStats._x = 17;
game.GameOverStats._y = 253;
game.Exit._x = 50;
game.Exit._y = 330;
game.Exit._xscale = 200;
game.Exit._yscale = 200;
game.attachMovie("WhiteText", "YourScore", 45);
setFontSize(game.YourScore.D, 20);
game.YourScore.D.text = game.Score;
game.YourScore.D._height = 60;
game.YourScore.D._width = 500;
game.YourScore._x = 160;
game.YourScore._y = 251;
game.attachMovie("WhiteText", "HiScore", 46);
setFontSize(game.HiScore.D, 20);
game.HiScore.D.text = GameData.Pong.HiScore;
my_so.data.PongHiScore = GameData.Pong.HiScore;
my_so.flush();
game.HiScore.D._height = 60;
game.HiScore.D._width = 500;
game.HiScore._x = 120;
game.HiScore._y = 275;
popTalk(game.Talky, "Bow before me\nweakling!", 258, 250, 118, 118, 0, -129.85, -91.35, 0, 5, -84, -56, 35, 0);
delete game.onEnterFrame;
}
};
} else {
game.Player.Lives--;
game.Interface["Life" + game.Player.Lives]._visible = false;
game.bomb._alpha = 100;
game.bomb._visible = true;
game.bomb.Limit = 100;
}
}
}
function pongMainLoop() {
if (Key.isDown(80)) {
if (!GameData.Keys.P) {
if (game.Paused) {
game.Paused = false;
game.Interface.Pause._visible = false;
} else {
game.Paused = true;
game.Interface.Pause._visible = true;
}
GameData.Keys.P = true;
}
} else {
GameData.Keys.P = false;
}
if (!game.Paused) {
pongYukariLifeFix();
if (game.TimeBonus > 0) {
if (game.TimeBonusC > 0) {
game.TimeBonusC--;
} else {
game.TimeBonus--;
game.TimeBonusC = 30;
game.Interface.TimeBonus.D.text = game.TimeBonus;
}
}
for (s in game.shots) {
game.shots[s]._x = game.shots[s]._x + game.shots[s].XMov;
game.shots[s]._y = game.shots[s]._y + game.shots[s].YMov;
if (game.shots[s]._x < -300) {
game.shots[s].removeMovieClip();
} else if (getDist(game.shots[s], game.Player._x, game.Player._y) < 6) {
pongLoseLife();
game.shots[s].removeMovieClip();
} else if (getDist(game.shots[s], game.Player._x, game.Player._y) < 20) {
game.shots[s].Graze = true;
} else if (game.shots[s].Graze) {
pongSpawnBonus(700, game.Player._y, "P1");
playSound("Graze");
game.Graze++;
game.Interface.Graze.D.text = game.Graze;
game.shots[s].Graze = false;
}
}
if (Key.isDown(192) && (GameData.DevMode)) {
if (!GameData.Keys.Dev) {
pongDamageYukari(game.Yukari.Life);
pongSpawnBonus(game.Player._x + 100, game.Player._y, "P2");
GameData.Keys.Dev = true;
}
} else {
GameData.Keys.Dev = false;
}
if (game.ShowScore < game.Score) {
game.ShowScore++;
game.Interface.Score.D.text = game.ShowScore;
if (game.ShowScore > Number(game.Interface.HiScore.D.text)) {
game.Interface.HiScore.D.text = game.ShowScore;
}
}
for (b in game.bonus) {
if (game.bonus[b]._x < -300) {
game.bonus[b].removeMovieClip();
} else if (getDist(game.bonus[b], game.Player._x, game.Player._y) < 30) {
playSound("ItemGet");
if (game.bonus[b].Type == "P1") {
game.bonus[b].removeMovieClip();
pongGetPower(5);
} else if (game.bonus[b].Type == "P2") {
game.bonus[b].removeMovieClip();
pongGetPower(100);
} else {
game.bonus[b].removeMovieClip();
pongAddScore(10);
}
} else if (getDist(game.bonus[b], game.Player._x, game.Player._y) < 60) {
game.bonus[b]._x = game.bonus[b]._x + ((game.Player._x - game.bonus[b]._x) / 10);
game.bonus[b]._y = game.bonus[b]._y + ((game.Player._y - game.bonus[b]._y) / 10);
} else {
if (game.bonus[b].XMov < game.bonus[b].Speed) {
game.bonus[b].XMov++;
}
game.bonus[b]._x = game.bonus[b]._x - game.bonus[b].XMov;
}
}
if (game.bomb.Limit > 0) {
game.bomb.Limit--;
} else if (game.bomb._visible) {
game.bomb._alpha = game.bomb._alpha - 5;
if (game.bomb._alpha < 0) {
game.bomb._visible = false;
}
} else if (Key.isDown(88) && (game.Player.Power >= 100)) {
pongBomb();
}
if (game.Player.hitStun > 0) {
game.Player.hitStun--;
if (game.Player.hitStun == 0) {
game.Player._rotation = 0;
game.Player.eyes.gotoAndStop(game.Player.eF);
game.Player.mouth.gotoAndStop(game.Player.mF);
game.Player.mouth._visible = game.Player.mV;
}
} else {
pongController();
}
if (game.Ran.Mode == "Ball") {
pongBallMove(game.Ran);
}
if (game.Chen.Mode == "Ball") {
pongBallMove(game.Chen);
}
if (game.Youmu.Mode == "Ball") {
if ((game.Youmu._x > 225) && (game.Youmu.XMov > 0)) {
game.Youmu.XMov = Math.floor(game.Youmu.XMov * 0.9);
} else {
game.Youmu.XMov = game.Youmu.XMov - 1;
}
pongBallMove(game.Youmu);
game.Youmu._rotation = game.Youmu.XMov;
}
pongYukariAI();
if (game.Yuyuko._visible) {
pongYuyukoAI();
}
}
}
function pongAddScore(N) {
game.Score = game.Score + N;
if (game.Score > GameData.Pong.HiScore) {
GameData.Pong.HiScore = game.Score;
}
}
function pongYukariLifeFix() {
var _local1 = 480 * (game.Yukari.Life / game.Yukari.MaxLife);
game.Interface.YukariLife._width = game.Interface.YukariLife._width + ((_local1 - game.Interface.YukariLife._width) / 10);
}
function pongBomb() {
game.Player.Power = game.Player.Power - 100;
pongShowPower();
var _local1 = Math.floor(game.Player.Power / 100);
if (game["Op" + _local1]._visible) {
game["Op" + _local1]._visible = false;
}
pongPaddleFormation(_local1 - 1);
game.bomb._alpha = 100;
game.bomb._visible = true;
game.bomb.Limit = 120;
}
function pongYukariAI() {
if (game.Level > 1) {
if (game.Yukari.ShotDelay > 0) {
game.Yukari.ShotDelay--;
if (game.Level > 5) {
if (game.Yukari.ShotDelay == 50) {
pongSprayShot(getAngle(game.Yukari._x, game.Yukari._y, game.Player._x, game.Player._y), 25, game.Level + 2);
}
}
} else {
pongSprayShot(getAngle(game.Yukari._x, game.Yukari._y, game.Player._x, game.Player._y), 30, game.Level + 1);
game.Yukari.ShotDelay = 100;
}
}
if (game.Yukari.GapC > 0) {
game.Yukari.gap.char._x = game.Yukari.gap.char._x - 20;
game.Yukari.GapC--;
if (game.Yukari.GapC == 0) {
game.Yukari.gap._visible = false;
game.Yukari.Target._x = game.Yukari._x - 50;
game.Yukari.Target._y = game.Yukari._y;
game.Yukari.Target._visible = true;
pongResetBall(game.Yukari.Target);
}
}
if (game.Yukari._y < game.Ran._y) {
if ((game.Yukari._y + game.Yukari.Speed) > game.Ran._y) {
game.Yukari._y = game.Ran._y;
} else {
game.Yukari._y = game.Yukari._y + game.Yukari.Speed;
}
} else if (game.Yukari._y > game.Ran._y) {
if ((game.Yukari._y - game.Yukari.Speed) < game.Ran._y) {
game.Yukari._y = game.Ran._y;
} else {
game.Yukari._y = game.Yukari._y - game.Yukari.Speed;
}
}
}
function pongYuyukoAI() {
game.Yuyuko._x = game.Yuyuko._x + ((500 - game.Yuyuko._x) / 5);
if (game.Yuyuko._y < game.Chen._y) {
if ((game.Yuyuko._y + game.Yuyuko.Speed) > game.Chen._y) {
game.Yuyuko._y = game.Chen._y;
} else {
game.Yuyuko._y = game.Yuyuko._y + game.Yuyuko.Speed;
}
} else if (game.Yuyuko._y > game.Chen._y) {
if ((game.Yuyuko._y - game.Yuyuko.Speed) < game.Chen._y) {
game.Yuyuko._y = game.Chen._y;
} else {
game.Yuyuko._y = game.Yuyuko._y - game.Yuyuko.Speed;
}
}
if ((game.Yuyuko._y > game.Yukari._y) && (game.Yuyuko.getDepth() < game.Yukari.getDepth())) {
game.Yuyuko.swapDepths(game.Yukari);
} else if ((game.Yuyuko._y < game.Yukari._y) && (game.Yuyuko.getDepth() > game.Yukari.getDepth())) {
game.Yuyuko.swapDepths(game.Yukari);
}
}
function pongExit() {
if (GameData.StageCache) {
stageShot.removeMovieClip();
stage._visible = true;
if (GameData.BG != 0) {
bg._visible = true;
}
}
GameData.Target._xscale = GameData.Characters[GameData.Target._name].Scale * GameData.Target.XFace;
GameData.Target._yscale = GameData.Characters[GameData.Target._name].Scale * GameData.Target.YFace;
GameData.Target._visible = true;
Scramble(GameData.Target);
GameData.GameOn = false;
game._visible = false;
ClickBlocker._visible = false;
game.onEnterFrame = function () {
if (TopDimmer._alpha > 0) {
TopDimmer._alpha = TopDimmer._alpha - 10;
} else {
this.removeMovieClip();
}
};
}
LoadSavedData();
CheckOrigin();
_root.attachMovie("BGBox", "ClearClicker", 0);
ClearClicker._width = Stage.width;
ClearClicker._height = Stage.height;
ClearClicker._alpha = 0;
ClearClicker.onPress = function () {
CloseMenus(1);
Target();
};
ClearClicker.useHandCursor = false;
_root.attachMovie("Background", "bg", 1);
_root.createEmptyMovieClip("stage", 10);
_root.attachMovie("BGBox", "Dimmer", 98);
SwapColor(Dimmer, "Buttons", 4);
Dimmer._width = Stage.width;
Dimmer._height = Stage.height;
Dimmer._alpha = 0;
_root.attachMovie("Manipulator", "Manipulator", 99);
Manipulator._visible = false;
Manipulator.dragbox.onPress = function () {
GameData.DoubleClick = 0;
clickCheck(GameData.Target, "drag");
};
setActionRelease(Manipulator.dragbox);
Manipulator.attachMovie("ToolNode", "Positioner", 30);
Manipulator.Positioner.gotoAndStop(3);
Manipulator.Positioner.onPress = function () {
GameData.Action = "positionTool";
};
setActionRelease(Manipulator.Positioner);
Manipulator.attachMovie("ToolNode", "RotateTool", 10);
Manipulator.RotateTool.gotoAndStop(2);
Manipulator.RotateTool.onPress = function () {
GameData.Action = "rotateTool";
};
setActionRelease(Manipulator.RotateTool);
Manipulator.attachMovie("ToolNode", "ScaleTool", 20);
Manipulator.ScaleTool.gotoAndStop(1);
Manipulator.ScaleTool.onPress = function () {
GameData.Action = "scaleTool";
};
setActionRelease(Manipulator.ScaleTool);
Manipulator.attachMovie("ToolNode", "BScaleTool", 50);
Manipulator.BScaleTool.gotoAndStop(4);
Manipulator.BScaleTool.onPress = function () {
GameData.Action = "bScaleTool";
};
setActionRelease(Manipulator.BScaleTool);
Manipulator.attachMovie("ToolNode", "BTextTool", 40);
Manipulator.BTextTool.gotoAndStop(5);
Manipulator.BTextTool.onPress = function () {
GameData.Action = "bTextTool";
};
setActionRelease(Manipulator.BTextTool);
_root.createEmptyMovieClip("Interface", 100);
_root.attachMovie("BGBox", "TopDimmer", 300);
SwapColor(TopDimmer, "Buttons", 4);
TopDimmer._width = Stage.width;
TopDimmer._height = Stage.height;
TopDimmer._alpha = 0;
bg.gotoAndStop(1);
bg._visible = false;
MenuMaker = new Array();
MenuMaker.push(["TargetFrame", "ObjMenuItem"]);
MenuMaker.push(["HatMenu", ""]);
MenuMaker.push(["ItemMenu", ""]);
MenuMaker.push(["AccMenu", ""]);
MenuMaker.push(["BackMenu", ""]);
MenuMaker.push(["ShoesMenu", ""]);
MenuMaker.push(["ArmsMenu", ""]);
MenuMaker.push(["BodyMenu", ""]);
MenuMaker.push(["HairMenu", ""]);
MenuMaker.push(["EyesMenu", ""]);
MenuMaker.push(["MouthMenu", ""]);
MenuMaker.push(["PresetMenu", ""]);
MenuMaker.push(["ObjectList", ""]);
MenuMaker.push(["RenameMenu", "RenameMenu"]);
MenuMaker.push(["BGMenu", "BGMenu"]);
MenuMaker.push(["COMenu", "CharOptionsMenu"]);
MenuMaker.push(["BubbleWindow", "BubbleMenu"]);
MenuMaker.push(["OpsMenu", "OptionsMenu"]);
MenuMaker.push(["GravMenu", "GravityMenu"]);
MenuMaker.push(["DNAMenu", "DNAMenu"]);
MenuMaker.push(["HelpWindow", ""]);
i = 0;
while (i < MenuMaker.length) {
if (MenuMaker[i][1]) {
Interface.attachMovie(MenuMaker[i][1], MenuMaker[i][0], GameData.Menus.DMax++);
} else {
Interface.createEmptyMovieClip(MenuMaker[i][0], GameData.Menus.DMax++);
}
ScaleMenu(Interface[MenuMaker[i][0]]);
Interface[MenuMaker[i][0]]._visible = false;
i++;
}
_root.attachMovie("BGBox", "ClickBlocker", 102);
ClickBlocker._width = Stage.width;
ClickBlocker._height = Stage.height;
ClickBlocker._alpha = 70;
SwapColor(ClickBlocker, "Buttons", 3);
ClickBlocker.onPress = function () {
};
ClickBlocker.useHandCursor = false;
ClickBlocker._visible = false;
for (t in GameData.Toys) {
AddProp(t, "Toys", "Toys");
stage[t].gotoAndStop(GameData.Toys[t].frame);
stage[t]._x = 200;
stage[t]._y = 200;
stage[t]._visible = false;
}
stage["Grouchy Reimu"].onPress = function () {
this.startDrag();
clickCheck(this, "");
};
stage["Grouchy Reimu"].onRelease = function () {
this.stopDrag();
};
stage["Grouchy Reimu"].onReleaseOutside = function () {
this.stopDrag();
};
stage["Gravity Well"].onPress = function () {
clickCheck(this, "drag");
};
setActionRelease(stage["Gravity Well"]);
stage["Clone Capsule"].char._visible = false;
stage["Clone Capsule"].lights.gotoAndStop(1);
stage["Clone Capsule"].onPress = function () {
clickCheck(this, "drag");
};
setActionRelease(stage["Clone Capsule"]);
stage["Boxing Chen"].onPress = function () {
resetBoxingChen();
clickCheck(this, "drag");
};
setActionRelease(stage["Boxing Chen"]);
stage["Mysterious Gap"].onPress = function () {
clickCheck(this, "drag");
};
setActionRelease(stage["Mysterious Gap"]);
var myListener = new Object();
myListener.onResize = function () {
fixScales();
};
Stage.addListener(myListener);
Interface.onEnterFrame = function () {
if (!GameData.GameOn) {
if (!GameData.KeyLock) {
if (Key.isDown(192) && (GameData.DevMode)) {
if (!GameData.Keys.Dev) {
if (GameData.TargetType == "SpeechBubble") {
trace(((((((((((((((((((((((((((("popTalk(game.Talky,\"" + GameData.Target.D.text) + "\",") + GameData.Target._x) + ",") + GameData.Target._y) + ",") + GameData.Target._xscale) + ",") + GameData.Target._yscale) + ",") + GameData.Target._rotation) + ",") + GameData.Target.D._x) + ",") + GameData.Target.D._y) + ",") + GameData.Target.D._rotation) + ",") + GameData.Target.Bubble._x) + ",") + GameData.Target.Bubble._y) + ",") + GameData.Target.Bubble._xscale) + ",") + GameData.Target.Bubble._yscale) + ",") + GameData.Target.Bubble._rotation) + ");");
} else if (GameData.TargetType == "Character") {
trace(((((((((((((((((((((("newPreset(\"" + GameData.Characters[GameData.Target._name].Name) + "\",") + GameData.Characters[GameData.Target._name].bodyFrame) + ",") + GameData.Characters[GameData.Target._name].eyeFrame) + ",") + GameData.Characters[GameData.Target._name].mouthFrame) + ",") + GameData.Characters[GameData.Target._name].headFrame) + ",") + GameData.Characters[GameData.Target._name].hatFrame) + ",") + GameData.Characters[GameData.Target._name].armFrame) + ",") + GameData.Characters[GameData.Target._name].shoeFrame) + ",") + GameData.Characters[GameData.Target._name].itemFrame) + ",") + GameData.Characters[GameData.Target._name].wingFrame) + ",") + GameData.Characters[GameData.Target._name].accFrame) + ");");
}
GameData.Keys.Dev = true;
}
} else {
GameData.Keys.Dev = false;
}
if (Key.isDown(32)) {
if (!GameData.Keys.Space) {
if (Interface._visible) {
Interface._visible = false;
Manipulator._visible = false;
} else {
Interface._visible = true;
if (GameData.Target && (GameData.ShowManipulator)) {
Manipulator._visible = true;
}
}
GameData.Keys.Space = true;
}
} else {
GameData.Keys.Space = false;
}
if (Key.isDown(71)) {
if (!GameData.Keys.G) {
if (stage["Gravity Well"]._visible) {
stage["Gravity Well"]._x = _root._xmouse;
stage["Gravity Well"]._y = _root._ymouse;
clickCheck(stage["Gravity Well"], "drag");
GameData.DoubleClick = 0;
}
GameData.Keys.G = true;
}
} else {
GameData.Keys.G = false;
}
if (Key.isDown(221)) {
if (!GameData.Keys.NextT) {
GameData.Keys.Functions.NextTarget();
GameData.Keys.NextT = true;
}
} else {
GameData.Keys.NextT = false;
}
if (Key.isDown(219)) {
if (!GameData.Keys.PrevT) {
GameData.Keys.Functions.PrevTarget();
GameData.Keys.PrevT = true;
}
} else {
GameData.Keys.PrevT = false;
}
if (Key.isDown(83)) {
if (!GameData.Keys.S) {
makeScreenShot();
GameData.Keys.S = true;
}
} else {
GameData.Keys.S = false;
}
if ((GameData.KeylockPinned && (!GameData.Target.Pin)) || (!GameData.KeylockPinned)) {
if (Key.isDown(38)) {
if (Key.isDown(16)) {
if (!GameData.Keys.Up) {
BringForward(GameData.Target);
GameData.Keys.Up = true;
}
} else if (Key.isDown(17)) {
if (!GameData.Keys.Up) {
BringToFront(GameData.Target);
GameData.Keys.Up = true;
}
} else if (!GameData.Keys.Up) {
GameData.Target._y = GameData.Target._y - GameData.ASpeed;
GameData.Keys.Up = true;
GameData.Keys.UpHold = 0;
} else if (GameData.Keys.UpHold < 15) {
GameData.Keys.UpHold++;
} else {
GameData.Target._y = GameData.Target._y - GameData.ASpeed;
}
} else {
GameData.Keys.Up = false;
}
if (Key.isDown(40)) {
if (Key.isDown(16)) {
if (!GameData.Keys.Down) {
SendBackward(GameData.Target);
GameData.Keys.Down = true;
}
} else if (Key.isDown(17)) {
if (!GameData.Keys.Down) {
SendToBack(GameData.Target);
GameData.Keys.Down = true;
}
} else if (!GameData.Keys.Down) {
GameData.Target._y = GameData.Target._y + GameData.ASpeed;
GameData.Keys.Down = true;
GameData.Keys.DownHold = 0;
} else if (GameData.Keys.DownHold < 15) {
GameData.Keys.DownHold++;
} else {
GameData.Target._y = GameData.Target._y + GameData.ASpeed;
}
} else {
GameData.Keys.Down = false;
}
if (Key.isDown(37)) {
if (!GameData.Keys.Left) {
GameData.Keys.Functions.LeftBudge();
GameData.Keys.Left = true;
GameData.Keys.LeftHold = 0;
} else if (GameData.Keys.LeftHold < 15) {
GameData.Keys.LeftHold++;
} else {
GameData.Keys.Functions.LeftBudge();
}
} else {
GameData.Keys.Left = false;
}
if (Key.isDown(39)) {
if (!GameData.Keys.Right) {
GameData.Keys.Functions.RightBudge();
GameData.Keys.Right = true;
GameData.Keys.RightHold = 0;
} else if (GameData.Keys.RightHold < 15) {
GameData.Keys.RightHold++;
} else {
GameData.Keys.Functions.RightBudge();
}
} else {
GameData.Keys.Right = false;
}
if (Key.isDown(67)) {
if (!GameData.Keys.C) {
if ((GameData.TargetType == "Character") || (GameData.TargetType == "SpeechBubble")) {
GameData.Menus.Functions.ColorizeMenu();
}
GameData.Keys.C = true;
}
} else {
GameData.Keys.C = false;
}
if (Key.isDown(68)) {
if (!GameData.Keys.D) {
if (GameData.TargetType == "Object") {
GameData.Menus.Functions.Clusterize();
}
GameData.Keys.D = true;
}
} else {
GameData.Keys.D = false;
}
if (Key.isDown(84)) {
if (!GameData.Keys.T) {
if (GameData.Target._visible) {
GameData.Target._x = _root._xmouse;
GameData.Target._y = _root._ymouse;
clickCheck(GameData.Target, "drag");
GameData.DoubleClick = 0;
}
GameData.Keys.T = true;
}
} else {
GameData.Keys.T = false;
}
if (Key.isDown(82)) {
if (GameData.TargetType == "Character") {
if (Key.isDown(16)) {
GameData.Menus.Functions.SetRandomColor();
} else {
RandomizeAll(GameData.Target);
}
} else if (GameData.TargetType == "Object") {
if (!GameData.Keys.R) {
GameData.Menus.Functions.TurnIntoRain();
GameData.Keys.R = true;
}
}
} else {
GameData.Keys.R = false;
}
if (Key.isDown(46)) {
if (!GameData.Keys.Delete) {
if (GameData.TargetType == "Toy") {
if (GameData.Target._name == "Boxing Chen") {
resetBoxingChen();
}
GameData.Target._visible = false;
Target();
} else if ((GameData.Target && (!Interface.COMenu._visible)) && (!Interface.BubbleWindow._visible)) {
Delete(GameData.Target);
}
Manipulator._visible = false;
GameData.Keys.Delete = true;
}
} else {
GameData.Keys.Delete = false;
}
if (Key.isDown(76)) {
if (!GameData.Keys.L) {
if (GameData.TargetType == "Character") {
i = 0;
while (i < GameData.PartsArray.length) {
GameData.Characters[GameData.Target._name].Locks[GameData.PartsArray[i]] = true;
i++;
}
}
GameData.Keys.L = true;
}
} else {
GameData.Keys.L = false;
}
if (Key.isDown(85)) {
if (!GameData.Keys.U) {
if (GameData.TargetType == "Character") {
i = 0;
while (i < GameData.PartsArray.length) {
GameData.Characters[GameData.Target._name].Locks[GameData.PartsArray[i]] = false;
i++;
}
}
GameData.Keys.U = true;
}
} else {
GameData.Keys.U = false;
}
if (Key.isDown(70)) {
if (!GameData.Keys.F) {
if (Key.isDown(16)) {
VFlip();
} else {
HFlip();
}
GameData.Keys.F = true;
}
} else {
GameData.Keys.F = false;
}
}
if (Key.isDown(77)) {
if (!GameData.Keys.M) {
if (GameData.ShowManipulator) {
GameData.ShowManipulator = false;
Manipulator._visible = false;
} else {
GameData.ShowManipulator = true;
if (GameData.Target) {
setManipulator();
}
}
GameData.Keys.M = true;
}
} else {
GameData.Keys.M = false;
}
if (Key.isDown(45)) {
if (!GameData.Keys.Insert) {
makeChar();
GameData.Keys.Insert = true;
}
} else {
GameData.Keys.Insert = false;
}
if (Key.isDown(80)) {
if (!GameData.Keys.P) {
if (GameData.Target.Pin) {
GameData.Target.Pin = false;
Interface.TargetFrame.pin._visible = false;
if (GameData.UntargetablePinned) {
AddClickHandler(GameData.Target, GameData.TargetType);
}
} else {
GameData.Target.Pin = true;
Interface.TargetFrame.pin._visible = true;
if (GameData.UntargetablePinned) {
RemoveClickHandler(GameData.Target, GameData.TargetType);
}
}
GameData.Keys.P = true;
}
} else {
GameData.Keys.P = false;
}
}
if (GameData.DoubleClick > 0) {
GameData.DoubleClick--;
}
if (GameData.Toys["Clone Capsule"].Delay > 0) {
GameData.Toys["Clone Capsule"].Delay--;
} else if (((GameData.Toys["Clone Capsule"].Mode == 4) && (stage["Clone Capsule"]._visible)) && (stage["Clone Capsule"].char._visible)) {
activateCloneCapsule();
GameData.Toys["Clone Capsule"].Delay = 30;
}
if (stage["Boxing Chen"].AttackRoll > 0) {
stage["Boxing Chen"].AttackRoll--;
if (stage["Boxing Chen"].AttackRoll == 55) {
_root.attachMovie("KO", "KO", 6000);
KO._xscale = GameData.Menus.Size * 0.9;
KO._yscale = GameData.Menus.Size * 0.9;
} else if (stage["Boxing Chen"].AttackRoll == 0) {
KO.removeMovieClip();
}
}
if (bg.chatW._visible && (GameData.Chat.Active)) {
if (GameData.Chat.D > 0) {
GameData.Chat.D--;
} else {
if (GameData.Chat.L < 5) {
var _local9 = "LOLSpark";
GameData.Chat.L++;
} else {
var _local9 = GameData.Chat.UserList[random(GameData.Chat.UserList.length)];
GameData.Chat.L = 0;
}
playSound("ChatBeep");
bg.chatW.chat.text = bg.chatW.chat.text + (((_local9 + ": ") + GameData.Chat.Users[_local9][random(GameData.Chat.Users[_local9].length)]) + newline);
bg.chatW.chat.scroll = bg.chatW.chat.maxscroll;
GameData.Chat.D = random(GameData.Chat.Delay) + 3;
}
if (GameData.Chat.Doom > 0) {
GameData.Chat.Doom--;
if (GameData.Chat.Doom == 0) {
u = 0;
while (u < GameData.Chat.UserList.length) {
var _local6 = GameData.Chat.UserList[u];
if (_local6 != "WakiMiko") {
bg.chatW.chat.text = bg.chatW.chat.text + (_local6 + " has disconnected.\n");
bg.chatW.chat.scroll = bg.chatW.chat.maxscroll;
}
u++;
}
GameData.Chat.Active = false;
}
}
}
for (n in GameData.Rain) {
for (o in stage[n]) {
stage[n][o]._rotation = stage[n][o]._rotation + stage[n][o].Rot;
if (stage[n][o]._x >= (Stage.width + 50)) {
stage[n][o]._x = -20;
}
if (stage[n][o]._y >= (Stage.height + 50)) {
SetDrop(stage[n][o]);
}
stage[n][o]._y = stage[n][o]._y + stage[n][o].YMov;
stage[n][o]._x = stage[n][o]._x + stage[n][o].XMov;
}
}
if (!GameData.Target.Pin) {
if (GameData.Action == "rotateTool") {
Manipulator.RotateTool._x = _root._xmouse - Manipulator._x;
Manipulator.RotateTool._y = _root._ymouse - Manipulator._y;
if (GameData.Target._yscale < 0) {
GameData.Target._rotation = getMouseAngle(Manipulator._x, Manipulator._y) + 180;
} else {
GameData.Target._rotation = getMouseAngle(Manipulator._x, Manipulator._y);
}
} else if (GameData.Action == "positionTool") {
Manipulator.Positioner._x = _root._xmouse - Manipulator._x;
Manipulator.Positioner._y = _root._ymouse - Manipulator._y;
if (GameData.TargetType == "Cluster") {
GameData.Clusters[GameData.Target._name].Px = Manipulator.Positioner._x;
GameData.Clusters[GameData.Target._name].Py = Manipulator.Positioner._y;
fixClusterShotAngle(GameData.Target, GameData.Clusters[GameData.Target._name].Qt);
} else {
GameData.Target.Bubble._x = Manipulator.Positioner._x;
GameData.Target.Bubble._y = Manipulator.Positioner._y;
}
} else if (GameData.Action == "scaleTool") {
Manipulator.ScaleTool._x = _root._xmouse - Manipulator._x;
Manipulator.ScaleTool._y = _root._ymouse - Manipulator._y;
if (Manipulator.ScaleTool._x < 0) {
GameData.Target.XFace = -1;
} else {
GameData.Target.XFace = 1;
}
if (Manipulator.ScaleTool._y < 0) {
GameData.Target.YFace = -1;
} else {
GameData.Target.YFace = 1;
}
var _local13 = Math.abs(Manipulator.ScaleTool._x) + Math.abs(Manipulator.ScaleTool._y);
if (_local13 < GameData.ScaleLimit) {
_local13 = GameData.ScaleLimit;
}
fixTargetScale(_local13);
} else if (GameData.Action == "bScaleTool") {
Manipulator.BScaleTool._x = _root._xmouse - Manipulator._x;
Manipulator.BScaleTool._y = _root._ymouse - Manipulator._y;
if (Manipulator.BScaleTool._x < 0) {
GameData.Target.XFace = -1;
} else {
GameData.Target.XFace = 1;
}
if (Manipulator.BScaleTool._y < 0) {
GameData.Target.YFace = -1;
} else {
GameData.Target.YFace = 1;
}
GameData.Target.Bubble._xscale = Math.abs(Manipulator.BScaleTool._x) * GameData.Target.XFace;
GameData.Target.Bubble._yscale = Math.abs(Manipulator.BScaleTool._y) * GameData.Target.YFace;
} else if (GameData.Action == "bTextTool") {
Manipulator.BTextTool._x = _root._xmouse - Manipulator._x;
Manipulator.BTextTool._y = _root._ymouse - Manipulator._y;
GameData.Target.D._x = Manipulator.BTextTool._x;
GameData.Target.D._y = Manipulator.BTextTool._y;
} else if (GameData.Action == "rotate") {
if (GameData.TargetType == "Character") {
GameData.Target.OldR = GameData.Target._rotation;
if (GameData.Target._yscale < 0) {
GameData.Target._rotation = getMouseAngle(GameData.Target._x, GameData.Target._y) + 180;
} else {
GameData.Target._rotation = getMouseAngle(GameData.Target._x, GameData.Target._y);
}
GameData.Target.Spin = Math.floor(GameData.Target._rotation - GameData.Target.OldR);
} else if (((GameData.TargetType == "Object") || (GameData.TargetType == "Screenshot")) || (GameData.TargetType == "Cluster")) {
if (GameData.Target._yscale < 0) {
GameData.Target._rotation = getMouseAngle(GameData.Target._x, GameData.Target._y) + 180;
} else {
GameData.Target._rotation = getMouseAngle(GameData.Target._x, GameData.Target._y);
}
} else if (GameData.TargetType == "SpeechBubble") {
if (GameData.Target.Bubble._yscale < 0) {
GameData.Target.Bubble._rotation = getMouseAngle(GameData.Target._x + GameData.Target.Bubble._x, GameData.Target._y + GameData.Target.Bubble._y) + 10;
} else {
GameData.Target.Bubble._rotation = getMouseAngle(GameData.Target._x + GameData.Target.Bubble._x, GameData.Target._y + GameData.Target.Bubble._y) + 170;
}
}
} else if (GameData.Action == "drag") {
GameData.Target.OldX = GameData.Target._x;
GameData.Target.OldY = GameData.Target._y;
GameData.Target._x = _root._xmouse - GameData.Xmod;
Manipulator._x = GameData.Target._x;
GameData.Target._y = _root._ymouse - GameData.Ymod;
Manipulator._y = GameData.Target._y;
GameData.Target.XMov = Math.floor(GameData.Target._x - GameData.Target.OldX);
GameData.Target.YMov = Math.floor(GameData.Target._y - GameData.Target.OldY);
} else if (GameData.Action == "scale") {
if (GameData.TargetType == "SpeechBubble") {
if (Key.isDown(17)) {
var _local12 = _root._xmouse - GameData.Xmod;
var _local11 = _root._ymouse - GameData.Ymod;
if ((GameData.Target.OldXScale + _local12) < GameData.ScaleLimit) {
GameData.SpeechBubbles[GameData.Target._name].XScale = GameData.ScaleLimit;
} else {
GameData.SpeechBubbles[GameData.Target._name].XScale = GameData.Target.OldXScale + _local12;
}
if ((GameData.Target.OldYScale + _local11) < GameData.ScaleLimit) {
GameData.SpeechBubbles[GameData.Target._name].YScale = GameData.ScaleLimit;
} else {
GameData.SpeechBubbles[GameData.Target._name].YScale = GameData.Target.OldYScale + _local11;
}
GameData.Target.Bubble._xscale = GameData.SpeechBubbles[GameData.Target._name].XScale * GameData.Target.Bubble.XFace;
GameData.Target.Bubble._yscale = GameData.SpeechBubbles[GameData.Target._name].YScale * GameData.Target.Bubble.YFace;
} else {
var _local10 = (_root._xmouse - GameData.Xmod) + (_root._ymouse - GameData.Ymod);
if ((GameData.Target.OldScale + _local10) < GameData.ScaleLimit) {
var _local13 = GameData.ScaleLimit;
} else {
var _local13 = GameData.Target.OldScale + _local10;
}
fixTargetScale(_local13);
}
} else {
var _local10 = (_root._xmouse - GameData.Xmod) + (_root._ymouse - GameData.Ymod);
if ((GameData.Target.OldScale + _local10) < GameData.ScaleLimit) {
var _local13 = GameData.ScaleLimit;
} else {
var _local13 = GameData.Target.OldScale + _local10;
}
fixTargetScale(_local13);
}
}
}
for (c in stage) {
if (!stage[c].Pin) {
if (((bg.yuyuko._currentframe == 2) && (stage[c]._visible)) && (GameData.Characters[stage[c]._name])) {
var _local4 = (330 * (bg._xscale / 100)) + bg._x;
var _local5 = (230 * (bg._yscale / 100)) + bg._y;
var _local7 = getDist(stage[c], _local4, _local5);
var _local3 = 6 - Math.ceil(_local7 / 100);
if (stage[c].eyes._currentframe != 28) {
stage[c].eyes.gotoAndStop(29);
}
if (stage[c].mouth._currentframe != 14) {
stage[c].mouth.gotoAndStop(14);
}
if (_local3 < 1) {
_local3 = 1;
}
Propel(stage[c], getAngle(stage[c]._x, stage[c]._y, _local4, _local5), _local3);
if (_local7 < 20) {
playSound("Kyuh");
Delete(stage[c]);
} else if (_local7 < GameData.Characters[c].Scale) {
stage[c]._xscale = _local7;
stage[c]._yscale = _local7;
}
if (_local3 > 1) {
var _local8 = 90 - _local7;
if (stage[c].Spin < _local8) {
stage[c].Spin = stage[c].Spin + (_local3 * 3);
}
}
}
if ((stage["Gravity Well"]._visible && (stage[c]._visible)) && (GameData.Characters[stage[c]._name])) {
var _local2 = "Power";
if (GameData.Target._name == "Gravity Well") {
if (Key.isDown(16)) {
_local2 = "ShiftPower";
} else if (Key.isDown(17)) {
_local2 = "CtrlPower";
}
}
if (stage[c]._x < stage["Gravity Well"]._x) {
stage[c].XMov = stage[c].XMov + GameData.Toys["Gravity Well"][_local2];
} else {
stage[c].XMov = stage[c].XMov - GameData.Toys["Gravity Well"][_local2];
}
if (stage[c]._y < stage["Gravity Well"]._y) {
stage[c].YMov = stage[c].YMov + GameData.Toys["Gravity Well"][_local2];
} else {
stage[c].YMov = stage[c].YMov - GameData.Toys["Gravity Well"][_local2];
}
var _local7 = getDist(stage["Gravity Well"], stage[c]._x, stage[c]._y);
if (_local7 < 90) {
var _local8 = 90 - _local7;
if (stage[c].Spin < _local8) {
stage[c].Spin = stage[c].Spin + GameData.Toys["Gravity Well"][_local2];
}
}
}
if (stage[c].Doom > 0) {
if (stage[c].Doom > 30) {
if (stage[c].eyes._currentframe != 28) {
stage[c].eyes.gotoAndStop(29);
}
if (stage[c].mouth._currentframe != 14) {
stage[c].mouth.gotoAndStop(14);
}
} else if ((!stage[c].accessory._visible) || (stage[c].accessory._currentframe != 21)) {
playSound("Boom");
stage[c].accessory._visible = true;
stage[c].accessory.gotoAndStop(21);
}
stage[c].Doom--;
if (stage[c].Doom == 0) {
Delete(stage[c]);
}
}
if (((stage[c].Spin != 0) && (GameData.Target != stage[c])) || ((stage[c].Spin != 0) && (GameData.Action != "rotate"))) {
if (stage[c].Spin) {
stage[c]._rotation = stage[c]._rotation + stage[c].Spin;
}
if (stage[c].Spin > 0) {
stage[c].Spin = Math.floor(stage[c].Spin * GameData.Friction);
} else {
stage[c].Spin = Math.ceil(stage[c].Spin * GameData.Friction);
}
}
if (((stage[c].XMov != 0) && (GameData.Target != stage[c])) || ((stage[c].XMov != 0) && (GameData.Action != "drag"))) {
if (stage[c].XMov) {
if ((stage[c]._x + stage[c].XMov) < 0) {
stage[c]._x = 0;
stage[c].XMov = stage[c].XMov * -1;
} else if ((stage[c]._x + stage[c].XMov) > Stage.width) {
stage[c]._x = Stage.width;
stage[c].XMov = stage[c].XMov * -1;
} else {
stage[c]._x = stage[c]._x + stage[c].XMov;
if (stage[c] == GameData.Target) {
Manipulator._x = stage[c]._x;
}
}
}
if (stage[c]._name == "Gravity Well") {
if (stage[c].XMov > 0) {
stage[c].XMov = Math.floor(stage[c].XMov * GameData.Toys["Gravity Well"].Friction);
} else {
stage[c].XMov = Math.ceil(stage[c].XMov * GameData.Toys["Gravity Well"].Friction);
}
} else if (stage[c].XMov > 0) {
stage[c].XMov = Math.floor(stage[c].XMov * GameData.Friction);
} else {
stage[c].XMov = Math.ceil(stage[c].XMov * GameData.Friction);
}
}
if (((stage[c].YMov != 0) && (GameData.Target != stage[c])) || ((stage[c].YMov != 0) && (GameData.Action != "drag"))) {
if (stage[c].YMov) {
if ((stage[c]._y + stage[c].YMov) < 0) {
stage[c]._y = 0;
stage[c].YMov = stage[c].YMov * -1;
} else if ((stage[c]._y + stage[c].YMov) > Stage.height) {
stage[c]._y = Stage.height;
stage[c].YMov = stage[c].YMov * -1;
} else {
stage[c]._y = stage[c]._y + stage[c].YMov;
if (stage[c] == GameData.Target) {
Manipulator._y = stage[c]._y;
}
}
}
if (stage[c]._name == "Gravity Well") {
if (stage[c].YMov > 0) {
stage[c].YMov = Math.floor(stage[c].YMov * GameData.Toys["Gravity Well"].Friction);
} else {
stage[c].YMov = Math.ceil(stage[c].YMov * GameData.Toys["Gravity Well"].Friction);
}
} else if (stage[c].YMov > 0) {
stage[c].YMov = Math.floor(stage[c].YMov * GameData.Friction);
} else {
stage[c].YMov = Math.ceil(stage[c].YMov * GameData.Friction);
}
}
}
}
}
};
GameData.TextFormats = new Object();
GameData.TextFormats.Base = new TextFormat();
GameData.TextFormats.Base.font = "Wild Words";
GameData.TextFormats.Base.size = 14;
GameData.TextFormats.Header = new TextFormat();
GameData.TextFormats.Header.font = "Wild Words";
GameData.TextFormats.Header.size = 24;
GameData.TextFormats.Header.align = "center";
GameData.TextFormats.FURL = new TextFormat();
GameData.TextFormats.FURL.font = "Arial";
GameData.TextFormats.FURL.size = 14;
GameData.Frames = new Object();
addWindow("GeneralOptions", 100, 300, "Options");
addTextInput("GeneralOptions", "x", 15, 45, "X:", "isXLoc", 18, 20, 50);
addTextInput("GeneralOptions", "y", 95, 45, "Y:", "isYLoc", 18, 20, 50);
addTextInput("GeneralOptions", "s", 175, 45, "Scale:", "isScale", 18, 55, 50);
addTextInput("GeneralOptions", "r", 15, 70, "Rotation:", "isRotation", 18, 75, 50);
addButton("GeneralOptions", "CloseB", 160, 70, "Close", "CloseWindow");
addWindow("BlurSettings", 125, 300, "Blur Settings");
addTextInput("BlurSettings", "x", 15, 45, "X:", "isBlurX", 18, 20, 50);
addTextInput("BlurSettings", "y", 95, 45, "Y:", "isBlurY", 18, 20, 50);
addTextInput("BlurSettings", "q", 175, 45, "Quality:", "isBlurQ", 18, 65, 45);
addButton("BlurSettings", "ApplyB", 15, 70, "Apply", "SetFilter-Blur");
addButton("BlurSettings", "ClearB", 160, 70, "Clear", "ClearFilter-Blur");
addButton("BlurSettings", "CloseB", 10, 95, "Close", "CloseWindow");
addWindow("SnapshotOptions", 125, 300, "Snapshot Options");
addTextInput("SnapshotOptions", "x", 15, 45, "X:", "isXLoc", 18, 20, 50);
addTextInput("SnapshotOptions", "y", 95, 45, "Y:", "isYLoc", 18, 20, 50);
addTextInput("SnapshotOptions", "s", 175, 45, "Scale:", "isScale", 18, 55, 50);
addTextInput("SnapshotOptions", "r", 15, 70, "Rotation:", "isRotation", 18, 75, 50);
addTextInput("SnapshotOptions", "o", 160, 70, "Opacity:", "isAlpha", 18, 75, 50);
addButton("SnapshotOptions", "CloseB", 100, 95, "Close", "CloseWindow");
addWindow("RainOptions", 180, 300, "Rain Options");
addTextInput("RainOptions", "x", 15, 45, "X:", "isXLoc", 18, 20, 50);
addTextInput("RainOptions", "y", 95, 45, "Y:", "isYLoc", 18, 20, 50);
addTextInput("RainOptions", "s", 175, 45, "Scale:", "isScale", 18, 55, 50);
addTextInput("RainOptions", "r", 15, 70, "Rotation:", "isRotation", 18, 75, 50);
addTextInput("RainOptions", "d", 160, 70, "Density:", "isRDensity", 18, 65, 50);
addTextInput("RainOptions", "xmin", 15, 95, "X:", "isRXMin", 18, 15, 40);
addTextInput("RainOptions", "xmax", 75, 95, "-", "isRXMax", 18, 15, 40);
addTextInput("RainOptions", "ymin", 150, 95, "Y:", "isRYMin", 18, 15, 40);
addTextInput("RainOptions", "ymax", 210, 95, "-", "isRYMax", 18, 15, 40);
addTextInput("RainOptions", "tmin", 50, 120, "Twirl:", "isRTwirlMin", 18, 55, 40);
addTextInput("RainOptions", "tmax", 150, 120, "-", "isRTwirlMax", 18, 15, 40);
addButton("RainOptions", "CloseB", 100, 145, "Close", "CloseWindow");
addWindow("ClusterOptions", 190, 300, "Cluster Options");
addTextInput("ClusterOptions", "x", 15, 45, "X:", "isXLoc", 18, 20, 50);
addTextInput("ClusterOptions", "y", 95, 45, "Y:", "isYLoc", 18, 20, 50);
addTextInput("ClusterOptions", "s", 175, 45, "Scale:", "isScale", 18, 55, 50);
addTextInput("ClusterOptions", "r", 15, 70, "Rotation:", "isRotation", 18, 75, 50);
addTextInput("ClusterOptions", "dist", 155, 70, "Distance:", "isClusterDist", 18, 75, 50);
addTextInput("ClusterOptions", "sprl", 15, 93, "Spiral:", "isClusterSpiral", 18, 65, 50);
addTextInput("ClusterOptions", "rmod", 140, 93, "RMod:", "isClusterRMod", 18, 50, 50);
addTextInput("ClusterOptions", "rows", 15, 120, "Rows:", "isClusterRows", 18, 50, 30);
addTextInput("ClusterOptions", "cols", 100, 120, "Cols:", "isClusterCols", 18, 48, 30);
addButton("ClusterOptions", "CloseB", 185, 120, "Close", "CloseWindow");
addTextInput("ClusterOptions", "sd", 25, 146, "Start D.:", "isClusterSD", 18, 75, 40);
addTextInput("ClusterOptions", "sp", 150, 146, "Spread:", "isClusterSpread", 18, 70, 40);
addText("ClusterOptions", "dir", 25, 168, "Shot Direction:", 18, 150);
addButton("ClusterOptions", "cdir", 155, 168, "isClusterDir", "ClusterDir");
addWindow("ColorizeMenu", 175, 350, "Colorize Menu");
addTextInput("ColorizeMenu", "rgbc", 25, 120, "RGB Code:", "isRGB", 18, 85, 80);
addButton("ColorizeMenu", "RandomC", 10, 146, "Randomize", "SetRandomColor");
addButton("ColorizeMenu", "DefaultC", 120, 146, "Default", "SetDefaultColor");
addButton("ColorizeMenu", "CloseB", 230, 146, "Close", "CloseWindow");
for (i in GameData.Frames) {
makeFrame(i);
}
Interface.ColorizeMenu.createEmptyMovieClip("palette", 50);
Interface.ColorizeMenu.palette._x = 75;
Interface.ColorizeMenu.palette._y = 55;
Interface.ColorizeMenu.palette.attachMovie("ColorBar", "Rb", 1);
Interface.ColorizeMenu.palette.Rb.gotoAndStop(1);
Interface.ColorizeMenu.palette.attachMovie("Slider", "Rs", 2);
Interface.ColorizeMenu.palette.Rb._y = 5;
Interface.ColorizeMenu.palette.Rs._y = 5;
Interface.ColorizeMenu.palette.attachMovie("ColorBar", "Gb", 3);
Interface.ColorizeMenu.palette.attachMovie("Slider", "Gs", 4);
Interface.ColorizeMenu.palette.Gb.gotoAndStop(2);
Interface.ColorizeMenu.palette.Gb._y = 25;
Interface.ColorizeMenu.palette.Gs._y = 25;
Interface.ColorizeMenu.palette.attachMovie("ColorBar", "Bb", 5);
Interface.ColorizeMenu.palette.attachMovie("Slider", "Bs", 6);
Interface.ColorizeMenu.palette.Bb.gotoAndStop(3);
Interface.ColorizeMenu.palette.Bb._y = 45;
Interface.ColorizeMenu.palette.Bs._y = 45;
Interface.ColorizeMenu.palette.attachMovie("ColorPatch", "Cp", 7);
Interface.ColorizeMenu.palette.Cp._x = -60;
Interface.ColorizeMenu.palette.Rs.onPress = function () {
this.startDrag(false, 0, this._y, 255, this._y);
this.onEnterFrame = function () {
SwapPalette(this._parent);
};
};
setColorSliderRelease(Interface.ColorizeMenu.palette.Rs);
Interface.ColorizeMenu.palette.Gs.onPress = function () {
this.startDrag(false, 0, this._y, 255, this._y);
this.onEnterFrame = function () {
SwapPalette(this._parent);
};
};
setColorSliderRelease(Interface.ColorizeMenu.palette.Gs);
Interface.ColorizeMenu.palette.Bs.onPress = function () {
this.startDrag(false, 0, this._y, 255, this._y);
this.onEnterFrame = function () {
SwapPalette(this._parent);
};
};
setColorSliderRelease(Interface.ColorizeMenu.palette.Bs);
makeChar(GameData.DefaultChar);
makeNewMenu(Interface, "Level1Menu", 10);
makeNewMenu(Interface, "Level2Menu", 10);
makeNewMenu(Interface, "Level3Menu", 10);
Interface.HelpWindow.attachMovie("SpeechBubble", "EirinTalk", 1);
makePresetChar(Interface.HelpWindow, "Eirin", "Eirin", 2);
Interface.HelpWindow.Eirin.mouth._visible = true;
Interface.HelpWindow.Eirin.mouth.gotoAndStop(1);
makeMenu(Interface.HelpWindow, "BasicHelpMenu", 3, ["Nevermind", "The Basics", "Latest Updates", "User Manual", "Got Any Rumors?", "About This Program"], 0, 0);
Interface.HelpWindow.Eirin._xscale = -50;
Interface.HelpWindow.Eirin._yscale = 50;
Interface.HelpWindow.Eirin._x = 320;
Interface.HelpWindow.Eirin._y = 200;
Interface.HelpWindow.Eirin.onPress = function () {
this._parent.startDrag();
};
Interface.HelpWindow.Eirin.onRelease = function () {
this._parent.stopDrag();
};
Interface.HelpWindow.Eirin.onReleaseOutside = function () {
this._parent.stopDrag();
};
Interface.HelpWindow.EirinTalk.Bubble.gotoAndStop(1);
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Intro;
Interface.HelpWindow.EirinTalk.D._y = -25;
Interface.HelpWindow.EirinTalk.D._x = -225;
Interface.HelpWindow.EirinTalk.D._height = 300;
Interface.HelpWindow.EirinTalk.Bubble._rotation = 270;
Interface.HelpWindow.EirinTalk.Bubble._xscale = 120;
Interface.HelpWindow.EirinTalk.Bubble._yscale = 130;
Interface.HelpWindow.EirinTalk.Bubble._x = -110;
Interface.HelpWindow.EirinTalk.Bubble._y = 80;
Interface.HelpWindow.EirinTalk._x = 170;
PositionMenu(Interface.HelpWindow, "L", "T", 130, 100, null, null);
Interface.HelpWindow.attachMovie("Arrow", "Next", 4);
Interface.HelpWindow.Next._xscale = -50;
Interface.HelpWindow.Next._yscale = 50;
Interface.HelpWindow.Next._x = 75;
Interface.HelpWindow.Next._y = 190;
Interface.HelpWindow.Next._visible = false;
Interface.HelpWindow.attachMovie("WalfasLink", "WalfasLink", 5);
Interface.HelpWindow.WalfasLink._x = GameData.Help.WalfasLinkX;
Interface.HelpWindow.WalfasLink._y = GameData.Help.WalfasLinkY;
Interface.HelpWindow.WalfasLink._visible = false;
Interface.HelpWindow.attachMovie("MenuItem", "TellMore", 6);
Interface.HelpWindow.TellMore.bName.text = "Tell me more";
Interface.HelpWindow.TellMore.BG._width = 112;
Interface.HelpWindow.TellMore.bName._width = 112;
Interface.HelpWindow.TellMore._x = 0;
Interface.HelpWindow.TellMore._y = 160;
Interface.HelpWindow.TellMore._visible = false;
setButtonStyle(Interface.HelpWindow.TellMore);
Interface.HelpWindow.TellMore.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Rumors[random(GameData.Help.Rumors.length)];
playSound("Pop");
};
Interface.HelpWindow.BasicHelpMenu._y = 160;
Interface.HelpWindow.BasicHelpMenu._x = -28;
Interface.HelpWindow.BasicHelpMenu._visible = true;
for (b in Interface.HelpWindow.BasicHelpMenu) {
Interface.HelpWindow.BasicHelpMenu[b].BG._width = 200;
Interface.HelpWindow.BasicHelpMenu[b].bName._width = 200;
}
Interface.HelpWindow.BasicHelpMenu.ID0.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
CloseMenus(2);
};
Interface.HelpWindow.BasicHelpMenu.ID1.onRelease = function () {
this._parent._visible = false;
playSound("Pop");
Interface.HelpWindow.Next._visible = true;
SwapColor(this.BG, "Buttons", 1);
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Basics;
Interface.HelpWindow.Next.onRelease = function () {
resetHelp();
};
};
Interface.HelpWindow.BasicHelpMenu.ID2.onRelease = function () {
this._parent._visible = false;
playSound("Pop");
Interface.HelpWindow.Next._visible = true;
SwapColor(this.BG, "Buttons", 1);
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Updates;
Interface.HelpWindow.Next.onRelease = function () {
resetHelp();
};
};
Interface.HelpWindow.BasicHelpMenu.ID3.onRelease = function () {
getURL ("http://heavenlypandemonium.com/index.php?q=node/48", "_blank");
};
Interface.HelpWindow.BasicHelpMenu.ID4.onRelease = function () {
this._parent._visible = false;
playSound("Pop");
Interface.HelpWindow.Next._visible = true;
Interface.HelpWindow.TellMore._visible = true;
SwapColor(this.BG, "Buttons", 1);
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Rumors[random(GameData.Help.Rumors.length)];
Interface.HelpWindow.Next.onRelease = function () {
resetHelp();
};
};
Interface.HelpWindow.BasicHelpMenu.ID5.onRelease = function () {
this._parent._visible = false;
playSound("Pop");
Interface.HelpWindow.Next._visible = true;
Interface.HelpWindow.WalfasLink._visible = true;
SwapColor(this.BG, "Buttons", 1);
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.About;
Interface.HelpWindow.Next.onRelease = function () {
resetHelp();
};
};
makeButton(Interface, "MainMenu", "Menu", GameData.Menus.DMax++);
makeMenu(Interface, "StageMenu", GameData.Menus.DMax++, ["Shrink All", "Scramble!", "Randomize All"], 0, 0);
makeMenu(Interface, "GlobalLockMenu", GameData.Menus.DMax++, ["Unlock All", "Lock All", "Hats", "Items", "Accessory", "Back", "Shoes", "Arms", "Body", "Hair", "Eyes", "Mouth"], 30, 0);
makeMenu(Interface, "InsertMenu", GameData.Menus.DMax++, ["Speech Bubble", "Object"], 0, 0);
PositionMenu(Interface.MainMenu, "L", "B", 0, 3, null, null);
makeThumbMenu(Interface.PresetMenu, "PresetList", "HeadPreview", 20, 15, 20, 100, 100, "char");
PositionMenu(Interface.PresetMenu, "C", "C", 117, -238, Interface.MainMenu, Interface.MainMenu);
PositionMenu(Interface.GlobalLockMenu, "C", "C", 147, -20, Interface.MainMenu, Interface.MainMenu);
b = 0;
while (b < 12) {
Interface.GlobalLockMenu["ID" + b].BG._width = 120;
Interface.GlobalLockMenu["ID" + b].bName._width = 120;
if (b > 1) {
Interface.GlobalLockMenu["ID" + b].attachMovie("checkbox", "checkbox", 10);
Interface.GlobalLockMenu["ID" + b].checkbox.gotoAndStop(1);
Interface.GlobalLockMenu["ID" + b].checkbox._xscale = 75;
Interface.GlobalLockMenu["ID" + b].checkbox._yscale = 75;
Interface.GlobalLockMenu["ID" + b].checkbox._y = 10;
Interface.GlobalLockMenu["ID" + b].checkbox._x = 110;
Interface.GlobalLockMenu["ID" + b].onRelease = function () {
if (GameData.Locks[this.bName.text]) {
GameData.Locks[this.bName.text] = false;
this.checkbox.gotoAndStop(1);
} else {
GameData.Locks[this.bName.text] = true;
this.checkbox.gotoAndStop(2);
}
};
}
b++;
}
Interface.GlobalLockMenu.ID0.onRelease = function () {
l = 2;
while (l < 12) {
Interface.GlobalLockMenu["ID" + l].checkbox.gotoAndStop(1);
GameData.Locks[Interface.GlobalLockMenu["ID" + l].bName.text] = false;
if (GameData.MassLocking) {
for (i in GameData.Characters) {
GameData.Characters[i].Locks[Interface.GlobalLockMenu["ID" + l].bName.text] = false;
}
}
l++;
}
SwapColor(this.BG, "Buttons", 1);
};
Interface.GlobalLockMenu.ID1.onRelease = function () {
l = 2;
while (l < 12) {
Interface.GlobalLockMenu["ID" + l].checkbox.gotoAndStop(2);
GameData.Locks[Interface.GlobalLockMenu["ID" + l].bName.text] = true;
if (GameData.MassLocking) {
for (i in GameData.Characters) {
GameData.Characters[i].Locks[Interface.GlobalLockMenu["ID" + l].bName.text] = true;
}
}
l++;
}
SwapColor(this.BG, "Buttons", 1);
};
makeMenu(Interface, "Grouchy ReimuMenu", GameData.Menus.DMax++, ["Pay Money", "Hey Reimu!"], 0, Stage.height - 20);
makeMenu(Interface, "Gravity WellMenu", GameData.Menus.DMax++, ["Dismiss", "Settings"], 0, Stage.height - 20);
makeMenu(Interface, "Clone CapsuleMenu", GameData.Menus.DMax++, ["Disassemble", "Activate!", "Eject", "Tinker", "DNA Data"], 0, Stage.height - 20);
makeMenu(Interface, "Clone CapsuleEmptyMenu", GameData.Menus.DMax++, ["Disassemble", "Input DNA", "Tinker"], 0, Stage.height - 20);
makeMenu(Interface, "Boxing ChenMenu", GameData.Menus.DMax++, ["Send Home"], 0, Stage.height - 20);
makeMenu(Interface, "Mysterious GapMenu", GameData.Menus.DMax++, ["Dismiss"], 0, Stage.height - 20);
makeMenu(Interface, "BubbleMenu", GameData.Menus.DMax++, ["Delete", "Edit Text", "Bring to Front", "Bring Forward", "Send Backwards", "Send to Back", "Vertical Flip", "Horizontal Flip", "Settings"], 0, Stage.height - 20);
PositionMenu(Interface.BubbleMenu, "C", "C", 30, -20, Interface.TargetFrame, Interface.TargetFrame);
Interface.BubbleMenu.ID0.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
CloseMenus(1);
GameData.SpeechBubbles[GameData.Target] = undefined;
GameData.Target.removeMovieClip();
Target();
};
Interface.BubbleMenu.ID1.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
CloseMenus(1);
editBubble(GameData.Target);
};
Interface.BubbleMenu.ID2.onRelease = function () {
BringToFront(GameData.Target);
SwapColor(this.BG, "Buttons", 1);
};
Interface.BubbleMenu.ID3.onRelease = function () {
BringForward(GameData.Target);
SwapColor(this.BG, "Buttons", 1);
};
Interface.BubbleMenu.ID4.onRelease = function () {
SendBackward(GameData.Target);
SwapColor(this.BG, "Buttons", 1);
};
Interface.BubbleMenu.ID5.onRelease = function () {
SendToBack(GameData.Target);
SwapColor(this.BG, "Buttons", 1);
};
Interface.BubbleMenu.ID6.onRelease = function () {
GameData.Target.Bubble.YFace = GameData.Target.Bubble.YFace * -1;
GameData.Target.Bubble._yscale = GameData.Target.Bubble._yscale * -1;
SwapColor(this.BG, "Buttons", 1);
};
Interface.BubbleMenu.ID7.onRelease = function () {
GameData.Target.Bubble.XFace = GameData.Target.Bubble.XFace * -1;
GameData.Target.Bubble._xscale = GameData.Target.Bubble._xscale * -1;
SwapColor(this.BG, "Buttons", 1);
};
Interface.BubbleMenu.ID8.onRelease = function () {
OpenMenu(1, Interface.BubbleWindow, this.BG);
Interface.BubbleWindow.gX.text = GameData.Target._x;
Interface.BubbleWindow.gY.text = GameData.Target._y;
Interface.BubbleWindow.gXs.text = GameData.Target._xscale;
Interface.BubbleWindow.gYs.text = GameData.Target._yscale;
Interface.BubbleWindow.gR.text = GameData.Target._rotation;
Interface.BubbleWindow.bX.text = GameData.Target.Bubble._x;
Interface.BubbleWindow.bY.text = GameData.Target.Bubble._y;
Interface.BubbleWindow.bXs.text = GameData.Target.Bubble._xscale;
Interface.BubbleWindow.bYs.text = GameData.Target.Bubble._yscale;
Interface.BubbleWindow.bR.text = GameData.Target.Bubble._rotation;
Interface.BubbleWindow.tX.text = GameData.Target.D._x;
Interface.BubbleWindow.tY.text = GameData.Target.D._y;
Interface.BubbleWindow.tR.text = GameData.Target.D._rotation;
};
PositionMenu(Interface.BubbleWindow, "C", "C", -50, -300, Interface.TargetFrame, Interface.TargetFrame);
Interface.BubbleWindow.BG._alpha = GameData.Buttons.Opacity;
setBGDrag(Interface.BubbleWindow.BG);
makeButton(Interface.BubbleWindow, "Set", "set", 151);
Interface.BubbleWindow.Set._x = 340;
Interface.BubbleWindow.Set._y = 220;
setButtonStyle(Interface.BubbleWindow.Set);
Interface.BubbleWindow.Set.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
GameData.Target._x = Number(Interface.BubbleWindow.gX.text);
GameData.Target._y = Number(Interface.BubbleWindow.gY.text);
GameData.Target._xscale = Number(Interface.BubbleWindow.gXs.text);
GameData.Target._yscale = Number(Interface.BubbleWindow.gYs.text);
GameData.Target._rotation = Number(Interface.BubbleWindow.gR.text);
GameData.Target.Bubble._x = Number(Interface.BubbleWindow.bX.text);
GameData.Target.Bubble._y = Number(Interface.BubbleWindow.bY.text);
GameData.Target.Bubble._xscale = Number(Interface.BubbleWindow.bXs.text);
GameData.Target.Bubble._yscale = Number(Interface.BubbleWindow.bYs.text);
GameData.Target.Bubble._rotation = Number(Interface.BubbleWindow.bR.text);
GameData.Target.D._x = Number(Interface.BubbleWindow.tX.text);
GameData.Target.D._y = Number(Interface.BubbleWindow.tY.text);
GameData.Target.D._rotation = Number(Interface.BubbleWindow.tR.text);
};
makeButton(Interface.BubbleWindow, "Close", "close", 152);
Interface.BubbleWindow.Close._x = 340;
Interface.BubbleWindow.Close._y = 240;
setButtonStyle(Interface.BubbleWindow.Close);
Interface.BubbleWindow.Close.onRelease = function () {
CloseMenus(1);
};
PositionMenu(Interface["Grouchy ReimuMenu"], "C", "C", 30, -20, Interface.TargetFrame, Interface.TargetFrame);
Interface["Grouchy ReimuMenu"].ID0.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
playSound("Cash");
stage["Grouchy Reimu"]._visible = false;
CloseMenus(1);
Target();
};
Interface["Grouchy ReimuMenu"].ID1.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
HaxSignBE();
CloseMenus(1);
};
PositionMenu(Interface["Gravity WellMenu"], "C", "C", 30, -20, Interface.TargetFrame, Interface.TargetFrame);
Interface["Gravity WellMenu"].ID0.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
stage["Gravity Well"]._visible = false;
CloseMenus(1);
Target();
};
Interface["Gravity WellMenu"].ID1.onRelease = function () {
Interface.GravMenu.Fr.text = 0;
Interface.GravMenu.P.text = GameData.Toys["Gravity Well"].Power;
Interface.GravMenu.sP.text = GameData.Toys["Gravity Well"].ShiftPower;
Interface.GravMenu.cP.text = GameData.Toys["Gravity Well"].CtrlPower;
OpenMenu(1, Interface.GravMenu, this.BG);
};
PositionMenu(Interface["Boxing ChenMenu"], "C", "C", 30, -20, Interface.TargetFrame, Interface.TargetFrame);
Interface["Boxing ChenMenu"].ID0.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
stage["Boxing Chen"]._visible = false;
resetBoxingChen();
CloseMenus(1);
Target();
};
PositionMenu(Interface["Mysterious GapMenu"], "C", "C", 30, -20, Interface.TargetFrame, Interface.TargetFrame);
Interface["Mysterious GapMenu"].ID0.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
stage["Mysterious Gap"]._visible = false;
CloseMenus(1);
Target();
};
PositionMenu(Interface["Clone CapsuleMenu"], "C", "C", 30, -20, Interface.TargetFrame, Interface.TargetFrame);
PositionMenu(Interface["Clone CapsuleEmptyMenu"], "C", "C", 30, -20, Interface.TargetFrame, Interface.TargetFrame);
Interface["Clone CapsuleMenu"].ID0.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
stage["Clone Capsule"]._visible = false;
CloseMenus(1);
Target();
};
Interface["Clone CapsuleEmptyMenu"].ID0.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
stage["Clone Capsule"]._visible = false;
CloseMenus(1);
Target();
};
Interface["Clone CapsuleMenu"].ID1.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
activateCloneCapsule();
};
Interface["Clone CapsuleMenu"].ID2.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
ejectCloneCapsule();
CloseMenus(1);
};
Interface["Clone CapsuleMenu"].ID3.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
tinkerCloneCapsule();
};
Interface["Clone CapsuleMenu"].ID4.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
showDNAstrand(GameData.Toys["Clone Capsule"].Char);
};
Interface["Clone CapsuleEmptyMenu"].ID1.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
openDNAInput();
};
Interface["Clone CapsuleEmptyMenu"].ID2.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
tinkerCloneCapsule();
};
makeMenu(Interface, "LockMenu", GameData.Menus.DMax++, ["Hats", "Items", "Accessory", "Back", "Shoes", "Arms", "Body", "Hair", "Eyes", "Mouth"], 85, Stage.height - 60);
PositionMenu(Interface.TargetFrame, "C", "C", 200, -5, Interface.MainMenu, Interface.MainMenu);
addPinPreview(Interface.TargetFrame);
Interface.TargetFrame._visible = false;
setButtonStyle(Interface.TargetFrame);
PositionMenu(Interface.LockMenu, "C", "C", 90, -20, Interface.TargetFrame, Interface.TargetFrame);
b = 0;
while (b < 10) {
Interface.LockMenu["ID" + b].BG._width = 120;
Interface.LockMenu["ID" + b].bName._width = 120;
Interface.LockMenu["ID" + b].attachMovie("checkbox", "checkbox", 10);
Interface.LockMenu["ID" + b].checkbox.gotoAndStop(1);
Interface.LockMenu["ID" + b].checkbox._xscale = 75;
Interface.LockMenu["ID" + b].checkbox._yscale = 75;
Interface.LockMenu["ID" + b].checkbox._y = 10;
Interface.LockMenu["ID" + b].checkbox._x = 110;
Interface.LockMenu["ID" + b].onRelease = function () {
if (GameData.Characters[GameData.Target._name].Locks[this.bName.text]) {
GameData.Characters[GameData.Target._name].Locks[this.bName.text] = false;
this.checkbox.gotoAndStop(1);
} else {
GameData.Characters[GameData.Target._name].Locks[this.bName.text] = true;
this.checkbox.gotoAndStop(2);
}
};
b++;
}
PositionMenu(Interface.DNAMenu, "C", "C", -140, -230, Interface.TargetFrame, Interface.TargetFrame);
Interface.DNAMenu.BG._alpha = GameData.Buttons.Opacity;
makeButton(Interface.DNAMenu, "OK", "test", 50);
setButtonStyle(Interface.DNAMenu.OK);
Interface.DNAMenu.OK._x = 140;
Interface.DNAMenu.OK._y = 53;
Interface.DNAMenu.DNAdata.onSetFocus = function () {
GameData.KeyLock = true;
};
Interface.DNAMenu.DNAdata.onKillFocus = function () {
GameData.KeyLock = false;
};
makeThumbMenu(Interface.HatMenu, "Hats", "Hats", 10, 70, 20, 146, -238, "hat");
makeThumbMenu(Interface.ItemMenu, "Items", "Items", 10, 0, 20, 146, -238, "item");
makeThumbMenu(Interface.AccMenu, "Acc", "Acc", 5, 0, 20, 146, -238, "accessory");
makeThumbMenu(Interface.BackMenu, "Back", "Wings", -5, -20, 14, 146, -238, "wings");
makeThumbMenu(Interface.ShoesMenu, "Shoes", "Shoes", 20, 10, 30, 146, -238, "legs");
makeThumbMenu(Interface.ArmsMenu, "Arms", "Arms", 20, 26, 20, 146, -238, "arms");
makeThumbMenu(Interface.BodyMenu, "Body", "Body", 20, 20, 14, 146, -238, "body");
makeThumbMenu(Interface.HairMenu, "Hair", "Hair", 20, 30, 8, 146, -238, "head");
makeThumbMenu(Interface.EyesMenu, "Eyes", "Eyes", 20, 35, 15, 146, -238, "eyes");
makeThumbMenu(Interface.MouthMenu, "Mouth", "Mouth", 20, 35, 15, 146, -238, "mouth");
makeThumbMenu(Interface.ObjectList, "ObjectArray", "Objects", 10, 10, 10, 64, -253, "object");
SwapColor(Interface.BGMenu.BG, "Buttons", 0);
Interface.BGMenu.BG._alpha = GameData.Buttons.Opacity;
makeThumbMenu(Interface.BGMenu, "BGs", "Background", 0, 0, 5, 100, -370, "");
Interface.BGMenu.SMod = 50;
Interface.BGMenu.Ops._x = -20;
Interface.BGMenu.DaMask._x = -20;
Interface.BGMenu.Ops._y = 50;
Interface.BGMenu.DaMask._y = 50;
Interface.BGMenu.sX.text = 100;
Interface.BGMenu.sY.text = 100;
Interface.BGMenu.Fr.text = (1 - GameData.Friction) * 100;
Interface.BGMenu.Br.text = 100;
if (GameData.BGAutoScale) {
Interface.BGMenu.AScheck.gotoAndStop(2);
} else {
Interface.BGMenu.AScheck.gotoAndStop(1);
}
Interface.BGMenu.AScheck.onRelease = function () {
if (GameData.BGAutoScale) {
GameData.BGAutoScale = false;
Interface.BGMenu.AScheck.gotoAndStop(1);
} else {
GameData.BGAutoScale = true;
Interface.BGMenu.AScheck.gotoAndStop(2);
}
};
makeButton(Interface.BGMenu, "BGSetButton", "Set", 50);
Interface.BGMenu.BGSetButton._x = 280;
Interface.BGMenu.BGSetButton._y = 270;
Interface.BGMenu.BGSetButton.onRelease = function () {
setBGProperties();
SwapColor(this.BG, "Buttons", 1);
};
makeButton(Interface.BGMenu, "BGDefButton", "Default", 51);
Interface.BGMenu.BGDefButton._x = 280;
Interface.BGMenu.BGDefButton._y = 250;
Interface.BGMenu.BGDefButton.onRelease = function () {
this._parent.lX.text = 0;
this._parent.lY.text = 0;
this._parent.sX.text = 100;
this._parent.sY.text = 100;
this._parent.rD.text = 0;
this._parent.Fr.text = 10;
this._parent.Br.text = 100;
setBGProperties();
SwapColor(this.BG, "Buttons", 1);
};
Interface.BGMenu.Prev.onRelease = function () {
if ((GameData.BG - 1) < 0) {
SwapBG(GameData.BGs.length - 2);
} else {
SwapBG(GameData.BG - 1);
}
};
Interface.BGMenu.Next.onRelease = function () {
if ((GameData.BG + 1) > (GameData.BGs.length - 2)) {
SwapBG(0);
} else {
SwapBG(GameData.BG + 1);
}
};
PositionMenu(Interface.GravMenu, "C", "C", 140, -280, Interface.MainMenu, Interface.MainMenu);
Interface.GravMenu.BG._alpha = GameData.Buttons.Opacity;
setBGDrag(Interface.GravMenu.BG);
makeButton(Interface.GravMenu, "Close", "set", 151);
Interface.GravMenu.Close._x = 20;
Interface.GravMenu.Close._y = 110;
setButtonStyle(Interface.GravMenu.Close);
Interface.GravMenu.Close.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
GameData.Toys["Gravity Well"].Friction = getFriction(Number(this._parent.Fr.text));
GameData.Toys["Gravity Well"].Power = Number(this._parent.P.text);
GameData.Toys["Gravity Well"].ShiftPower = Number(this._parent.sP.text);
GameData.Toys["Gravity Well"].CtrlPower = Number(this._parent.cP.text);
CloseMenus(1);
};
PositionMenu(Interface.OpsMenu, "C", "C", 150, -300, Interface.MainMenu, Interface.MainMenu);
Interface.OpsMenu.BG._alpha = GameData.Buttons.Opacity;
setBGDrag(Interface.OpsMenu.BG);
i = 0;
while (i < 10) {
Interface.OpsMenu.attachMovie("checkbox", "ID" + i, i);
Interface.OpsMenu["ID" + i]._x = 30;
Interface.OpsMenu["ID" + i]._y = (i * 19) + 72;
Interface.OpsMenu["ID" + i]._xscale = 90;
Interface.OpsMenu["ID" + i]._yscale = 90;
i++;
}
OpsCheckHandler(0, "ClickStopsSpin");
OpsCheckHandler(1, "Mute");
OpsCheckHandler(2, "PresetWithItems");
OpsCheckHandler(3, "MassLocking");
OpsCheckHandler(4, "OldQS");
OpsCheckHandler(5, "KeepColors");
OpsCheckHandler(6, "HeadRotates");
OpsCheckHandler(7, "SwitchArrows");
OpsCheckHandler(8, "KeylockPinned");
Interface.OpsMenu.ID9.onRelease = function () {
if (GameData.UntargetablePinned) {
GameData.UntargetablePinned = false;
this.gotoAndStop(1);
for (n in GameData.Characters) {
if (stage[n].Pin) {
AddClickHandler(stage[n], "Character");
}
}
for (n in GameData.SpeechBubbles) {
if (stage[n].Pin) {
AddClickHandler(stage[n], "SpeechBubble");
}
}
for (n in GameData.Objects) {
if (stage[n].Pin) {
AddClickHandler(stage[n], "Object");
}
}
for (n in GameData.Clusters) {
if (stage[n].Pin) {
AddClickHandler(stage[n], "Cluster");
}
}
for (n in GameData.Rain) {
if (stage[n].Pin) {
AddClickHandler(stage[n], "Rain");
}
}
} else {
GameData.UntargetablePinned = true;
this.gotoAndStop(2);
for (n in GameData.Characters) {
if (stage[n].Pin) {
RemoveClickHandler(stage[n], "Character");
}
}
for (n in GameData.SpeechBubbles) {
if (stage[n].Pin) {
RemoveClickHandler(stage[n], "SpeechBubble");
}
}
for (n in GameData.Objects) {
if (stage[n].Pin) {
RemoveClickHandler(stage[n], "Object");
}
}
for (n in GameData.Clusters) {
if (stage[n].Pin) {
RemoveClickHandler(stage[n], "Cluster");
}
}
for (n in GameData.Rain) {
if (stage[n].Pin) {
RemoveClickHandler(stage[n], "Rain");
}
}
}
my_so.data.UntargetablePinned = GameData.UntargetablePinned;
my_so.flush();
};
Interface.OpsMenu.dChar.onSetFocus = function () {
GameData.KeyLock = true;
};
Interface.OpsMenu.dChar.onKillFocus = function () {
GameData.DefaultChar = Interface.OpsMenu.dChar.text;
my_so.data.DefaultChar = GameData.DefaultChar;
my_so.flush();
GameData.KeyLock = false;
};
Interface.OpsMenu.aSpeed.onSetFocus = function () {
GameData.KeyLock = true;
};
Interface.OpsMenu.aSpeed.onKillFocus = function () {
GameData.ASpeed = Number(Interface.OpsMenu.aSpeed.text);
my_so.data.ASpeed = GameData.ASpeed;
my_so.flush();
GameData.KeyLock = false;
};
makeButton(Interface.OpsMenu, "Close", "close", 151);
Interface.OpsMenu.Close._x = 330;
Interface.OpsMenu.Close._y = 190;
setButtonStyle(Interface.OpsMenu.Close);
Interface.OpsMenu.Close.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
CloseMenus(1);
};
PositionMenu(Interface.COMenu, "C", "C", -100, -350, Interface.TargetFrame, Interface.TargetFrame);
Interface.COMenu.BG._alpha = GameData.Buttons.Opacity;
Interface.COMenu.BG.onPress = function () {
this._parent.startDrag();
};
Interface.COMenu.BG.onRelease = function () {
this._parent.stopDrag();
};
Interface.COMenu.BG.onReleaseOutside = function () {
this._parent.stopDrag();
};
Interface.COMenu.cName.onSetFocus = function () {
GameData.KeyLock = true;
};
Interface.COMenu.cName.onKillFocus = function () {
GameData.KeyLock = false;
};
Interface.COMenu.Prev.onRelease = function () {
QuickSwap(GameData.Target, -1, "All");
setCharLook(this._parent.char, GameData.Characters[GameData.Target._name]);
};
Interface.COMenu.Next.onRelease = function () {
QuickSwap(GameData.Target, 1, "All");
setCharLook(this._parent.char, GameData.Characters[GameData.Target._name]);
};
GameData.PartsArray = new Array("Hats", "Eyes", "Mouth", "Hair", "Body", "Arms", "Shoes", "Back", "Accessory", "Items");
i = 0;
while (i < GameData.PartsArray.length) {
Interface.COMenu.attachMovie("Arrow", "Prev" + i, i * 3);
Interface.COMenu["Prev" + i]._xscale = 35;
Interface.COMenu["Prev" + i]._yscale = 35;
Interface.COMenu["Prev" + i]._y = (i * 21) + 9;
Interface.COMenu["Prev" + i]._x = 250;
Interface.COMenu["Prev" + i].ID = GameData.PartsArray[i];
Interface.COMenu["Prev" + i].onRelease = function () {
QuickSwap(GameData.Target, -1, this.ID);
setCharLook(this._parent.char, GameData.Characters[GameData.Target._name]);
};
Interface.COMenu.attachMovie("Arrow", "Next" + i, (i * 3) + 2);
Interface.COMenu["Next" + i]._xscale = -35;
Interface.COMenu["Next" + i]._yscale = 35;
Interface.COMenu["Next" + i]._y = (i * 21) + 9;
Interface.COMenu["Next" + i]._x = 385;
Interface.COMenu["Next" + i].ID = GameData.PartsArray[i];
Interface.COMenu["Next" + i].onRelease = function () {
QuickSwap(GameData.Target, 1, this.ID);
setCharLook(this._parent.char, GameData.Characters[GameData.Target._name]);
};
Interface.COMenu.attachMovie("checkbox", "Lock" + i, (i * 3) + 1);
Interface.COMenu["Lock" + i]._xscale = 75;
Interface.COMenu["Lock" + i]._yscale = 75;
Interface.COMenu["Lock" + i]._y = (i * 21) + 17;
Interface.COMenu["Lock" + i]._x = 363;
Interface.COMenu["Lock" + i].ID = GameData.PartsArray[i];
Interface.COMenu["Lock" + i].IDnum = i;
Interface.COMenu["Lock" + i].onRelease = function () {
if (GameData.Characters[GameData.Target._name].Locks[this.ID]) {
GameData.Characters[GameData.Target._name].Locks[this.ID] = false;
this._parent["Prev" + this.IDnum]._visible = true;
this._parent["Next" + this.IDnum]._visible = true;
this.gotoAndStop(1);
} else {
GameData.Characters[GameData.Target._name].Locks[this.ID] = true;
this._parent["Prev" + this.IDnum]._visible = false;
this._parent["Next" + this.IDnum]._visible = false;
this.gotoAndStop(2);
}
};
i++;
}
makeButton(Interface.COMenu, "Set", "set", 150);
Interface.COMenu.Set._x = 140;
Interface.COMenu.Set._y = 250;
setButtonStyle(Interface.COMenu.Set);
Interface.COMenu.Set.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
GameData.Characters[GameData.Target._name].Name = Interface.COMenu.cName.text;
Interface.TargetFrame.bName.text = Interface.COMenu.cName.text;
if (Interface.COMenu.cScale.text < GameData.ScaleLimit) {
Interface.COMenu.cScale.text = GameData.ScaleLimit;
}
GameData.Characters[GameData.Target._name].Scale = Number(Interface.COMenu.cScale.text);
GameData.Target._xscale = GameData.Characters[GameData.Target._name].Scale * GameData.Target.XFace;
GameData.Target._yscale = GameData.Characters[GameData.Target._name].Scale * GameData.Target.YFace;
GameData.Target._rotation = Interface.COMenu.cRot.text;
GameData.Target._x = Interface.COMenu.cX.text;
GameData.Target._y = Interface.COMenu.cY.text;
};
makeButton(Interface.COMenu, "Close", "close", 151);
Interface.COMenu.Close._x = -20;
Interface.COMenu.Close._y = 250;
setButtonStyle(Interface.COMenu.Close);
Interface.COMenu.Close.onRelease = function () {
SwapColor(this.BG, "Buttons", 1);
CloseMenus(1);
};
makeMenu(Interface.COMenu, "SideOps", 152, ["Bring Forward", "Send Backwards", "Vertical Flip", "Horizontal Flip", "Unlock All", "Lock All", "Randomize"], 0, 0);
Interface.COMenu.SideOps._x = -20;
Interface.COMenu.SideOps._y = 170;
Interface.COMenu.SideOps._visible = true;
Interface.COMenu.SideOps.ID0.onRelease = function () {
BringForward(GameData.Target);
SwapColor(this.BG, "Buttons", 1);
};
Interface.COMenu.SideOps.ID1.onRelease = function () {
SendBackward(GameData.Target);
SwapColor(this.BG, "Buttons", 1);
};
Interface.COMenu.SideOps.ID2.onRelease = function () {
GameData.Target._yscale = GameData.Target._yscale * -1;
GameData.Target.YFace = GameData.Target.YFace * -1;
SwapColor(this.BG, "Buttons", 1);
};
Interface.COMenu.SideOps.ID3.onRelease = function () {
GameData.Target._xscale = GameData.Target._xscale * -1;
GameData.Target.XFace = GameData.Target.XFace * -1;
SwapColor(this.BG, "Buttons", 1);
};
Interface.COMenu.SideOps.ID4.onRelease = function () {
i = 0;
while (i < GameData.PartsArray.length) {
GameData.Characters[GameData.Target._name].Locks[GameData.PartsArray[i]] = false;
Interface.COMenu["Prev" + i]._visible = true;
Interface.COMenu["Next" + i]._visible = true;
Interface.COMenu["Lock" + i].gotoAndStop(1);
i++;
}
};
Interface.COMenu.SideOps.ID5.onRelease = function () {
i = 0;
while (i < GameData.PartsArray.length) {
GameData.Characters[GameData.Target._name].Locks[GameData.PartsArray[i]] = true;
Interface.COMenu["Prev" + i]._visible = false;
Interface.COMenu["Next" + i]._visible = false;
Interface.COMenu["Lock" + i].gotoAndStop(2);
i++;
}
};
Interface.COMenu.SideOps.ID6.onRelease = function () {
RandomizeAll(GameData.Target);
setCharLook(Interface.COMenu.char, GameData.Characters[GameData.Target._name]);
};
setKeyLocks(Interface.COMenu.cName);
setKeyLocks(Interface.COMenu.cScale);
setKeyLocks(Interface.COMenu.cRot);
setKeyLocks(Interface.COMenu.cX);
setKeyLocks(Interface.COMenu.cY);
PositionMenu(Interface.RenameMenu, "C", "C", 0, -200, Interface.TargetFrame, Interface.TargetFrame);
Interface.RenameMenu.BG._alpha = GameData.Buttons.Opacity;
makeButton(Interface.RenameMenu, "OK", "OK", 10);
Interface.RenameMenu.OK._x = 50;
Interface.RenameMenu.OK._y = 35;
Interface.RenameMenu.iName.onSetFocus = function () {
GameData.KeyLock = true;
};
Interface.RenameMenu.iName.onKillFocus = function () {
GameData.KeyLock = false;
};
fixScales();
setMenuPositions();
GameData.Menus.baseH = Interface._height;
GameData.Menus.baseW = Interface._width;
Interface.MainMenu.onRelease = function () {
SetMenu(1, "MainMenu", this, 0, 0);
};
fixMenuDepths(["BGMenu", "HatMenu", "EyesMenu", "BodyMenu", "ShoesMenu", "ArmsMenu", "AccMenu", "ItemMenu", "HairMenu", "BackMenu", "MouthMenu", "ObjectList", "RenameMenu", "HelpWindow", "BubbleWindow"]);
Interface.TargetFrame.BG._width = 170;
Interface.TargetFrame.bName._width = 170 - Interface.TargetFrame.bName._x;
Interface.TargetFrame.attachMovie("TargetFramePreview", "preview", 10);
Interface.TargetFrame.preview._x = 10;
Interface.TargetFrame.preview._y = 10;
Interface.TargetFrame.preview._xscale = 40;
Interface.TargetFrame.preview._yscale = 40;
if ((my_so.data.Version < GameData.Version) || (my_so.data.Version == undefined)) {
GameData.Menus.Functions.OpenHelp();
Interface.HelpWindow.BasicHelpMenu._visible = false;
playSound("Pop");
Interface.HelpWindow.Next._visible = true;
SwapColor(this.BG, "Buttons", 1);
Interface.HelpWindow.EirinTalk.D.text = GameData.Help.Updates;
Interface.HelpWindow.Next.onRelease = function () {
resetHelp();
};
my_so.data.Version = GameData.Version;
my_so.flush();
}
GameData.Pong.Top = 50;
GameData.Pong.Bottom = 360;
Symbol 10 Button
on (release) {
getURL ("http://www.walfas.org/", "_blank");
}
Instance of Symbol 81 MovieClip [BGBox] "closeB" in Symbol 82 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
on (release) {
_parent._visible = false;
}
Instance of Symbol 81 MovieClip [BGBox] "dragBar" in Symbol 82 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
on (releaseOutside) {
_parent.stopDrag();
}
Instance of Symbol 116 MovieClip in Symbol 138 MovieClip [Wings] Frame 29
onClipEvent (enterFrame) {
this._rotation = this._rotation - 30;
}
Instance of Symbol 731 MovieClip in Symbol 732 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 6;
}
Instance of Symbol 731 MovieClip in Symbol 732 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.5;
}
Symbol 1124 MovieClip Frame 1
stop();
Instance of Symbol 1204 MovieClip in Symbol 1237 MovieClip [Acc] Frame 51
onClipEvent (enterFrame) {
this._rotation = this._rotation + 7.5;
}
Instance of Symbol 1206 MovieClip in Symbol 1237 MovieClip [Acc] Frame 51
onClipEvent (enterFrame) {
this._rotation = this._rotation - 5;
}
Instance of Symbol 1238 MovieClip [Char] "char" in Symbol 1248 MovieClip [Toys] Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
head.HairColor.gotoAndStop(2);
head2._visible = false;
mouth._visible = false;
legs.gotoAndStop(2);
body.gotoAndStop(2);
arms.gotoAndStop(2);
item.gotoAndStop(22);
hat.gotoAndStop(2);
eyes.gotoAndStop(13);
head.eye2._visible = false;
accessory._visible = false;
wings._visible = false;
this._xscale = 50;
this._yscale = 50;
}
Instance of Symbol 116 MovieClip in Symbol 1248 MovieClip [Toys] Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation - 30;
}
Instance of Symbol 1248 MovieClip [Toys] "fusion1" in Symbol 1249 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
this.lights.gotoAndStop(3);
this.char._visible = false;
}
onClipEvent (enterFrame) {
if (this.DB > 0) {
this.DB--;
}
}
on (press) {
if (this.DB > 0) {
_root.ejectFusionTank(1);
this.DB = 0;
} else {
this.DB = _root.GameData.DCrate;
}
}
Instance of Symbol 1248 MovieClip [Toys] "fusion2" in Symbol 1249 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
this.lights.gotoAndStop(3);
this.char._visible = false;
}
onClipEvent (enterFrame) {
if (this.DB > 0) {
this.DB--;
}
}
on (press) {
if (this.DB > 0) {
_root.ejectFusionTank(2);
this.DB = 0;
} else {
this.DB = _root.GameData.DCrate;
}
}
Instance of Symbol 1248 MovieClip [Toys] "fusion3" in Symbol 1249 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(4);
this.lights.gotoAndStop(3);
this.char._visible = false;
}
onClipEvent (enterFrame) {
if (this.DB > 0) {
this.DB--;
}
}
on (press) {
if (this.DB > 0) {
if (this.char._visible) {
_root.ejectFusionTank(3);
} else if (_parent.fusion1.char._visible && (_parent.fusion2.char._visible)) {
_root.activateFusion();
}
this.DB = 0;
} else {
this.DB = _root.GameData.DCrate;
}
}
Symbol 1365 MovieClip [Background] Frame 23
amount = 100;
mWidth = Stage.width;
mHeight = Stage.height;
var i = 0;
while (i < amount) {
this.attachMovie("flake", "flake" + i, i);
this["flake" + i]._x = Math.random() * mWidth;
this["flake" + i]._y = Math.random() * mHeight;
this["flake" + i]._xscale = (this["flake" + i]._yscale = (this["flake" + i]._alpha = 40 + (Math.random() * 60)));
this["flake" + i].yspeed = (Math.random() * 2) + 0.1;
this["flake" + i].increment = -0.025 + (Math.random() * 0.05);
this["flake" + i].onEnterFrame = function () {
if (_root.bg._currentframe == 23) {
this.radians = this.radians + this.increment;
this._y = this._y + this.yspeed;
this._x = this._x + Math.sin(this.radians);
if (this._y >= mHeight) {
this._y = -10;
this._x = -10 + (Math.random() * mWidth);
}
if ((this._x >= mWidth) || (this._x <= 0)) {
this._y = -10;
this._x = -10 + (Math.random() * mWidth);
}
} else {
this._x = 0;
this._y = 0;
}
};
i++;
}
Instance of Symbol 73 MovieClip in Symbol 1365 MovieClip [Background] Frame 38
onClipEvent (enterFrame) {
if (this.DB > 0) {
this.DB--;
}
}
on (press) {
if (this.DB > 0) {
k = 0;
while (k < 9) {
var MC = _root.makeChar("Cirno");
_root.GameData.Characters[MC._name].Scale = 40;
MC._xscale = 40;
MC._yscale = 40;
_root.Scramble(MC);
k++;
}
this.DB = 0;
} else {
this.DB = _root.GameData.DCrate;
}
}
Instance of Symbol 75 MovieClip in Symbol 1365 MovieClip [Background] Frame 38
onClipEvent (enterFrame) {
if (this.DB > 0) {
this.DB--;
}
}
on (press) {
if (this.DB > 0) {
if (!_parent.chatW._visible) {
_parent.chatW._visible = true;
_parent.chatW.chat.text = "";
_root.GameData.Chat.Active = true;
_root.GameData.Chat.Doom = 0;
}
this.DB = 0;
} else {
this.DB = _root.GameData.DCrate;
}
}
Instance of Symbol 77 MovieClip in Symbol 1365 MovieClip [Background] Frame 38
onClipEvent (enterFrame) {
if (this.DB > 0) {
this.DB--;
}
}
on (press) {
if (this.DB > 0) {
_root.stage["Grouchy Reimu"]._visible = true;
_root.stage["Grouchy Reimu"].swapDepths(_root.GameData.DMax - 1);
this.DB = 0;
} else {
this.DB = _root.GameData.DCrate;
}
}
Instance of Symbol 82 MovieClip "chatW" in Symbol 1365 MovieClip [Background] Frame 38
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1323 MovieClip "yuyuko" in Symbol 1365 MovieClip [Background] Frame 76
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 81 MovieClip [BGBox] "hitBox" in Symbol 1365 MovieClip [Background] Frame 76
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 1378 MovieClip in Symbol 1387 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._y <= (-this._height)) {
this._y = (400 + (Math.random() * 100)) + 200;
this._yscale = (Math.random() * 50) + 100;
} else {
this._y = this._y - 100;
}
}
Instance of Symbol 1378 MovieClip in Symbol 1387 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._y <= (-this._height)) {
this._y = (400 + (Math.random() * 100)) + 200;
this._yscale = (Math.random() * 50) + 100;
} else {
this._y = this._y - 100;
}
}
Instance of Symbol 1378 MovieClip in Symbol 1387 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._y <= (-this._height)) {
this._y = (400 + (Math.random() * 100)) + 200;
this._yscale = (Math.random() * 50) + 100;
} else {
this._y = this._y - 100;
}
}
Instance of Symbol 1378 MovieClip in Symbol 1387 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._y <= (-this._height)) {
this._y = (400 + (Math.random() * 100)) + 200;
this._yscale = (Math.random() * 50) + 100;
} else {
this._y = this._y - 100;
}
}
Instance of Symbol 1378 MovieClip in Symbol 1387 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._y <= (-this._height)) {
this._y = (400 + (Math.random() * 100)) + 200;
this._yscale = (Math.random() * 50) + 100;
} else {
this._y = this._y - 100;
}
}
Symbol 1387 MovieClip Frame 55
stop();
Symbol 1420 MovieClip [KO] Frame 1
_root.playSound("KO");
Symbol 1420 MovieClip [KO] Frame 19
_root.playSound("KO");
Symbol 1420 MovieClip [KO] Frame 27
stop();
Symbol 1560 MovieClip Frame 24
stop();
Instance of Symbol 731 MovieClip in Symbol 1652 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 6;
}
Instance of Symbol 731 MovieClip in Symbol 1652 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.5;
}
Instance of Symbol 1571 MovieClip in Symbol 1768 MovieClip [Objects] Frame 16
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
}
Instance of Symbol 1204 MovieClip in Symbol 1768 MovieClip [Objects] Frame 107
onClipEvent (enterFrame) {
this._rotation = this._rotation + 7.5;
}
Instance of Symbol 1206 MovieClip in Symbol 1768 MovieClip [Objects] Frame 107
onClipEvent (enterFrame) {
this._rotation = this._rotation - 5;
}
Instance of Symbol 81 MovieClip [BGBox] "head" in Symbol 1777 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 1776 MovieClip "head" in Symbol 1777 MovieClip Frame 3
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 81 MovieClip [BGBox] "body" in Symbol 1777 MovieClip Frame 4
onClipEvent (load) {
this._alpha = 0;
}