Frame 1
function validateURL(allowHDD, validURL) {
var _local4 = false;
var _local6 = _url.substr(0, _url.indexOf(":"));
if (_local6 == "file") {
if (!allowHDD) {
var _local3 = "HDD Check Failed: Cannot run file from HardDrive.";
} else {
var _local3 = ("HDD Check Passed: " + _url) + " Valid.";
_local4 = true;
}
} else if (_local6 == "http") {
var _local5 = _url.indexOf("//");
var _local2 = _url.substr(_local5 + 2, (_url.indexOf("/", _local5 + 2) - _local5) - 2);
_local2 = _local2.toUpperCase();
if (_local2.indexOf("WWW.") != -1) {
_local2 = _local2.substr(_local2.indexOf("WWW.") + 4, _local2.length);
}
i = 0;
while (i < validURL.length) {
if (_local2.indexOf(validURL[i]) != -1) {
var _local3 = ("URL Check Passed: " + _url) + " Valid.";
_local4 = true;
i = validURL.length;
} else {
var _local3 = ("URL Check Failed: " + _url) + " Invalid.";
}
i++;
}
}
if (!_local4) {
piracyAction();
}
trace(_local3);
}
function isValidPlayerVersion(requiredVersion) {
var playerVersion = $version;
var myLength = length(playerVersion);
var i = 0;
while (i <= myLength) {
i = i + 1;
temp = substring(playerVersion, i, 1);
if (temp == " ") {
platform = substring(playerVersion, 1, i - 1);
majorVersion = substring(playerVersion, i + 1, 1);
secondHalf = substring(playerVersion, i + 1, myLength - i);
minorVersion = substring(secondHalf, 5, 2);
}
}
if (Number(majorVersion) >= requiredVersion) {
return(true);
}
return(false);
}
function validateParentPage(verifyParentPage, parentPageKey) {
if ((!verifyParentPage) || (parentPageKey == "XGS")) {
} else {
piracyAction();
}
}
function piracyAction() {
getURL ("http://www.xgenstudios.com/play/stickarena", "_top");
gotoAndStop ("pirateFrame");
}
function attachBorder() {
_root.attachMovie("exeBorderMC", "exeBorderMC", 99999999999);
exeBorderMC._x = -45;
exeBorderMC._y = -40;
exeBorderMC.cacheAsBitmap = true;
}
function setQuality() {
if (optionQuality == 0) {
_quality = "LOW";
return(undefined);
}
if (optionQuality == 1) {
_quality = "LOW";
return(undefined);
}
if (optionQuality == 2) {
_quality = "MEDIUM";
return(undefined);
}
if (optionQuality == 3) {
_quality = "HIGH";
return(undefined);
}
return(undefined);
}
function buttonFX(sfx, mc, b, f) {
if (mc != null) {
with (eval (mc)) {
attachMovie("buttonOverFX", "buttonOverFX", 1000);
buttonOverFX.bright = b;
buttonOverFX.fade = f;
}
}
with (eval ("SFXBTN" + sfx)) {
start();
}
}
function smoothRot(cRot, tRot, rotVel) {
if (Math.abs(cRot - tRot) > 2) {
var _local3 = cRot;
if (cRot < 0) {
cRot = cRot + 360;
}
if (Math.abs(cRot - tRot) <= 180) {
if (tRot > cRot) {
return(_local3 + (Math.abs(cRot - tRot) / rotVel));
}
return(_local3 - (Math.abs(cRot - tRot) / rotVel));
}
if (tRot > cRot) {
return(_local3 - (((360 - tRot) + cRot) / rotVel));
}
return(_local3 + (((360 - cRot) + tRot) / rotVel));
}
return(cRot);
}
function getTargetRotation(facing) {
return(rotArray[Number(trim(facing))]);
}
function doneLoading() {
FPV8 = isValidPlayerVersion(8);
if (FPV8) {
_root.loadMovie(fp8file);
} else {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.sendAndLoad("/motherload/settings.ini", _local3, "POST");
settingsLoading = true;
_local3.onLoad = function (success) {
flashPlayer7Text = this.sFlashPlayer7Text;
flashPlayer7DoneText = this.sFlashPlayer7DoneText;
gotoAndStop (2);
};
}
}
function ooo(oooooooo, ooooooooo) {
oooooooooo = "";
ooooooooooo = 0;
var _local1 = 0;
while (_local1 < oooooooo.length) {
oooooooooo = oooooooooo + chr(oooooooo.charCodeAt(_local1) ^ ooooooooo.charCodeAt(ooooooooooo));
ooooooooooo++;
if (ooooooooooo == ooooooooo.length) {
ooooooooooo = 0;
}
_local1++;
}
return(oooooooooo);
}
var rotArray = new Array(23);
rotArray[10] = 0;
rotArray[12] = 45;
rotArray[2] = 90;
rotArray[22] = 125;
rotArray[20] = 180;
rotArray[21] = 225;
rotArray[1] = 270;
rotArray[11] = 315;
stop();
_quality = "BEST";
_focusrect = false;
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
var noMenu = new ContextMenu();
noMenu.hideBuiltInItems();
var fp7file = (("/motherload/" + ooo("lO$=B//M9", "[*]")) + ".swf");
var fp8file = (("/motherload/" + ooo("cO$=B//M9", "[*]")) + ".swf");
var flashPlayer7Text;
var flashPlayer7DoneText;
var FPV8;
Frame 2
windowFP7MC.msgText0.text = (windowFP7MC.msgText1.text = flashPlayer7Text);
Symbol 1 MovieClip [buttonOverFX] Frame 1
bright = bright + fade;
myColor = new Color(_parent);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
Symbol 1 MovieClip [buttonOverFX] Frame 2
bright = Math.max(bright - fade, 0);
myColorTransform.rb = bright;
myColorTransform.gb = bright;
myColorTransform.bb = bright;
myColor.setTransform(myColorTransform);
if (bright <= 0) {
this.removeMovieClip();
}
Symbol 1 MovieClip [buttonOverFX] Frame 3
gotoAndPlay (2);
Symbol 5 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
var bytesTotal = _parent.getBytesTotal();
var bytesLoaded = _parent.getBytesLoaded();
var percentLoaded = int((bytesLoaded / bytesTotal) * 100);
if (bytesTotal == bytesLoaded) {
_parent.doneLoading();
stop();
}
_parent.loadBar._alpha = _parent.loadBar._alpha - 10;
if (_parent.loadBar._alpha < 89) {
_parent.loadBar._alpha = 100;
}
Symbol 50 Button
on (release) {
_parent.windowClose();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 54 Button
on (release) {
_parent.windowOK();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 63 Button
on (release) {
_parent.windowClose();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 71 Button
on (release) {
_parent.windowClose();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 73 MovieClip Frame 1
function windowClose() {
_root.loadMovie(_parent.fp7file);
}
function windowOK() {
getURL ("http://www.macromedia.com/go/getflashplayer", "_new");
BTNlaterMC._visible = 0;
BTNokMC._visible = 1;
msgText0.text = (msgText1.text = _parent.flashPlayer7DoneText);
}
BTNokMC._visible = 0;