Frame 1
if (_global.SPACE150_EMAIL_DEFINED != true) {
if (_global.SPACE150_STRING_DEFINED != true) {
_global.SPACE150_STRING_DEFINED = true;
_global.gStringReplace = function (sString, sReplace, sReplaceWith) {
var _local3 = sReplace;
sReturn = new String();
bFound = false;
var _local2 = 0;
for ( ; _local2 < sString.length ; _local2++) {
if (sString.charAt(_local2) == _local3.charAt(0)) {
bFound = true;
var _local1 = 0;
while (_local1 < _local3.length) {
if (sString.charAt(_local2 + _local1) != _local3.charAt(_local1)) {
bFound = false;
break;
}
_local1++;
}
if (bFound) {
sReturn = sReturn + sReplaceWith;
_local2 = _local2 + (_local3.length - 1);
continue;
}
} else {
sReturn = sReturn + sString.charAt(_local2);
}
}
return(sReturn);
};
_global.StringFormatCommas = function (fNumber) {
if (isNaN(fNumber) == true) {
fNumber = 0;
}
var _local3 = String(fNumber);
var _local2 = "";
var iCount = 0;
if (_local3.length <= 3) {
return(_local3);
}
var _local1 = _local3.length;
while (_local1 > 0) {
_local2 = _local3.charAt(_local1 - 1) + _local2;
iCount++;
if (((iCount % 3) == 0) && (_local1 != 1)) {
_local2 = "," + _local2;
}
_local1--;
}
return(_local2);
};
_global.StringFormatDollars = function (fAmount) {
if (isNaN(fAmount) == true) {
fAmount = 0;
}
var sNumber = String(MathRound(fAmount, 2));
var _local2 = "";
var _local3 = 0;
var iStartPos = -1;
iStartPos = sNumber.indexOf(".");
if (iStartPos == -1) {
iStartPos = sNumber.length;
}
var _local1 = iStartPos;
while (_local1 > 0) {
_local2 = sNumber.charAt(_local1 - 1) + _local2;
_local3++;
if (((_local3 % 3) == 0) && (_local1 != 1)) {
_local2 = "," + _local2;
}
_local1--;
}
var iDecimalPos = _local2.indexOf(".", 0);
if (iDecimalPos == -1) {
_local2 = _local2 + ".00";
} else if ((_local2.length - iDecimalPos) == 2) {
_local2 = _local2 + "0";
}
_local2 = "$ " + _local2;
return(_local2);
};
_global.StringFormatPercent = function (fAmount) {
if (isNaN(fNumber) == true) {
fNumber = 0;
}
var _local3 = MathRound(fAmount, 4);
var _local1 = String(_local3);
var _local2 = _local1.indexOf(".", 0);
if (_local2 == -1) {
_local1 = _local1 + ".00";
} else if ((_local1.length - _local2) == 2) {
_local1 = _local1 + "0";
}
_local1 = _local1 + " %";
return(_local1);
};
_global.StringFormatDecimal = function (fNumber) {
var _local3 = fNumber;
if (isNaN(_local3) == true) {
_local3 = 0;
}
var fRounded = MathRound(_local3, 4);
var _local1 = String(fRounded);
var _local2 = _local1.indexOf(".", 0);
if (_local2 == -1) {
_local1 = _local1 + ".00";
} else if ((_local1.length - _local2) == 2) {
_local1 = _local1 + "0";
}
return(_local1);
};
_global.StringToNumber = function (sString) {
var sReturn = "";
var fReturn = 0;
var _local3 = "1234567890.";
var _local1 = 0;
while (_local1 < sString.length) {
var _local2 = sString.charAt(_local1);
if (_local3.indexOf(_local2) != -1) {
sReturn = sReturn + _local2;
if (_local2 == ".") {
_local3 = "1234567890";
}
}
_local1++;
}
fReturn = Number(sReturn);
if (isNaN(fReturn)) {
return(0);
}
return(fReturn);
};
_global.StringRemoveNonNumeric = function (sString, bDecimal) {
var _local3 = sString;
var sValid = "1234567890";
var sReturn = "";
if (bDecimal == true) {
sValid = sValid + ".";
}
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3.charAt(_local1);
if (sValid.indexOf(_local2) != -1) {
sReturn = sReturn + _local2;
}
_local1++;
}
return(sReturn);
};
_global.StringRemoveAllExcept = function (sString, sValid) {
var _local3 = sString;
var sReturn = "";
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3.charAt(_local1);
if (sValid.indexOf(_local2) != -1) {
sReturn = sReturn + _local2;
}
_local1++;
}
return(sReturn);
};
_global.StringRemoveWhitespace = function (sString) {
var _local3 = sString;
var sValid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_-+=!@#$%^&*(){}|[]\\;:'\",.<>/?";
var sReturn = "";
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3.charAt(_local1);
if (sValid.indexOf(_local2) != -1) {
sReturn = sReturn + _local2;
}
_local1++;
}
return(sReturn);
};
String.prototype.Replace = function (sReplace, sReplaceWith) {
var _local3 = sReplace;
sReturn = new String();
bFound = false;
var _local2 = 0;
for ( ; _local2 < this.length ; _local2++) {
if (this.charAt(_local2) == _local3.charAt(0)) {
bFound = true;
var _local1 = 0;
while (_local1 < _local3.length) {
if (this.charAt(_local2 + _local1) != _local3.charAt(_local1)) {
bFound = false;
break;
}
_local1++;
}
if (bFound) {
sReturn = sReturn + sReplaceWith;
_local2 = _local2 + (_local3.length - 1);
continue;
}
} else {
sReturn = sReturn + this.charAt(_local2);
}
}
return(sReturn);
};
_global.StringTrimStringInQuotes = function (sString) {
var _local2 = sString;
var _local1;
var _local3 = "\"";
_local1 = _local2.indexOf(_local3, 0);
if (_local1 == -1) {
return;
}
_local2 = _local2.substring(_local1 + 1, _local2.length);
_local1 = _local2.indexOf(_local3, 0);
if (_local1 == -1) {
return;
}
_local2 = _local2.substring(0, _local1);
};
_global.StringSliceQuotes = function (sText) {
var _local1 = sText;
var _local2;
var _local3 = "\"";
_local2 = _local1.indexOf(_local3, 0);
if (_local2 == -1) {
return(_local1);
}
_local1 = _local1.substring(_local2 + 1, _local1.length);
_local2 = _local1.indexOf(_local3, 0);
if (_local2 == -1) {
return(_local1);
}
_local1 = _local1.substring(0, _local2);
return(_local1);
};
}
_global.SPACE150_EMAIL_DEFINED = true;
_global.EmailSendMessage = function (sURL, sTo, sFrom, sSubject, sMessage, sCC) {
var _local3 = sCC;
var sBody = ("<FONT face=Arial size=2>" + sMessage);
var _local1 = sURL;
_local1 = _local1 + ("?to=" + sTo);
_local1 = _local1 + ("&from=" + escape(sFrom));
_local1 = _local1 + ("&subject=" + escape(sSubject));
_local1 = _local1 + ("&message=" + escape(sBody));
if ((_local3 != undefined) && (_local3.length > 0)) {
_local1 = _local1 + ("&cc=" + _local3);
}
LoadDynamicContent = function () {
};
var _local2 = new LoadVars();
_local2.onLoad = LoadDynamicContent;
_local2.load(_local1);
};
_global.EmailVerifyAddress = function (sAddress) {
var _local1 = sAddress;
if (_local1.length > 0) {
if (_local1.indexOf(";") != -1) {
var _local2 = _local1.split(";");
_local1 = _local2[0];
}
aElements = _local1.split("@");
if (aElements.length != 2) {
return(false);
}
if (aElements[1].indexOf(".") == -1) {
return(false);
}
return(true);
}
return(false);
};
_global.EmailVerifyMessage = function (sMessage) {
if (sMessage.length > 0) {
return(true);
}
return(false);
};
}
if (_global.SPACE150_EVENT_DEFINED != true) {
_global.SPACE150_EVENT_DEFINED = true;
_global.EventQueue = function () {
this.aEvents = new Array();
};
EventQueue.prototype.Add = function (iTriggerTime, fTriggerFunction) {
var _local1 = new Event(iTriggerTime, fTriggerFunction);
this.aEvents.push(_local1);
};
EventQueue.prototype.Refresh = function (iTime) {
var _local1 = this;
var _local2 = iTime;
while ((_local1.aEvents.length > 0) && (_local1.aEvents[0].Trigger(_local2) == true)) {
_local1.aEvents.shift();
}
};
EventQueue.prototype.Output = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.aEvents.length) {
trace("iCur = " + _local1);
aEvents[0].Output(String(("event[" + _local1) + "]"));
_local1++;
}
};
_global.Event = function (iTriggerTime, fTriggerFunction) {
this.iTime = iTriggerTime;
this.fFunction = fTriggerFunction;
};
Event.prototype.Trigger = function (iCurrentTime) {
if (iCurrentTime >= this.iTime) {
this.fFunction();
return(true);
}
return(false);
};
Event.prototype.Output = function (sName) {
var _local1 = sName;
if (_local1 == undefined) {
_local1 = "Event";
}
trace(((((_local1 + " = (iTime = ") + this.iTime) + ", fFunction = ") + this.fFunction) + ")");
};
}
if (_global.SPACE150_INPUT_DEFINED != true) {
_global.SPACE150_INPUT_DEFINED = true;
_global.Keys = new Object();
Keys.A = 65;
Keys.B = 66;
Keys.C = 67;
Keys.D = 68;
Keys.E = 69;
Keys.F = 70;
Keys.G = 71;
Keys.H = 72;
Keys.I = 73;
Keys.J = 74;
Keys.K = 75;
Keys.L = 76;
Keys.M = 77;
Keys.N = 78;
Keys.O = 79;
Keys.P = 80;
Keys.Q = 81;
Keys.R = 82;
Keys.S = 83;
Keys.T = 84;
Keys.U = 85;
Keys.V = 86;
Keys.W = 87;
Keys.X = 88;
Keys.Y = 89;
Keys.Z = 90;
Keys.ZERO = 48;
Keys.ONE = 49;
Keys.TWO = 50;
Keys.THREE = 51;
Keys.FOUR = 52;
Keys.FIVE = 53;
Keys.SIX = 54;
Keys.SEVEN = 55;
Keys.EIGHT = 56;
Keys.NINE = 57;
Keys.NUMPAD_ZERO = 96;
Keys.NUMPAD_ONE = 97;
Keys.NUMPAD_TWO = 98;
Keys.NUMPAD_THREE = 99;
Keys.NUMPAD_FOUR = 100;
Keys.NUMPAD_FIVE = 101;
Keys.NUMPAD_SIX = 102;
Keys.NUMPAD_SEVEN = 103;
Keys.NUMPAD_EIGHT = 104;
Keys.NUMPAD_NINE = 105;
Keys.MULTIPLY = 106;
Keys.ADD = 107;
Keys.SUBTRACT = 109;
Keys.DECIMAL = 110;
Keys.DIVIDE = 111;
Keys.F1 = 112;
Keys.F2 = 113;
Keys.F3 = 114;
Keys.F4 = 115;
Keys.F5 = 116;
Keys.F6 = 117;
Keys.F7 = 118;
Keys.F8 = 119;
Keys.F9 = 120;
Keys.F10 = 121;
Keys.F11 = 122;
Keys.F12 = 123;
Keys.CLEAR = 12;
Keys.PAGEUP = 33;
Keys.PAGEDOWN = 34;
Keys.HELP = 47;
Keys.NUMLOCK = 144;
Keys.SEMICOLON = 186;
Keys.EQUAL = 187;
Keys.MINUS = 189;
Keys.SLASH = 191;
Keys.GRAVE = 192;
Keys.OPENBRACKET = 219;
Keys.BACKSLASH = 220;
Keys.CLOSEBRACKET = 221;
Keys.QUOTE = 222;
}
if (_global.SPACE150_INTERPOLATE_DEFINED != true) {
_global.SPACE150_INTERPOLATE_DEFINED = true;
if (_global.SPACE150_MOVIECLIP_DEFINED != true) {
_global.SPACE150_MOVIECLIP_DEFINED = true;
MovieClip.prototype.Advance = function () {
this.gotoAndStop(this._currentframe + 1);
};
MovieClip.prototype.CenterOnStage = function (fInterpFunction, iDuration) {
var _local1 = this;
var _local2 = fInterpFunction;
if (_local2 == undefined) {
_local1._x = Math.round((Stage.width - _local1._width) / 2);
_local1._y = Math.round((Stage.height - _local1._height) / 2);
} else {
var iNewX = Math.round((Stage.width - _local1._width) / 2);
var _local3 = Math.round((Stage.height - _local1._height) / 2);
_local1.StartInterpolation(INTERPOLATE_X, _local1._x, iNewX, iDuration, _local2);
_local1.StartInterpolation(INTERPOLATE_Y, _local1._y, _local3, iDuration, _local2);
}
};
MovieClip.prototype.CenterOnStageInterpolate = function () {
var _local1 = this;
var _local3 = Math.round((Stage.width - _local1._width) / 2);
var _local2 = Math.round((Stage.height - _local1._height) / 2);
_local1.StartInterpolation(INTERPOLATE_X, _local1._x, _local3, 2, InterpElasticOut, 0);
_local1.StartInterpolation(INTERPOLATE_Y, _local1._y, _local2, 2, InterpElasticOut, 0);
};
MovieClip.prototype.GetDistance = function (fX, fY) {
var _local1 = this;
return(Math.sqrt(((fX - _local1._x) * (fX - _local1._x)) + ((fY - _local1._y) * (fY - _local1._y))));
};
MovieClip.prototype.GetLoadTimeLeft = function () {
var _local1 = this;
var _local2 = -1;
var fMinimumtime = 2;
if ((_local1.getBytesTotal() > 4) && (_local1.getBytesLoaded() == _local1.getBytesTotal())) {
return(0);
}
var _local3 = getTimer() / 1000;
if (_local1.getBytesTotal() > 4) {
if (_local1.fStartTime == undefined) {
_local1.fStartTime = _local3;
_local1.iStartBytes = _local1.getBytesLoaded();
return(_local2);
}
if ((_local3 - _local1.fStartTime) < fMinimumtime) {
return(_local2);
}
var iBytesDownloaded = (_local1.getBytesLoaded() - _local1.iStartBytes);
var iBytesLeft = (_local1.getBytesTotal() - _local1.getBytesLoaded());
var fTimeSoFar = (_local3 - _local1.fStartTime);
return(fTimeSoFar * (iBytesLeft / iBytesDownloaded));
}
return(_local2);
};
MovieClip.prototype.GetPercentLoaded = function () {
var _local1 = this;
if (_local1.getBytesTotal() > 4) {
return((100 * _local1.getBytesLoaded()) / _local1.getBytesTotal());
}
return(0);
};
MovieClip.prototype.GetPercentLoadedInt = function () {
return(Math.round(this.GetPercentLoaded()));
};
MovieClip.prototype.GetRGB = function (iR, iG, iB) {
var _local1 = new Color(this);
return({r:_local1.getTransform().rb, g:_local1.getTransform().gb, b:_local1.getTransform().bb});
};
MovieClip.prototype.GetTint = function () {
var _local2 = new Color(this).getTransform();
var _local1 = {percent:100 - _local2.ra};
var _local3 = 100 / _local1.percent;
_local1.r = _local2.rb * _local3;
_local1.g = _local2.gb * _local3;
_local1.b = _local2.bb * _local3;
return(_local1);
};
MovieClip.prototype.ResetColor = function () {
var _local1 = new Color(this);
_local1.setTransform({ra:100, ga:100, ba:100, rb:0, gb:0, bb:0});
};
MovieClip.prototype.SafeTransform = function () {
var _local1 = this;
_local1._x = Math.round(_local1._x);
_local1._y = Math.round(_local1._y);
_local1._xscale = (_local1._yscale = 100);
_local1._rotation = 0;
};
MovieClip.prototype.SetBrightness = function (iValue) {
var cThis = new Color(this);
var tColor = cThis.getTransform();
with (tColor) {
rb = (gb = (bb = iValue));
}
cThis.setTransform(tColor);
};
MovieClip.prototype.GetColorTransform = function () {
var _local2 = new Color(this);
var _local1 = _local2.getTransform();
return({ra:_local1.ra, ga:_local1.ga, ba:_local1.ba, rb:_local1.rb, gb:_local1.gb, bb:_local1.bb, aa:_local1.aa, ab:_local1.ab});
};
MovieClip.prototype.SetColorTransform = function (iRA, iGA, iBA, iRB, iGB, iBB, iAA, iAB) {
var cThis = new Color(this);
var tColor = cThis.getTransform();
with (tColor) {
ra = iRA;
ga = iGA;
ba = iBA;
rb = iRB;
gb = iGB;
bb = iBB;
aa = iAA;
ab = iAB;
}
cThis.setTransform(tColor);
};
MovieClip.prototype.SetNegativeColor = function (iValue) {
var _local2 = new Color(this);
var _local1 = {};
_local1.ra = (_local1.ga = (_local1.ba = 100 - (2 * iValue)));
_local1.rb = (_local1.gb = (_local1.bb = iValue * 2.55));
_local2.setTransform(_local1);
};
MovieClip.prototype.SetNegativeColorSpecial = function (iValue) {
var _local3 = iValue;
var _local2 = new Color(this);
var _local1 = {};
var fNormalized = (_local3 / 100);
_local1.ra = (_local1.ga = (_local1.ba = 100 - (2 * _local3)));
_local1.rb = (_local1.gb = (_local1.bb = _local3 * 2.55));
_local2.setTransform(_local1);
};
MovieClip.prototype.SetPercentBlue = function (iPercent) {
var _local1 = new Color(this);
var _local2 = _local1.getTransform();
_local2.ba = iPercent;
_local1.setTransform(_local2);
};
MovieClip.prototype.SetPercentGreen = function (iPercent) {
var _local1 = new Color(this);
var _local2 = _local1.getTransform();
_local2.ga = iPercent;
_local1.setTransform(_local2);
};
MovieClip.prototype.SetPercentRed = function (iPercent) {
var _local1 = new Color(this);
var _local2 = _local1.getTransform();
_local2.ra = iPercent;
_local1.setTransform(_local2);
};
MovieClip.prototype.SetRGBPercent = function (iR, iG, iB) {
var _local2 = new Color(this);
var _local1 = _local2.getTransform();
_local1.ra = iR;
_local1.ga = iG;
_local1.ba = iB;
_local2.setTransform(_local1);
};
MovieClip.prototype.SetRGB = function (iR, iG, iB) {
var _local1 = new Color(this);
_local1.setRGB(((iR << 16) | (iG << 8)) | iB);
};
MovieClip.prototype.GetTint = function () {
var _local2 = new Color(this).getTransform();
var _local1 = {percent:100 - _local2.ra};
var _local3 = 100 / _local1.percent;
_local1.r = _local2.rb * _local3;
_local1.g = _local2.gb * _local3;
_local1.b = _local2.bb * _local3;
return(_local1);
};
MovieClip.prototype.SetTint = function (iR, iG, iB, iPercent) {
var _local3 = new Color(this);
var _local2 = iPercent / 100;
var _local1 = {rb:iR * _local2, gb:iG * _local2, bb:iB * _local2};
_local1.ra = (_local1.ga = (_local1.ba = 100 - iPercent));
_local3.setTransform(_local1);
};
MovieClip.prototype.Soundstop = function () {
var _local1 = this;
if (_local1.sndAttached != undefined) {
_local1.sndAttached.stop();
_local1.sndAttached = undefined;
}
};
MovieClip.prototype.SoundVolume = function (iVolume) {
if ((this.sndAttached != undefined) && (iVolume != undefined)) {
this.sndAttached.setVolume(iVolume);
}
};
MovieClip.prototype.SoundStart = function (sName, iVolume, bLoop) {
var _local1 = this;
var _local2 = 0;
_local1.sndAttached = new Sound(_local1);
_local1.sndAttached.attachSound(sName);
if (iVolume != undefined) {
_local1.sndAttached.setVolume(iVolume);
}
if ((bLoop != undefined) && (bLoop == true)) {
_local2 = 9999;
}
_local1.sndAttached.start(0, _local2);
};
MovieClip.prototype.SoundActive = function () {
if (this.sndAttached == undefined) {
return(false);
}
return(true);
};
}
if (_global.SPACE150_TIME_DEFINED != true) {
_global.SPACE150_TIME_DEFINED = true;
_global.GetTime = function () {
return(getTimer() / 1000);
};
_global.GetCurrentYear = function () {
var _local1 = new Date();
return(_local1.getFullYear());
};
_global.GetCurrentMonth = function () {
var _local1 = new Date();
return(_local1.getMonth() + 1);
};
_global.GetCurrentDay = function () {
var _local1 = new Date();
return(_local1.getDate());
};
_global.GetNiceDate = function () {
var _local1 = "";
var _local2 = "";
var _local3 = "";
myDate = new Date();
switch (myDate.getMonth()) {
case 0 :
_local1 = "January";
break;
case 1 :
_local1 = "February";
break;
case 2 :
_local1 = "March";
break;
case 3 :
_local1 = "April";
break;
case 4 :
_local1 = "May";
break;
case 5 :
_local1 = "June";
break;
case 6 :
_local1 = "July";
break;
case 7 :
_local1 = "August";
break;
case 8 :
_local1 = "September";
break;
case 9 :
_local1 = "October";
break;
case 10 :
_local1 = "November";
break;
case 11 :
_local1 = "December";
break;
default :
return("");
}
_local2 = myDate.getDate();
if (_local2.length == 1) {
_local2 = "0" + _local2;
}
_local3 = myDate.getFullYear();
_local3 = myDate.getFullYear();
_local3 = myDate.getFullYear();
return((((_local1 + " ") + _local2) + ", ") + _local3);
};
_global.GetNiceTime = function () {
var _local1 = "";
var _local2 = "";
var sSeconds = "";
myDate = new Date();
_local1 = String(myDate.getHours());
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local2 = String(myDate.getMinutes());
if (_local2.length == 1) {
_local2 = "0" + _local2;
}
var _local3 = myDate.getSeconds();
if (_local3 < 10) {
sSeconds = String("0" + (_local3 + (myDate.getMilliseconds() / 1000)));
} else {
sSeconds = String(_local3 + (myDate.getMilliseconds() / 1000));
}
return((((_local1 + ":") + _local2) + ":") + sSeconds);
};
_global.GetAgeAtDate = function (iBirthMonth, iBirthDay, iBirthYear, iMonth, iDay, iYear) {
var _local2 = iBirthYear;
var _local3 = iYear;
var _local1 = 0;
if ((((((iBirthMonth == undefined) || (iBirthDay == undefined)) || (_local2 == undefined)) || (iMonth == undefined)) || (iDay == undefined)) || (_local3 == undefined)) {
return(0);
}
if (_local2 >= _local3) {
return(0);
}
if ((iBirthMonth <= iMonth) && (iBirthDay <= iDay)) {
_local1 = _local3 - _local2;
} else {
_local1 = (_local3 - _local2) - 1;
}
return(_local1);
};
_global.GetAgeToday = function (iBirthMonth, iBirthDay, iBirthYear) {
var _local2 = GetCurrentYear();
var _local3 = GetCurrentMonth();
var _local1 = GetCurrentDay();
var iAge = 0;
if (((iBirthMonth == undefined) || (iBirthDay == undefined)) || (iBirthYear == undefined)) {
return(0);
}
return(GetAgeAtDate(iBirthMonth, iBirthDay, iBirthYear, _local3, _local1, _local2));
};
}
_global.INTERPOLATE_X = 0;
_global.INTERPOLATE_Y = 1;
_global.INTERPOLATE_ALPHA = 2;
_global.INTERPOLATE_SCALE = 3;
_global.INTERPOLATE_XSCALE = 4;
_global.INTERPOLATE_YSCALE = 5;
_global.INTERPOLATE_ROTATION = 6;
_global.INTERPOLATE_COLOR_RGB = 7;
_global.INTERPOLATE_COLOR_RGB_TINT = 8;
_global.INTERPOLATE_COLOR_RGB_PERCENT = 9;
_global.INTERPOLATE_COLOR_BRIGHTNESS = 10;
_global.INTERPOLATE_COLOR_NEGATIVE = 11;
_global.INTERPOLATE_TOTAL_NUM = 12;
MovieClip.prototype.Interpolate = function () {
var iCurrent = 0;
while (iCurrent < this.Interp.aList.length) {
if (this.Interp.aList[iCurrent] == undefined) {
} else {
with (this.Interp.aList[iCurrent]) {
if (iTime >= 0) {
switch (iVar) {
case INTERPOLATE_X :
this._x = fFunction(iTime, oStart, oChange, iDuration);
break;
case INTERPOLATE_Y :
this._y = fFunction(iTime, oStart, oChange, iDuration);
break;
case INTERPOLATE_ALPHA :
this._alpha = fFunction(iTime, oStart, oChange, iDuration);
break;
case INTERPOLATE_SCALE :
this._xscale = (this._yscale = fFunction(iTime, oStart, oChange, iDuration));
break;
case INTERPOLATE_XSCALE :
this._xscale = fFunction(iTime, oStart, oChange, iDuration);
break;
case INTERPOLATE_YSCALE :
this._yscale = fFunction(iTime, oStart, oChange, iDuration);
break;
case INTERPOLATE_ROTATION :
this._rotation = fFunction(iTime, oStart, oChange, iDuration);
break;
case INTERPOLATE_COLOR_RGB :
var iR = fFunction(iTime, oStart.r, oChange.r, iDuration);
var iG = fFunction(iTime, oStart.g, oChange.g, iDuration);
var iB = fFunction(iTime, oStart.b, oChange.b, iDuration);
this.SetRGB(iR, iG, iB);
break;
case INTERPOLATE_COLOR_RGB_TINT :
var iR = fFunction(iTime, oStart.r, oChange.r, iDuration);
var iG = fFunction(iTime, oStart.g, oChange.g, iDuration);
var iB = fFunction(iTime, oStart.b, oChange.b, iDuration);
var iPercent = fFunction(iTime, oStart.percent, oChange.percent, iDuration);
this.SetTint(iR, iG, iB, iPercent);
break;
case INTERPOLATE_COLOR_RGB_PERCENT :
var iR = fFunction(iTime, oStart.r, oChange.r, iDuration);
var iG = fFunction(iTime, oStart.g, oChange.g, iDuration);
var iB = fFunction(iTime, oStart.b, oChange.b, iDuration);
this.SetRGBPercent(iR, iG, iB);
break;
case INTERPOLATE_COLOR_BRIGHTNESS :
this.SetBrightness(fFunction(iTime, oStart, oChange, iDuration));
break;
case INTERPOLATE_COLOR_NEGATIVE :
this.SetNegativeColor(fFunction(iTime, oStart, oChange, iDuration));
}
}
iTime++;
if (iTime > iDuration) {
if (this.Interp.aList[iCurrent].fCallback) {
this.Interp.aList[iCurrent].fCallback();
}
this.Interp.aList[iCurrent] = undefined;
this.Interp.iCount--;
if (this.Interp.iCount == 0) {
this.redraw();
delete this.Interp;
this.onEnterFrame = this.OldOnEnterFrame;
return(undefined);
}
}
}
}
iCurrent++;
}
};
MovieClip.prototype.InterpolateActive = function () {
if (this.Interp == undefined) {
return(false);
}
return(true);
};
MovieClip.prototype.StartInterpolation = function (iVariable, oStartValue, oEndValue, iLength, InterpFunction, iStartTimeDelay, fCallbackFunction) {
var _local1 = this;
var _local2 = oStartValue;
var _local3 = oEndValue;
if (_local1.Interp == undefined) {
_local1.Interp = new Object();
_local1.Interp.iCount = 0;
_local1.Interp.aList = new Array();
_local1.OldOnEnterFrame = _local1.onEnterFrame;
_local1.onEnterFrame = function () {
this.OldOnEnterFrame();
this.Interpolate();
};
}
if (_local1.Interp.aList[iVariable] == undefined) {
_local1.Interp.iCount++;
}
oInterp = new Object();
oInterp.iVar = iVariable;
oInterp.oStart = _local2;
if (oInterp.iVar == INTERPOLATE_COLOR_RGB) {
oInterp.oChange = {r:Math.round(_local3.r - _local2.r), g:Math.round(_local3.g - _local2.g), b:Math.round(_local3.b - _local2.b)};
} else if (oInterp.iVar == INTERPOLATE_COLOR_RGB_TINT) {
oInterp.oChange = {r:Math.round(_local3.r - _local2.r), g:Math.round(_local3.g - _local2.g), b:Math.round(_local3.b - _local2.b), percent:Math.round(_local3.percent - _local2.percent)};
} else if (oInterp.iVar == INTERPOLATE_COLOR_RGB_PERCENT) {
oInterp.oChange = {r:Math.round(_local3.r - _local2.r), g:Math.round(_local3.g - _local2.g), b:Math.round(_local3.b - _local2.b)};
} else {
oInterp.oChange = _local3 - _local2;
}
if (iStartTimeDelay == undefined) {
oInterp.iTime = 0;
} else {
oInterp.iTime = -iStartTimeDelay;
}
oInterp.iDuration = iLength;
oInterp.fFunction = InterpFunction;
oInterp.fCallback = fCallbackFunction;
_local1.Interp.aList[iVariable] = oInterp;
};
MovieClip.prototype.StopInterpolation = function (iVariable) {
var _local1 = this;
if (_local1.Interp != undefined) {
if (_local1.Interp.aList[iVariable] != undefined) {
_local1.Interp.aList[iCurrent] = undefined;
_local1.Interp.iCount--;
if (_local1.Interp.iCount == 0) {
_local1.redraw();
delete _local1.Interp;
_local1.onEnterFrame = _local1.OldOnEnterFrame;
}
}
}
};
_global.TimeStep = function (t, d, i) {
return((d / i) * Math.floor((i * t) / d));
};
_global.InterpBackIn = function (t, b, c, d, s) {
var _local1 = s;
var _local2 = t;
if (_local1 == undefined) {
_local1 = 1.70158;
}
_local2 = _local2 / d;
return((((c * _local2) * _local2) * (((_local1 + 1) * _local2) - _local1)) + b);
};
_global.InterpBackOut = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
};
_global.InterpBackInOut = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local2 = _local2 * 1.525;
return(((c / 2) * ((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2))) + b);
}
_local1 = _local1 - 2;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 2)) + b);
};
_global.InterpBounceIn = function (t, b, c, d) {
return((c - InterpBounceOut(d - t, 0, c, d)) + b);
};
_global.InterpBounceOut = function (t, b, c, d) {
var _local1 = t;
var _local2 = c;
var _local3 = b;
_local1 = _local1 / d;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
};
_global.InterpBounceInOut = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((InterpBounceIn(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((InterpBounceOut((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
_global.InterpCircIn = function (t, b, c, d) {
return(((-c) * (Math.sqrt(1 - (((t = t / d)) * t)) - 1)) + b);
};
_global.InterpCircOut = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * Math.sqrt(1 - (_local1 * _local1))) + b);
};
_global.InterpCircInOut = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + b);
};
_global.InterpCubicIn = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((c * _local1) * _local1) * _local1) + b);
};
_global.InterpCubicOut = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * _local1) + 1)) + b);
};
_global.InterpCubicInOut = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((c / 2) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((_local1 * _local1) * _local1) + 2)) + b);
};
_global.InterpElasticIn = function (t, b, c, d, a, p) {
var _local1 = a;
var _local2 = p;
var _local3 = t;
if (_local3 == 0) {
return(b);
}
_local3 = _local3 / d;
if (_local3 == 1) {
return(b + c);
}
if (!_local2) {
_local2 = d * 0.3;
}
if ((!_local1) || (_local1 < Math.abs(c))) {
_local1 = c;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(c / _local1));
}
_local3 = _local3 - 1;
return((-((_local1 * Math.pow(2, 10 * _local3)) * Math.sin((((_local3 * d) - s) * (Math.PI*2)) / _local2))) + b);
};
_global.InterpElasticOut = function (t, b, c, d, a, p) {
var _local1 = c;
var _local2 = a;
var _local3 = p;
if (t == 0) {
return(b);
}
if (((t = t / d)) == 1) {
return(b + _local1);
}
if (!_local3) {
_local3 = d * 0.3;
}
if ((!_local2) || (_local2 < Math.abs(_local1))) {
_local2 = _local1;
var s = (_local3 / 4);
} else {
var s = ((_local3 / (Math.PI*2)) * Math.asin(_local1 / _local2));
}
return((((_local2 * Math.pow(2, -10 * t)) * Math.sin((((t * d) - s) * (Math.PI*2)) / _local3)) + _local1) + b);
};
_global.InterpElasticInOut = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = a;
var _local3 = p;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + c);
}
if (!_local3) {
_local3 = d * 0.45;
}
if ((!_local2) || (_local2 < Math.abs(c))) {
_local2 = c;
var s = (_local3 / 4);
} else {
var s = ((_local3 / (Math.PI*2)) * Math.asin(c / _local2));
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local2 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3))) + b);
}
_local1 = _local1 - 1;
return(((((_local2 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3)) * 0.5) + c) + b);
};
_global.InterpElasticInOutStep = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = a;
var _local3 = p;
_local1 = TimeStep(_local1, d, 20);
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + c);
}
if (!_local3) {
_local3 = d * 0.45;
}
if ((!_local2) || (_local2 < Math.abs(c))) {
_local2 = c;
var s = (_local3 / 4);
} else {
var s = ((_local3 / (Math.PI*2)) * Math.asin(c / _local2));
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local2 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3))) + b);
}
_local1 = _local1 - 1;
return(((((_local2 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3)) * 0.5) + c) + b);
};
_global.InterpExpoIn = function (t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
};
_global.InterpExpoOut = function (t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
};
_global.InterpExpoInOut = function (t, b, c, d) {
var _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local2);
}
_local1--;
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local2);
};
_global.InterpLinear = function (t, b, c, d) {
return(((c * t) / d) + b);
};
_global.InterpLinearStep = function (t, b, c, d) {
var _local1 = t;
_local1 = TimeStep(_local1, d, 10);
return(((c * _local1) / d) + b);
};
_global.InterpQuadIn = function (t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
};
_global.InterpQuadOut = function (t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
};
_global.InterpQuadInOut = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((c / 2) * _local1) * _local1) + b);
}
_local1--;
return((((-c) / 2) * ((_local1 * (_local1 - 2)) - 1)) + b);
};
_global.InterpQuartIn = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((((c * _local1) * _local1) * _local1) * _local1) + b);
};
_global.InterpQuartOut = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return(((-c) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
};
_global.InterpQuartInOut = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((((c / 2) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + b);
};
_global.InterpQuintIn = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((((c * _local1) * _local1) * _local1) * _local1) * _local1) + b);
};
_global.InterpQuintOut = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
_global.InterpQuintInOut = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((((c / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + b);
};
_global.InterpSineIn = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
};
_global.InterpSineOut = function (t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
};
_global.InterpSineInOut = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
};
_global.InterpSmoothThree = function (t, b, c, d) {
var _local1 = t;
var _local2 = d;
var _local3 = c;
var f1 = 0.48;
var f2 = 0.04;
var f3 = 0.48;
if (_local1 < Math.round((_local2 * 1) / 3)) {
_local1 = _local1 * 3;
return(InterpQuadOut(_local1, b, _local3 * f1, _local2));
}
if (_local1 < Math.round((_local2 * 2) / 3)) {
_local1 = _local1 - Math.round((_local2 * 1) / 3);
_local1 = _local1 * 3;
return(InterpLinear(_local1, b + (_local3 * f1), _local3 * f2, _local2));
}
_local1 = _local1 - Math.round((_local2 * 2) / 3);
_local1 = _local1 * 3;
return(InterpQuadIn(_local1, b + (_local3 * (f1 + f2)), _local3 * f3, _local2));
};
_global.InterpSmoothThreeAlt = function (t, b, c, d) {
var _local1 = t;
var _local2 = d;
var _local3 = c;
var f1 = 0.48;
var f2 = 0.04;
var f3 = 0.48;
if (_local1 < Math.round((_local2 * 1) / 3)) {
_local1 = _local1 * 3;
return(InterpQuadInOut(_local1, b, _local3 * f1, _local2));
}
if (_local1 < Math.round((_local2 * 2) / 3)) {
_local1 = _local1 - Math.round((_local2 * 1) / 3);
_local1 = _local1 * 3;
return(InterpLinear(_local1, b + (_local3 * f1), _local3 * f2, _local2));
}
_local1 = _local1 - Math.round((_local2 * 2) / 3);
_local1 = _local1 * 3;
return(InterpQuadInOut(_local1, b + (_local3 * (f1 + f2)), _local3 * f3, _local2));
};
}
if (_global.SPACE150_MATH_DEFINED != true) {
_global.SPACE150_MATH_DEFINED = true;
_global.MathRandomInt = function (i1, i2, iExcept) {
var _local1 = i1;
var _local2 = i2;
var _local3 = iExcept;
if (_local3 == undefined) {
return(Math.round(_local1 + (Math.random() * (_local2 - _local1))));
}
while (((iRet = Math.round(_local1 + (Math.random() * (_local2 - _local1))))) == _local3) {
}
return(iRet);
};
_global.MathRandomSequence = function (iLength, iStart, iEnd) {
if (((iEnd - iStart) + 1) < iLength) {
iEnd = (iStart + iLength) - 1;
}
var _local2 = new Array((iEnd - iStart) + 1);
var aNumbersRandom = new Array(iLength);
var _local3 = 0;
var _local1 = iStart;
while (_local1 <= iEnd) {
_local2[_local3++] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 < iLength) {
_local3 = GetRandomInt(0, _local2.length - 1);
aNumbersRandom[_local1] = _local2[_local3];
_local2.splice(_local3, 1);
_local1++;
}
return(aNumbersRandom);
};
_global.MathMax = function (fNum1, fNum2) {
if (fNum1 > fNum2) {
return(fNum1);
}
return(fNum2);
};
_global.MathMin = function (fNum1, fNum2) {
if (fNum1 < fNum2) {
return(fNum1);
}
return(fNum2);
};
_global.MathRound = function (fNum, iPlaces) {
var _local1 = Math.pow(10, iPlaces);
return(Math.round(fNum * _local1) / _local1);
};
}
if (_global.SPACE150_MOUSE_DEFINED != true) {
_global.SPACE150_MOUSE_DEFINED = true;
_global.MouseSetPointer = function (oPointer, bHideNormalIcon) {
var _local1 = _global;
var _local2 = oPointer;
var _local3 = bHideNormalIcon;
if (_local3 == undefined) {
_local3 = true;
}
if (_local2) {
Mouse.removeListener(_local1.gMouseCursor);
_local1.gMouseCursor.onMouseMove = null;
_local1.gMouseCursor = null;
_local1.gMouseCursor = _local2;
_local1.gMouseCursor.onMouseMove = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
};
if (_local3) {
Mouse.hide();
}
_local1.gMouseCursor.onMouseMove();
Mouse.addListener(_local2);
} else {
Mouse.removeListener(_local1.gMouseCursor);
_local1.gMouseCursor.onMouseMove = null;
_local1.gMouseCursor = undefined;
Mouse.show();
}
};
}
if (_global.SPACE150_MOVIECLIP_DEFINED != true) {
_global.SPACE150_MOVIECLIP_DEFINED = true;
MovieClip.prototype.Advance = function () {
this.gotoAndStop(this._currentframe + 1);
};
MovieClip.prototype.CenterOnStage = function (fInterpFunction, iDuration) {
var _local1 = this;
var _local2 = fInterpFunction;
if (_local2 == undefined) {
_local1._x = Math.round((Stage.width - _local1._width) / 2);
_local1._y = Math.round((Stage.height - _local1._height) / 2);
} else {
var iNewX = Math.round((Stage.width - _local1._width) / 2);
var _local3 = Math.round((Stage.height - _local1._height) / 2);
_local1.StartInterpolation(INTERPOLATE_X, _local1._x, iNewX, iDuration, _local2);
_local1.StartInterpolation(INTERPOLATE_Y, _local1._y, _local3, iDuration, _local2);
}
};
MovieClip.prototype.CenterOnStageInterpolate = function () {
var _local1 = this;
var _local3 = Math.round((Stage.width - _local1._width) / 2);
var _local2 = Math.round((Stage.height - _local1._height) / 2);
_local1.StartInterpolation(INTERPOLATE_X, _local1._x, _local3, 2, InterpElasticOut, 0);
_local1.StartInterpolation(INTERPOLATE_Y, _local1._y, _local2, 2, InterpElasticOut, 0);
};
MovieClip.prototype.GetDistance = function (fX, fY) {
var _local1 = this;
return(Math.sqrt(((fX - _local1._x) * (fX - _local1._x)) + ((fY - _local1._y) * (fY - _local1._y))));
};
MovieClip.prototype.GetLoadTimeLeft = function () {
var _local1 = this;
var _local2 = -1;
var fMinimumtime = 2;
if ((_local1.getBytesTotal() > 4) && (_local1.getBytesLoaded() == _local1.getBytesTotal())) {
return(0);
}
var _local3 = getTimer() / 1000;
if (_local1.getBytesTotal() > 4) {
if (_local1.fStartTime == undefined) {
_local1.fStartTime = _local3;
_local1.iStartBytes = _local1.getBytesLoaded();
return(_local2);
}
if ((_local3 - _local1.fStartTime) < fMinimumtime) {
return(_local2);
}
var iBytesDownloaded = (_local1.getBytesLoaded() - _local1.iStartBytes);
var iBytesLeft = (_local1.getBytesTotal() - _local1.getBytesLoaded());
var fTimeSoFar = (_local3 - _local1.fStartTime);
return(fTimeSoFar * (iBytesLeft / iBytesDownloaded));
}
return(_local2);
};
MovieClip.prototype.GetPercentLoaded = function () {
var _local1 = this;
if (_local1.getBytesTotal() > 4) {
return((100 * _local1.getBytesLoaded()) / _local1.getBytesTotal());
}
return(0);
};
MovieClip.prototype.GetPercentLoadedInt = function () {
return(Math.round(this.GetPercentLoaded()));
};
MovieClip.prototype.GetRGB = function (iR, iG, iB) {
var _local1 = new Color(this);
return({r:_local1.getTransform().rb, g:_local1.getTransform().gb, b:_local1.getTransform().bb});
};
MovieClip.prototype.GetTint = function () {
var _local2 = new Color(this).getTransform();
var _local1 = {percent:100 - _local2.ra};
var _local3 = 100 / _local1.percent;
_local1.r = _local2.rb * _local3;
_local1.g = _local2.gb * _local3;
_local1.b = _local2.bb * _local3;
return(_local1);
};
MovieClip.prototype.ResetColor = function () {
var _local1 = new Color(this);
_local1.setTransform({ra:100, ga:100, ba:100, rb:0, gb:0, bb:0});
};
MovieClip.prototype.SafeTransform = function () {
var _local1 = this;
_local1._x = Math.round(_local1._x);
_local1._y = Math.round(_local1._y);
_local1._xscale = (_local1._yscale = 100);
_local1._rotation = 0;
};
MovieClip.prototype.SetBrightness = function (iValue) {
var cThis = new Color(this);
var tColor = cThis.getTransform();
with (tColor) {
rb = (gb = (bb = iValue));
}
cThis.setTransform(tColor);
};
MovieClip.prototype.GetColorTransform = function () {
var _local2 = new Color(this);
var _local1 = _local2.getTransform();
return({ra:_local1.ra, ga:_local1.ga, ba:_local1.ba, rb:_local1.rb, gb:_local1.gb, bb:_local1.bb, aa:_local1.aa, ab:_local1.ab});
};
MovieClip.prototype.SetColorTransform = function (iRA, iGA, iBA, iRB, iGB, iBB, iAA, iAB) {
var cThis = new Color(this);
var tColor = cThis.getTransform();
with (tColor) {
ra = iRA;
ga = iGA;
ba = iBA;
rb = iRB;
gb = iGB;
bb = iBB;
aa = iAA;
ab = iAB;
}
cThis.setTransform(tColor);
};
MovieClip.prototype.SetNegativeColor = function (iValue) {
var _local2 = new Color(this);
var _local1 = {};
_local1.ra = (_local1.ga = (_local1.ba = 100 - (2 * iValue)));
_local1.rb = (_local1.gb = (_local1.bb = iValue * 2.55));
_local2.setTransform(_local1);
};
MovieClip.prototype.SetNegativeColorSpecial = function (iValue) {
var _local3 = iValue;
var _local2 = new Color(this);
var _local1 = {};
var fNormalized = (_local3 / 100);
_local1.ra = (_local1.ga = (_local1.ba = 100 - (2 * _local3)));
_local1.rb = (_local1.gb = (_local1.bb = _local3 * 2.55));
_local2.setTransform(_local1);
};
MovieClip.prototype.SetPercentBlue = function (iPercent) {
var _local1 = new Color(this);
var _local2 = _local1.getTransform();
_local2.ba = iPercent;
_local1.setTransform(_local2);
};
MovieClip.prototype.SetPercentGreen = function (iPercent) {
var _local1 = new Color(this);
var _local2 = _local1.getTransform();
_local2.ga = iPercent;
_local1.setTransform(_local2);
};
MovieClip.prototype.SetPercentRed = function (iPercent) {
var _local1 = new Color(this);
var _local2 = _local1.getTransform();
_local2.ra = iPercent;
_local1.setTransform(_local2);
};
MovieClip.prototype.SetRGBPercent = function (iR, iG, iB) {
var _local2 = new Color(this);
var _local1 = _local2.getTransform();
_local1.ra = iR;
_local1.ga = iG;
_local1.ba = iB;
_local2.setTransform(_local1);
};
MovieClip.prototype.SetRGB = function (iR, iG, iB) {
var _local1 = new Color(this);
_local1.setRGB(((iR << 16) | (iG << 8)) | iB);
};
MovieClip.prototype.GetTint = function () {
var _local2 = new Color(this).getTransform();
var _local1 = {percent:100 - _local2.ra};
var _local3 = 100 / _local1.percent;
_local1.r = _local2.rb * _local3;
_local1.g = _local2.gb * _local3;
_local1.b = _local2.bb * _local3;
return(_local1);
};
MovieClip.prototype.SetTint = function (iR, iG, iB, iPercent) {
var _local3 = new Color(this);
var _local2 = iPercent / 100;
var _local1 = {rb:iR * _local2, gb:iG * _local2, bb:iB * _local2};
_local1.ra = (_local1.ga = (_local1.ba = 100 - iPercent));
_local3.setTransform(_local1);
};
MovieClip.prototype.Soundstop = function () {
var _local1 = this;
if (_local1.sndAttached != undefined) {
_local1.sndAttached.stop();
_local1.sndAttached = undefined;
}
};
MovieClip.prototype.SoundVolume = function (iVolume) {
if ((this.sndAttached != undefined) && (iVolume != undefined)) {
this.sndAttached.setVolume(iVolume);
}
};
MovieClip.prototype.SoundStart = function (sName, iVolume, bLoop) {
var _local1 = this;
var _local2 = 0;
_local1.sndAttached = new Sound(_local1);
_local1.sndAttached.attachSound(sName);
if (iVolume != undefined) {
_local1.sndAttached.setVolume(iVolume);
}
if ((bLoop != undefined) && (bLoop == true)) {
_local2 = 9999;
}
_local1.sndAttached.start(0, _local2);
};
MovieClip.prototype.SoundActive = function () {
if (this.sndAttached == undefined) {
return(false);
}
return(true);
};
}
if (_global.SPACE150_STAGE_DEFINED != true) {
_global.SPACE150_STAGE_DEFINED = true;
MovieClip.prototype.FullScreenStart = function () {
var _local1 = this;
if ((_local1._width == 0) || (_local1._height == 0)) {
} else {
Stage.align = "LT";
Stage.scaleMode = "noScale";
_local1.fDefaultWidth = _local1._width;
_local1.fDefaultHeight = _local1._height;
_local1.fDefault_PosX = _local1._x;
_local1.fDefault_PosY = _local1._y;
_local1.fDefault_ScaleX = _local1._xscale;
_local1.fDefault_ScaleY = _local1._yscale;
_local1.Update = function () {
var _local1 = this;
var fScaleX = (Stage.width / _local1.fDefaultWidth);
var _local3 = Stage.height / _local1.fDefaultHeight;
var _local2 = 1;
if (fScaleX > _local3) {
_local2 = fScaleX;
} else {
_local2 = _local3;
}
_local1._xscale = (_local1._yscale = 100 * _local2);
_local1.CenterOnStage();
};
_local1.StageListener = new Object();
_local1.StageListener.mcRef = _local1;
_local1.StageListener.onResize = function () {
this.mcRef.Update();
};
Stage.addListener(_local1.StageListener);
_local1.Update();
}
};
MovieClip.prototype.FullScreenEnd = function () {
var _local1 = this;
Stage.removeListener(_local1.StageListener);
_local1._x = _local1.fDefault_PosX;
_local1._y = _local1.fDefault_PosY;
_local1._xscale = _local1.fDefault_ScaleX;
_local1._yscale = _local1.fDefault_ScaleY;
delete _local1.fDefaultWidth;
delete _local1.fDefaultHeight;
delete _local1.fDefault_PosX;
delete _local1.fDefault_PosY;
delete _local1.fDefault_ScaleX;
delete _local1.fDefault_ScaleY;
delete _local1.Update;
delete _local1.StageListener;
};
MovieClip.prototype.FullScreenTileStart = function (mcTileMovieClip) {
var _local1 = this;
if (((mcTileMovieClip == undefined) || (mcTileMovieClip._width == 0)) || (mcTileMovieClip._height == 0)) {
} else {
Stage.align = "LT";
Stage.scaleMode = "noScale";
_local1.RemoveTiles = function () {
var _local3 = this;
if (_local3.aGrid != undefined) {
var _local2 = 0;
while (_local2 < _local3.iNumY) {
var _local1 = 0;
while (_local1 < _local3.iNumX) {
_local3.aGrid[_local2][_local1].removeMovieClip();
_local1++;
}
_local2++;
}
delete _local3.aGrid[_local2];
}
delete _local3.aGrid;
};
_local1.Update = function () {
var _local1 = this;
_local1.RemoveTiles();
_local1.aGrid = new Array();
_local1.fSpacingX = _local1.mcTile._width;
_local1.fSpacingY = _local1.mcTile._height;
_local1.iDepthValue = 0;
_local1.iNumX = Math.ceil(Stage.width / _local1.mcTile._width);
_local1.iNumY = Math.ceil(Stage.height / _local1.mcTile._height);
_local1.SafeTransform();
_local1.mcTile.SafeTransform();
var iY = 0;
while (iY < _local1.iNumY) {
_local1.aGrid[iY] = new Array(iNumX);
var _local3 = 0;
while (_local3 < _local1.iNumX) {
var sName = String((iY + "_") + _local3);
var _local2 = _local1.mcTile.duplicateMovieClip(sName, _local1.iDepthValue++);
_local1.aGrid[iY][_local3] = _local2;
_local2._x = _local3 * _local1.fSpacingX;
_local2._y = iY * _local1.fSpacingY;
_local2._visible = true;
_local2.iDepth = _local1.iDepthValue;
_local3++;
}
iY++;
}
};
_local1.mcTile = mcTileMovieClip;
_local1.mcTile._visible = false;
_local1.StageListener = new Object();
_local1.StageListener.mcRef = _local1;
_local1.StageListener.onResize = function () {
this.mcRef.Update();
};
Stage.addListener(_local1.StageListener);
_local1.Update();
}
};
MovieClip.prototype.FullScreenTileEnd = function () {
var _local1 = this;
Stage.removeListener(_local1.StageListener);
_local1.RemoveTiles();
delete _local1.fSpacingX;
delete _local1.fSpacingY;
delete _local1.iDepthValue;
delete _local1.iNumX;
delete _local1.iNumY;
delete _local1.Update;
delete _local1.RemoveTiles;
delete _local1.StageListener;
};
MovieClip.prototype.CenterOnStageStart = function (fInterpolateFunction, iInterpDuration) {
var _local1 = this;
Stage.align = "LT";
Stage.scaleMode = "noScale";
_local1.fDefault_PosX = _local1._x;
_local1.fDefault_PosY = _local1._y;
_local1.fInterpFunction = fInterpolateFunction;
_local1.iDuration = iInterpDuration;
_local1.Update = function () {
var _local1 = this;
_local1.CenterOnStage(_local1.fInterpFunction, _local1.iDuration);
};
_local1.StageListener = new Object();
_local1.StageListener.mcRef = _local1;
_local1.StageListener.onResize = function () {
this.mcRef.Update();
};
Stage.addListener(_local1.StageListener);
_local1.Update();
};
MovieClip.prototype.CenterOnStageEnd = function () {
var _local1 = this;
Stage.removeListener(_local1.StageListener);
_local1._x = _local1.fDefault_PosX;
_local1._y = _local1.fDefault_PosY;
delete _local1.fInterpFunction;
delete _local1.iDuration;
delete _local1.fDefault_PosX;
delete _local1.fDefault_PosY;
delete _local1.Update;
delete _local1.StageListener;
};
}
if (_global.SPACE150_STRING_DEFINED != true) {
_global.SPACE150_STRING_DEFINED = true;
_global.gStringReplace = function (sString, sReplace, sReplaceWith) {
var _local3 = sReplace;
sReturn = new String();
bFound = false;
var _local2 = 0;
for ( ; _local2 < sString.length ; _local2++) {
if (sString.charAt(_local2) == _local3.charAt(0)) {
bFound = true;
var _local1 = 0;
while (_local1 < _local3.length) {
if (sString.charAt(_local2 + _local1) != _local3.charAt(_local1)) {
bFound = false;
break;
}
_local1++;
}
if (bFound) {
sReturn = sReturn + sReplaceWith;
_local2 = _local2 + (_local3.length - 1);
continue;
}
} else {
sReturn = sReturn + sString.charAt(_local2);
}
}
return(sReturn);
};
_global.StringFormatCommas = function (fNumber) {
if (isNaN(fNumber) == true) {
fNumber = 0;
}
var _local3 = String(fNumber);
var _local2 = "";
var iCount = 0;
if (_local3.length <= 3) {
return(_local3);
}
var _local1 = _local3.length;
while (_local1 > 0) {
_local2 = _local3.charAt(_local1 - 1) + _local2;
iCount++;
if (((iCount % 3) == 0) && (_local1 != 1)) {
_local2 = "," + _local2;
}
_local1--;
}
return(_local2);
};
_global.StringFormatDollars = function (fAmount) {
if (isNaN(fAmount) == true) {
fAmount = 0;
}
var sNumber = String(MathRound(fAmount, 2));
var _local2 = "";
var _local3 = 0;
var iStartPos = -1;
iStartPos = sNumber.indexOf(".");
if (iStartPos == -1) {
iStartPos = sNumber.length;
}
var _local1 = iStartPos;
while (_local1 > 0) {
_local2 = sNumber.charAt(_local1 - 1) + _local2;
_local3++;
if (((_local3 % 3) == 0) && (_local1 != 1)) {
_local2 = "," + _local2;
}
_local1--;
}
var iDecimalPos = _local2.indexOf(".", 0);
if (iDecimalPos == -1) {
_local2 = _local2 + ".00";
} else if ((_local2.length - iDecimalPos) == 2) {
_local2 = _local2 + "0";
}
_local2 = "$ " + _local2;
return(_local2);
};
_global.StringFormatPercent = function (fAmount) {
if (isNaN(fNumber) == true) {
fNumber = 0;
}
var _local3 = MathRound(fAmount, 4);
var _local1 = String(_local3);
var _local2 = _local1.indexOf(".", 0);
if (_local2 == -1) {
_local1 = _local1 + ".00";
} else if ((_local1.length - _local2) == 2) {
_local1 = _local1 + "0";
}
_local1 = _local1 + " %";
return(_local1);
};
_global.StringFormatDecimal = function (fNumber) {
var _local3 = fNumber;
if (isNaN(_local3) == true) {
_local3 = 0;
}
var fRounded = MathRound(_local3, 4);
var _local1 = String(fRounded);
var _local2 = _local1.indexOf(".", 0);
if (_local2 == -1) {
_local1 = _local1 + ".00";
} else if ((_local1.length - _local2) == 2) {
_local1 = _local1 + "0";
}
return(_local1);
};
_global.StringToNumber = function (sString) {
var sReturn = "";
var fReturn = 0;
var _local3 = "1234567890.";
var _local1 = 0;
while (_local1 < sString.length) {
var _local2 = sString.charAt(_local1);
if (_local3.indexOf(_local2) != -1) {
sReturn = sReturn + _local2;
if (_local2 == ".") {
_local3 = "1234567890";
}
}
_local1++;
}
fReturn = Number(sReturn);
if (isNaN(fReturn)) {
return(0);
}
return(fReturn);
};
_global.StringRemoveNonNumeric = function (sString, bDecimal) {
var _local3 = sString;
var sValid = "1234567890";
var sReturn = "";
if (bDecimal == true) {
sValid = sValid + ".";
}
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3.charAt(_local1);
if (sValid.indexOf(_local2) != -1) {
sReturn = sReturn + _local2;
}
_local1++;
}
return(sReturn);
};
_global.StringRemoveAllExcept = function (sString, sValid) {
var _local3 = sString;
var sReturn = "";
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3.charAt(_local1);
if (sValid.indexOf(_local2) != -1) {
sReturn = sReturn + _local2;
}
_local1++;
}
return(sReturn);
};
_global.StringRemoveWhitespace = function (sString) {
var _local3 = sString;
var sValid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_-+=!@#$%^&*(){}|[]\\;:'\",.<>/?";
var sReturn = "";
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3.charAt(_local1);
if (sValid.indexOf(_local2) != -1) {
sReturn = sReturn + _local2;
}
_local1++;
}
return(sReturn);
};
String.prototype.Replace = function (sReplace, sReplaceWith) {
var _local3 = sReplace;
sReturn = new String();
bFound = false;
var _local2 = 0;
for ( ; _local2 < this.length ; _local2++) {
if (this.charAt(_local2) == _local3.charAt(0)) {
bFound = true;
var _local1 = 0;
while (_local1 < _local3.length) {
if (this.charAt(_local2 + _local1) != _local3.charAt(_local1)) {
bFound = false;
break;
}
_local1++;
}
if (bFound) {
sReturn = sReturn + sReplaceWith;
_local2 = _local2 + (_local3.length - 1);
continue;
}
} else {
sReturn = sReturn + this.charAt(_local2);
}
}
return(sReturn);
};
_global.StringTrimStringInQuotes = function (sString) {
var _local2 = sString;
var _local1;
var _local3 = "\"";
_local1 = _local2.indexOf(_local3, 0);
if (_local1 == -1) {
return;
}
_local2 = _local2.substring(_local1 + 1, _local2.length);
_local1 = _local2.indexOf(_local3, 0);
if (_local1 == -1) {
return;
}
_local2 = _local2.substring(0, _local1);
};
_global.StringSliceQuotes = function (sText) {
var _local1 = sText;
var _local2;
var _local3 = "\"";
_local2 = _local1.indexOf(_local3, 0);
if (_local2 == -1) {
return(_local1);
}
_local1 = _local1.substring(_local2 + 1, _local1.length);
_local2 = _local1.indexOf(_local3, 0);
if (_local2 == -1) {
return(_local1);
}
_local1 = _local1.substring(0, _local2);
return(_local1);
};
}
if (_global.SPACE150_TIME_DEFINED != true) {
_global.SPACE150_TIME_DEFINED = true;
_global.GetTime = function () {
return(getTimer() / 1000);
};
_global.GetCurrentYear = function () {
var _local1 = new Date();
return(_local1.getFullYear());
};
_global.GetCurrentMonth = function () {
var _local1 = new Date();
return(_local1.getMonth() + 1);
};
_global.GetCurrentDay = function () {
var _local1 = new Date();
return(_local1.getDate());
};
_global.GetNiceDate = function () {
var _local1 = "";
var _local2 = "";
var _local3 = "";
myDate = new Date();
switch (myDate.getMonth()) {
case 0 :
_local1 = "January";
break;
case 1 :
_local1 = "February";
break;
case 2 :
_local1 = "March";
break;
case 3 :
_local1 = "April";
break;
case 4 :
_local1 = "May";
break;
case 5 :
_local1 = "June";
break;
case 6 :
_local1 = "July";
break;
case 7 :
_local1 = "August";
break;
case 8 :
_local1 = "September";
break;
case 9 :
_local1 = "October";
break;
case 10 :
_local1 = "November";
break;
case 11 :
_local1 = "December";
break;
default :
return("");
}
_local2 = myDate.getDate();
if (_local2.length == 1) {
_local2 = "0" + _local2;
}
_local3 = myDate.getFullYear();
_local3 = myDate.getFullYear();
_local3 = myDate.getFullYear();
return((((_local1 + " ") + _local2) + ", ") + _local3);
};
_global.GetNiceTime = function () {
var _local1 = "";
var _local2 = "";
var sSeconds = "";
myDate = new Date();
_local1 = String(myDate.getHours());
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local2 = String(myDate.getMinutes());
if (_local2.length == 1) {
_local2 = "0" + _local2;
}
var _local3 = myDate.getSeconds();
if (_local3 < 10) {
sSeconds = String("0" + (_local3 + (myDate.getMilliseconds() / 1000)));
} else {
sSeconds = String(_local3 + (myDate.getMilliseconds() / 1000));
}
return((((_local1 + ":") + _local2) + ":") + sSeconds);
};
_global.GetAgeAtDate = function (iBirthMonth, iBirthDay, iBirthYear, iMonth, iDay, iYear) {
var _local2 = iBirthYear;
var _local3 = iYear;
var _local1 = 0;
if ((((((iBirthMonth == undefined) || (iBirthDay == undefined)) || (_local2 == undefined)) || (iMonth == undefined)) || (iDay == undefined)) || (_local3 == undefined)) {
return(0);
}
if (_local2 >= _local3) {
return(0);
}
if ((iBirthMonth <= iMonth) && (iBirthDay <= iDay)) {
_local1 = _local3 - _local2;
} else {
_local1 = (_local3 - _local2) - 1;
}
return(_local1);
};
_global.GetAgeToday = function (iBirthMonth, iBirthDay, iBirthYear) {
var _local2 = GetCurrentYear();
var _local3 = GetCurrentMonth();
var _local1 = GetCurrentDay();
var iAge = 0;
if (((iBirthMonth == undefined) || (iBirthDay == undefined)) || (iBirthYear == undefined)) {
return(0);
}
return(GetAgeAtDate(iBirthMonth, iBirthDay, iBirthYear, _local3, _local1, _local2));
};
}
if (_global.SPACE150_VECTOR_DEFINED != true) {
_global.SPACE150_VECTOR_DEFINED = true;
_global.Vec2 = function (fX, fY) {
this.x = fX;
this.y = fY;
};
Vec2.prototype.Length = function () {
var _local1 = this;
return(Math.sqrt((_local1.x * _local1.x) + (_local1.y * _local1.y)));
};
Vec2.prototype.LengthSqr = function () {
var _local1 = this;
return((_local1.x * _local1.x) + (_local1.y * _local1.y));
};
Vec2.prototype.LengthTo = function (vVec) {
var _local2 = vVec.x - this.x;
var _local1 = vVec.y - this.y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
};
Vec2.prototype.LengthToSqr = function (vVec) {
var _local2 = vVec.x - this.x;
var _local1 = vVec.y - this.y;
return((_local2 * _local2) + (_local1 * _local1));
};
Vec2.prototype.Set = function (fX, fY) {
this.x = fX;
this.y = fY;
};
Vec2.prototype.Output = function (sName) {
var _local1 = sName;
if (_local1 == undefined) {
_local1 = "Vec2";
}
trace(((((_local1 + " = (") + this.x) + ",") + this.y) + ")");
};
}
Frame 3
stop();
Instance of Symbol 62 MovieClip in Symbol 65 MovieClip Frame 28
on (press) {
_parent._parent._parent.gotoAndStop(2);
}
Symbol 65 MovieClip Frame 30
stop();
Instance of Symbol 64 MovieClip in Symbol 65 MovieClip Frame 30
onClipEvent (load) {
SetupDefaultButton();
}
on (press) {
getURL ("emailafriend.cfm?page=2", "_blank");
}
Symbol 75 MovieClip Frame 38
gotoAndStop (1);
Symbol 96 MovieClip Frame 256
stop();
mcCheerleader.Reset();
gotoAndStop (1);
Symbol 101 MovieClip Frame 10
_rotation = (360 * Math.random());
Symbol 101 MovieClip Frame 42
stop();
Symbol 107 MovieClip Frame 25
stop();
Instance of Symbol 114 MovieClip "mcPhone" in Symbol 116 MovieClip Frame 3
onClipEvent (load) {
stop();
}
Symbol 116 MovieClip Frame 11
mcPhone.play();
Symbol 116 MovieClip Frame 107
mcPhone.stop();
Symbol 116 MovieClip Frame 120
stop();
mcCheerleader.Reset();
Symbol 119 MovieClip Frame 1
mcGame.SetTint(0, 0, 50, 0);
Symbol 119 MovieClip Frame 2
mcGame.SetTint(255, 255, 150, 80);
Symbol 119 MovieClip Frame 5
mcGame.SetTint(0, 0, 50, 80);
Symbol 119 MovieClip Frame 9
mcGame.SetTint(0, 0, 50, 20);
Symbol 119 MovieClip Frame 13
mcGame.SetTint(0, 0, 50, 80);
Symbol 119 MovieClip Frame 16
mcGame.SetTint(0, 0, 50, 20);
Symbol 119 MovieClip Frame 19
mcGame.SetTint(0, 0, 50, 80);
Symbol 119 MovieClip Frame 22
mcGame.SetTint(0, 0, 50, 20);
Symbol 119 MovieClip Frame 25
mcGame.SetTint(0, 0, 50, 80);
Symbol 119 MovieClip Frame 28
mcGame.SetTint(0, 0, 50, 20);
Symbol 119 MovieClip Frame 31
mcGame.SetTint(0, 0, 50, 50);
Symbol 119 MovieClip Frame 33
mcGame.SetTint(0, 0, 50, 10);
Symbol 119 MovieClip Frame 35
mcGame.SetTint(0, 0, 50, 0);
Symbol 119 MovieClip Frame 59
mcGame.SetTint(0, 0, 50, 10);
Symbol 119 MovieClip Frame 61
mcGame.SetTint(0, 0, 50, 0);
Symbol 119 MovieClip Frame 77
mcGame.SetTint(0, 0, 50, 10);
Symbol 119 MovieClip Frame 79
mcGame.SetTint(0, 0, 50, 0);
Symbol 119 MovieClip Frame 84
gotoAndStop (1);
Symbol 128 MovieClip Frame 166
stop();
mcCheerleader.Reset();
Instance of Symbol 81 MovieClip "mcScoreboard" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function React() {
if ((bOncePerShot == true) && (bDetectedThisShot == true)) {
return(undefined);
}
mcJumotronGraphics.Activate();
mcCheerleader.BreakCheerleaderLimbs();
mcCheerleader.vVelocity.x = mcCheerleader.vVelocity.x / 20;
mcCheerleader.vVelocity.y = 0;
mcCheerleader.fCurrentGravity = 0.3;
mcCheerleader.SetVisualsSkeleton();
bDetectedThisShot = true;
mcGame.GoalCompleted("shocker");
return(true);
}
function ResetForNewShot() {
bDetectedThisShot = false;
}
var mcGame = _parent._parent;
var mcCheerleader = _parent._parent.mcCheerleader;
var mcGame = _parent._parent;
var bMultipleCollisions = true;
var bOncePerShot = true;
var bDetectedThisShot = false;
var mcJumotronGraphics = _parent.mcJumotronGraphics;
_visible = false;
}
Instance of Symbol 83 MovieClip "mcTrampoline" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function React() {
if ((bOncePerShot == true) && (bDetectedThisShot == true)) {
return(undefined);
}
if ((mcCheerleader.vVelocity.y < 10) || (Math.abs(mcCheerleader.vVelocity.y) < Math.abs(mcCheerleader.vVelocity.x))) {
return(false);
}
mcTrampolineGraphics.Activate();
mcCheerleader.BreakCheerleaderLimbs();
mcCheerleader.vVelocity.y = Math.abs(mcCheerleader.vVelocity.y * 20);
mcGame.GoalCompleted("trampoline");
SetBrightness(-200);
bDetectedThisShot = true;
return(true);
}
function ResetForNewShot() {
bDetectedThisShot = false;
mcTrampolineGraphics.gotoAndStop(1);
}
var mcGame = _parent._parent;
var mcCheerleader = _parent._parent.mcCheerleader;
var mcTrampolineGraphics = _parent.mcTrampolineGraphics;
var bMultipleCollisions = true;
var bOncePerShot = true;
var bDetectedThisShot = false;
_visible = false;
}
Instance of Symbol 84 MovieClip "mcWindow" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function React() {
if ((bOncePerShot == true) && (bDetectedThisShot == true)) {
return(undefined);
}
mcGraphics.Activate();
mcCheerleader._visible = false;
mcCheerleader.WaitForExternalReset();
mcCheerleader.BreakCheerleaderLimbs();
mcCheerleader.vVelocity.x = 0;
mcCheerleader.vVelocity.y = 0;
SetBrightness(-200);
bDetectedThisShot = true;
mcGame.GoalCompleted("dumpster");
return(true);
}
function ResetForNewShot() {
bDetectedThisShot = false;
}
var mcGame = _parent._parent;
var mcCheerleader = _parent._parent.mcCheerleader;
var mcGame = _parent._parent;
var mcGraphics = _parent.mcWindowGraphics;
var bMultipleCollisions = true;
var bOncePerShot = true;
var bDetectedThisShot = false;
}
Instance of Symbol 85 MovieClip "mcHummingbird" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function React() {
if (mcCheerleader.vVelocity.x < 0) {
mcHummingBirdGraphics._xscale = mcHummingBirdGraphics._xscale * -1;
}
mcCheerleader.WaitForExternalReset();
mcHummingBirdGraphics.Activate();
mcCheerleader.BreakCheerleaderLimbs();
mcCheerleader.vVelocity.x = mcCheerleader.vVelocity.x / -8;
SetBrightness(-200);
mcGame.GoalCompleted("hummingbird");
return(true);
}
var mcGame = _parent._parent;
var mcCheerleader = _parent._parent.mcCheerleader;
var mcHummingBirdGraphics = _parent.mcHummingBirdGraphics;
_visible = false;
}
Instance of Symbol 86 MovieClip "mcVendor" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function React() {
if (mcCheerleader.vVelocity.x < 0) {
}
mcCheerleader.WaitForExternalReset();
mcVendorGraphics.Activate();
mcCheerleader.BreakCheerleaderLimbs();
mcCheerleader.vVelocity.x = mcCheerleader.vVelocity.x / -8;
SetBrightness(-200);
mcGame.GoalCompleted("crowdpleaser");
return(true);
}
var mcGame = _parent._parent;
var mcCheerleader = _parent._parent.mcCheerleader;
var mcVendorGraphics = _parent.mcVendorGraphics;
_visible = false;
}
Instance of Symbol 88 MovieClip "mcBlimp" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function React() {
mcBlimpGraphics.Activate();
mcCheerleader.BreakCheerleaderLimbs();
mcCheerleader.vVelocity.x = mcCheerleader.vVelocity.x * -1;
mcCheerleader.vVelocity.y = mcCheerleader.vVelocity.y * -1;
SetBrightness(-200);
mcGame.GoalCompleted("blimp");
return(true);
}
var mcGame = _parent._parent;
var mcCheerleader = _parent._parent.mcCheerleader;
var mcBlimpGraphics = _parent.mcBlimpGraphics;
_visible = false;
}
Instance of Symbol 89 MovieClip "mcRightBasketDetector" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function React() {
if ((bOncePerShot == true) && (bDetectedThisShot == true)) {
return(undefined);
}
if (mcCheerleader.vVelocity.y < 0) {
return(undefined);
}
mcCheerleaderPoint._x = mcCheerleader._x;
mcCheerleaderPoint._y = mcCheerleader._y;
if (this.hitTest(mcCheerleaderPoint) == true) {
mcRightBasket.ActivateBasket();
mcCheerleader.BreakCheerleaderLimbs();
mcCheerleader.vVelocity.x = 0;
mcCheerleader.vVelocity.y = 0;
SetBrightness(-200);
mcCheerleader.IncrementBasketCount();
mcGame.GoalCompleted("3pointer");
bDetectedThisShot = true;
return(true);
}
return(false);
}
function ResetForNewShot() {
bDetectedThisShot = false;
}
var mcGame = _parent._parent;
var mcCheerleader = _parent._parent.mcCheerleader;
var mcCheerleaderPoint = mcCheerleader._parent.mcCheerleaderPoint;
var bMultipleCollisions = true;
var bOncePerShot = true;
var bDetectedThisShot = false;
var mcRightBasket = _parent._parent.mcRightBasket;
_visible = false;
}
Instance of Symbol 89 MovieClip "mcLeftBasketDetector" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function React() {
if ((bOncePerShot == true) && (bDetectedThisShot == true)) {
return(undefined);
}
if (mcCheerleader.vVelocity.y < 0) {
return(undefined);
}
mcCheerleaderPoint._x = mcCheerleader._x;
mcCheerleaderPoint._y = mcCheerleader._y;
if (this.hitTest(mcCheerleaderPoint) == true) {
mcLeftBasket.ActivateBasket();
mcCheerleader.BreakCheerleaderLimbs();
mcCheerleader.vVelocity.x = 0;
mcCheerleader.vVelocity.y = 0;
SetBrightness(-200);
mcGame.GoalCompleted("2pointer");
mcCheerleader.IncrementBasketCount();
bDetectedThisShot = true;
return(true);
}
return(false);
}
function ResetForNewShot() {
bDetectedThisShot = false;
}
var mcGame = _parent._parent;
var mcCheerleader = _parent._parent.mcCheerleader;
var mcCheerleaderPoint = mcCheerleader._parent.mcCheerleaderPoint;
var bMultipleCollisions = true;
var bOncePerShot = true;
var bDetectedThisShot = false;
var mcLeftBasket = _parent._parent.mcLeftBasket;
_visible = false;
}
Instance of Symbol 96 MovieClip "mcWindowGraphics" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
var mcCheerleader = _parent._parent.mcCheerleader;
SetupReactorGraphics();
}
Instance of Symbol 101 MovieClip "mcBlimpGraphics" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
SetupReactorGraphics();
}
Instance of Symbol 107 MovieClip "mcTrampolineGraphics" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
SetupReactorGraphics();
}
Instance of Symbol 116 MovieClip "mcHummingBirdGraphics" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
var mcCheerleader = _parent._parent.mcCheerleader;
SetupReactorGraphics();
}
Instance of Symbol 119 MovieClip "mcJumotronGraphics" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
var mcGame = _parent._parent;
SetupReactorGraphics();
}
Instance of Symbol 128 MovieClip "mcVendorGraphics" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
var mcCheerleader = _parent._parent.mcCheerleader;
SetupReactorGraphics();
}
Symbol 136 MovieClip Frame 25
stop();
Symbol 136 MovieClip Frame 41
stop();
Instance of Symbol 139 MovieClip "mcArmRight" in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
SetupCheerleaderPart();
}
Instance of Symbol 142 MovieClip "mcArmLeft" in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
SetupCheerleaderPart();
}
Instance of Symbol 145 MovieClip "mcLegRight" in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
SetupCheerleaderPart();
}
Instance of Symbol 148 MovieClip "mcLegLeft" in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
SetupCheerleaderPart();
}
Instance of Symbol 151 MovieClip "mcTorso" in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
SetupCheerleaderPart();
}
Symbol 169 MovieClip Frame 32
gotoAndStop (1);
Symbol 169 MovieClip Frame 64
gotoAndStop (1);
Symbol 171 MovieClip Frame 307
stop();
Symbol 172 MovieClip Frame 1
createEmptyMovieClip("mcDraw", 1);
mcDraw.DrawLine = function (fX1, fY1, fX2, fY2) {
var _local1 = this;
_local1.lineStyle(1, 13637136, 25);
_local1.moveTo(fX1, fY1);
_local1.lineTo(fX2, fY2);
};
mcDraw.ClearLines = function () {
this.clear();
};
Instance of Symbol 70 MovieClip "mcBleacher" in Symbol 172 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 75 MovieClip "mcLeftBackboardAndPole" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
SetupBackboard();
}
Instance of Symbol 75 MovieClip "mcRightBackboardAndPole" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
SetupBackboard();
}
Instance of Symbol 77 MovieClip "mcShotSetup" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function SetShotInfo(fDegrees, fPower) {
dtText.text = (("angle : " + MathRound(fDegrees, 1)) + "\rpower : ") + MathRound(fPower, 1);
}
function Show(fX, fY) {
if ((fX != undefined) && (fY != undefined)) {
_x = fX;
_y = fY;
}
dtText.text = "";
_visible = true;
}
function Hide() {
_visible = false;
}
Hide();
}
Instance of Symbol 79 MovieClip "mcCollider2" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function Activate() {
mcRightBackboardAndPole.Activate();
}
var mcRightBackboardAndPole = _parent.mcRightBackboardAndPole;
}
Instance of Symbol 79 MovieClip "mcCollider3" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function Activate() {
mcLeftBackboardAndPole.Activate();
}
var mcLeftBackboardAndPole = _parent.mcLeftBackboardAndPole;
}
Instance of Symbol 79 MovieClip "mcCollider4" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function Activate() {
mcLeftBasket.Activate();
}
var mcLeftBasket = _parent.mcLeftBasket;
}
Instance of Symbol 79 MovieClip "mcCollider1" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function Activate() {
mcRightBasket.Activate();
}
var mcRightBasket = _parent.mcRightBasket;
}
Instance of Symbol 129 MovieClip "mcReactors" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function DetectCollision(mcCheerleader) {
var _local3 = mcCheerleader;
var _local1 = 0;
while (_local1 < aColliders.length) {
var _local2 = aColliders[_local1];
if (_local3.hitTest(_local2)) {
if (_local2.React() == true) {
if (_local2.bMultipleCollisions != true) {
aColliders.splice(_local1, 1);
}
}
return;
}
_local1++;
}
}
function ResetForNewShot() {
var _local1 = 0;
while (_local1 < aColliders.length) {
aColliders[_local1].ResetForNewShot();
_local1++;
}
}
var mcGame = _parent;
var aColliders = new Array(mcScoreboard, mcWindow, mcTrampoline, mcLeftBasketDetector, mcRightBasketDetector, mcHummingbird, mcVendor, mcBlimp, mcLeftBasketDetector, mcRightBasketDetector);
}
Instance of Symbol 131 MovieClip "mcArrow" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 136 MovieClip "mcGuy" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function FaceLeft() {
if (_currentframe <= 25) {
gotoAndPlay ("left");
}
}
function FaceRight() {
if (_currentframe > 25) {
gotoAndPlay ("right");
}
}
stop();
_visible = false;
}
Instance of Symbol 152 MovieClip "mcCheerleader" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function Refresh() {
if (bWaitForReset == true) {
return(undefined);
}
if (bDragging) {
UpdateDragState();
return(undefined);
}
UpdateVelocityAndPosition();
CheckCollisionWithVerticalObjects();
CheckCollisionWithWorld();
CheckCollisionWithReactors();
UpdateRotation();
CheckFinishedMoving();
vPositionPrev.x = _x;
vPositionPrev.y = _y;
_x = vPosition.x;
_y = vPosition.y;
mcGame.Refresh();
}
function SetVisualsSkeleton() {
mcTorso.SetSkeleton();
mcArmLeft.SetSkeleton();
mcArmRight.SetSkeleton();
mcLegLeft.SetSkeleton();
mcLegRight.SetSkeleton();
}
function SetVisualsNormal() {
mcTorso.SetNormal();
mcArmLeft.SetNormal();
mcArmRight.SetNormal();
mcLegLeft.SetNormal();
mcLegRight.SetNormal();
}
function WaitForExternalReset() {
bWaitForExternalCompletion = true;
}
function StopGame() {
clearInterval(iInterval);
iInterval = -1;
}
function HitRim() {
bHitRim = true;
}
function IncrementBasketCount() {
iBasketCount++;
mcGameStatus.SetNumberOfBaskets(iBasketCount);
if (iBasketCount == 4) {
mcGame.GoalCompleted("4baskets");
}
if (bHitRim == false) {
mcGame.GoalCompleted("swish");
}
}
function FastVerticalIntersect(x1, y1, x2, y2, x3, y3, x4, y4) {
var _local1 = x3;
var _local2 = x1;
x2 = _local2;
if (((_local1 > _local2) && (x4 > _local2)) || ((_local1 < _local2) && (x4 < _local2))) {
return(false);
}
if (((y3 < y1) && (y4 < y1)) || ((y3 > y2) && (y4 < y1))) {
return(false);
}
var xOffset = _local2;
var _local3 = y1;
_local2 = _local2 - xOffset;
y1 = y1 - _local3;
x2 = x2 - xOffset;
y2 = y2 - _local3;
_local1 = _local1 - xOffset;
y3 = y3 - _local3;
x4 = x4 - xOffset;
y4 = y4 - _local3;
var m = ((y4 - y3) / (x4 - _local1));
var b = (y3 - (m * _local1));
if ((b < 0) || (b > y2)) {
return(false);
}
if (((_local1 > 0) && (x4 > 0)) || ((_local1 < 0) && (x4 < 0))) {
return(false);
}
return({_x:xOffset, _y:b + _local3});
}
function CheckFinishedMoving() {
if ((((_y == vMovieBounds.bottom) && (fCurrentGravity != 0)) && (_x == vPositionPrev.x)) && (_y == vPositionPrev.y)) {
if (bWaitForExternalCompletion == true) {
bWaitForReset = true;
} else {
PlayRandomEndingSound();
}
}
}
function SetupVerticalCollisionObjects(aMovieClips) {
var _local2 = aMovieClips;
function SortMovieClipsIncreasingX(mcA, mcB) {
if (mcA._x < mcb._x) {
return(-1);
}
if (mcA._x > mcb._x) {
return(1);
}
return(0);
}
function SortMovieClipsDecreasingX(mcA, mcB) {
if (mcA._x > mcb._x) {
return(-1);
}
if (mcA._x < mcb._x) {
return(1);
}
return(0);
}
if (_local2 == undefined) {
} else {
var _local1 = _parent;
while (_local1 != undefined) {
vWorldOffset.x = vWorldOffset.x + _local1._x;
vWorldOffset.y = vWorldOffset.y + _local1._y;
_local1 = _local1._parent;
}
_parent.dtDebug.text = ((("offset = (" + vWorldOffset.x) + ", ") + vWorldOffset.y) + ")";
for (mcCurrent in _local2) {
_local2[mcCurrent]._x = _local2[mcCurrent]._x - vWorldOffset.x;
_local2[mcCurrent]._y = _local2[mcCurrent]._y - vWorldOffset.y;
_local2[mcCurrent].SetupVerticalCollider(0.1);
}
aVerticalColliders = _local2;
aVerticalColliders.sort(SortMovieClipsIncreasingX);
aVerticalCollidersReverse = _local2;
aVerticalCollidersReverse.sort(SortMovieClipsDecreasingX);
}
}
function CheckCollisionWithReactors() {
mcReactors.DetectCollision(this);
}
function CheckCollisionWithVerticalObjects() {
var aCollisionObjects = ((vVelocity.x > 0) ? ((aCollisionObjects = aVerticalColliders)) : ((aCollisionObjects = aVerticalCollidersReverse)));
var _local3 = 0;
while (_local3 < aCollisionObjects.length) {
var _local1 = aCollisionObjects[_local3];
var _local2 = FastVerticalIntersect(_local1.xMin, _local1.yMin, _local1.xMax, _local1.yMax, _x, _y, vPosition.x, vPosition.y);
if (_local2 == false) {
} else {
if (vVelocity.x > 0) {
vPosition.x = _local2._x - 1;
} else {
vPosition.x = _local2._x + 1;
}
vVelocity.x = vVelocity.x * (-_local1.fRebound);
_local1.Activate();
BreakCheerleaderLimbs();
HitRim();
}
_local3++;
}
}
function Reset() {
if (mcGame.IsGameCompleted() == true) {
StopGame();
if (iShotCount <= 10) {
mcPageFullGame.gotoAndStop("varsity");
} else if (iShotCount <= 15) {
mcPageFullGame.gotoAndStop("juniorvarsity");
} else {
mcPageFullGame.gotoAndStop("juniorjuniorvarsity");
}
}
mcCrowdNoise.Start();
SetTint(0, 0, 0, 0);
SetVisualsNormal();
bWaitForExternalCompletion = false;
bWaitForReset = false;
bThrown = false;
_visible = true;
_x = ((vPosition.x = vStartingPoint.x));
_y = ((vPosition.y = vStartingPoint.y));
vVelocity.x = (vVelocity.y = 0);
fCurrentGravity = 0;
_rotation = 0;
fRotationMax = 0;
mcArmLeft._rotation = fRotationArmLeftInitial;
mcArmRight._rotation = fRotationArmRightInitial;
mcLegLeft._rotation = fRotationLegLeftInitial;
mcLegRight._rotation = fRotationLegRightInitial;
mcReactors.ResetForNewShot();
bHitRim = false;
mcArrow._x = _x;
mcArrow._y = _y;
mcArrow._rotation = _rotation;
}
function BreakCheerleaderLimbs() {
fRotationArmLeft = -1 + (2 * Math.random());
fRotationArmRight = -1 + (2 * Math.random());
fRotationLegLeft = -1 + (2 * Math.random());
fRotationLegRight = -1 + (2 * Math.random());
if (fRotationMax == 0) {
mcArmLeft._rotation = mcArmLeft._rotation + ((10 * vVelocity.x) * fRotationArmLeft);
mcArmRight._rotation = mcArmRight._rotation + ((11 * vVelocity.x) * fRotationArmRight);
mcLegLeft._rotation = mcLegLeft._rotation + ((12 * vVelocity.x) * fRotationLegLeft);
mcLegRight._rotation = mcLegRight._rotation + ((13 * vVelocity.x) * fRotationLegRight);
}
fRotationMax = 2;
}
function UpdateDragState() {
var _local1;
mcDraw.Clear();
_rotation = (90 + (fRADIANS_TO_DEGREES * Math.atan2(vAnchor.y - _y, vAnchor.x - _x)));
mcGhost._rotation = 90 + (fRADIANS_TO_DEGREES * Math.atan2(vAnchor.y - _y, vAnchor.x - _x));
_local1 = Math.sqrt(((vAnchor.x - _x) * (vAnchor.x - _x)) + ((vAnchor.y - _y) * (vAnchor.y - _y))) / 10;
mcShotSetup.SetShotInfo(mcGhost._rotation, _local1);
_visible = false;
if (mcGhost._rotation > 0) {
}
mcArrow._rotation = mcGhost._rotation;
mcArrow._alpha = 60 + _local1;
mcArrow._xscale = (mcArrow._yscale = 20 + (2 * _local1));
mcArrow.SetTint(255, 0, 0, _local1 * 2);
}
function UpdateVelocityAndPosition() {
vVelocity.y = vVelocity.y + fCurrentGravity;
vPosition.x = vPosition.x + vVelocity.x;
vPosition.y = vPosition.y + vVelocity.y;
}
function CheckCollisionWithWorld() {
if (vPosition.y < vMovieBounds.top) {
vPosition.y = vMovieBounds.top;
vVelocity.y = vVelocity.y * (-vWORLD_REBOUND.y);
vVelocity.x = vVelocity.x * vWORLD_REBOUND.x;
BreakCheerleaderLimbs();
mcGame.PlaySoundEffect("bonebreakA.mp3");
} else if (vPosition.y > vMovieBounds.bottom) {
vPosition.y = vMovieBounds.bottom;
vVelocity.y = vVelocity.y * (-vWORLD_REBOUND.y);
vVelocity.x = vVelocity.x * vWORLD_REBOUND.x;
BreakCheerleaderLimbs();
} else if (vPosition.x > vMovieBounds.right) {
vPosition.x = vMovieBounds.right;
vVelocity.x = vVelocity.x * (-vWORLD_REBOUND.x);
BreakCheerleaderLimbs();
mcGame.PlaySoundEffect("bonebreakA.mp3");
} else if (vPosition.x < vMovieBounds.left) {
vPosition.x = vMovieBounds.left;
vVelocity.x = vVelocity.x * (-vWORLD_REBOUND.x);
BreakCheerleaderLimbs();
mcGame.PlaySoundEffect("bonebreakA.mp3");
}
}
function UpdateRotation() {
_rotation = (_rotation + (fRotationMax * vVelocity.x));
if (fRotationMax == 0) {
return(undefined);
}
mcArmLeft._rotation = mcArmLeft._rotation + ((fRotationMax * vVelocity.x) * fRotationArmLeft);
mcArmRight._rotation = mcArmRight._rotation + ((fRotationMax * vVelocity.x) * fRotationArmRight);
mcLegLeft._rotation = mcLegLeft._rotation + ((fRotationMax * vVelocity.x) * fRotationLegLeft);
mcLegRight._rotation = mcLegRight._rotation + ((fRotationMax * vVelocity.x) * fRotationLegRight);
}
function UpdateGhost() {
mcGhost._x = _x;
mcGhost._y = _y;
mcGhost._rotation = _rotation;
mcGhost._visible = true;
mcGhost.mcArmLeft._rotation = mcArmLeft._rotation;
mcGhost.mcArmRight._rotation = mcArmRight._rotation;
mcGhost.mcLegLeft._rotation = mcLegLeft._rotation;
mcGhost.mcLegRight._rotation = mcLegRight._rotation;
}
function PressHandler() {
if (bThrown == true) {
return(undefined);
}
if (MathRandomInt(1, 10) == 10) {
mcGame.PlaySoundEffect("chachi1.mp3");
}
Reset();
bDragging = true;
startDrag (this);
UpdateGhost();
vAnchor.x = _x;
vAnchor.y = _y;
vPositionPrev.x = _x;
vPositionPrev.y = _y;
mcShotSetup.Show(_x + 90, _y);
_visible = false;
mcArrow._xscale = (mcArrow._yscale = 0);
mcArrow._visible = true;
}
function ReleaseHandler() {
if (bThrown == true) {
return(undefined);
}
mcArrow._visible = false;
bThrown = true;
iShotCount++;
mcGameStatus.SetNumberOfShots(iShotCount);
stopDrag();
bDragging = false;
mcShotSetup.Hide();
mcDraw.Clear();
fCurrentGravity = fGRAVITY;
vVelocity.x = (-(_x - vPositionPrev.x)) / 4;
vVelocity.y = (-(_y - vPositionPrev.y)) / 4;
vPosition.x = vAnchor.x;
vPosition.y = vAnchor.y;
mcGhost._visible = false;
_visible = true;
}
function PlayGameSound(sName, fCallback) {
var _local1 = this;
if (_local1.sGirlSound == undefined) {
_local1.sGirlSound = new Sound(_local1);
_local1.sGirlSound.stop();
_local1.sGirlSound.attachSound(sName);
_local1.sGirlSound.setVolume(55);
_local1.sGirlSound.start();
_local1.sGirlSound.mcParent = _local1;
_local1.sGirlSound.onSoundComplete = function () {
fCallback();
this.mcParent.sGirlSound = undefined;
};
}
}
function PlayRandomEndingSound() {
if (MathRandomInt(1, 4) == 2) {
bWaitForExternalCompletion = (bWaitForReset = true);
iCurrentEndingSound++;
if (iCurrentEndingSound >= aEndingSounds.length) {
iCurrentEndingSound = 0;
}
PlayGameSound(aEndingSounds[iCurrentEndingSound], Reset);
} else {
_visible = false;
Reset();
}
}
_x = (_x + (-100 * Math.random()));
var vWORLD_REBOUND = {x:0.7, y:0.4};
var fGRAVITY = 1;
var fRADIANS_TO_DEGREES = 57.2957795130823;
var mcPageFullGame = _parent._parent;
var mcGame = _parent;
var mcGameStatus = _parent._parent.mcGameStatus;
var mcGhost = _parent.mcGhost;
var mcArrow = _parent.mcArrow;
var mcDraw = _parent.mcDraw;
var mcIntersection = _parent.mcIntersection;
var mcReactors = _parent.mcReactors;
var mcShotSetup = _parent.mcShotSetup;
var mcCrowdNoise = _parent.mcCrowdNoise;
var aVerticalColliders;
var aVerticalCollidersReverse;
var aEndingSounds = new Array("sonofa2.mp3", "darn3.mp3", "fracture2.mp3", "oww3.mp3", "imgood1.mp3", "lawsuit4.mp3", "lilhelp2.mp3", "oww2.mp3", "underpants2.mp3", "prom1.mp3", "retainer1.mp3", "scream6.mp3");
var iCurrentEndingSound = MathRandomInt(0, aEndingSounds.length - 1);
var vAnchor = {x:0, y:0};
var vMovieBounds = {left:-700, right:1472, bottom:220, top:-400};
var vPosition = {x:_x, y:_y};
var vPositionPrev = {x:_x, y:_y};
var vStartingPoint = {x:_x, y:_y};
var vVelocity = {x:0, y:0};
var vWorldOffset = {x:0, y:0};
var iInterval = -1;
var fCurrentGravity = 0;
var fRotationArmLeft = 0;
var fRotationArmLeftInitial = mcArmLeft._rotation;
var fRotationArmRight = 0;
var fRotationArmRightInitial = mcArmRight._rotation;
var fRotationLegLeft = 0;
var fRotationLegLeftInitial = mcLegLeft._rotation;
var fRotationLegRight = 0;
var fRotationLegRightInitial = mcLegRight._rotation;
var fRotationMax = 0;
var bDragging = false;
var bWaitForExternalCompletion = false;
var bWaitForReset = false;
var bHitRim = false;
var bThrown = false;
var iBasketCount = 0;
var iShotCount = 0;
mcGhost._visible = false;
SetupVerticalCollisionObjects(new Array(_parent.mcCollider1, _parent.mcCollider2, _parent.mcCollider3, _parent.mcCollider4));
onPress = PressHandler;
onRelease = (onReleaseOutside = ReleaseHandler);
iInterval = setInterval(Refresh, 20);
}
Instance of Symbol 154 MovieClip "mcIntersection" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
_x = -5000;
_yscale = 400;
_xscale = 400;
}
Instance of Symbol 154 MovieClip "mcCheerleaderPoint" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 169 MovieClip "mcLeftBasket" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
SetupBasket();
stop();
}
Instance of Symbol 169 MovieClip "mcRightBasket" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
SetupBasket();
stop();
}
Instance of Symbol 171 MovieClip "mcCrowdNoise" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function Start() {
gotoAndPlay (1);
}
_visible = false;
}
Symbol 177 MovieClip Frame 22
stop();
Symbol 179 MovieClip Frame 22
stop();
Symbol 184 MovieClip Frame 22
stop();
Symbol 187 MovieClip Frame 22
stop();
Symbol 189 MovieClip Frame 22
stop();
Symbol 191 MovieClip Frame 22
stop();
Symbol 193 MovieClip Frame 22
stop();
Symbol 195 MovieClip Frame 22
stop();
Symbol 197 MovieClip Frame 22
stop();
Symbol 199 MovieClip Frame 22
stop();
Instance of Symbol 177 MovieClip "mcStatus_2pointer" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 179 MovieClip "mcStatus_3pointer" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 184 MovieClip "mcStatus_swish" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 187 MovieClip "mcStatus_4baskets" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 189 MovieClip "mcStatus_dumpster" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 191 MovieClip "mcStatus_hummingbird" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 193 MovieClip "mcStatus_trampoline" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 195 MovieClip "mcStatus_crowdpleaser" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 197 MovieClip "mcStatus_shocker" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 199 MovieClip "mcStatus_blimp" in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
SetupGoalStatusIcon();
}
Instance of Symbol 219 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
var mcGame = _parent._parent.mcGame;
var mcPageFullGame = _parent._parent;
}
on (rollOver) {
SetBrightness(255);
}
on (releaseOutside, rollOut) {
SetBrightness(0);
}
on (press) {
mcGame.StopGame();
mcPageFullGame.gotoAndStop(1);
}
Instance of Symbol 227 MovieClip in Symbol 229 MovieClip Frame 15
on (press) {
_parent._parent._parent.gotoAndStop(1);
}
Symbol 229 MovieClip Frame 58
stop();
Instance of Symbol 238 MovieClip in Symbol 240 MovieClip Frame 15
on (press) {
_parent._parent._parent.gotoAndStop(1);
}
Symbol 240 MovieClip Frame 59
stop();
Symbol 251 MovieClip Frame 12
Instance of Symbol 249 MovieClip in Symbol 251 MovieClip Frame 15
on (press) {
_parent._parent._parent.gotoAndStop(1);
}
Symbol 251 MovieClip Frame 71
stop();
Symbol 253 MovieClip Frame 1
stop();
var mcTracker = createEmptyMovieClip("mcPageInfo", 1);
mcTracker._visible = false;
_global.TrackGamePage = function (sFilename) {
mcTracker.loadMovie(String("media/images/" + sFilename));
};
MovieClip.prototype.SetupVerticalCollider = function (fRebound) {
var _local1 = this;
_local1.rBoundRect = _local1.getBounds(_root);
_local1.xMin = _local1.rBoundRect.xMin;
_local1.xMax = _local1.rBoundRec.xMax;
_local1.yMin = _local1.rBoundRect.yMin;
_local1.yMax = _local1.rBoundRect.yMax;
_local1.xMiddle = (_local1.rBoundRect.xMin + _local1.rBoundRect.xMax) / 2;
if (fRebound != undefined) {
_local1.fRebound = fRebound;
}
_local1._visible = false;
};
MovieClip.prototype.SetupGoalStatusIcon = function () {
var _local1 = this;
_local1.stop();
_local1.SetComplete = function () {
this.gotoAndPlay(2);
};
};
MovieClip.prototype.SetupReactorGraphics = function () {
var _local1 = this;
_local1.stop();
_local1.Activate = function () {
this.play();
};
_local1.Reset = function () {
this.gotoAndStop(1);
};
};
MovieClip.prototype.SetupBackboard = function () {
var _local1 = this;
_local1.Activate = function () {
if (this._currentframe == 1) {
this.play();
}
};
_local1.stop();
};
MovieClip.prototype.SetupBasket = function () {
var _local1 = this;
_local1.Activate = function () {
if (this._currentframe == 1) {
this.play();
}
};
_local1.ActivateBasket = function () {
this.gotoAndPlay("basket");
};
_local1.stop();
};
MovieClip.prototype.SetupCheerleaderPart = function () {
var _local1 = this;
_local1.SetNormal = function () {
this.gotoAndStop(1);
};
_local1.SetSkeleton = function () {
this.gotoAndStop(2);
};
_local1.stop();
};
Instance of Symbol 66 MovieClip "mcInstructions" in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
TrackGamePage("game_load.jpg");
}
Instance of Symbol 172 MovieClip "mcGame" in Symbol 253 MovieClip Frame 2
onClipEvent (load) {
function IsGameCompleted() {
if (aGoalsCompleted.length == iNumTotal) {
return(true);
}
return(false);
}
function GoalCompleted(sName) {
var _local2 = sName;
if (_local2 == undefined) {
} else {
var _local1 = 0;
while (_local1 < aGoalsCompleted.length) {
if (aGoalsCompleted[_local1] == _local2) {
return;
}
_local1++;
}
aGoalsCompleted.push(_local2);
mcGameStatus.NewGoalComplete(_local2, String((aGoalsCompleted.length + " of ") + iNumTotal));
}
}
function PlaySoundEffect(sName) {
SoundStart(sName, 60, false);
}
function Refresh() {
var fCurrentX = _x;
var _local2 = (-mcCheerleader._x) + 386;
var fChangeX = (_local2 - fCurrentX);
this._x = this._x + (fChangeX / 6);
var _local3 = _y;
var _local1 = (-mcCheerleader._y) + 200;
var fChangeY = (_local1 - _local3);
this._y = this._y + (fChangeY / 6);
}
function StopGame() {
mcCheerleader.StopGame();
}
var mcGameStatus = _parent.mcGameStatus;
var mcCheerleader = this.mcCheerleader;
var aGoalsCompleted = new Array();
var iNumTotal = 10;
TrackGamePage("game_start.jpg");
}
Instance of Symbol 214 MovieClip "mcGameStatus" in Symbol 253 MovieClip Frame 2
onClipEvent (load) {
function NewGoalComplete(sName, sGoalsStatus) {
var mcCur = eval ("mcStatus_" + sName);
mcCur.SetComplete();
dtNumCompleted.text = sGoalsStatus;
}
function SetNumberOfShots(iNum) {
dtShots.text = "SHOTS TAKEN : " + iNum;
}
function SetNumberOfBaskets(iNum) {
dtBaskets.text = "BASKETS : " + iNum;
}
dtNumCompleted.text = "0 of 10";
SetNumberOfShots(0);
SetNumberOfBaskets(0);
}
Instance of Symbol 230 MovieClip "mcGameFinishedVarsity" in Symbol 253 MovieClip Frame 3
onClipEvent (load) {
TrackGamePage("game_varsity.jpg");
}
Instance of Symbol 241 MovieClip "mcGameFinishedJuniorVarsity" in Symbol 253 MovieClip Frame 4
onClipEvent (load) {
TrackGamePage("game_jrvarsity.jpg");
}
Instance of Symbol 252 MovieClip "mcGameFinishedJuniorJuniorVarsity" in Symbol 253 MovieClip Frame 5
onClipEvent (load) {
TrackGamePage("game_jrjrvarsity.jpg");
}