Frame 1
function createStattooz(thisSkin, thisDomain, thisHosted) {
_root.Stattooz = new stattooz(myGameName, myDeveloper, myGenre, myGameType, thisSkin, myPlayer, myThreshold, thisDomain);
_root.Stattooz.reportEvent("load");
}
function createBranditz() {
_root.Branditz = new branditz(myGameName, myGameType, myGameWidth, myGameHeight, createStattooz);
}
function initialize() {
var _local1 = new expressinstall();
if (!_local1.init()) {
createBranditz();
}
}
stop();
var myGameName = "precision_penalties";
var myDeveloper = "3RDsense";
var myGenre = 2;
var myGameType = 1;
var myGameWidth = 700;
var myGameHeight = 325;
var myThreshold = 300;
_root.score = 0;
_root.startGame = function () {
_root.gotoAndStop("title");
};
_root.playAgain = function () {
delete _root.ddd;
stopAllSounds();
_root.gotoAndStop("title");
};
System.security.allowDomain("*");
_root.checkPirate = function () {
_root.Branditz.pHosted = ((_root.Branditz.pHosted == undefined) ? (_root.Stattooz.isDomainAllowed()) : (_root.Branditz.pHosted));
if ((System.capabilities.playerType == "External") || (_root.Stattooz.isDomainAllowed())) {
_root.Branditz.pHosted = true;
} else {
((myGameType != 1) ? (getURL ("javascript:if (top.location != location) top.location.href ='http://www.fizzy.com/';")) : null);
}
_root.Branditz.pLinkWindow = (_root.Branditz.pHosted ? "_self" : "_blank");
var _local2 = false;
if (myGameType == 1) {
_local2 = true;
} else {
_local2 = _root.Branditz.pHosted;
}
if (_local2) {
_root.startGame();
} else {
_root.reportEvent("pirate");
_root.gotoAndStop("pirate");
}
};
_root.loadComplete = function () {
_root.gotoAndStop("splash");
};
var myPlayer = System.capabilities.playerType;
initialize();
Frame 10
stop();
Frame 19
stop();
Frame 39
stop();
function translateHome() {
myMotto.text = _root.pTranslation.getTranslated(4);
trace(_root.pTranslation.getTranslated(1));
myMainNav.myPlay.text = _root.pTranslation.getTranslated(1);
myMainNav.myHow.text = _root.pTranslation.getTranslated(2);
myMainNav.myCredits.text = _root.pTranslation.getTranslated(3);
}
if (!_root.GT) {
_root.GT = new gametools();
}
if (!_level0.thereisnoi) {
_level0.thereisnoi = 0;
}
translateHome();
Instance of Symbol 603 MovieClip "myMainNav" in Frame 39
onClipEvent (load) {
this._x = 716;
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_x", 385, 0.5, "easeInOutCubic", 0);
}
Frame 49
stop();
Frame 67
stop();
_root.game = this.game;
_root.ddd = new ddd({X:-350, Y:-322, Z:0}, {X:0, Y:-160, Z:-775}, {X:200, Y:-2000, Z:4000});
_root.pBreak = false;
_root.pInit = true;
_root.pCamera = false;
_root.game.gotoAndStop("play");
_root.game.init();
Mouse.hide();
var mouseListener = new Object();
mouseListener.myLastX = _xmouse;
mouseListener.myLastY = _ymouse;
_root.pDrag = false;
_root.onMouseDown = function () {
_root.pDrag = true;
if (((_root.game.pStatus == "aim") && (!_root.pCamera)) && (_root._ymouse < 500)) {
_root.game.pBall.setTarget();
}
};
_root.onMouseUp = function () {
_root.pDrag = false;
};
mouseListener.onMouseMove = function () {
var _local4 = (this.myLastX - _root._xmouse) / 2;
var _local3 = (this.myLastY - _root._ymouse) / 2;
this.myLastX = _root._xmouse;
this.myLastY = _root._ymouse;
if (_root.pDrag && (_root.pCamera)) {
_root.game.mouseDrag(_local4, _local3);
_root.game.pArrowPlane.clear();
_root.game.pEnvironment.pPicturePlane.clear();
if (Key.isDown(16)) {
_root.game.pEnvironment.pPicturePlane.pDepth = _root.game.pEnvironment.pPicturePlane.pDepth + _local4;
_root.ddd.pFocalPoint.Z = _root.ddd.pFocalPoint.Z + _local4;
_root.ddd.pScreenOffset.Y = _root.ddd.pScreenOffset.Y + _local3;
} else if (Key.isDown(17)) {
_root.game.pBall.pPosition.Z = _root.game.pBall.pPosition.Z + _local3;
_root.game.pArrow.moveArrow(_root.game.pBall.pPosition);
} else {
_root.ddd.pFocalPoint.Y = _root.ddd.pFocalPoint.Y + _local3;
_root.ddd.pFocalPoint.Z = _root.ddd.pFocalPoint.Z + _local4;
}
_root.game.pEnvironment.drawEnvironment();
_root.game.drawPitch();
_root.ddd.drawObjects();
_root.game.pPlayer.drawPlayer();
_root.game.pBall.pMoved = true;
}
};
Mouse.addListener(mouseListener);
Frame 77
Mouse.show();
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 40
_root.game.pBall.doKick();
Symbol 86 MovieClip Frame 52
stop();
Symbol 90 MovieClip [ballglowmovie] Frame 1
this._x = _root.game.myBall._x;
this._y = _root.game.myBall._y;
this._xscale = _root.game.myBall._xscale;
this._yscale = _root.game.myBall._yscale;
Symbol 90 MovieClip [ballglowmovie] Frame 40
stop();
this.removeMovieClip();
Symbol 104 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
function loadFinished() {
clearInterval(myStartInterval);
this.preloader.myBarAnim.gotoAndStop(100);
this.preloader.percentage.text = "100%";
_parent.play();
}
var myMinLength = 10000;
var myStartTime = getTimer();
var myStartInterval;
this.onEnterFrame = function () {
var _local8 = _root.getBytesTotal();
var _local5 = _root.getBytesLoaded();
var _local7 = (_local5 / _local8) * 100;
var _local4 = getTimer() - myStartTime;
var _local6 = (_local4 / myMinLength) * 100;
var _local3 = Math.min(_local6, _local7);
if (_local3 < 98) {
this.preloader.bar.gotoAndStop(Math.ceil(_local3));
this.preloader.percentage.text = Math.ceil(_local3) + "%";
this.preloader.myBarAnim.gotoAndStop(Math.round(_local3));
iLastBytes = _local3;
} else if (_root.Branditz.pAdDone) {
myStartInterval = setInterval(this, "loadFinished", 2000);
this.onEnterFrame = undefined;
} else if (_local4 > 30000) {
_root.Branditz.pAdDone = true;
}
};
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
_root.doAffiliates();
};
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 125 MovieClip [Preloader] Frame 1
_root.Branditz.activateElement("intro", this);
Symbol 125 MovieClip [Preloader] Frame 2
function getPromoPaths(thisPromo) {
var _local5 = _root.Branditz.pDomain + "/branditz/promo/";
if (_root.Stattooz.pGameType == 1) {
_local5 = "http://skins.branditz.com/promo/";
}
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pController = this;
_local4.pHolder = thisPromo;
_local4.onLoad = function (success) {
_root.myFeedback.text = _root.myFeedback.text + ((" SUCCESS = " + success) + newline);
if (success) {
trace("my promo file location internal = " + this.promourl);
this.pController.attachPromotion(this.promourl, this.pHolder);
} else {
trace("my error finding promo file location internal");
_root.Branditz.pAdDone = true;
pController.gotoAndStop("show");
}
};
_local3.version = _root.Stattooz.pVersion;
_local3.url = _root._url;
_local3.gamename = _root.Stattooz.pGameName;
_local3.gametype = _root.Stattooz.pGameType;
_local3.sendAndLoad(_local5, _local4, "POST");
}
function attachPromotion(thisFile, thisHolder) {
var _local3 = new Object();
_local3.X = thisHolder._x;
_local3.Y = thisHolder._y;
_local3.pController = this;
_local3.onLoadInit = function (target_mc) {
target_mc.myX = this.X;
target_mc.myY = this.Y;
target_mc.gotoAndStop("show");
};
_local3.onLoadError = function (target_mc, errorCode, httpStatus) {
trace(">> loadListener.onLoadError()");
trace(">> ==========================");
trace(">> errorCode: " + errorCode);
trace(">> httpStatus: " + httpStatus);
_root.Branditz.pAdDone = true;
this.pController.gotoAndStop("show");
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
_local4.loadClip(thisFile, thisHolder);
}
_root.Branditz.pSkipIntro = true;
_root.Branditz.pLinkWindow = (_root.Branditz.pHosted ? "_self" : "_blank");
myCanvas._alpha = 100;
myCanvas._width = Stage.width;
myCanvas._height = Stage.height;
_root.Affiliateid = _level0.affiliateId;
((((_root.Affiliateid == undefined) || (_root.Affiliateid == null)) || (_root.Affiliateid == "")) ? ((_root.Affiliateid = "9ffc8f4")) : null);
_root.AffiliateProgram = _level0.aProgram;
((((_root.AffiliateProgram == undefined) || (_root.AffiliateProgram == null)) || (_root.AffiliateProgram == "")) ? ((_root.AffiliateProgram = "fizzy")) : null);
_root.MoreGamesLink = _level0.aLink;
((((_root.MoreGamesLink == undefined) || (_root.MoreGamesLink == null)) || (_root.MoreGamesLink == "")) ? ((_root.MoreGamesLink = "http://www.fizzy.com?a_aid=" + _root.Affiliateid)) : (_root.MoreGamesLink));
_root.BuyGameLink = (_root.Branditz.pHosted ? ((_root.Branditz.pDomain + "games/") + _root.Branditz.pGameName) : ("http://www.fizzy.com/games/" + _root.Branditz.pGameName));
_root.doMoreGames = function () {
if (!_root.MoreGamesClicked) {
_root.MoreGamesClicked = true;
_root.Stattooz.reportEvent("moregames");
}
_root.getURL(_root.MoreGamesLink, _root.Branditz.pLinkWindow);
};
_root.doBuyGame = function () {
_root.Stattooz.reportEvent("moregames");
_root.getURL(_root.BuyGameLink, _root.Branditz.pLinkWindow);
};
_root.doAffiliates = function () {
_root.Stattooz.reportEvent("moregames");
var _local2 = "http://www.fizzy.com/affiliates?a_aid=" + _root.Affiliateid;
_root.getURL(_local2, _root.Branditz.pLinkWindow);
};
stop();
Instance of Symbol 109 MovieClip in Symbol 125 MovieClip [Preloader] Frame 2
on (release) {
_root.doMoreGames();
}
Instance of Symbol 114 MovieClip "myPromotionHolder" in Symbol 125 MovieClip [Preloader] Frame 2
on (rollOver) {
_parent.myPromotionTile.gotoAndStop(2);
}
on (rollOut) {
_parent.myPromotionTile.gotoAndStop(1);
}
on (release) {
_root.doMoreGames();
}
Instance of Symbol 117 MovieClip in Symbol 125 MovieClip [Preloader] Frame 2
onClipEvent (load) {
if (_root.AffiliateProgram != "fizzy") {
this._visible = false;
}
}
Symbol 125 MovieClip [Preloader] Frame 27
stop();
_root.checkPirate();
Symbol 130 MovieClip [RemotingDebugClasses] Frame 1
#initclip 101
Object.registerClass("RemotingDebugClasses", mx.remoting.DebugClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 175 MovieClip [RemotingClasses] Frame 1
#initclip 102
Object.registerClass("RemotingClasses", mx.remoting.ApiClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 193 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 195 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 198 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 200 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 203 MovieClip [Defaults] Frame 1
#initclip 103
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 204 MovieClip [UIObjectExtensions] Frame 1
#initclip 104
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 205 MovieClip [UIObject] Frame 1
#initclip 105
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 208 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 209 MovieClip Frame 1
#initclip 106
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 210 MovieClip [FocusRect] Frame 1
#initclip 107
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 211 MovieClip [FocusManager] Frame 1
#initclip 108
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 212 MovieClip [UIComponentExtensions] Frame 1
#initclip 109
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 213 MovieClip [UIComponent] Frame 1
#initclip 110
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 214 MovieClip [SimpleButton] Frame 1
#initclip 111
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 217 MovieClip [Border] Frame 1
#initclip 112
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 218 MovieClip [RectBorder] Frame 1
#initclip 113
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 219 MovieClip [TextInput] Frame 1
#initclip 114
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 226 MovieClip [StepThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 238 MovieClip [NumericStepper] Frame 1
#initclip 115
Object.registerClass("NumericStepper", mx.controls.NumericStepper);
#endinitclip
stop();
Instance of Symbol 214 MovieClip [SimpleButton] in Symbol 238 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 219 MovieClip [TextInput] in Symbol 238 MovieClip [NumericStepper] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 719 MovieClip [__Packages.branditz] Frame 0
class branditz
{
var pPreLoadCount, pVersion, pGameName, pGameType, pGameWidth, pGameHeight, pStartFunction, pLoadedList, pLoaded, pLoadWhenCached, pCacheKiller, pBreak, pBreakID, pDomain, pRequestAddress, pElements, pPreLoadingHolder, pPreloadComments, pSkinPath;
function branditz (thisGameName, thisGameType, thisGameWidth, thisGameHeight, thisStartFunction) {
function itemHandler1(obj, item) {
getURL (("http://www.fizzy.com/games/" + _root.Stattooz.pGameName) + "/play");
}
trace("INSTANCE CREATED - BRANDITZ");
_root.mySandbox.text = "Sandbox = " + System.security.sandboxType;
pPreLoadCount = 0;
pVersion = 2;
pGameName = thisGameName;
pGameType = thisGameType;
pGameWidth = thisGameWidth;
pGameHeight = thisGameHeight;
pStartFunction = thisStartFunction;
System.security.allowDomain("*");
pLoadedList = [];
pLoaded = false;
pLoadWhenCached = false;
pCacheKiller = "";
pBreak = false;
pBreakID = setInterval(this, "serverTimer", 20000);
pDomain = getDomain(_root._url);
createLoadComments();
if (Number(thisGameType) == 1) {
pRequestAddress = "http://skins.branditz.com";
} else if (pDomain != "default") {
pRequestAddress = pDomain + "branditz/";
} else {
pRequestAddress = "http://skins.branditz.com";
}
if (_root._url.slice(0, 4) != "file") {
pCacheKiller = "?cache=" + Math.random();
}
var _local3 = new ContextMenu();
_local3.hideBuiltInItems();
if (Number(thisGameType) == 1) {
var _local4 = new ContextMenuItem("Play the full version of this game!", itemHandler1);
_local3.customItems.push(_local4);
}
_root.menu = _local3;
getRemotePaths();
}
function getRemotePaths() {
trace("GET REMOTE PATHS");
var _local3 = new LoadVars();
var _local5 = new LoadVars();
_local5.pController = this;
var _local6 = pRequestAddress;
_root.myFeedback.text = _root.myFeedback.text + (("OPENING: " + pRequestAddress) + newline);
_local5.onLoad = function (success) {
_root.myFeedback.text = _root.myFeedback.text + ((" SUCCESS = " + success) + newline);
if (success) {
trace("RETURN PROPS: ");
for (var _local3 in this) {
trace((("REURN PROPERTY " + _local3) + " = ") + this[_local3]);
}
this.pController.pSkinPath = this.skinurl;
this.pController.pElements = this.elements.split(",");
this.pController.pHosted = Boolean(Number(this.hosted));
this.pController.pBuy = Boolean(Number(this.buy));
_root.myFeedback.text = _root.myFeedback.text + ((" LOADED " + this) + newline);
this.pController.pStartFunction(this.pController.pSkinPath, this.pController.pDomain);
if (((this.pController.pSkinPath == undefined) || (this.pController.pSkinPath == "noskin")) || (this.pController.pElements.length < 1)) {
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
} else {
this.pController.preloadElements();
}
} else {
_root.myFeedback.text = _root.myFeedback.text + " ERROR - \r";
this.pController.pStartFunction(this.pController.pSkinPath, this.pController.pDomain);
_root.pStattooz.reportEvent("patherror");
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
}
};
trace("REQUEST LOCATION = " + pRequestAddress);
_local3.version = pVersion;
_local3.url = _root._url;
_local3.gamename = pGameName;
_local3.gametype = pGameType;
trace("PROPS SENT :");
for (var _local4 in _local3) {
trace((("DATA TO SEND " + _local4) + " = ") + _local3[_local4]);
}
_local3.sendAndLoad(_local6, _local5, "POST");
}
function preloadElements() {
if ((pElements.length > 0) && (!pBreak)) {
var _local3 = (pPreLoadingHolder = _root.createEmptyMovieClip("myBrandingLoader", _root.getNextHighestDepth()));
_local3._xscale = 1;
_local3._yscale = 1;
_local3._x = -1000;
_local3._y = -1000;
_local3._alpha = 0;
preloadNext(pPreLoadingHolder);
} else {
trace((("I AM NOT PRELOADING! - Elements = " + pElements.length) + ". pBreak = ") + pBreak);
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
}
}
function preloadElement(thisElement, thisContainer) {
trace("LOAD ELEMENT - " + thisElement);
_root.skin_loading_text.text = pPreloadComments[pPreLoadCount];
var _local5 = thisContainer.createEmptyMovieClip(thisElement + "Holder", thisContainer.getNextHighestDepth());
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.myContainer = thisContainer;
_local3.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
_root.myLoadingText.text = "LOADING:" + thisElement;
};
_local3.onLoadInit = function (thisClip) {
trace("BRANDING ELEMENT PRELOADED: " + thisClip);
this.myController.addToLoaded(this.myElement);
this.myController.preloadNext(this.myContainer);
};
_local3.onLoadError = function (thisClip) {
trace("PRELOAD ERROR - " + this.myElement);
this.myController.preloadNext(this.myContainer);
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
var _local6 = (pSkinPath + thisElement) + ".swf";
_local4.loadClip(_local6, _local5);
pPreLoadCount++;
}
function preloadNext(thisContainer) {
if ((pElements.length > 0) && (!pBreak)) {
var _local3 = pElements.splice(0, 1)[0];
preloadElement(_local3, pPreLoadingHolder);
} else {
_root.skin_loading_text.removeTextField();
pPreLoadingHolder.removeMovieClip();
pLoaded = true;
_root.gotoAndStop("preloader");
}
}
function reportHttpStatus(thisStatusNumber) {
var _local1;
if (thisStatusNumber < 100) {
_local1 = "flashError";
} else if (thisStatusNumber < 200) {
_local1 = "informational";
} else if (thisStatusNumber < 300) {
_local1 = "successful";
} else if (thisStatusNumber < 400) {
_local1 = "redirection";
} else if (thisStatusNumber < 500) {
_local1 = "clientError";
} else if (thisStatusNumber < 600) {
_local1 = "serverError";
} else if (thisStatusNumber == undefined) {
_local1 = "File Not found";
}
return(_local1);
}
function addToLoaded(thisElement) {
pLoadedList.push(thisElement);
}
function serverTimer() {
trace("TIMER FINISHED");
if (!pLoaded) {
trace("NOT LOADED");
pBreak = true;
}
clearInterval(pBreak);
}
function createLoadComments() {
var _local5 = 25;
var _local4 = _root.createTextField("skin_loading_text", 0, 0, (pGameHeight / 2) - (_local5 / 2), pGameWidth, _local5);
_local4.selectable = false;
var _local3 = new TextFormat();
_local3.font = "Arial";
_local3.size = 18;
_local3.color = 16737843 /* 0xFF6633 */;
_local3.align = "center";
_local4.setNewTextFormat(_local3);
_local4.text = "preparing fizzy game...";
pPreloadComments = new Array();
pPreloadComments.push("Harnessing the gas");
pPreloadComments.push("Inflating the bubbles");
pPreloadComments.push("Adding the juice");
pPreloadComments.push("Starting the mixer");
pPreloadComments.push("Shaking, not stirring");
pPreloadComments.push("Getting ready to serve...");
}
function activateElement(thisElement, thisHolder, thisForce) {
if (isInArray(thisElement, pLoadedList) || (thisForce)) {
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.X = thisHolder._x;
_local3.Y = thisHolder._y;
_local3.onLoadInit = function (thisClip) {
_root.myFeedback.text = "Load success - " + this.myElement;
thisClip.myX = this.X;
thisClip.myY = this.Y;
thisClip.gotoAndStop("show");
};
var _local5 = new MovieClipLoader();
_local5.addListener(_local3);
trace((((thisElement + " PATH = ") + pSkinPath) + thisElement) + ".swf");
_local5.loadClip(((pSkinPath + thisElement) + ".swf") + pCacheKiller, thisHolder);
}
}
function isInArray(thisItem, thisArray) {
var _local2 = false;
for (var _local3 in thisArray) {
if (thisArray[_local3] == thisItem) {
_local2 = true;
break;
}
}
return(_local2);
}
function getDomain(thisUrl) {
var _local2;
var _local3 = thisUrl.split(":")[0];
switch (_local3) {
case "http" :
case "https" :
var _local1 = thisUrl.split("/");
_local2 = ((((_local1[0] + "/") + _local1[1]) + "/") + _local1[2]) + "/";
break;
default :
_local2 = "default";
}
return(_local2);
}
}
Symbol 720 MovieClip [__Packages.expressinstall] Frame 0
class expressinstall
{
var needsUpdate, updater, hold;
function expressinstall () {
needsUpdate = ((_root.MMplayerType == undefined) ? false : true);
}
function init() {
if (needsUpdate) {
loadUpdater();
return(true);
}
return(false);
}
function loadUpdater() {
System.security.allowDomain("fpdownload.macromedia.com");
updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
var _self = this;
updater.installStatus = _self.onInstallStatus;
hold = updater.createEmptyMovieClip("hold", 1);
updater.onEnterFrame = function () {
if (typeof(this.hold.startUpdate) == "function") {
_self.initUpdater();
this.onEnterFrame = null;
}
};
var _local3 = Math.random();
hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + _local3);
}
function initUpdater() {
hold.redirectURL = _root.MMredirectURL;
hold.MMplayerType = _root.MMplayerType;
hold.MMdoctitle = _root.MMdoctitle;
hold.startUpdate();
}
function onInstallStatus(msg) {
if (msg == "Download.Complete") {
} else if (msg == "Download.Cancelled") {
getURL ("javascript:alert('This content requires a more recent version of the Macromedia Flash Player.')");
} else if (msg == "Download.Failed") {
getURL ("javascript:alert('There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin.')");
}
}
}
Symbol 721 MovieClip [__Packages.stattooz] Frame 0
class stattooz
{
var pGameName, pDeveloper, pGenre, pGameType, pGameSkin, pThreshold, pDomain, pAllowedDomains, pPlayer, pGameUrl, pStatsPath;
function stattooz (thisGameName, thisDeveloper, thisGenre, thisGameType, thisGameSkin, thisPlayer, thisThreshold, thisDomain) {
trace("INSTANCE CREATED - STATTOOZ");
pGameName = thisGameName;
pDeveloper = thisDeveloper;
pGenre = thisGenre;
pGameType = thisGameType;
pGameSkin = thisGameSkin;
pThreshold = thisThreshold;
pDomain = thisDomain;
pAllowedDomains = getAllowedDomains();
if (pGameSkin == undefined) {
pGameSkin = "noskin";
}
pPlayer = thisPlayer;
if ((thisPlayer != "activate") && (thisPlayer != "nopirate")) {
pPlayer = System.capabilities.playerType;
}
pGameUrl = _root._url;
pStatsPath = "http://log.stattooz.com";
}
function getAllowedDomains() {
var _local1 = new Array();
_local1.push("http://developer.fizzy.jonathan.3rdsense.local/");
_local1.push("http://developer.fizzy.steve.3rdsense.local/");
_local1.push("http://developer.fizzy.3rdsense.local/");
_local1.push("http://developer.fizzy.deej.3rdsense.local/");
_local1.push("http://developers.fizzy.com/");
_local1.push("http://www.fizzy.com/");
_local1.push("http://www.3rdsense.com/");
_local1.push("http://admin.3rdsense.com/");
_local1.push("http://fizzy.deej.3rdsense.local/");
_local1.push("http://fizzy.steve.3rdsense.local/");
_local1.push("http://fizzy.jonathan.3rdsense.local/");
_local1.push("http://fizzy.3rdsense.local/");
_local1.push("http://fizzy.gamedev.3rdsense.local/");
_local1.push("http://localhost/");
return(_local1);
}
function isDomainAllowed() {
trace("MY DOMAIN = " + _url);
var _local3 = false;
for (var _local4 in pAllowedDomains) {
var _local2 = pAllowedDomains[_local4];
if (_url.indexOf(_local2, 0) == 0) {
_local3 = true;
}
}
trace("DOMAIN ALLOWED = " + _local3);
return(_local3);
}
function reportEvent(thisEventName) {
if (pPlayer != "External") {
var _local2 = getEventId(thisEventName);
sendStat(_local2);
}
}
function sendStat(thisEventID) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pEvent = thisEventID;
_local4.pController = this;
_local4.onLoad = function (success) {
var _local3;
if (success) {
if (this.done == "true") {
_local3 = (("SUCCESS - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
}
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Log file not located: ") + this.pStatsPath;
}
_root.myFeedback.text = _root.myFeedback.text + (_local3 + newline);
};
_local3.skin = pGameSkin;
_local3.gamename = pGameName;
_local3.genre = pGenre;
_local3.developer = pDeveloper;
_local3.url = pGameUrl;
_local3.event = thisEventID;
_local3.type = pGameType;
_local3.sendAndLoad(pStatsPath, _local4, "POST");
}
function getEventId(thisEventName) {
var _local1;
if (!isNaN(Number(thisEventName))) {
_local1 = thisEventName;
} else {
switch (thisEventName) {
case "load" :
_local1 = 1;
break;
case "play" :
_local1 = 2;
break;
case "endpass" :
_local1 = 3;
break;
case "endfail" :
_local1 = 4;
break;
case "submit" :
_local1 = 5;
break;
case "moregames" :
_local1 = 6;
break;
case "creditsview" :
_local1 = 7;
break;
case "creditsthrough" :
_local1 = 8;
break;
case "pirate" :
_local1 = 9;
break;
case "patherror" :
_local1 = 10;
break;
case "skinerror" :
_local1 = 11;
break;
default :
_local1 = 0;
}
}
return(_local1);
}
}
Symbol 722 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon
{
static var logOutput;
function FuseKitCommon () {
}
static function _cts() {
return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|");
}
static function _resetTo100() {
return("|_alpha|_contrast|_invertColor|_tintPercent|_xscale|_yscale|_scale|");
}
static function _resetTo0() {
return("|_brightness|_brightOffset|_colorReset|_rotation|");
}
static function _underscoreable() {
return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_fade|_visible|");
}
static function _cbprops() {
return("|skipLevel|cycles|roundResults|extra1|extra2|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|");
}
static function _fuseEvents() {
return("|onStart|onStop|onPause|onResume|onAdvance|onComplete|");
}
static function _fuseprops() {
return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|");
}
static function _validateFuseCommand(c, inGroup, hasArg, outputLevel, simple) {
var _local1 = false;
var _local2 = false;
switch (c) {
case "start" :
case "stop" :
case "pause" :
case "resume" :
case "setStartProps" :
if (inGroup != true) {
_local1 = true;
}
break;
case "delay" :
case "trigger" :
if (simple == true) {
if (hasArg == true) {
_local1 = true;
}
} else {
_local2 = true;
}
inGroup = false;
break;
case "skipTo" :
if (!((hasArg == true) && (inGroup != true))) {
break;
}
_local1 = true;
}
if ((outputLevel > 0) && (_local1 == false)) {
error("109", c, inGroup, _local2);
}
return(_local1);
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
} else {
trace(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local4 = arguments[2];
var _local6 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local2 = "";
var _local5 = newline;
switch (errorCode) {
case "001" :
_local2 = _local2 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local2 = _local2 + (_local5 + " import com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + " ZigoEngine.simpleSetup(Shortcuts);") + _local5);
break;
case "002" :
_local2 = _local2 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local2 = _local2 + ((_local5 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local5);
break;
case "004" :
_local2 = _local2 + (("** ZigoEngine.doTween - too few arguments [" + _local3) + "].");
if (Boolean(_local4) == true) {
_local2 = _local2 + " If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **";
} else {
_local2 = _local2 + " Object syntax call failed. **";
}
break;
case "005" :
_local2 = _local2 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local4) + "] **");
break;
case "006" :
_local2 = _local2 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local2 = _local2 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local4) + "]");
break;
case "008" :
_local2 = _local2 + "** You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local2 = _local2 + (("** ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized. **");
break;
case "010" :
_local2 = _local2 + ((((("** " + ((_local3 == true) ? "ZigoEngine" : "FuseItem")) + " unable to parse ") + ((_local4 == 1) ? "callback[" : (String(_local4) + " callbacks["))) + _local6) + "]. Try using the syntax {scope:this, func:\"myFunction\"} **");
break;
case "011" :
_local2 = _local2 + (((("- ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local4) + "].");
break;
case "012" :
_local2 = _local2 + (((((("- Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local4) + "], endvals passed:[") + _local6) + "]");
break;
case "013" :
_local2 = _local2 + (((((("- Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local4) + "]\n\tendvals:[") + _local6) + "]");
break;
case "014" :
_local2 = _local2 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "015" :
_local2 = _local2 + "** Error: The CustomEasing class must be passed during setup (register or simpleSetup) to use custom easing Arrays. **";
break;
case "016" :
_local2 = _local2 + (("[ ZigoEngine.TIME_MULTIPLIER: " + String(Number(Number(_local3) * 100))) + "% ]");
break;
case "101" :
_local2 = _local2 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local2 = _local2 + (_local5 + " You must now use the following commands:");
_local2 = _local2 + ((_local5 + _local5) + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + (_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local2 = _local2 + ((_local5 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local5);
break;
case "102" :
_local2 = _local2 + (((("** Fuse " + _local3) + " index or label not found (") + _local4) + ") or out of range. **");
break;
case "103" :
_local2 = _local2 + (((("** Fuse skipTo (" + _local3) + ") ignored - targets the current index (") + _local4) + "). **");
break;
case "104" :
_local2 = _local2 + (("** Fuse fastForward index out of play range (" + _local3) + ") - skipTo has been called instead. **");
break;
case "105" :
_local2 = _local2 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local2 = _local2 + "** ERROR: You have not set up Fuse correctly. **";
_local2 = _local2 + (_local5 + "You must now use the following commands (PennerEasing is optional).");
_local2 = _local2 + (_local5 + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local5);
break;
case "107" :
_local2 = _local2 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local2 = _local2 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local2 = _local2 + (("** Command \"" + _local3) + "\" discarded. ");
if (_local4 == true) {
_local2 = _local2 + "Not allowed within a group. **";
} else if (_local6 == true) {
_local2 = _local2 + (("Not supported in Object Syntax, use the " + _local3) + " property instead. **");
} else {
_local2 = _local2 + "The command may be unrecognized or missing an argument. **";
}
break;
case "110" :
_local2 = _local2 + (((("** " + _local3) + " illegal Fuse property discarded:\"") + _local4) + "\". Bezier keywords other than x and y cannot be set as start values. **");
break;
case "112" :
_local2 = _local2 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local2 = _local2 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "115" :
_local2 = _local2 + ((_local3 + " overlapping prop discarded: ") + _local4);
break;
case "116" :
_local2 = _local2 + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _local5);
break;
case "117" :
_local2 = _local2 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local2 = _local2 + ((("** " + _local3) + ": No targets found!") + ((_local4 == true) ? " [Unable to set start props] **" : " [Skipping tween parameters in this action] **"));
break;
case "119" :
_local2 = _local2 + ((((("** " + _local3) + ": ") + ((_local4 == 1) ? "" : (_local4 + " actions in the group"))) + " missing targets") + ((_local6 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local2 = _local2 + (((("** " + _local3) + ": conflict with \"") + _local4) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local2 = _local2 + "** Fuse timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local2 = _local2 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "123" :
_local2 = _local2 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "124" :
_local2 = _local2 + (((("** " + _local3) + ": trigger:") + _local4) + " ignored - only one trigger is allowed per action **");
break;
case "125" :
_local2 = _local2 + (_local3 + " Warning - fastForward hit an item during its tween cycle, may malfunction.");
break;
case "201" :
_local2 = _local2 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "202" :
_local2 = _local2 + (((("** FuseFMP error: A " + _local3) + " could not be created for ") + _local4) + " **");
break;
case "203" :
_local2 = _local2 + (("** FuseFMP.setFilterProps - too few arguments passed (" + _local3) + ") - minimum 2 required. **");
break;
case "204" :
_local2 = _local2 + (("** FuseFMP.setFilterProps could not locate the filter passed. (" + _local3) + ") **");
}
output(_local2);
}
static function parseCallback(callback, targets, outputLevel, callerIsEngine, addprefix) {
if (callback._vcb == true) {
return(callback);
}
var validCBs = {_vcb:true, skipLevel:_global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL, cycles:1};
if (callback == undefined) {
return(validCBs);
}
var cbErrors = [];
if (typeof(callback) == "object") {
if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != _global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL)) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
validCBs.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
validCBs.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
validCBs.cycles = 0;
}
}
if (callback.extra1 != undefined) {
validCBs.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
validCBs.extra2 = callback.extra2;
}
if ((callback.roundResults === true) || (callback.roundResults === false)) {
validCBs.roundResults = callback.roundResults;
}
} else {
callback = {func:callback};
}
var prefixes = ["start", "upd", ""];
var easyfuncparse = _global.com.mosesSupposes.fuse.Shortcuts.parseStringTypeCallback;
for (var i in prefixes) {
var prefix = prefixes[i];
var fstr = callback[prefix + "func"];
if (((fstr != undefined) && (typeof(fstr) == "string")) && (fstr.indexOf("(") > -1)) {
if (easyfuncparse != undefined) {
var efc = easyfuncparse(fstr);
if (efc.func != undefined) {
callback[prefix + "scope"] = efc.scope;
callback[prefix + "func"] = efc.func;
callback[prefix + "args"] = efc.args;
}
} else if (outputLevel > 0) {
error("008");
}
}
}
var basescope = callback.scope;
for (var i in callback) {
var fi = i.toLowerCase().indexOf("func");
if (fi > -1) {
var prefix = i.slice(0, fi);
var func = callback[i];
var args = callback[prefix + "args"];
var scope = ((callback[prefix + "scope"] == undefined) ? (basescope) : (callback[prefix + "scope"]));
if ((typeof(func) == "string") && (scope[func] == undefined)) {
for (var j in targets) {
var targ = targets[j];
if (typeof(targ[func]) == "function") {
scope = targ;
break;
}
if (typeof(targ._parent[func]) == "function") {
scope = targ._parent;
break;
}
}
if ((scope == undefined) && (_level0[func] != undefined)) {
scope = _level0;
}
if ((scope == undefined) && (_global[func] != undefined)) {
scope = _global;
}
}
if (typeof(func) != "function") {
if (typeof(scope[String(func)]) == "function") {
func = scope[String(func)];
} else {
func = eval (String(func));
}
}
if (func == undefined) {
cbErrors.push(String((((((((addprefix == null) ? (i) : (addprefix + i)) + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope));
} else {
if ((args != undefined) && (!(args instanceof Array))) {
args = [args];
}
if (prefix == "") {
prefix = "end";
}
validCBs[prefix] = {s:scope, f:func, a:args};
if (callerIsEngine == true) {
validCBs[prefix].id = ++cbTicker;
}
if (prefix == "start") {
validCBs.start.fired = false;
}
}
} else if (_cbprops().indexOf(("|" + i) + "|") == -1) {
error("009", i);
}
}
if ((cbErrors.length > 0) && (outputLevel > 0)) {
if (outputLevel > 0) {
error("010", callerIsEngine, cbErrors.length, cbErrors.toString());
}
}
return(validCBs);
}
static var VERSION = "Fuse Kit 2.1.4 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License";
static var VERBOSE = true;
static var ALL = "ALL";
static var ALLCOLOR = "ALLCOLOR";
static var cbTicker = 0;
}
Symbol 723 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var extensions, updateTime, tweenHolder, instance, _listeners, broadcastMessage, updateIntId;
function ZigoEngine () {
}
static function addListener(handler) {
AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine);
addListener(handler);
}
static function removeListener(handler) {
}
static function isPlaying() {
return(_playing);
}
static function simpleSetup(shortcutsClass) {
if (arguments.length > 0) {
register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
if (extensions.fuse != undefined) {
_global.Fuse = extensions.fuse;
}
if (extensions.fuseFMP != undefined) {
extensions.fuseFMP.simpleSetup();
}
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
if (extensions.shortcuts == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("001");
}
}
static function register(classReference) {
if (extensions == undefined) {
extensions = {};
}
var _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|customEasing|";
for (var _local4 in arguments) {
var _local2 = arguments[_local4].registryKey;
if ((extensions[_local2] == undefined) && (_local3.indexOf(("|" + _local2) + "|") > -1)) {
extensions[_local2] = arguments[_local4];
if ((_local2 == "fuseFMP") || (_local2 == "shortcuts")) {
Object(extensions[_local2]).initialize();
}
}
}
}
static function initialize(target) {
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments);
}
}
}
static function deinitialize(target) {
if ((arguments.length == 0) || (target == null)) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments);
}
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (_playing) {
setup(true);
updateTime = time;
setup();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(tweenHolder.getDepth());
}
static function setControllerDepth(depth) {
if ((depth == null) || (_global.isNaN(depth) == true)) {
depth = 6789;
}
if (Object(tweenHolder).proof != null) {
tweenHolder.swapDepths(depth);
} else {
tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth);
}
}
static function doShortcut(targets, methodName) {
if (extensions.shortcuts == undefined) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("002");
}
return(null);
}
return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments));
}
static function doTween(targets, props, endvals, seconds, ease, delay, callback) {
if (extensions.fuse.addBuildItem(arguments) == true) {
return(null);
}
if (TIME_MULTIPLIER != prevTimeMult) {
TIME_MULTIPLIER = Math.abs(TIME_MULTIPLIER);
if (_global.isNaN(TIME_MULTIPLIER) == true) {
TIME_MULTIPLIER = 1;
}
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("016", TIME_MULTIPLIER);
}
prevTimeMult = TIME_MULTIPLIER;
}
if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) {
if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) {
com.mosesSupposes.fuse.FuseKitCommon.error("003");
}
instance = new com.mosesSupposes.fuse.ZManager();
_playing = false;
}
var _local4 = instance.paramsObj(targets, props, endvals, true);
var _local7 = (((_local4.tg[0] == null) || (_local4.tg.length == 0)) ? undefined : (_local4.tg));
if (((_local4.pa == undefined) || (_local7 == undefined)) || (arguments.length < 3)) {
if (((extensions.fuseItem != null) && (arguments.length == 1)) && (typeof(arguments[0]) == "object")) {
return(extensions.fuseItem.doTween(arguments[0]));
}
if (OUTPUT_LEVEL > 0) {
if (arguments.length < 3) {
com.mosesSupposes.fuse.FuseKitCommon.error("004", (((arguments.length == 1) && (arguments[0] == null)) ? "1 (null)" : (String(arguments.length))), Boolean(extensions.fuseItem == null));
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("005", _local7.toString(), _local4.pa.toString());
}
}
return(null);
}
if (_playing != true) {
setup();
}
if ((seconds == null) || (_global.isNaN(seconds) == true)) {
seconds = DURATION || 1;
} else if (seconds < 0.01) {
seconds = 0;
}
seconds = seconds * TIME_MULTIPLIER;
if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) {
delay = 0;
}
delay = delay * TIME_MULTIPLIER;
var _local12 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(callback, _local7, OUTPUT_LEVEL, true);
var _local9;
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
_local9 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
_local9 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
_local9 = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if (ease instanceof Array) {
if (extensions.customEasing != undefined) {
_local12.extra1 = ease;
if (typeof(ease[0]) == "number") {
_local9 = extensions.customEasing.precalced;
} else {
_local9 = extensions.customEasing.fromCurve;
}
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("015", ease);
}
}
if (typeof(_local9) != "function") {
_local9 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
if (_listeners.length > 0) {
broadcastMessage.call(com.mosesSupposes.fuse.ZigoEngine, "onTweenAdd", _local7, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
}
var _local6 = "";
for (var _local13 in _local7) {
var _local3 = _local7[_local13];
if (_local3.__zigoID__ == null) {
initializeTargets(_local3);
} else if (instance.getStatus("locked", _local3) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local3._name != undefined) ? (_local3._name) : (_local3.toString())), _local4.pa.toString());
}
continue;
}
var _local5 = instance.addTween(_local3, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
_local6 = ((_local5 == null) ? "|" : (_local5 + "|")) + _local6;
}
_local6 = _local6.slice(0, -1);
return((((_local6 == "") || (_local6 == "|")) ? null : (_local6)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(Boolean(instance.getStatus("active", targ, prop)));
}
static function getTweens(targ) {
if (instance == undefined) {
return(0);
}
return(Number(instance.getStatus("count", targ)));
}
static function lockTween(targ, setLocked) {
instance.alterTweens("lock", targ, setLocked == true);
}
static function isTweenLocked(targ) {
return(Boolean(instance.getStatus("locked", targ)));
}
static function ffTween(targs, props, suppressEndEvents) {
instance.alterTweens("ff", targs, props, null, suppressEndEvents);
}
static function skipTweenTo(seconds, targs, props) {
instance.alterTweens("skipTo", targs, props, false, false, seconds);
}
static function rewTween(targs, props, pauseFlag, suppressStartEvents) {
instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents);
}
static function isTweenPaused(targ, prop) {
return(Boolean(instance.getStatus("paused", targ, prop)));
}
static function pauseTween(targs, props) {
instance.alterTweens("pause", targs, props);
}
static function unpauseTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function resumeTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function setColorByKey(targetObj, type, amt, rgb) {
new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb));
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var _local3 = 100 - Math.abs(amt);
var _local4 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local3, rb:_local4, ga:_local3, gb:_local4, ba:_local3, bb:_local4});
case "brightOffset" :
return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)});
case "contrast" :
return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55});
case "tint" :
if (rgb == null) {
break;
}
var _local5;
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
_local5 = Number(rgb);
return({ra:100 - amt, rb:(_local5 >> 16) * (amt / 100), ga:100 - amt, gb:((_local5 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local5 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local1 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local6 = (_local1.ra == _local1.ga) && (_local1.ga == _local1.ba);
var _local8 = (_local1.rb == _local1.gb) && (_local1.gb == _local1.bb);
var _local3 = {tintPercent:Number(((_local6 == true) ? (100 - _local1.ra) : 0))};
if (_local3.tintPercent != 0) {
var _local5 = 100 / _local3.tintPercent;
_local3.tint = (((_local1.rb * _local5) << 16) | ((_local1.gb * _local5) << 8)) | (_local1.bb * _local5);
var _local2 = _local3.tint.toString(16);
var _local4 = 6 - _local2.length;
while ((_local4--) > 0) {
_local2 = "0" + _local2;
}
_local3.tintString = "0x" + _local2.toUpperCase();
}
if ((_local6 == true) && (_local8 == true)) {
if (_local1.ra < 0) {
_local3.invertColor = _local1.rb * 0.392156862745098;
} else if ((_local1.ra == 100) && (_local1.rb != 0)) {
_local3.brightOffset = _local1.rb * 0.392156862745098;
}
if (_local1.ra != 100) {
if ((_local1.rb == 0) || ((_local1.rb != 0) && (((255 * ((100 - _local1.ra) / 100)) - _local1.rb) <= 1))) {
_local3.brightness = ((_local1.rb != 0) ? (100 - _local1.ra) : (_local1.ra - 100));
}
if (((128 - (1.28 * _local1.ra)) - _local1.rb) <= 1) {
_local3.contrast = _local1.ra;
}
}
}
return(_local3);
}
static function initializeTargets() {
for (var _local5 in arguments) {
var _local4 = arguments[_local5];
if ((((_local4 == MovieClip.prototype) || (_local4 == Button.prototype)) || (_local4 == TextField.prototype)) || (_local4 == Object.prototype)) {
if (_local4.oldAddListener == undefined) {
if (_local4 == TextField.prototype) {
_local4.oldAddListener = _local4.addListener;
_global.ASSetPropFlags(_local4, "oldAddListener", 7, 1);
}
_local4.addListener = function (o) {
if (this.__zigoID__ == undefined) {
com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this);
}
if (this instanceof TextField) {
Function(this.oldAddListener).call(this, o);
} else {
this.addListener(o);
}
};
if (_local4 == MovieClip.prototype) {
_global.ASSetPropFlags(_local4, "addListener", 7, 1);
}
}
} else if (_local4.__zigoID__ == undefined) {
_local4.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local4, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local4._listeners == null) || (_local4.addListener == null)) {
AsBroadcaster.initialize(_local4);
}
}
}
}
static function deinitializeTargets() {
for (var _local4 in arguments) {
var _local3 = arguments[_local4];
if (_local3.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local3, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local3.__zigoID__;
delete _local3._listeners;
delete _local3.broadcastMessage;
delete _local3.addListener;
delete _local3.removeListener;
}
if (_local3.oldAddListener != undefined) {
_global.ASSetPropFlags(_local3, "oldAddListener", 0, 2);
_local3.addListener = _local3.oldAddListener;
delete _local3.oldAddListener;
}
}
}
static function __mgrRelay(inst, method, args) {
if (inst == instance) {
Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args);
}
}
static function setup(deinitFlag) {
if (deinitFlag == true) {
_playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = setInterval(instance, "update", updateTime);
} else {
if (Object(tweenHolder).proof == null) {
setControllerDepth(6789);
Object(tweenHolder).proof = 1;
}
var _inst = instance;
tweenHolder.onEnterFrame = function () {
_inst.update.call(_inst);
};
}
_playing = true;
instance.now = getTimer();
}
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by L.Zigo";
static var EASING = "easeOutQuint";
static var DURATION = 1;
static var TIME_MULTIPLIER = 1;
static var ROUND_RESULTS = false;
static var OUTPUT_LEVEL = 1;
static var AUTOSTOP = false;
static var SKIP_LEVEL = 0;
static var _playing = false;
static var zigoIDs = 0;
static var prevTimeMult = 1;
}
Symbol 724 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager
{
var tweens, now;
function ZManager () {
tweens = {};
numTweens = 0;
}
function addTween(obj, props, endvals, seconds, ease, delay, callback) {
var _local24 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local44 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local30 = callback.extra1;
var _local29 = callback.extra2;
var _local23 = [];
var _local14 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local43 = String(("|" + _local14.getAllShortcuts().join("|")) + "|");
var _local42 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local25 = "";
var _local28 = "";
var _local22 = obj.__zigoID__;
var _local7 = tweens[String(_local22)];
if ((_local7 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var _local40 in _local7.props) {
_local23.unshift(_local40);
}
}
_local7.numProps = 0;
cleanUp(true);
}
for (var _local47 in props) {
var _local5 = props[_local47];
var _local4 = endvals[_local47];
var _local15 = 0;
if (_local5 == "_fade") {
_local5 = "_alpha";
_local15 = ((_local4 < 50) ? -1 : 1);
}
var _local16 = _local42.indexOf(("|" + _local5) + "|") > -1;
var _local18 = _local7.colorProp;
if (_local7 != undefined) {
if ((_local16 == true) && (_local18 != undefined)) {
_local23.unshift(_local18);
delete _local7.props[_local18];
delete _local7.colorProp;
_local7.numProps--;
} else if (_local7.props[_local5] != undefined) {
_local23.unshift(_local5);
delete _local7[_local5];
_local7.numProps--;
}
}
var _local3 = {c:-1, fmp:-1, complex:-1};
var _local11 = ((_local24 == 0) && ((seconds + delay) == 0)) || ((_local24 > 0) && (seconds == 0));
var _local10 = false;
var _local13 = (_local14 != undefined) && (_local43.indexOf(("|" + _local5) + "|") > -1);
var _local19 = (_local5.toLowerCase().indexOf("colors") > -1) && (_local4 instanceof Array);
var _local27 = ((_local13 == true) && (_local5.indexOf("lor") > -1)) && (_local5.charAt(2) != "l");
if (_local13 == true) {
_local3.fmp = _local14;
_local3.ps = _local14.getFilterProp(obj, _local5, true);
_local3.special = true;
}
if (((_local16 == true) || (_local19 == true)) || (_local27 && (_local11 == false))) {
_local3.complex = 1;
if (_local16 == true) {
_local3.c = new Color(obj);
_local3.ps = Color(_local3.c).getTransform();
var _local17 = ((((_local5 == "_tint") || (_local5 == "_tintPercent")) || (_local5 == "_colorReset")) ? "tint" : (_local5.slice(1)));
var _local9 = null;
var _local12 = null;
if (_local5 != "_colorTransform") {
if (_local17 == "tint") {
if (typeof(_local4) == "object") {
_local12 = _local4.tint;
_local9 = ((_global.isNaN(_local4.percent) == true) ? 100 : (_local4.percent));
} else if ((_local5 == "_tintPercent") || (_local5 == "_colorReset")) {
var _local20 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
if (_local5 == "_colorReset") {
_local9 = Math.min(_local20, 100 - Math.abs(Number(_local4)));
} else {
_local9 = ((typeof(_local4) == "string") ? ((_local20 || 0) + Number(_local4)) : Number(_local4));
}
_local9 = Math.max(0, Math.min(_local9, 100));
_local12 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local12 = _local4;
_local9 = 100;
}
} else {
_local9 = ((typeof(_local4) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local17] || 0) + Number(_local4)) : (_local4));
}
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local17, _local9, _local12);
}
if (_local11 == true) {
if (_local5 == "_colorTransform") {
Color(_local3.c).setTransform(_local4);
} else {
com.mosesSupposes.fuse.ZigoEngine.setColorByKey(obj, _local17, _local9, _local12);
}
} else {
var _local21 = getChangeObj(_local3.ps, _local4, false, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local11 == true) {
_local14.setFilterProp(obj, _local5, _local4);
} else if (_local19 == true) {
_local3.c = 2;
_local3.ch = [];
for (var _local40 in _local4) {
if (_local4[_local40] != null) {
if (_local3.ps == null) {
_local3.ps = [];
}
_local3.ps[_local40] = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ((_local3.ps[_local40] == null) ? obj[_local5][_local40] : _local3.ps[_local40]));
var _local21 = getChangeObj(_local3.ps[_local40], com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4[_local40]), true, false);
_local3.ch[_local40] = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
}
} else {
_local3.c = 1;
_local3.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local3.ps);
var _local21 = getChangeObj(_local3.ps, com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4), true, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local5 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local11 == true) {
if ((_local4.x != null) && (_global.isNaN(Number(_local4.x)) == false)) {
obj._x = ((typeof(_local4.x) == "string") ? (obj._x + Number(_local4.x)) : (_local4.x));
}
if ((_local4.y != null) && (_global.isNaN(Number(_local4.y)) == false)) {
obj._y = ((typeof(_local4.y) == "string") ? (obj._y + Number(_local4.y)) : (_local4.y));
}
} else {
_local3.special = true;
_local3.ps = 0;
_local3.ch = 1;
_local3.bz = {sx:obj._x, sy:obj._y};
if ((_local4.x == null) || (_global.isNaN(Number(_local4.x)))) {
_local4.x = _local3.bz.sx;
}
if ((_local4.y == null) || (_global.isNaN(Number(_local4.y)))) {
_local4.y = _local3.bz.sy;
}
_local3.bz.chx = ((typeof(_local4.x) == "string") ? (Number(_local4.x)) : (_local4.x - _local3.bz.sx));
if (_global.isNaN(_local3.bz.chx) == true) {
_local3.bx.chx = 0;
}
_local3.bz.chy = ((typeof(_local4.y) == "string") ? (Number(_local4.y)) : (_local4.y - _local3.bz.sy));
if (_global.isNaN(_local3.bz.chy) == true) {
_local3.bx.chy = 0;
}
if ((_local4.controlX == null) || (_global.isNaN(Number(_local4.controlX)))) {
_local3.bz.ctrlx = _local3.bz.sx + (_local3.bz.chx / 2);
} else {
_local3.bz.ctrlx = ((typeof(_local4.controlX) == "string") ? (_local3.bz.sx + Number(_local4.controlX)) : (_local4.controlX));
}
if ((_local4.controlY == null) || (_global.isNaN(Number(_local4.controlY)))) {
_local3.bz.ctrly = _local3.bz.sy + (_local3.bz.chy / 2);
} else {
_local3.bz.ctrly = ((typeof(_local4.controlY) == "string") ? (_local3.bz.sy + Number(_local4.controlY)) : (_local4.controlY));
}
_local3.bz.ctrlx = _local3.bz.ctrlx - _local3.bz.sx;
_local3.bz.ctrly = _local3.bz.ctrly - _local3.bz.sy;
_local10 = (_local3.bz.chx + _local3.bz.chy) != 0;
}
} else {
if (typeof(_local4) == "object") {
_local3.complex = ((_local4 instanceof Array) ? 0 : 1);
}
if ((_local5 == "_x") || (_local5 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local5 == "_frame") && (typeof(obj) == "movieclip")) {
_local3.ps = obj._currentframe;
_local3.special = true;
} else if (_local13 == false) {
if (_local3.complex > -1) {
_local3.ps = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local40 in _local4) {
_local3.ps[_local40] = obj[_local5][_local40];
}
} else {
_local3.ps = obj[_local5];
}
}
if (_local11 == true) {
if (_local13 == true) {
_local14.setFilterProp(obj, _local5, ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4)));
} else if (_local3.complex > -1) {
for (var _local40 in _local4) {
if ((_local4[_local40] != null) && (_global.isNaN(Number(_local4[_local40])) == false)) {
obj[_local5][_local40] = ((typeof(_local4[_local40]) == "string") ? (_local3.ps[_local40] + Number(_local4[_local40])) : _local4[_local40]);
if (_global.isNaN(obj[_local5][_local40]) == true) {
obj[_local5][_local40] = 0;
}
}
}
} else {
obj[_local5] = ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4));
if (_local15 == 1) {
obj._visible = true;
} else if (_local15 == -1) {
obj._visible = false;
}
}
} else if (_local3.complex > -1) {
var _local21 = getChangeObj(_local3.ps, _local4, _local13, _local3.complex == 0);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
} else {
if ((_local4 == null) || (_global.isNaN(Number(_local4)))) {
_local4 = _local3.ps;
}
_local3.ch = ((typeof(_local4) == "string") ? (Number(_local4)) : (Number(_local4) - _local3.ps));
if (_global.isNaN(_local3.ch) == true) {
_local3.ch = 0;
}
_local10 = _local3.ch != 0;
}
}
if (((_local24 == 0) && ((_local10 == true) || (_local11 == false))) || ((_local10 == true) && (_local11 == false))) {
if ((_local3.complex > -1) && (!(_local3.c === 2))) {
_local3.ps = [_local3.ps];
_local3.ch = [_local3.ch];
}
_local3.ts = now + (delay * 1000);
_local3.pt = -1;
_local3.d = seconds * 1000;
_local3.ef = ease;
_local3.sf = false;
_local3.cycles = _local44;
if (_local30 != undefined) {
_local3.e1 = _local30;
}
if (_local29 != undefined) {
_local3.e2 = _local29;
}
_local3.v = _local15;
if (callback.start != undefined) {
_local3.scb = callback.start;
}
if (callback.upd != undefined) {
_local3.ucb = callback.upd;
}
if (callback.end != undefined) {
_local3.ecb = callback.end;
}
if (callback.roundResults != undefined) {
_local3.rr = callback.roundResults;
}
if (tweens[String(_local22)] == undefined) {
_local7 = (tweens[String(_local22)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:_local22, props:{}});
numTweens++;
}
if (_local16 == true) {
_local7.colorProp = _local5;
}
_local7.props[_local5] = _local3;
_local7.numProps++;
_local25 = (_local5 + ",") + _local25;
_local28 = (((typeof(_local4) == "string") ? (("\"" + _local4) + "\"") : (_local4)) + ",") + _local28;
}
_local3 = undefined;
}
if ((_local7 == undefined) || (_local7.numProps <= 0)) {
cleanUp();
}
if ((_local23.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local23, __zigoID__:_local22, during:"add"});
}
if (_local25 == "") {
if (_local24 == 2) {
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString());
}
} else {
var _local48 = obj._listeners.length > 0;
if (_local48 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenEnd", {target:obj, props:props});
}
if (callback.end != undefined) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
}
cleanUp();
}
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
if (_local25 == "") {
com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString());
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), _local25.slice(0, -1), _local28.slice(0, -1));
}
}
return(((_local25 == "") ? null : (_local25.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local4 = {};
var _local12 = paramsObj(targs, props);
if (_local12.none == true) {
return(undefined);
}
var _local16 = _local12.all;
var _local17 = _local12.allprops;
var _local9 = ((_local16 == true) ? (tweens) : (Object(_local12.tg)));
var _local8 = false;
for (var _local20 in _local9) {
var _local3 = ((_local16 == true) ? (_local20) : (String(_local9[_local20].__zigoID__)));
var _local2 = tweens[_local3];
var _local6 = ((_local17 == true) ? (_local2.props) : (_local12.props));
for (var _local14 in _local6) {
var _local5 = (_local14 == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local2.colorProp != undefined);
if ((_local2.props[_local14] != undefined) || (_local5 == true)) {
if (_local4[_local3] == null) {
_local4[_local3] = [];
}
_local4[_local3].unshift(_local14);
if ((_local14 == _local2.colorProp) || (_local5 == true)) {
delete _local2.props[_local2.colorProp];
delete _local2.colorProp;
} else {
delete _local2.props[_local14];
}
_local2.numProps--;
if (_local2.numProps <= 0) {
_local8 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var _local19 in _local4) {
var _local7 = tweens[_local19].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local7.addProperty) == "function") ? (_local7) : (("[MISSING(\"" + tweens[_local19].targID) + "\")]")), props:_local4[_local19], __zigoID__:tweens[_local19].targZID, during:((noInit == true) ? "add" : "remove")});
}
}
if (_local8 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, noEvents, skipTo) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = props;
return(undefined);
}
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local14 = _local11.all;
var _local15 = _local11.allprops;
var _local9 = ((_local14 == true) ? (tweens) : (Object(_local11.tg)));
var _local8 = 0;
for (var _local16 in _local9) {
var _local7 = ((_local14 == true) ? (_local16) : (String(_local9[_local16].__zigoID__)));
var _local5 = tweens[_local7];
var _local4 = ((_local15 == true) ? (_local5.props) : (_local11.props));
if (_local4.ALLCOLOR == true) {
_local4[_local5.colorProp] = true;
delete _local4.ALLCOLOR;
}
for (var _local10 in _local4) {
_local8++;
var _local2 = _local5.props[_local10];
if (type == "rewind") {
if (pauseFlag == true) {
_local2.pt = now;
}
_local2.ts = now;
if (noEvents != true) {
_local2.sf = false;
if (_local2.scb != undefined) {
_local2.scb.fired = false;
}
}
} else if (type == "ff") {
if (noEvents == true) {
_local2.suppressEnd = true;
}
_local2.o = true;
_local2.pt = -1;
_local2.ts = now - _local2.d;
} else if (type == "skipTo") {
_local2.ts = Math.min(now, (_local2.ts + (now - _local2.ts)) - (skipTo * 1000));
} else if (type == "pause") {
if (_local2.pt == -1) {
_local2.pt = now;
}
} else if (type == "unpause") {
if (_local2.pt != -1) {
_local2.ts = now - (_local2.pt - _local2.ts);
_local2.pt = -1;
}
}
}
}
if ((type == "ff") && (_local8 > 0)) {
update();
} else if ((type == "rewind") && (_local8 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local8 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local4 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local2 = _local4.props;
if (param != null) {
if (_local2[String(param)] == undefined) {
return(false);
}
return(Boolean(_local2[String(param)].pt != -1));
}
for (var _local6 in _local2) {
if (_local2[_local6].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(Boolean(_local4 != undefined));
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(Boolean(_local4.colorProp != undefined));
}
return(Boolean(_local4.props[String(param)] != undefined));
case "count" :
if (!_local8) {
return(_local4.numProps);
}
var _local3 = 0;
for (var _local6 in tweens) {
_local3 = _local3 + tweens[_local6].numProps;
}
return(_local3);
case "locked" :
return(_local4.locked);
}
}
function update(force) {
var _local22 = {};
var _local24 = {};
var _local23 = {};
var _local15 = {};
var _local13 = {};
var _local14 = {};
var _local26 = false;
var _local20 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var _local35 in tweens) {
var _local12 = tweens[_local35];
var _local5 = _local12.targ;
var _local34 = _local12.props;
var _local21 = _local5._listeners.length > 0;
if (_local5.__zigoID__ == undefined) {
_local26 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local25 = [];
for (var _local30 in _local34) {
_local25.unshift(_local30);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local5.addProperty) == "function") ? (_local5) : (("[MISSING:" + _local12.targID) + "]")), props:_local25, __zigoID__:_local12.targZID, during:"update"});
}
continue;
}
for (var _local30 in _local34) {
var _local3 = _local34[_local30];
if (((_local3.ts > now) || (_local3.pt != -1)) && (force != true)) {
continue;
}
var _local9 = now >= (_local3.ts + _local3.d);
if (_local3.complex == -1) {
var _local6;
if (_local9 == true) {
_local6 = _local3.ps + _local3.ch;
if ((_local3.cycles > 1) || (_local3.cycles == 0)) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local3.ps = _local6;
_local3.ch = -_local3.ch;
_local3.ts = now;
_local9 = false;
}
} else {
_local6 = _local3.ef(now - _local3.ts, _local3.ps, _local3.ch, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local6) == false) {
if ((_local30 != "_bezier_") && ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false))))) {
_local6 = Math.round(Number(_local6));
}
if (_local3.special != true) {
_local5[_local30] = _local6;
} else if (_local3.fmp != -1) {
_local3.fmp.setFilterProp(_local5, _local30, _local6);
} else if (_local30 == "_bezier_") {
var _local10 = _local3.bz;
var _local18 = _local10.sx + (_local6 * (((2 * (1 - _local6)) * _local10.ctrlx) + (_local6 * _local10.chx)));
var _local17 = _local10.sy + (_local6 * (((2 * (1 - _local6)) * _local10.ctrly) + (_local6 * _local10.chy)));
if ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false)))) {
_local18 = Math.round(Number(_local18));
_local17 = Math.round(Number(_local17));
}
_local5._x = _local18;
_local5._y = _local17;
} else if (_local30 == "_frame") {
MovieClip(_local5).gotoAndStop(Math.ceil(_local6));
}
}
} else {
var _local16 = (_local9 == true) && ((_local3.cycles > 1) || (_local3.cycles == 0));
var _local7 = [];
for (var _local27 in _local3.ch) {
var _local4 = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local28 in _local3.ch[_local27]) {
var _local8 = _local3.ch[_local27][_local28];
var _local11 = _local3.ps[_local27][_local28];
if (_local9 == true) {
_local4[_local28] = _local11 + _local8;
if (_local16 == true) {
_local3.ch[_local27][_local28] = -_local8;
}
} else {
_local4[_local28] = _local3.ef(now - _local3.ts, _local11, _local8, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local4[_local28]) == false) {
if ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false)))) {
_local4[_local28] = Math.round(_local4[_local28]);
}
}
if ((_local3.fmp == -1) && (_local3.c == -1)) {
_local5[_local30][_local28] = _local4[_local28];
}
}
_local7.push(_local4);
if ((_local3.fmp == -1) && (_local3.c == 2)) {
_local5[_local30][_local27] = Number(((_local4.rb << 16) | (_local4.gb << 8)) | _local4.bb);
}
}
if (_local3.fmp != -1) {
if (_local3.c == 1) {
_local3.fmp.setFilterProp(_local5, _local30, ((_local7[0].rb << 16) | (_local7[0].gb << 8)) | _local7[0].bb);
} else if (_local3.c == 2) {
var _local19 = [];
for (var _local28 in _local7) {
_local19.unshift(((_local7[_local28].rb << 16) | (_local7[_local28].gb << 8)) | _local7[_local28].bb);
}
_local3.fmp.setFilterProp(_local5, _local30, _local19);
} else {
_local3.fmp.setFilterProp(_local5, _local30, _local7[0]);
}
} else if (_local3.c != -1) {
_local3.c.setTransform(_local7[0]);
}
if (_local16 == true) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local9 = false;
_local3.ts = now;
_local3.ps = _local7;
}
}
if (_local3.sf == false) {
if (_local3.v != 0) {
_local5._visible = true;
}
if (_local21 == true) {
if (_local15[_local35] == undefined) {
_local15[_local35] = [_local5, []];
}
_local15[_local35][1].unshift(_local30);
}
_local3.sf = true;
}
if (_local3.scb.fired == false) {
_local22[String(_local3.scb.id)] = _local3.scb;
_local3.scb.fired = true;
}
if (_local21 == true) {
if (_local13[_local35] == undefined) {
_local13[_local35] = [_local5, []];
}
_local13[_local35][1].unshift(_local30);
}
if (_local3.ucb != undefined) {
_local24[String(_local3.ucb.id)] = _local3.ucb;
}
if (_local9 == true) {
if (_local3.v === -1) {
_local5._visible = false;
}
if (_local3.suppressEnd != true) {
if (_local21 == true) {
if (_local14[_local35] == undefined) {
_local14[_local35] = [_local5, []];
}
_local14[_local35][1].unshift(_local30);
}
if (_local3.ecb != undefined) {
_local23[String(_local3.ecb.id)] = _local3.ecb;
}
}
delete _local34[_local30];
if (_local30 == _local12.colorProp) {
delete _local12.colorProp;
}
_local12.numProps--;
if (_local12.numProps <= 0) {
_local26 = true;
}
}
delete _local3.suppressEnd;
}
}
for (var _local35 in _local15) {
_local15[_local35][0].broadcastMessage("onTweenStart", {target:_local15[_local35][0], props:_local15[_local35][1]});
}
for (var _local35 in _local22) {
_local22[_local35].f.apply(_local22[_local35].s, _local22[_local35].a);
}
for (var _local35 in _local13) {
_local13[_local35][0].broadcastMessage("onTweenUpdate", {target:_local13[_local35][0], props:_local13[_local35][1]});
}
for (var _local35 in _local24) {
_local24[_local35].f.apply(_local24[_local35].s, _local24[_local35].a);
}
for (var _local35 in _local14) {
_local14[_local35][0].broadcastMessage("onTweenEnd", {target:_local14[_local35][0], props:_local14[_local35][1]});
}
for (var _local35 in _local23) {
_local23[_local35].f.apply(_local23[_local35].s, _local23[_local35].a);
}
if (_local26) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var _local4 in tweens) {
var _local2 = tweens[_local4].targ;
if ((tweens[_local4].numProps <= 0) || (_local2.__zigoID__ == undefined)) {
if ((((_local2 != undefined) && (_local2.tween == undefined)) && (noInit != true)) && (_local2._listeners.length <= 0)) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local2);
}
delete tweens[_local4];
numTweens--;
}
}
if (numTweens <= 0) {
numTweens = 0;
delete tweens;
tweens = {};
if (noInit != true) {
com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]);
}
}
}
function paramsObj(targs, props, endvals, retainFade) {
var _local6 = {};
_local6.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local6.none = Boolean(targs == null);
if (_local6.all == true) {
_local6.tg = [null];
} else {
_local6.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var _local11 in _local6.tg) {
var _local7 = _local6.tg[_local11];
if ((_local7 == null) || (!((typeof(_local7) == "object") || (typeof(_local7) == "movieclip")))) {
_local6.tg.splice(Number(_local11), 1);
}
}
}
_local6.allprops = props == null;
var _local1;
var _local4;
var _local3 = {};
if (_local6.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
_local1 = ((props instanceof Array) ? (props.slice()) : ([props]));
if (endvals != undefined) {
if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) {
endvals = String(endvals.split(" ").join("")).split(",");
}
_local4 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local4.length < _local1.length) {
_local4.push(_local4[_local4.length - 1]);
}
_local4.splice(_local1.length, _local4.length - _local1.length);
}
for (var _local11 in _local1) {
var _local2 = Number(_local11);
if ((_local1[_local11] != "_scale") && (_local1[_local11] != "_size")) {
if (_local3[_local1[_local11]] == undefined) {
if ((_local1[_local11] == "_fade") && (retainFade != true)) {
_local1[_local11] = "_alpha";
}
if (String(_local1[_local11]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local1[_local11] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local3[_local1[_local11]] = true;
} else {
_local1.splice(_local2, 1);
_local4.splice(_local2, 1);
}
} else {
var _local8 = String(_local1.splice(_local2, 1)[0]);
var _local5 = _local4.splice(_local2, 1)[0];
if (_local8 == "_scale") {
if (_local3._xscale == undefined) {
_local1.splice(_local2, 0, "_xscale");
_local4.splice(_local2, 0, _local5);
_local3._xscale = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_yscale");
_local4.splice(_local2, 0, _local5);
_local3._yscale = true;
}
}
if (_local8 == "_size") {
if (_local3._width == undefined) {
_local1.splice(_local2, 0, "_width");
_local4.splice(_local2, 0, _local5);
_local3._width = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_height");
_local4.splice(_local2, 0, _local5);
_local3._height = true;
}
}
}
}
for (var _local11 in _local1) {
if (((_local1[_local11] == "_xscale") && (_local3._width == true)) || ((_local1[_local11] == "_yscale") && (_local3._height == true))) {
_local1.splice(Number(_local11), 1);
_local4.splice(Number(_local11), 1);
delete _local3[_local1[_local11]];
}
}
}
_local6.pa = _local1;
_local6.va = _local4;
_local6.props = _local3;
return(_local6);
}
function getChangeObj(ps, ep, isFMP, useArray) {
var _local3 = {map:((useArray == true) ? ([]) : ({})), changed:false};
for (var _local7 in ep) {
if ((((((isFMP == true) && (_local7.charAt(1) == "b")) || (ep[_local7] != ps[_local7])) || (useArray == true)) && (ep[_local7] != null)) && (_global.isNaN(Number(ep[_local7])) == false)) {
_local3.map[_local7] = ((typeof(ep[_local7]) == "string") ? (Number(ep[_local7])) : (ep[_local7] - ps[_local7]));
if (_global.isNaN(_local3.map[_local7]) == true) {
_local3.map[_local7] = 0;
} else if (_local3.map[_local7] != 0) {
_local3.changed = true;
}
}
}
return(_local3);
}
var numTweens = 0;
}
Symbol 725 MovieClip [__Packages.game] Frame 0
class game extends MovieClip
{
var pDisplay, pPause, pEnvironment, pBall, pArrowPlane, createEmptyMovieClip, getNextHighestDepth, pSpindicatorPlane, pGoalie, pGoal, pArrow, pMarker, pMarkerHit, pPlayer, pStatus, onEnterFrame, gotoAndStop, pLastX, pLastY, pPitch, pStadium, pStadiumScreenPoints, pDistGrass, myTextGrass, pTextGoal, myTextGoal, pDistGoal, pFaceGoal, pTextStadium, pDistStadium, pFaceStadium, myTextStadium, pFaceGrass, pTextGrass, pFaceSpin, pTextSpin, myTextMarkerSpin, pDistSpin, myPointsDisplay, myGoalie, myPlayerGroup, myBall, pScale, _xscale, _yscale, pShakeCount, pShakeInterval, _x, _y;
function game () {
super();
trace("INSTANCE CREATED - GAME: " + this);
}
function init() {
_root.game = this;
pDisplay = new display(this);
pPause = true;
createTextures();
var _local4 = {X:7000, Y:5000, Z:4000};
var _local3 = {X:700, Y:525, Z:-9};
pEnvironment = new environment(_local4, _local3);
_root.ddd.registerEnvironment(pEnvironment);
initPitch();
drawPitch();
pBall = new ball();
pBall.init();
pArrowPlane = createEmptyMovieClip("myArrowPlane", getNextHighestDepth());
pArrowPlane.pWidth = pEnvironment.pPicturePlane.pWidth;
pArrowPlane.pHeight = pEnvironment.pPicturePlane.pHeight;
pArrowPlane.pDepth = pEnvironment.pPicturePlane.pDepth;
pSpindicatorPlane = createEmptyMovieClip("mySpindicatorPlane", getNextHighestDepth());
pSpindicatorPlane.pWidth = pEnvironment.pPicturePlane.pWidth;
pSpindicatorPlane.pHeight = pEnvironment.pPicturePlane.pHeight;
pSpindicatorPlane.pDepth = pEnvironment.pPicturePlane.pDepth;
pGoalie = new goalie({X:0, Y:-95, Z:pGoal.pPoints.a.Z});
pGoalie.init();
pArrow = new ddd_arrow(pBall.pPosition, {X:0, Y:-1, Z:0}, 40, 10, pArrowPlane, false, 16711680, 4, 100);
pMarker = new ddd_marker(pBall.pPosition, pArrowPlane, 30, false, 65280, 2, 100);
pMarkerHit = new ddd_marker(pBall.pPosition, pArrowPlane, 30, false, 16711680, 2, 100);
pPlayer = new player(_level0.thereisnoi);
pPlayer.init({X:-50, Y:0, Z:-450});
pStatus = "init";
pPause = false;
onEnterFrame = cycle;
}
function restart() {
gotoAndStop("play");
init();
}
function cycle() {
if (!pPause) {
switch (pStatus) {
case "init" :
pPlayer.updateFeedback();
pPlayer.drawPlayer();
pDisplay.bringElementsToFront();
pBall.cycle();
break;
case "result" :
updateTextures();
default :
pLastX = _root._xmouse;
pLastY = _root._ymouse;
pBall.cycle();
pGoalie.cycle();
}
}
}
function initPitch() {
var _local5 = 5000;
var _local2 = 1000;
pPitch = new Object();
pPitch.pPerimeter = new Object();
pPitch.pPerimeter.pWidth = _local5;
pPitch.pPerimeter.pDepth = _local2;
pPitch.pPerimeter.pPoints = new Object();
pPitch.pPerimeter.pPoints.a = {X:(-_local5) / 2, Y:0, Z:0};
pPitch.pPerimeter.pPoints.b = {X:(-_local5) / 2, Y:0, Z:_local2};
pPitch.pPerimeter.pPoints.c = {X:_local5 / 2, Y:0, Z:_local2};
pPitch.pPerimeter.pPoints.d = {X:_local5 / 2, Y:0, Z:0};
pPitch.pPerimeter.pFaces = new Array();
var _local14 = ["a", "b", "c", "d"];
pPitch.pPerimeter.pFaces.push(_local14);
var _local3 = _local5 + 1000;
var _local4 = 1500;
pPitch.pGround = new Object();
pPitch.pGround.pPoints = new Object();
pPitch.pGround.pPoints.a = {X:(-_local3) / 2, Y:0, Z:-500};
pPitch.pGround.pPoints.b = {X:(-_local3) / 2, Y:0, Z:_local4};
pPitch.pGround.pPoints.c = {X:_local3 / 2, Y:0, Z:_local4};
pPitch.pGround.pPoints.d = {X:_local3 / 2, Y:0, Z:-500};
pPitch.pGround.pFaces = new Array();
_local14 = ["a", "b", "c", "d"];
pPitch.pGround.pFaces.push(_local14);
pPitch.pGrass = new Object();
pPitch.pGrass.pPoints = new Object();
pPitch.pGrass.pPoints.a = {X:(-_local3) / 2, Y:200, Z:-100};
pPitch.pGrass.pPoints.b = {X:(-_local3) / 2, Y:-80, Z:_local4 + 800};
pPitch.pGrass.pPoints.c = {X:_local3 / 2, Y:-80, Z:_local4 + 800};
pPitch.pGrass.pPoints.d = {X:_local3 / 2, Y:200, Z:-100};
pPitch.pGrass.pFaces = new Array();
_local14 = ["a", "b", "c", "d"];
pPitch.pGrass.pFaces.push(_local14);
var _local6 = _local5 - 400;
var _local12 = _local6 * 0.222605;
pStadium = new Object();
pStadium.pPoints = new Object();
pStadium.pPoints.a = {X:(-_local6) / 2, Y:0, Z:_local4 + 500};
pStadium.pPoints.b = {X:(-_local6) / 2, Y:-_local12, Z:_local4 + 500};
pStadium.pPoints.c = {X:_local6 / 2, Y:-_local12, Z:_local4 + 500};
pStadium.pPoints.d = {X:_local6 / 2, Y:0, Z:_local4 + 500};
pStadium.pFaces = new Array();
_local14 = ["a", "b", "c", "d"];
pStadium.pFaces.push(_local14);
var _local8 = 1000;
var _local10 = 600;
pPitch.pGoalBox = new Object();
pPitch.pGoalBox.pPoints = new Object();
pPitch.pGoalBox.pPoints.a = {X:_local8 / 2, Y:0, Z:_local2};
pPitch.pGoalBox.pPoints.b = {X:_local8 / 2, Y:0, Z:_local2 - _local10};
pPitch.pGoalBox.pPoints.c = {X:(-_local8) / 2, Y:0, Z:_local2 - _local10};
pPitch.pGoalBox.pPoints.d = {X:(-_local8) / 2, Y:0, Z:_local2};
pPitch.pGoalBox.pFaces = new Array();
_local14 = ["a", "b", "c", "d"];
pPitch.pGoalBox.pFaces.push(_local14);
var _local9 = 4400;
var _local13 = 1000;
pPitch.pPenaltyBox = new Object();
pPitch.pPenaltyBox.pPoints = new Object();
pPitch.pPenaltyBox.pPoints.a = {X:(-_local9) / 2, Y:0, Z:_local2 - _local13};
pPitch.pPenaltyBox.pPoints.b = {X:(-_local9) / 2, Y:0, Z:_local2};
pPitch.pPenaltyBox.pPoints.c = {X:_local9 / 2, Y:0, Z:_local2};
pPitch.pPenaltyBox.pPoints.d = {X:_local9 / 2, Y:0, Z:_local2 - _local13};
pPitch.pPenaltyBox.pFaces = new Array();
_local14 = ["a", "b", "c", "d"];
pPitch.pPenaltyBox.pFaces.push(_local14);
var _local7 = 800;
var _local11 = 266;
pGoal = new Object();
pGoal.pPoints = new Object();
pGoal.pPoints.a = {X:(-_local7) / 2, Y:0, Z:_local2};
pGoal.pPoints.b = {X:(-_local7) / 2, Y:-_local11, Z:_local2};
pGoal.pPoints.c = {X:_local7 / 2, Y:-_local11, Z:_local2};
pGoal.pPoints.d = {X:_local7 / 2, Y:0, Z:_local2};
pGoal.pFaces = new Array();
_local14 = ["a", "b", "c", "d"];
pGoal.pFaces.push(_local14);
}
function drawPitch() {
var _local5 = 75;
var _local8 = _root.ddd.plotShape(pPitch.pGround.pPoints, pPitch.pGround.pFaces, pEnvironment.pPicturePlane, 65280, true, 1, 0);
var _local3 = _root.ddd.plotShape(pPitch.pGrass.pPoints, pPitch.pGrass.pFaces, pEnvironment.pPicturePlane, 16777215, true, 10, 0);
var _local4 = _root.ddd.plotShape(pGoal.pPoints, pGoal.pFaces, pEnvironment.pPicturePlane, 16777215, true, 10, 0);
pStadiumScreenPoints = _root.ddd.plotShape(pStadium.pPoints, pStadium.pFaces, pEnvironment.pPicturePlane, 16777215, true, 10, 0);
_root.ddd.plotShape(pPitch.pGoalBox.pPoints, pPitch.pGoalBox.pFaces, pEnvironment.pPicturePlane, 16777215, true, 6, _local5);
_root.ddd.plotShape(pPitch.pPenaltyBox.pPoints, pPitch.pPenaltyBox.pFaces, pEnvironment.pPicturePlane, 16777215, true, 6, _local5);
pDistGrass.texture.draw(myTextGrass);
pDistGrass.setTransform(_local3.b.X, _local3.b.Y, _local3.c.X, _local3.c.Y, _local3.d.X, _local3.d.Y, _local3.a.X, _local3.a.Y);
pTextGoal = new flash.display.BitmapData(myTextGoal._width, myTextGoal._height, true, 0);
pDistGoal = new DistortImage(pFaceGoal, pTextGoal, 3, 3);
pDistGoal.texture.draw(myTextGoal);
pDistGoal.setTransform(_local4.b.X, _local4.b.Y, _local4.c.X, _local4.c.Y, _local4.d.X, _local4.d.Y, _local4.a.X, _local4.a.Y);
var _local7 = pTextStadium.width;
var _local6 = pTextStadium.height;
pTextStadium = new flash.display.BitmapData(_local7, _local6, true, 0);
pDistStadium = new DistortImage(pFaceStadium, pTextStadium, 3, 3);
pDistStadium.texture.draw(myTextStadium);
pDistStadium.setTransform(pStadiumScreenPoints.b.X, pStadiumScreenPoints.b.Y, pStadiumScreenPoints.c.X, pStadiumScreenPoints.c.Y, pStadiumScreenPoints.d.X, pStadiumScreenPoints.d.Y, pStadiumScreenPoints.a.X, pStadiumScreenPoints.a.Y);
}
function drawYardLines() {
var _local11 = 100;
var _local3 = 0;
while (_local3 < 12) {
var _local5 = pPitch.pPerimeter.pDepth - (_local11 * _local3);
var _local4 = new Object();
_local4.a = {X:(-pPitch.pPerimeter.pWidth) / 2, Y:0, Z:_local5};
_local4.b = {X:pPitch.pPerimeter.pWidth / 2, Y:0, Z:_local5};
var _local6 = new Array();
var _local7 = ["a", "b"];
_local6.push(_local7);
_root.ddd.plotShape(_local4, _local6, pEnvironment.pPicturePlane, 0, true, 1, _local3 * 5);
_local3++;
}
}
function createTextures() {
pFaceGrass = createEmptyMovieClip("Grass", getNextHighestDepth());
pTextGrass = new flash.display.BitmapData(myTextGrass._width, myTextGrass._height, true, 0);
pDistGrass = new DistortImage(pFaceGrass, pTextGrass, 3, 3);
pFaceStadium = createEmptyMovieClip("Stadium", getNextHighestDepth());
pTextStadium = new flash.display.BitmapData(myTextStadium._width, myTextStadium._height, true, 0);
pDistStadium = new DistortImage(pFaceStadium, pTextStadium, 3, 3);
pFaceGoal = createEmptyMovieClip("Goal", getNextHighestDepth() + 2);
pTextGoal = new flash.display.BitmapData(myTextGoal._width, myTextGoal._height, true, 0);
pDistGoal = new DistortImage(pFaceGoal, pTextGoal, 3, 3);
pFaceSpin = createEmptyMovieClip("Spin", getNextHighestDepth());
pTextSpin = new flash.display.BitmapData(myTextMarkerSpin._width, myTextMarkerSpin._height, true, 0);
pDistSpin = new DistortImage(pFaceSpin, pTextSpin, 3, 3);
}
function updateTextures() {
pDistStadium.texture.draw(myTextStadium);
pDistStadium.setTransform(pStadiumScreenPoints.b.X, pStadiumScreenPoints.b.Y, pStadiumScreenPoints.c.X, pStadiumScreenPoints.c.Y, pStadiumScreenPoints.d.X, pStadiumScreenPoints.d.Y, pStadiumScreenPoints.a.X, pStadiumScreenPoints.a.Y);
}
function togglePause() {
pPause = !pPause;
}
function killSounds() {
}
function gameOver() {
_root.game.pStatus = "gameover";
_root.myResults = new Object();
for (var _local3 in pPlayer) {
_root.myResults[_local3] = pPlayer[_local3];
}
killRenders();
_root.gotoAndStop("gameover");
}
function killRenders() {
pArrowPlane.clear();
pSpindicatorPlane.clear();
pEnvironment.pPicturePlane.clear();
pFaceGrass.clear();
pFaceStadium.clear();
pFaceGoal.clear();
myPointsDisplay.swapDepths(-1999);
myPointsDisplay.unloadMovie();
myGoalie.swapDepths(-2000);
myPlayerGroup.swapDepths(-2001);
myBall.swapDepths(-2002);
myGoalie.unloadMovie();
myPlayerGroup.unloadMovie();
myBall.unloadMovie();
}
function shakeGame() {
pScale = _xscale;
_xscale = 110;
_yscale = 110;
pShakeCount = 0;
pShakeInterval = setInterval(this, "shaker", 20, this, _x, _y);
}
function shaker(myController, myOrigX, myOrigY) {
myController._x = myOrigX;
myController._y = myOrigY;
myController._x = myController._x + ((Math.random() * 15) - 15);
myController._y = myController._y + ((Math.random() * 20) - 20);
myController.pShakeCount++;
if (myController.pShakeCount > 4) {
clearInterval(myController.pShakeInterval);
myController._x = myOrigX;
myController._y = myOrigY;
myController._xscale = _root.game.pScale;
myController._yscale = _root.game.pScale;
}
}
}
Symbol 726 MovieClip [__Packages.display] Frame 0
class display
{
var pController, pSpriteObject, pMap;
function display (thisController) {
trace("INTANCE CREATED - DISPLAY: " + this);
pController = thisController;
pSpriteObject = new Object();
}
function registerSprite(thisElement, thisSprite) {
pSpriteObject[thisElement] = thisSprite;
}
function initializeMap(thisClip, thisOrientation) {
pMap = new Object();
pMap.pClip = thisClip;
pMap.pOrientation = thisOrientation;
var _local2 = pMap.pClip.myArea.getBounds(pMap.pClip);
pMap.pOffsetVector = {X:_local2.xMin + (pMap.pClip.myArea._width / 2), Y:_local2.yMin};
pMap.pVector = getReOrientedVector({X:pMap.pClip.myArea._width, Y:pMap.pClip.myArea._height, Z:"?"}, thisOrientation);
}
function getReOrientedVector(thisVector, thisOrientation) {
var _local1 = new Object();
switch (thisOrientation) {
case "X" :
_local1.X = thisVector.Z;
_local1.Y = thisVector.Y;
_local1.Z = thisVector.X;
break;
case "Y" :
_local1.X = thisVector.X;
_local1.Y = thisVector.Z;
_local1.Z = thisVector.Y;
break;
case "Z" :
default :
_local1.X = thisVector.X;
_local1.Y = thisVector.Y;
_local1.Z = thisVector.Z;
}
return(_local1);
}
function updateMap(thisObject, thisOriginalDimensions, thisPosition) {
var _local3 = _root.ddd.mapPointToNewDimension(thisPosition, thisOriginalDimensions, pMap.pVector);
var _local5;
var _local4;
switch (pMap.pOrientation) {
case "X" :
_local5 = pMap.pVector.Z - _local3.Z;
_local4 = _local3.Y;
break;
case "Y" :
_local5 = _local3.X;
_local4 = pMap.pVector.Z - _local3.Z;
break;
case "Z" :
_local5 = _local3.X;
_local4 = _local3.Y;
}
_local5 = _local5 + pMap.pOffsetVector.X;
_local4 = _local4 + pMap.pOffsetVector.Y;
pMap.pClip[thisObject]._x = _local5;
pMap.pClip[thisObject]._y = _local4;
}
function updateScore(thisAmount) {
var _local2 = pSpriteObject.score.myScore;
_local2.text = thisAmount;
}
function updateRound(thisRound) {
var _local3 = pSpriteObject.score.myRound;
_local3.text = (_root.pTranslation.getTranslated(15) + " ") + thisRound;
}
function updateAttempts(thisAttempts) {
var _local2 = pSpriteObject.score.myAttempts;
_local2.text = thisAttempts;
}
function updatePoints(thisAccuracy, thisPoints) {
pSpriteObject.points.myPoints.text = thisPoints;
pSpriteObject.points.myAccuracy.text = thisAccuracy + "%";
com.mosesSupposes.fuse.ZigoEngine.doTween(pSpriteObject.points, "_x", 500, 0.5, "easeInOutCubic", 0);
}
function hidePoints() {
com.mosesSupposes.fuse.ZigoEngine.doTween(pSpriteObject.points, "_x", 722, 0.5, "easeInOutCubic", 0);
}
function updateAttemptsNotice(thisAttempts) {
pSpriteObject.attempts.myAttempts.text = thisAttempts;
com.mosesSupposes.fuse.ZigoEngine.doTween(pSpriteObject.attempts, "_x", 500, 0.5, "easeInOutCubic", 0);
}
function hideAttemptsNotice() {
com.mosesSupposes.fuse.ZigoEngine.doTween(pSpriteObject.attempts, "_x", 722, 0.5, "easeInOutCubic", 0);
}
function bringElementsToFront() {
var _local2 = 6000001 /* 0x5B8D81 */;
for (var _local3 in pSpriteObject) {
trace("to the fore!" + pSpriteObject[_local3]);
pSpriteObject[_local3].swapDepths(_local2);
_local2++;
}
}
function showNav() {
com.mosesSupposes.fuse.ZigoEngine.doTween(pSpriteObject.mainnav, "_x", 522, 0.5, "easeInOutCubic", 0);
}
function showSpinTitle() {
com.mosesSupposes.fuse.ZigoEngine.doTween(pSpriteObject.spintitle, "_y", -47, 0.2, "easeInOutCubic", 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(pSpriteObject.spintitle, "_alpha", 100, 0.2, "easeInOutCubic", 0, {scope:_root.game.pBall, func:"spinEnable"});
com.mosesSupposes.fuse.ZigoEngine.doTween(pSpriteObject.spintitle, "_x", -15, 1.5, "easeInOutCubic", 0, {scope:_root.game.pBall, func:"spinStart"});
}
function hideSpinTitle() {
pSpriteObject.spintitle._y = -12;
pSpriteObject.spintitle._alpha = 0;
}
function showSlowTitle() {
pSpriteObject.slowtitle.play();
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game.myGrey, "_alpha", 40, 0.2, "easeInOutCubic", 0);
}
}
Symbol 727 MovieClip [__Packages.environment] Frame 0
class environment
{
var pWidth, pHeight, pDepth, pPicturePlane, pPointList, pFaceList;
function environment (thisEnvironmentDim, thisPicturePlaneDim) {
trace("INSTANCE CREATED - ENVIRONMENT");
pWidth = thisEnvironmentDim.X;
pHeight = thisEnvironmentDim.Y;
pDepth = thisEnvironmentDim.Z;
buildPointList();
buildFaceList();
initializePicturePlane(thisPicturePlaneDim);
drawEnvironment();
}
function initializePicturePlane(thisPicturePlaneDim) {
pPicturePlane = _root.game.createEmptyMovieClip("myPicturePlane", _root.game.getNextHighestDepth());
pPicturePlane.pWidth = thisPicturePlaneDim.X;
pPicturePlane.pHeight = thisPicturePlaneDim.Y;
pPicturePlane.pDepth = thisPicturePlaneDim.Z;
pPicturePlane.pPointList = new Object();
pPicturePlane.pPointList.a = {X:(-pPicturePlane.pWidth) / 2, Y:0, Z:0};
pPicturePlane.pPointList.b = {X:pPicturePlane.pWidth / 2, Y:0, Z:0};
pPicturePlane.pPointList.c = {X:pPicturePlane.pWidth / 2, Y:pPicturePlane.pHeight, Z:0};
pPicturePlane.pPointList.d = {X:(-pPicturePlane.pWidth) / 2, Y:pPicturePlane.pHeight, Z:0};
pPicturePlane.pPointList.e = {X:(-pPicturePlane.pWidth) / 2, Y:0, Z:pDepth};
pPicturePlane.pPointList.f = {X:pPicturePlane.pWidth / 2, Y:0, Z:pDepth};
pPicturePlane.pPointList.g = {X:pPicturePlane.pWidth / 2, Y:pPicturePlane.pHeight, Z:pDepth};
pPicturePlane.pPointList.h = {X:(-pPicturePlane.pWidth) / 2, Y:pPicturePlane.pHeight, Z:pDepth};
}
function buildPointList() {
pPointList = new Object();
pPointList.a = {X:(-pWidth) / 2, Y:0, Z:0};
pPointList.b = {X:pWidth / 2, Y:0, Z:0};
pPointList.c = {X:pWidth / 2, Y:pHeight, Z:0};
pPointList.d = {X:(-pWidth) / 2, Y:pHeight, Z:0};
pPointList.e = {X:(-pWidth) / 2, Y:0, Z:pDepth};
pPointList.f = {X:pWidth / 2, Y:0, Z:pDepth};
pPointList.g = {X:pWidth / 2, Y:pHeight, Z:pDepth};
pPointList.h = {X:(-pWidth) / 2, Y:pHeight, Z:pDepth};
}
function buildFaceList() {
pFaceList = new Object();
pFaceList.a = ["a", "b", "c", "d"];
pFaceList.b = ["e", "f", "g", "h"];
pFaceList.c = ["b", "f", "g", "c"];
pFaceList.d = ["a", "e", "h", "d"];
pFaceList.e = ["a", "b", "f", "e"];
pFaceList.f = ["d", "c", "g", "h"];
}
function drawEnvironment() {
_root.myFocalPoint.text = (((((("Focal Point Y = " + _root.ddd.pFocalPoint.Y) + newline) + "Focal Point Z = ") + _root.ddd.pFocalPoint.Z) + newline) + "Picture Plane Z = ") + pPicturePlane.pDepth;
_root.myFocalPoint.text = _root.myFocalPoint.text + ("\rScreen Offset Y = " + _root.ddd.pScreenOffset.Y);
_root.myFocalPoint.text = _root.myFocalPoint.text + ("\rBall Z = " + _root.game.pBall.pPosition.Z);
}
}
Symbol 728 MovieClip [__Packages.ball] Frame 0
class ball
{
var pDiameter, pLow, pCaught, pPastNet, pSpinFrame, pPosition, pMoved, pGravity, pKickStage, pTestInGoal, pTrailCount, pTest, pSpinTime, pPower, pSpin, pZoom, pPath, pTarget, pTargetDir, pSpindicator, pQuality, pTestShort, pTestHitFrame, pTestHeat, pTestHitGoal, pBallDir, pTester, pTrailDraw, pTrailClip;
function ball () {
com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts);
pDiameter = 30;
_root.game.myBallShadow.swapDepths(4900001);
}
function init(thisTest) {
pLow = false;
_root.game.myBall.gotoAndStop(1);
_root.game.myBall._rotation = 0;
_root.game.myBall.myX._alpha = 0;
_root.game.myBall.myGreen._alpha = 0;
pCaught = false;
pPastNet = false;
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.PennerEasing);
_root.game.myBall.swapDepths(5000000);
_root.game.pStatus = "aim";
pSpinFrame = 0;
pPosition = {X:0, Y:(-pDiameter) / 2, Z:-200};
pMoved = true;
pGravity = 4;
pKickStage = "none";
pTestInGoal = false;
pTrailCount = 0;
initSpin();
initPower();
initZoom();
initMarker();
pTest = thisTest;
if (!pTest) {
pSpinTime = false;
trace("****************new attempt");
_root.game.myPower.myRed._alpha = 100;
_root.game.myPower.myGreen.gotoAndStop(1);
_root.game.myPower._alpha = 100;
}
}
function initPower() {
pPower = new Object();
pPower.pState = "none";
pPower.pPercent = 0;
pPower.pDir = 6;
pPower.pMinSpeed = 30;
pPower.pMaxSpeed = 100;
pPower.pOverShootThresh = 80;
pPower.pOverShoot = 200;
}
function initSpin() {
pSpin = new Object();
pSpin.pVert = new Object();
pSpin.pVert.pScaleMin = -0.5;
pSpin.pVert.pScaleMax = 0.5;
pSpin.pVert.pScaleStep = 0.01;
pSpin.pVert.pScaleCurrent = pSpin.pVert.pScaleMin;
pSpin.pVert.pMoveMax = 0.15;
pSpin.pVert.pEffectorPercent = 0;
pSpin.pVert.pMovePercent = 0;
pSpin.pHorz = new Object();
pSpin.pHorz.pScaleMin = -0.5;
pSpin.pHorz.pScaleMax = 0.5;
pSpin.pHorz.pScaleStep = 0.01;
pSpin.pHorz.pScaleCurrent = pSpin.pHorz.pScaleMin;
pSpin.pHorz.pMoveMax = 0.15;
pSpin.pHorz.pEffectorPercent = 0;
pSpin.pHorz.pMovePercent = 0;
}
function initZoom() {
pZoom = new Object();
pZoom.pSteps = 20;
pZoom.pOriginal = new Object();
pZoom.pOriginal.pFocalY = _root.ddd.pFocalPoint.Y;
pZoom.pOriginal.pFocalZ = _root.ddd.pFocalPoint.Z;
pZoom.pOriginal.pPlaneZ = _root.game.pEnvironment.pPicturePlane.pDepth;
pZoom.pOriginal.pOffsetY = _root.ddd.pScreenOffset.Y;
pZoom.pZoom = new Object();
pZoom.pZoom.pFocalY = -11;
pZoom.pZoom.pFocalZ = -242.5;
pZoom.pZoom.pPlaneZ = 318;
pZoom.pZoom.pOffsetY = -320;
pZoom.pTarget = _root.ddd.duplicateObject(pZoom.pZoom);
}
function initMarker() {
_root.game.pMarker.pAlpha = 100;
_root.game.pMarker.pColour = 65280;
_root.game.pMarker.pSize = 50;
}
function cycle() {
switch (_root.game.pStatus) {
case "init" :
_root.game.pStatus = "aim";
break;
case "aim" :
case "power" :
updateTarget();
_root.game.pArrowPlane.clear();
_root.ddd.drawObjects();
cyclePower();
if ((Math.random() * 100) > 99.92) {
_root.GT.play_sound("rockyou.wav", 1);
}
break;
case "zoomout" :
case "zoom" :
case "zoomreturn" :
drawZoom();
break;
case "zoomdone" :
initSpindicator();
var _local4 = _root.game.myPower.myRed._currentframe;
if (_local4 == (_root.game.myPower.myGreen._totalframes / 2)) {
_local4--;
}
_root.game.myPower.myGreen.gotoAndStop(_local4 * 2);
_root.game.myPower.mySpinTitle.myTimer.text = _root.game.myPower.myGreen._totalframes - _root.game.myPower.myGreen._currentframe;
_root.game.myPower.myRed._alpha = 0;
_root.game.pDisplay.showSpinTitle();
_root.game.pStatus = "wait";
break;
case "run1" :
if (_root.game.myPlayerGroup.myPlayer._currentframe == 26) {
_root.game.myMarkerAim._x = -3000;
_root.game.myPlayerGroup.myPlayer.stop();
_root.game.myPlayerGroup.myShadow.stop();
startZoom();
}
break;
case "spin" :
alignSpindicator();
break;
case "prekick" :
_root.game.myPlayerGroup.myPlayer.play();
_root.game.pStatus = "nothing";
break;
case "nothing" :
break;
case "kick" :
switch (pKickStage) {
case "flight" :
ballAnim();
pPath.pCurrentFrame++;
if (((pPath.pCurrentFrame == pPath.pHitFrame) || (pPower.pCurrentSpeed == 0)) && (!pTest)) {
activateReaction();
}
break;
case "reaction" :
ballAnim();
var _local3 = _root.game.myScoreBoard.myAnim;
if (!_local3.done) {
break;
}
_local3.gotoAndStop(1);
_local3.done = false;
_local3._parent._alpha = 0;
if (_root.game.pPlayer.pAttempts > 0) {
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game, "myTrailClip", {_alpha:0}, 0.5, "easeInOutCubic", 0, {scope:this, func:"clearTrail"});
startZoomReturn();
} else {
_root.game.pStatus = "gameover";
_root.game.gameOver();
}
_root.game.pDisplay.hidePoints();
_root.game.pDisplay.hideAttemptsNotice();
}
drawTrail();
}
drawBall();
}
function updateTarget() {
if (_root._ymouse < 500) {
_root.game.myMarkerAim._x = _root.game._xmouse;
_root.game.myMarkerAim._y = _root.game._ymouse;
pTarget = _root.ddd.mapPicturePlaneToPointZ(_root._xmouse + _root.ddd.pScreenOffset.X, _root._ymouse + _root.ddd.pScreenOffset.Y, _root.game.pGoal.pPoints.a.Z);
_root.game.pMarker.placeMarker(pTarget);
if (pTarget.Y > ((-pGravity) * 1.5)) {
pLow = true;
pTarget.Y = -1 - (pGravity * 1.5);
_root.game.pMarker.pAlpha = 50;
_root.game.pMarker.pColour = 16711680 /* 0xFF0000 */;
_root.game.pMarker.pSize = 30;
} else {
pLow = false;
_root.game.pMarker.pAlpha = 100;
_root.game.pMarker.pColour = 65280;
_root.game.pMarker.pSize = 40;
}
setTargetDir(pTarget);
}
}
function setTarget() {
_root.GT.play_sound("blip.wav");
setTargetDir(pTarget);
_root.game.pStatus = "run1";
_root.game.myPlayerGroup.myPlayer.play();
}
function setTargetDir(thisTarget) {
var _local5 = _root.ddd.duplicateObject(thisTarget);
var _local3 = _root.ddd.subtractVector(_local5, pPosition);
_local3.Y = _local3.Y - 250;
var _local4 = _root.ddd.normaliseVector(_local3);
pTargetDir = _root.ddd.normaliseVector(_local4);
}
function spinStart() {
_root.game.myPower.myGreen.play();
}
function spinEnable() {
_root.game.pStatus = "spin";
}
function spinSlow() {
pSpindicator.pDraw = false;
_root.game.pSpindicatorPlane.clear();
_root.game.pFaceSpin._alpha = 0;
pPower.pPercent = 1;
_root.game.pDisplay.showSlowTitle();
_root.game.pStatus = "slow";
_root.game.pDisplay.pSpriteObject.slowtitle.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.gotoAndStop(1);
_root.game.pBall.setSpin();
_root.game.myGrey._alpha = 0;
this.onEnterFrame = undefined;
}
};
}
function setSpin() {
_root.GT.play_sound("blip2.wav");
_root.game.pFaceSpin._alpha = 0;
_root.game.myPower.myGreen.stop();
_root.game.myPower.myIndicator._x = 0;
_root.game.myPower._alpha = 0;
pSpindicator.pDraw = false;
_root.game.pSpindicatorPlane.clear();
_root.game.pBall.startZoomOut();
}
function cyclePower() {
pPower.pPercent = pPower.pPercent + pPower.pDir;
if (pPower.pPercent >= 100) {
pPower.pPercent = 100;
pPower.pDir = pPower.pDir * -1;
}
if (pPower.pPercent <= 1) {
pPower.pPercent = 1;
pPower.pDir = pPower.pDir * -1;
}
_root.game.myPower.myRed.gotoAndStop(Math.ceil(pPower.pPercent));
_root.game.myPower.myIndicator._x = _root.game.myPower.myRed._x + _root.game.myPower.myRed._width;
}
function drawBall(thisForced) {
if (pMoved || (thisForced && (pPosition.Z > _root.ddd.pFocalPoint.Z))) {
var _local3 = new Object();
_local3.a = {X:pPosition.X - (pDiameter / 2), Y:pPosition.Y, Z:pPosition.Z};
_local3.b = {X:pPosition.X + (pDiameter / 2), Y:pPosition.Y, Z:pPosition.Z};
_local3.c = {X:pPosition.X, Y:pPosition.Y - (pDiameter / 2), Z:pPosition.Z};
_local3.d = {X:pPosition.X, Y:pPosition.Y + (pDiameter / 2), Z:pPosition.Z};
var _local7 = new Array();
var _local11 = ["a", "b"];
_local7.push(_local11);
var _local12 = ["c", "d"];
_local7.push(_local12);
var _local5 = _root.ddd.mapPointToPicturePlane(pPosition, _root.ddd.pFocalPoint);
_local5 = _root.ddd.mapPointToScreen(_local5);
_root.game.myBall._x = _local5.X;
_root.game.myBall._y = _local5.Y;
var _local10 = _root.ddd.mapPointToPicturePlane(_local3.c, _root.ddd.pFocalPoint);
var _local9 = _root.ddd.mapPointToPicturePlane(_local3.d, _root.ddd.pFocalPoint);
var _local8 = Math.abs(_local10.Y - _local9.Y);
_root.game.myBall._xscale = (_root.game.myBall._yscale = _local8);
pMoved = false;
var _local6 = _root.ddd.duplicateObject(pPosition);
_local6.Y = 0;
var _local4 = _root.ddd.mapPointToPicturePlane(_local6, _root.ddd.pFocalPoint);
_local4 = _root.ddd.mapPointToScreen(_local4);
_root.game.myBallShadow._xscale = (_root.game.myBallShadow._yscale = _local8);
_root.game.myBallShadow._x = _local4.X;
_root.game.myBallShadow._y = _local4.Y;
}
}
function startZoom() {
pQuality = _quality;
_root.game.myTextMarkerSpin.myGraphic.myCircle._brightness = 0;
_quality = "LOW";
_root.game.pStatus = "zoom";
_root.game.pMarker.pDraw = false;
_root.GT.play_sound("zoomin.wav", 1);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game, "myPlayerGroup", {_alpha:0}, 0.5, "easeInOutCubic", 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.ddd, "pFocalPoint", {Y:pZoom.pTarget.pFocalY, Z:pZoom.pTarget.pFocalZ}, 1, "easeInOutCubic", 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game.pEnvironment, "pPicturePlane", {pDepth:pZoom.pTarget.pPlaneZ}, 1, "easeInOutCubic", 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.ddd, "pScreenOffset", {Y:pZoom.pTarget.pOffsetY}, 1, "easeInOutCubic", 0, {scope:this, func:"zoomDone"});
}
function startZoomOut() {
pQuality = _quality;
_quality = "LOW";
_root.game.pStatus = "zoomout";
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.ddd, "pFocalPoint", {Y:-200.5, Z:-686.5}, 1, "easeInOutCubic", 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game.pEnvironment, "pPicturePlane", {pDepth:41}, 1, "easeInOutCubic", 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.ddd, "pScreenOffset", {Y:-354}, 1, "easeInOutCubic", 0, {scope:this, func:"zoomOutDone"});
}
function startZoomReturn() {
pQuality = _quality;
_quality = "LOW";
_root.game.pStatus = "zoomreturn";
_root.game.drawPitch();
_root.game.myPlayerGroup._alpha = 0;
_root.game.pPlayer.pPosition.Z = -450;
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.ddd, "pFocalPoint", {Y:pZoom.pOriginal.pFocalY, Z:pZoom.pOriginal.pFocalZ}, 2, "easeInOutCubic", 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game.pEnvironment, "pPicturePlane", {pDepth:pZoom.pOriginal.pPlaneZ}, 2, "easeInOutCubic", 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.ddd, "pScreenOffset", {Y:pZoom.pOriginal.pOffsetY}, 2, "easeInOutCubic", 0, {scope:this, func:"zoomReturnDone"});
}
function zoomDone() {
_root.game.pStatus = "zoomdone";
_quality = pQuality;
drawZoom();
}
function zoomOutDone() {
_quality = pQuality;
drawZoom();
_root.game.pStatus = "zoomoutdone";
_root.game.myGrass.gotoAndStop("frame3");
_root.game.pPlayer.pPosition.Z = -370;
_root.game.pPlayer.drawPlayer();
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game, "myPlayerGroup", {_alpha:100}, 0.5, "easeInOutCubic", 0, {scope:this, func:"prepareKick"});
}
function zoomReturnDone() {
_quality = pQuality;
drawZoom();
_root.game.pStatus = "zoomreturndone";
_root.game.myGrass.gotoAndStop("frame1");
_root.game.myPlayerGroup.myPlayer.gotoAndStop(1);
_root.game.myPlayerGroup.myShadow.gotoAndStop(1);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game, "myPlayerGroup", {_alpha:100}, 0.5, "easeInOutCubic", 0);
_root.game.pGoalie.init();
init();
drawZoom();
}
function hidePitch() {
_root.game.pEnvironment.pPicturePlane.clear();
}
function drawZoom() {
_root.game.pArrowPlane.clear();
_root.game.pEnvironment.pPicturePlane.clear();
_root.ddd.drawObjects();
_root.game.pEnvironment.drawEnvironment();
_root.game.drawPitch();
_root.game.pPlayer.drawPlayer();
if (!pCaught) {
drawBall(true);
}
}
function findZCollision() {
var _local3 = 0;
while ((pPosition.Z < _root.game.pGoal.pPoints.a.Z) && (pPower.pCurrentSpeed > 0.5)) {
cycle();
_local3++;
if (pPower.pCurrentSpeed <= 0.5) {
trace("STOPPED SLOW");
} else if (pPosition.Z >= _root.game.pGoal.pPoints.a.Z) {
trace("STOPPED Z");
}
}
if (pPosition.Z < _root.game.pGoal.pPoints.a.Z) {
pTestShort = true;
}
pTestHitFrame = _local3;
trace("pTestHitFrame = " + pTestHitFrame);
var _local6 = (pPosition.X > _root.game.pGoal.pPoints.a.X) && (pPosition.X < _root.game.pGoal.pPoints.d.X);
var _local5 = (pPosition.Y < 0) && (pPosition.Y > _root.game.pGoal.pPoints.b.Y);
if ((_local6 && (_local5)) && (!pTestShort)) {
var _local4 = _root.ddd.distanceBetweenPoints3D(pPosition, _root.game.pGoalie.pHotSpot);
pTestHeat = 1 - (_local4 / _root.game.pGoalie.pHotSpotMaxDistance);
if (pTestHeat > 0.9) {
_root.game.pPlayer.pHotSpots++;
pTestHeat = 1;
} else if (isNaN(pTestHeat)) {
pTestHeat = 0;
}
pTestInGoal = true;
}
}
function checkPostCollision() {
var _local4 = 35;
var _local5 = false;
var _local3 = _root.game.pGoal.pPoints;
if ((pPosition.Y < _local3.a.Y) && (pPosition.Y > _local3.b.Y)) {
if ((pPosition.X > (_local3.a.X - (_local4 / 2))) && (pPosition.X < (_local3.a.X + (_local4 / 2)))) {
_local5 = true;
}
}
if ((pPosition.Y < _local3.d.Y) && (pPosition.Y > _local3.c.Y)) {
if ((pPosition.X > (_local3.d.X - (_local4 / 2))) && (pPosition.X < (_local3.d.X + (_local4 / 2)))) {
_local5 = true;
}
}
if ((pPosition.X > _local3.b.X) && (pPosition.X < _local3.c.X)) {
if ((pPosition.Y > (_local3.b.Y - (_local4 / 2))) && (pPosition.Y < (_local3.b.Y + (_local4 / 2)))) {
_local5 = true;
}
}
return(_local5);
}
function hitPost() {
trace("HIT POST - Test:" + pTest);
pTestHitGoal = true;
pGravity = 4;
pBallDir.X = pBallDir.X * -1;
pBallDir.Z = pBallDir.Z * -1;
pPower.pCurrentSpeed = pPower.pCurrentSpeed * 0.5;
pSpin.pVert.pMovePercent = pSpin.pVert.pMovePercent * 0.5;
pSpin.pHorz.pMovePercent = pSpin.pHorz.pMovePercent * 0.7;
}
function hitNet() {
trace("HIT NET - Test:" + pTest);
var _local9 = Math.abs(_root.game.pGoal.pPoints.d.X - _root.game.pGoal.pPoints.a.X);
var _local6 = Math.abs(_root.game.pGoal.pPoints.b.Y - _root.game.pGoal.pPoints.a.Y);
var _local3 = (pPosition.X - _root.game.pGoal.pPoints.a.X) / _local9;
var _local4 = 1 - Math.abs(pPosition.Y / _local6);
if (((_local3 > 0.1) && (_local3 < 0.9)) && (_local4 > 0.4)) {
createDisplacementMapRectangle();
_root.game.myTextGoal.xPercent = _local3;
_root.game.myTextGoal.yPercent = _local4;
var _local5 = _root.game.myTextGoal.filters[0];
var _local8 = (_root.game.myTextGoal._width * _local3) - (_root.game.myTextGoal.pTextureWidth / 2);
var _local7 = (_root.game.myTextGoal._height * _local4) - (_root.game.myTextGoal.pTextureHeight / 2);
_local5.mapPoint = new flash.geom.Point(_local8, _local7);
_root.game.myTextGoal.filters = new Array(_local5);
drawZoom();
_root.game.myTextGoal.filters = [];
}
pGravity = pGravity * 0.7;
pBallDir.Z = pBallDir.Z * -1;
pPower.pCurrentSpeed = pPower.pCurrentSpeed * 0.1;
pSpin.pVert.pMovePercent == 0;
pSpin.pHorz.pMovePercent == 0;
}
function hitGoalie() {
switch (_root.game.pGoalie.pLeap) {
case "divelow" :
case "divemid" :
case "divehigh" :
case "pickuplow" :
if (!_root.game.myBall.hitTest(_root.game.myGoalie.myGrab)) {
break;
}
pCaught = true;
}
_root.game.myBall.myX._alpha = 100;
pPosition.Z = _root.game.pGoalie.pPosition.Z;
pGravity = pGravity * 0.7;
pBallDir.Z = pBallDir.Z * -1;
pPower.pCurrentSpeed = pPower.pCurrentSpeed * 0.4;
pSpin.pVert.pMovePercent = pSpin.pVert.pMovePercent * 0.3;
pSpin.pHorz.pMovePercent = pSpin.pHorz.pMovePercent * 0.3;
}
function hitGround() {
pPosition.Y = (-pDiameter) / 2;
pBallDir.Y = pBallDir.Y * -0.65;
pGravity = 10;
pPower.pCurrentSpeed = pPower.pCurrentSpeed * 0.9;
pSpin.pVert.pMovePercent = 0;
pSpin.pHorz.pMovePercent = pSpin.pHorz.pMovePercent * -0.5;
}
function hitStadium() {
trace("hit stadium");
pBallDir.Z = pBallDir.Z * -1;
pPower.pCurrentSpeed = pPower.pCurrentSpeed * 0.45;
pSpin.pVert.pMovePercent = pSpin.pVert.pMovePercent * 0.3;
pSpin.pHorz.pMovePercent = pSpin.pHorz.pMovePercent * 0.3;
}
function createDisplacementMapRectangle() {
var _local2 = flash.display.BitmapData.loadBitmap("net_distort");
_root.game.myTextGoal.pTextureWidth = _local2.width;
_root.game.myTextGoal.pTextureHeight = _local2.height;
var _local3 = new flash.filters.DisplacementMapFilter(_local2, new flash.geom.Point(0, 0), 2, 4, -20, -20, "clamp");
_root.game.myTextGoal.filters = new Array(_local3);
}
function activateReaction() {
var _local3 = _root.game.pPlayer;
var _local4 = _root.game.myScoreBoard.myAnim;
_local4._parent._alpha = 100;
pKickStage = "reaction";
_local3.checkReaction(pPath);
if (pPath.pShort || ((!pPath.pInGoal) && (!pPath.pHitGoal))) {
_local4.gotoAndPlay("missed");
_local3.pAttempts--;
_root.game.pDisplay.updateAttemptsNotice(_local3.pAttempts);
} else if ((pPath.pInGoal && (!_root.game.pGoalie.pSave)) && (!pPath.pHitGoal)) {
_root.game.myBall.swapDepths(_root.game.myGoalie.getDepth());
_root.game.myBall.myGreen._alpha = 100;
if (pPath.pHeat == 1) {
_local4.gotoAndPlay("hot");
} else {
_local4.gotoAndPlay("goal");
_root.game.flashes.gotoAndPlay(2);
}
var _local5 = Math.round(pPath.pHeat * 100);
var _local6 = _local3.pRound * _local5;
_root.game.pDisplay.updatePoints(_local5, _local6);
_local3.pRound++;
_local3.pScore = _local3.pScore + _local6;
_local3.pGoals++;
_local3.pHotSpotPoints = _local3.pHotSpotPoints + _local5;
} else if (pPath.pInGoal && (_root.game.pGoalie.pSave)) {
_local3.pAttempts--;
_root.game.pDisplay.updateAttemptsNotice(_local3.pAttempts);
_local4.gotoAndPlay("saved");
} else if (pPath.pHitGoal) {
_local3.pAttempts--;
_root.game.pDisplay.updateAttemptsNotice(_local3.pAttempts);
_local4.gotoAndPlay("woodwork");
}
_local3.updateFeedback();
}
function prepareKick() {
_root.game.pStatus = "prekick";
}
function doKick() {
if (pLow) {
pPower.pPercent = 1;
}
_root.game.pPlayer.pShots++;
_root.game.pStatus = "kick";
pTestHitGoal = false;
pKickStage = "test";
pTester = new ball();
pTester.init(true);
pTester.pSpin.pHorz.pMovePercent = pSpin.pHorz.pMovePercent;
pTester.pSpin.pVert.pMovePercent = pSpin.pVert.pMovePercent;
pTester.pPower = _root.ddd.duplicateObject(pPower);
pTester.pTargetDir = _root.ddd.duplicateObject(pTargetDir);
pTester.kick();
pTester.findZCollision();
var _local3 = pTester.pPosition;
pPath = new Object();
pPath.pInGoal = pTester.pTestInGoal;
pPath.pHitPos = pTester.pPosition;
pPath.pShort = pTester.pTestShort;
pPath.pHitGoal = pTester.pTestHitGoal;
pPath.pHitFrame = pTester.pTestHitFrame;
pPath.pHeat = pTester.pTestHeat;
pPath.pCurrentFrame = 0;
delete pTester;
_root.ddd.drawObjects();
if (pPower.pPercent > 80) {
pTrailDraw = true;
_root.GT.play_sound("CANNON02.WAV", 1);
_root.game.shakeGame();
} else {
pTrailDraw = false;
_root.GT.play_sound("bigkick.wav", 1);
}
kick();
}
function kick() {
if ((Math.abs(pSpin.pHorz.pMovePercent) >= 50) || (Math.abs(pSpin.pVert.pMovePercent) >= 50)) {
_root.GT.play_sound("spinsound.wav", 1);
}
_root.game.pStatus = "kick";
pBallDir = _root.ddd.duplicateObject(pTargetDir);
pPower.pCurrentSpeed = pPower.pMinSpeed + ((pPower.pPercent / 100) * (pPower.pMaxSpeed - pPower.pMinSpeed));
if (pPower.pPercent > pPower.pOverShootThresh) {
var myOverShoot = (pPower.pPercent - pPower.pOverShootThresh);
var myOverShootPercent = (myOverShoot / (100 - pPower.pOverShootThresh));
var myOverShootAddition = (pPower.pOverShoot * myOverShootPercent);
pTarget.Y = pTarget.Y - myOverShootAddition;
setTargetDir(pTarget);
}
if ((!pTrailClip) && (pPower.pCurrentSpeed > 2)) {
pTrailClip = _root.game.createEmptyMovieClip("myTrailClip", _root.game.myBallShadow.getDepth() - 1);
}
with (pTrailClip) {
trace("Ill check speed");
if (_root.game.pBall.pTrailDraw) {
trace("colour!");
colors = [16527665, 16764006];
alphas = [10, 20];
} else {
colors = [1048575, 16777215];
alphas = [5, 5];
}
ratios = [0, 255];
matrix = {a:500, b:0, c:0, d:0, e:200, f:0, g:350, h:200, i:1};
lineStyle(20, 16777215, 30, false, "normal", "square", "miter");
lineGradientStyle("linear", colors, alphas, ratios, matrix);
}
drawBall(true);
pTrailClip.moveTo(_root.game.myBall._x, _root.game.myBall._y);
pKickStage = "flight";
}
function initSpindicator() {
_root.game.pFaceSpin.swapDepths(_root.game.myBall.getDepth() + 1);
var _local3 = _root.ddd.duplicateObject(pPosition);
pSpindicator = new ddd_spindicator(_local3, {X:0, Y:0, Z:1}, 10, _root.game.pSpindicatorPlane, true, 65280, 2);
}
function updateSpin(thisDir) {
var _local2 = pSpin["p" + thisDir];
_local2.pScaleCurrent = _local2.pScaleCurrent + _local2.pScaleStep;
if (_local2.pScaleCurrent < _local2.pScaleMax) {
var _local3 = Math.cos(_local2.pScaleMin);
var _local5 = 1 - _local3;
var _local4 = Math.cos(_local2.pScaleCurrent);
_local2.pEffectorPercent = (_local4 - _local3) / _local5;
}
}
function alignSpindicator() {
var _local3 = pDiameter / 1.8;
var _local8 = _root.ddd.mapPicturePlaneToPointZ(_root._xmouse + _root.ddd.pScreenOffset.X, _root._ymouse + _root.ddd.pScreenOffset.Y, pPosition.Z);
if (_root.ddd.distanceBetweenPoints3D(pPosition, _local8) > _local3) {
_local8 = _root.ddd.moveTowardsPointInUnits3D(pPosition, _local8, _local3);
}
var _local7 = _local8.X - pPosition.X;
if (_local7 < ((-_local3) * 0.8)) {
_local7 = (-_local3) * 0.8;
} else if (_local7 > (_local3 * 0.8)) {
_local7 = _local3 * 0.8;
}
var _local11 = Math.sqrt(Math.pow(_local3, 2) - Math.pow(_local7, 2));
pSpin.pHorz.pMovePercent = (_local7 / _local3) * -100;
var _local6 = _local8.Y - pPosition.Y;
if (_local6 < ((-_local3) * 0.8)) {
_local6 = (-_local3) * 0.8;
} else if (_local6 > (_local3 * 0.8)) {
_local6 = _local3 * 0.8;
}
var _local10 = Math.sqrt(Math.pow(_local11, 2) - Math.pow(_local6, 2));
pSpin.pVert.pMovePercent = (_local6 / _local3) * -100;
var _local5 = _root.ddd.mapPicturePlaneToPointZ(_root._xmouse + _root.ddd.pScreenOffset.X, _root._ymouse + _root.ddd.pScreenOffset.Y, pPosition.Z - _local10);
if (_root.ddd.distanceBetweenPoints3D(pPosition, _local5) > _local3) {
_local5 = _root.ddd.moveTowardsPointInUnits3D(pPosition, _local5, _local3);
}
if (_local5.Z > pPosition.Z) {
trace("correct!!");
_local5.Z = pPosition.Z;
}
_root.game.pSpindicatorPlane.clear();
_root.game.pArrowPlane.clear();
pSpindicator.move(_local5);
var _local9 = _root.ddd.subtractVector(pPosition, _local5);
_local9 = _root.ddd.normaliseVector(_local9);
pSpindicator.aim(_local9);
_root.game.pTextSpin = new flash.display.BitmapData(_root.spinW, _root.spinH, true, 0);
_root.game.pDistSpin = new DistortImage(_root.game.pFaceSpin, _root.game.pTextSpin, 3, 3);
var _local4 = _root.ddd.plotShape(pSpindicator.pPoints, [["a", "b", "c", "d"]], _root.game.pSpindicatorPlane, 16777215, false, 1, 0);
_root.game.pDistSpin.texture.draw(_root.game.myTextMarkerSpin);
_root.game.pDistSpin.setTransform(_local4.b.X, _local4.b.Y, _local4.c.X, _local4.c.Y, _local4.d.X, _local4.d.Y, _local4.a.X, _local4.a.Y);
if (_root.game.pFaceSpin._alpha < 90) {
_root.game.pFaceSpin._alpha = 100;
}
if ((_root.game.myPower.myGreen._currentframe == _root.game.myPower.myGreen._totalframes) && (!pSpinTime)) {
pSpinTime = true;
_root.game.myPower.myGreen.gotoAndStop(_root.game.myPower.myGreen._totalframes);
_root.game.myTextMarkerSpin.myGraphic.myHighLight.gotoAndPlay(2);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game.myTextMarkerSpin.myGraphic.myCircle, "_brightness", 100, 0.5, "easeInOut");
_root.game.pDisplay.hideSpinTitle();
_root.game.myTextMarkerSpin.myGraphic.myHighLight.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
_root.game.pBall.spinSlow();
this.onEnterFrame = undefined;
this.gotoAndStop(1);
}
};
}
_root.game.myPower.mySpinTitle.myTimer.text = _root.game.myPower.myGreen._totalframes - _root.game.myPower.myGreen._currentframe;
}
function ballAnim() {
if (!pCaught) {
if (pPosition.Z < _root.ddd.pFocalPoint.Y) {
pPower.pCurrentSpeed = 0;
}
updateSpin("Horz");
var _local15 = ((pSpin.pHorz.pMovePercent / 100) * pSpin.pHorz.pMoveMax) * pSpin.pHorz.pEffectorPercent;
pBallDir.X = pBallDir.X + _local15;
updateSpin("Vert");
var _local16 = ((pSpin.pVert.pMovePercent / 100) * pSpin.pVert.pMoveMax) * pSpin.pVert.pEffectorPercent;
pBallDir.Y = pBallDir.Y + _local16;
var _local3 = _root.ddd.normaliseVector(pBallDir);
pBallDir = _root.ddd.duplicateObject(_local3);
_local3 = _root.ddd.multipleVectorByScalar(_local3, pPower.pCurrentSpeed);
_local3.Y = _local3.Y + pGravity;
pGravity = pGravity * 1.1;
var _local7 = pPosition.Z;
pPosition = moveBallPoint(pPosition, _local3);
if (pPosition.Y >= ((-pDiameter) / 2)) {
hitGround();
}
var _local5 = _root.game.pGoal.pPoints.a.Z;
var _local10 = false;
if ((_local7 < _local5) && (pPosition.Z > _local5)) {
trace("Well I passed Z - Test:" + pTest);
var _local17 = checkPostCollision();
if (_local17) {
hitPost();
}
}
var _local12 = (_local7 < (_local5 + 100)) && (pPosition.Z > (_local5 + 100));
var _local6 = (_local12 && (pPath.pInGoal)) && (!_local10);
if (_local6) {
trace("HIT NET");
hitNet();
} else if (_local12 && (!pPastNet)) {
trace("PAST NET");
pPastNet = true;
_root.game.myBall.swapDepths(_root.game.pFaceGoal.getDepth() - 1);
}
var _local14 = (((_local7 < (_root.game.pStadium.pPoints.a.Z + 1000)) && (pPosition.Z > (_root.game.pStadium.pPoints.a.Z + 1000))) && (!_local6)) && (!_local10);
if (_local14 && (!_local6)) {
hitStadium();
}
var _local11 = _root.ddd.mapPointToPicturePlane(pPosition, _root.ddd.pFocalPoint);
var _local9 = _root.ddd.mapPointToPicturePlane(_root.ddd.addVector(pPosition, pBallDir), _root.ddd.pFocalPoint);
var _local13 = Math.atan2(_local9.Y - _local11.Y, _local9.X - _local11.X);
var _local18 = _root.ddd.radiansToDegrees(_local13);
_root.game.myBall._rotation = (360 - (_local18 - 90)) - 180;
pSpinFrame = pSpinFrame + pPower.pCurrentSpeed;
if (pSpinFrame >= 10) {
pSpinFrame = 0;
var _local8 = _root.game.myBall._currentframe + 1;
if (_local8 > _root.game.myBall._totalframes) {
_local8 = 2;
}
_root.game.myBall.gotoAndStop(_local8);
}
if (pPower.pCurrentSpeed < 0.5) {
pPower.pCurrentSpeed = 0;
_root.game.myBall.gotoAndStop(1);
}
drawBall(true);
} else {
_root.game.myBall.gotoAndStop(1);
var _local4 = {x:_root.game.myGoalie.myGrab._x, y:_root.game.myGoalie.myGrab._y};
_root.game.myGoalie.localToGlobal(_local4);
_root.game.globalToLocal(_local4);
_root.game.myBall._x = _local4.x;
_root.game.myBall._y = _local4.y;
}
}
function moveBallPoint(thisLastBallPoint, thisVector) {
var _local2 = _root.ddd.addVector(thisLastBallPoint, thisVector);
return(_local2);
}
function drawTrail() {
if (!pTest) {
if (pTrailDraw && (pPower.pCurrentSpeed > 2)) {
var _local3 = pTrailClip.attachMovie("ballglowmovie", "trail_" + pTrailCount, pTrailCount);
pTrailCount++;
}
pTrailClip.lineTo(_root.game.myBall._x, _root.game.myBall._y);
}
}
function clearTrail() {
pTrailCount = 0;
pTrailClip.clear();
pTrailClip._alpha = 100;
}
}
Symbol 729 MovieClip [__Packages.com.mosesSupposes.fuse.Shortcuts] Frame 0
class com.mosesSupposes.fuse.Shortcuts
{
function Shortcuts () {
}
static function initialize() {
if (shortcuts == null) {
initShortcuts();
}
}
static function doShortcut(obj, methodName) {
initialize();
var _local5 = shortcuts[methodName];
if (_local5 == undefined) {
if (typeof(obj) == "movieclip") {
_local5 = mcshortcuts[methodName];
}
}
if (_local5 == undefined) {
return(null);
}
obj = arguments.shift();
methodName = String(arguments.shift());
if (!(obj instanceof Array)) {
obj = [obj];
}
var _local3 = "";
for (var _local6 in obj) {
var _local2 = String(_local5.apply(obj[_local6], arguments));
if ((_local2 != null) && (_local2.length > 0)) {
if (_local3.length > 0) {
_local3 = (_local2 + "|") + _local3;
} else {
_local3 = _local2;
}
}
}
return(((_local3 == "") ? null : (_local3)));
}
static function addShortcutsTo() {
initialize();
var _local5 = function (o, so) {
for (var _local5 in so) {
var _local2 = so[_local5];
if (_local2.getter || (_local2.setter)) {
o.addProperty(_local5, _local2.getter, _local2.setter);
_global.ASSetPropFlags(o, _local5, 3, 1);
} else {
o[_local5] = _local2;
_global.ASSetPropFlags(o, _local5, 7, 1);
}
}
};
for (var _local7 in arguments) {
var _local4 = arguments[_local7];
if ((_local4 == MovieClip.prototype) || (typeof(_local4) == "movieclip")) {
_local5(_local4, mcshortcuts);
}
_local5(_local4, shortcuts);
}
}
static function removeShortcutsFrom() {
initialize();
var _local5 = function (o, so) {
for (var _local5 in so) {
_global.ASSetPropFlags(o, _local5, 0, 2);
var _local2 = so[_local5];
if (_local2.getter || (_local2.setter)) {
o.addProperty(_local5, null, null);
}
delete o[_local5];
}
};
for (var _local7 in arguments) {
var _local3 = arguments[_local7];
if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) {
_local5(_local3, mcshortcuts);
}
_local5(_local3, shortcuts);
}
}
static function parseStringTypeCallback(callbackStr) {
var evaluate = function (val) {
var first = val.charAt(0);
if ((first == val.slice(-1)) && ((first == "\"") || (first == "'"))) {
return(val.slice(1, -1));
}
if (val == "true") {
return(Object(true));
}
if (val == "false") {
return(Object(false));
}
if (val == "null") {
return(Object(null));
}
if (_global.isNaN(Number(val)) == false) {
return(Object(Number(val)));
}
return(Object(eval (val)));
};
var trimWhite = function (str) {
while (str.charAt(0) == " ") {
str = str.slice(1);
}
while (str.slice(-1) == " ") {
str = str.slice(0, -1);
}
return(str);
};
var evaluateList = function (list) {
var _local11 = [];
var _local4 = 0;
while (_local4 < list.length) {
var _local3 = list[_local4];
_local3 = trimWhite(_local3);
var _local5 = (_local3.charAt(0) == "{") && ((_local3.indexOf("}") > -1) || (_local3.indexOf(":") > -1));
var _local10 = _local3.charAt(0) == "[";
if ((_local5 || (_local10)) == true) {
var _local6 = ((_local5 == true) ? ({}) : ([]));
var _local2 = _local4;
while (_local2 < list.length) {
if (_local2 == _local4) {
_local3 = _local3.slice(1);
}
var _local1;
var _local8 = (_local1.slice(-1) == ((_local5 == true) ? "}" : "]")) || (_local2 == (list.length - 1));
if (_local8 == true) {
_local1 = _local1.slice(0, -1);
}
if ((_local5 == true) && (_local1.indexOf(":") > -1)) {
var _local7 = _local1.split(":");
_local6[trimWhite(_local7[0])] = evaluate(trimWhite(_local7[1]));
} else if (_local10 == true) {
_local6.push(evaluate(trimWhite(_local1)));
}
if (_local8 == true) {
_local11.push(_local6);
_local4 = _local2;
break;
}
_local2++;
}
} else {
_local11.push(evaluate(trimWhite(_local3)));
}
_local4++;
}
return(_local11);
};
var parts = callbackStr.split("(");
var p0 = parts[0];
var p1 = parts[1];
return({func:p0.slice(p0.lastIndexOf(".") + 1), scope:eval (p0.slice(0, p0.lastIndexOf("."))), args:evaluateList(p1.slice(0, p1.lastIndexOf(")")).split(","))});
}
static function initShortcuts() {
shortcuts = new Object();
var methods = {alphaTo:"_alpha", scaleTo:"_scale", sizeTo:"_size", rotateTo:"_rotation", brightnessTo:"_brightness", brightOffsetTo:"_brightOffset", contrastTo:"_contrast", colorTo:"_tint", tintPercentTo:"_tintPercent", colorResetTo:"_colorReset", invertColorTo:"_invertColor"};
var _local4 = _global.com.mosesSupposes.fuse.FuseFMP.getAllShortcuts();
var _local7 = {blur:1, blurX:1, blurY:1, strength:1, shadowAlpha:1, highlightAlpha:1, angle:1, distance:1, alpha:1, color:1};
for (var _local9 in _local4) {
if (_local7[_local4[_local9].split("_")[1]] === 1) {
methods[_local4[_local9] + "To"] = _local4[_local9];
}
}
var _local8 = {__resolve:function (name) {
var propName = methods[name];
return(function () {
var _local4 = _global.com.mosesSupposes.fuse.ZigoEngine.doTween.apply(com.mosesSupposes.fuse.ZigoEngine, new Array(this, propName).concat(arguments));
return(_local4);
});
}};
var _local5 = {__resolve:function (name) {
var _local3 = {setter:function (v) {
_global.com.mosesSupposes.fuse.ZigoEngine.doTween(this, ((name == "_tintString") ? "_tint" : (name)), v, 0);
}};
switch (name) {
case "_colorReset" :
_local3.getter = function () {
return(100 - _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this).tintPercent);
};
break;
case "_colorTransform" :
_local3.getter = function () {
return(Color(new Color(this)).getTransform());
};
break;
case "_fade" :
_local3.getter = function () {
return(this._alpha);
};
break;
case "_size" :
_local3.getter = function () {
return(((this._width == this._height) ? (this._width) : null));
};
break;
case "_scale" :
_local3.getter = function () {
return(((this._xscale == this._yscale) ? (this._xscale) : null));
};
break;
default :
_local3.getter = function () {
return(_global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this)[name.slice(1)]);
};
}
return(_local3);
}};
for (var _local9 in methods) {
shortcuts[_local9] = _local8[_local9];
if ((_local9 != "alphaTo") && (_local9 != "rotateTo")) {
shortcuts[methods[_local9]] = _local5[methods[_local9]];
}
}
shortcuts._tintString = _local5._tintString;
shortcuts._colorTransform = _local5._colorTransform;
shortcuts._fade = _local5._fade;
shortcuts.tween = function (props, endVals, seconds, ease, delay, callback) {
if ((arguments.length == 1) && (typeof(props) == "object")) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, action:props}));
}
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, props, endVals, seconds, ease, delay, callback));
};
shortcuts.removeTween = (shortcuts.stopTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this, props);
});
shortcuts.removeAllTweens = (shortcuts.stopAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.removeTween("ALL");
});
shortcuts.isTweening = function (prop) {
return(com.mosesSupposes.fuse.ZigoEngine.isTweening(this, prop));
};
shortcuts.getTweens = function () {
return(com.mosesSupposes.fuse.ZigoEngine.getTweens(this));
};
shortcuts.lockTween = function () {
com.mosesSupposes.fuse.ZigoEngine.lockTween(this, true);
};
shortcuts.unlockTween = function () {
com.mosesSupposes.fuse.ZigoEngine.lockTween(this, false);
};
shortcuts.isTweenLocked = function () {
return(com.mosesSupposes.fuse.ZigoEngine.isTweenLocked(this));
};
shortcuts.isTweenPaused = function (prop) {
return(com.mosesSupposes.fuse.ZigoEngine.isTweenPaused(this, prop));
};
shortcuts.pauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(this, props);
};
shortcuts.resumeTween = (shortcuts.unpauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween(this, props);
});
shortcuts.pauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.pauseTween("ALL");
};
shortcuts.resumeAllTweens = (shortcuts.unpauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween("ALL");
});
shortcuts.ffTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.ffTween(this, props);
};
shortcuts.rewTween = function (props, suppressStartEvents) {
com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, false, suppressStartEvents);
};
shortcuts.rewAndPauseTween = function (props, suppressStartEvents) {
com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, true, suppressStartEvents);
};
shortcuts.skipTweenTo = function (seconds, props) {
com.mosesSupposes.fuse.ZigoEngine.skipTweenTo(seconds, this, props);
};
shortcuts.bezierTo = function (destX, destY, controlX, controlY, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_bezier_", {x:destX, y:destY, controlX:controlX, controlY:controlY}, seconds, ease, delay, callback));
};
shortcuts.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_colorTransform", {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab}, seconds, ease, delay, callback));
};
shortcuts.tintTo = function (rgb, percent, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_tint", {tint:rgb, percent:percent}, seconds, ease, delay, callback));
};
shortcuts.slideTo = function (destX, destY, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_x,_y", [destX, destY], seconds, ease, delay, callback));
};
shortcuts.fadeIn = function (seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_fade", 100, seconds, ease, delay, callback));
};
shortcuts.fadeOut = function (seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_fade", 0, seconds, ease, delay, callback));
};
mcshortcuts = new Object();
mcshortcuts._frame = {getter:function () {
return(this._currentframe);
}, setter:function (v) {
this.gotoAndStop(Math.round(v));
}};
mcshortcuts.frameTo = function (endframe, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_frame", ((endframe != undefined) ? (endframe) : (this._totalframes)), seconds, ease, delay, callback));
};
}
static var registryKey = "shortcuts";
static var shortcuts = null;
static var mcshortcuts = null;
}
Symbol 730 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing
{
function PennerEasing () {
}
static function linear(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInQuad(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOutQuad(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOutQuad(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeInExpo(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOutExpo(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOutExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutInExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
static function easeInElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
static function easeOutElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)))) + b);
}
static function easeInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
static function easeOutBounce(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeInBounce(t, b, c, d) {
return((c - easeOutBounce(d - t, 0, c, d)) + b);
}
static function easeInOutBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutInBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeInCubic(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOutCubic(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOutCubic(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutInCubic(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
static function easeInQuart(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOutQuart(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOutQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutInQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
static function easeInQuint(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOutQuint(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOutQuint(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutInQuint(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInSine(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOutSine(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOutSine(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutInSine(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
static function easeInCirc(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOutCirc(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOutCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutInCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
static var registryKey = "pennerEasing";
}
Symbol 731 MovieClip [__Packages.ddd_spindicator] Frame 0
class ddd_spindicator
{
var pPosition, pDirection, pWidth, pPicturePlane, pDraw, pColour, pLineWidth, pAlpha, pPoints, pFlatPoints, pFaces;
function ddd_spindicator (thisPosition, thisDirection, thisWidth, thisPicturePlane, thisDraw, thisColour, thisLineWidth, thisAlpha) {
pPosition = thisPosition;
pDirection = _root.ddd.normaliseVector(thisDirection);
pWidth = thisWidth;
pPicturePlane = thisPicturePlane;
if ((thisDraw == undefined) || (thisDraw)) {
pDraw = true;
} else if (!thisDraw) {
pDraw = false;
}
if (thisColour == undefined) {
pColour = 16777215 /* 0xFFFFFF */;
} else {
pColour = thisColour;
}
if (thisLineWidth == undefined) {
pLineWidth = 2;
} else {
pLineWidth = thisLineWidth;
}
if (thisAlpha == undefined) {
pAlpha = 100;
} else {
pAlpha = thisAlpha;
}
build();
aim(pDirection);
_root.ddd.registerObject(this);
}
function build() {
pPoints = new Object();
pPoints.a = {X:pPosition.X - (pWidth / 2), Y:pPosition.Y - (pWidth / 2), Z:pPosition.Z};
pPoints.b = {X:pPosition.X + (pWidth / 2), Y:pPosition.Y - (pWidth / 2), Z:pPosition.Z};
pPoints.c = {X:pPosition.X + (pWidth / 2), Y:pPosition.Y + (pWidth / 2), Z:pPosition.Z};
pPoints.d = {X:pPosition.X - (pWidth / 2), Y:pPosition.Y + (pWidth / 2), Z:pPosition.Z};
pPoints.e = _root.ddd.dividePoints3D(pPoints.a, pPoints.b, 2);
pPoints.f = _root.ddd.dividePoints3D(pPoints.b, pPoints.c, 2);
pPoints.g = _root.ddd.dividePoints3D(pPoints.c, pPoints.d, 2);
pPoints.h = _root.ddd.dividePoints3D(pPoints.d, pPoints.a, 2);
pFlatPoints = _root.ddd.duplicateObject(pPoints);
pFaces = new Array();
var _local3 = ["a", "b", "c", "d"];
pFaces.push(_local3);
var _local4 = ["e", "g"];
pFaces.push(_local4);
var _local5 = ["h", "f"];
pFaces.push(_local5);
}
function move(thisPosition) {
pPosition = _root.ddd.duplicateObject(thisPosition);
build();
}
function aim(thisDirection) {
var _local3 = {X:0, Y:0, Z:1};
var _local4 = _root.ddd.angleBetweenVectors(thisDirection, _local3);
var _local7 = _root.ddd.getCrossProduct(thisDirection, _local3);
var _local5 = _root.ddd.normaliseVector(_local7);
var _local6 = _root.ddd.moveInDirection3D(pPosition, _local5, 40);
pPoints = _root.ddd.rotatePoints(pFlatPoints, pPosition, _local6, _local4);
}
}
Symbol 732 MovieClip [__Packages.DistortImage] Frame 0
class DistortImage
{
var _mc, texture, _vseg, _hseg, _w, _h, _aMcs, _p, _tri, _xMin, _yMin, _xMax, _yMax, _hsLen, _vsLen;
function DistortImage (mc, ptexture, vseg, hseg) {
_mc = mc;
if (ptexture instanceof flash.display.BitmapData) {
texture = ptexture;
} else if (ptexture instanceof MovieClip) {
texture = new flash.display.BitmapData(ptexture._width, ptexture._height);
texture.draw(ptexture);
} else {
throw new Error("Second argument in DistortImage class must be a BitmapData object or a Movieclip");
}
_vseg = vseg || 0;
_hseg = hseg || 0;
_w = texture.width;
_h = texture.height;
_aMcs = new Array();
_p = new Array();
_tri = new Array();
__init();
}
function setTransform(x0, y0, x1, y1, x2, y2, x3, y3) {
var _local13 = _w;
var _local12 = _h;
var _local8 = x3 - x0;
var _local10 = y3 - y0;
var _local9 = x2 - x1;
var _local11 = y2 - y1;
var _local7 = _p.length;
while (_local7-- , _local7 > -1) {
var _local3 = _p[_local7];
var _local4 = (_local3.x - _xMin) / _local13;
var _local2 = (_local3.y - _yMin) / _local12;
var _local6 = x0 + (_local2 * _local8);
var _local5 = y0 + (_local2 * _local10);
_local3.sx = _local6 + (_local4 * ((x1 + (_local2 * _local9)) - _local6));
_local3.sy = _local5 + (_local4 * ((y1 + (_local2 * _local11)) - _local5));
}
__render();
}
function __init(Void) {
_p = new Array();
_tri = new Array();
var _local3;
var _local2;
var _local12 = _w / 2;
var _local11 = _h / 2;
_xMin = (_yMin = 0);
_xMax = _w;
_yMax = _h;
_hsLen = _w / (_hseg + 1);
_vsLen = _h / (_vseg + 1);
var _local8;
var _local7;
var _local6;
var _local5;
var _local4;
_local3 = 0;
while (_local3 < (_hseg + 2)) {
_local2 = 0;
while (_local2 < (_vseg + 2)) {
_local8 = _local3 * _hsLen;
_local7 = _local2 * _vsLen;
_p.push({x:_local8, y:_local7, sx:_local8, sy:_local7});
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < (_vseg + 1)) {
_local2 = 0;
while (_local2 < (_hseg + 1)) {
_local6 = _p[_local2 + (_local3 * (_hseg + 2))];
_local5 = _p[(_local2 + (_local3 * (_hseg + 2))) + 1];
_local4 = _p[_local2 + ((_local3 + 1) * (_hseg + 2))];
__addTriangle(_local6, _local5, _local4);
_local6 = _p[(_local2 + ((_local3 + 1) * (_vseg + 2))) + 1];
_local5 = _p[_local2 + ((_local3 + 1) * (_vseg + 2))];
_local4 = _p[(_local2 + (_local3 * (_vseg + 2))) + 1];
__addTriangle(_local6, _local5, _local4);
_local2++;
}
_local3++;
}
__render();
}
function __addTriangle(p0, p1, p2) {
var _local4;
var _local3;
var _local11;
var _local5;
var _local6;
var _local10;
var _local2 = {};
_local4 = p0.x;
_local3 = p0.y;
_local11 = p1.x;
_local5 = p1.y;
_local6 = p2.x;
_local10 = p2.y;
_local2.tx = (-_local3) * (_w / (_local5 - _local3));
_local2.ty = (-_local4) * (_h / (_local6 - _local4));
_local2.a = (_local2.d = 0);
_local2.b = _h / (_local6 - _local4);
_local2.c = _w / (_local5 - _local3);
_tri.push([p0, p1, p2, _local2]);
}
function __render(Void) {
var _local14;
var _local9;
var _local6;
var _local5;
var _local8;
var _local7;
var _local10 = 1 / _h;
var _local11 = 1 / _w;
var _local3 = _mc;
_local3.clear();
var _local4;
var _local2 = {};
var _local13 = {};
var _local12 = _tri.length;
while (_local12-- , _local12 > -1) {
_local4 = _tri[_local12];
_local9 = _local4[0];
_local6 = _local4[1];
_local5 = _local4[2];
_local13 = _local4[3];
_local8 = _local9.sx;
_local2.a = (_local6.sx - _local8) * _local11;
_local7 = _local9.sy;
_local2.b = (_local6.sy - _local7) * _local11;
_local2.c = (_local5.sx - _local8) * _local10;
_local2.d = (_local5.sy - _local7) * _local10;
_local2.tx = _local8;
_local2.ty = _local7;
_local2 = __concat(_local2, _local13);
_local3.beginBitmapFill(texture, _local2, false, false);
_local3.moveTo(_local8, _local7);
_local3.lineTo(_local6.sx, _local6.sy);
_local3.lineTo(_local5.sx, _local5.sy);
_local3.endFill();
}
}
function __concat(m1, m2) {
var _local2 = {};
_local2.a = m1.c * m2.b;
_local2.b = m1.d * m2.b;
_local2.c = m1.a * m2.c;
_local2.d = m1.b * m2.c;
_local2.tx = ((m1.a * m2.tx) + (m1.c * m2.ty)) + m1.tx;
_local2.ty = ((m1.b * m2.tx) + (m1.d * m2.ty)) + m1.ty;
return(_local2);
}
}
Symbol 733 MovieClip [__Packages.goalie] Frame 0
class goalie
{
var pPosition, pPositionCentre, pHit, pMove, pMaxLeapDistance, pSave, pAccuracyStep, pAccuracy, pAccuracyMax, pProximityIncrease, pHotSpotAffinity, pSpeedReduction, pSpinReduction, pHotSpotMaxDistance, pLeaped, pLeapTarget, pHotSpot, pLeap;
function goalie (thisPosition) {
pPosition = (pPositionCentre = thisPosition);
_root.game.myGoalie.swapDepths(4999999);
}
function init() {
trace("YOYOYOY init goalie");
pPosition = pPositionCentre;
pHit = false;
if (_root.game.myGoalie._currentframe > 70) {
_root.game.myGoalie.gotoAndPlay(1);
}
pMove = new Object();
pMove.pDir = 1;
pMove.pSpeed = 3;
pMove.pChangeThresh = 0.05;
pMaxLeapDistance = 600;
pSave = false;
pAccuracyStep = 0.02;
pAccuracy = 0.1;
pAccuracyMax = 0.9;
pProximityIncrease = 0.3;
pHotSpotAffinity = 0.3;
pSpeedReduction = 0.8;
pSpinReduction = 0.8;
pHotSpotMaxDistance = _root.ddd.distanceBetweenPoints3D(_root.game.pGoal.pPoints.a, _root.game.pGoal.pPoints.c);
setHotSpot();
pLeaped = false;
_root.game.pBall.drawZoom();
}
function cycle() {
switch (_root.game.pStatus) {
case "aim" :
if (Math.random() < pMove.pChangeThresh) {
pMove.pDir = pMove.pDir * -1;
}
pPosition.X = pPosition.X + ((pMove.pDir * pMove.pSpeed) * Math.random());
if (pPosition.X < (_root.game.pGoal.pPoints.a.X + 300)) {
pPosition.X = _root.game.pGoal.pPoints.a.X + 300;
} else if (pPosition.X > (_root.game.pGoal.pPoints.d.X - 300)) {
pPosition.X = _root.game.pGoal.pPoints.d.X - 300;
}
case "zoom" :
case "zoomout" :
case "zoomreturn" :
var _local4 = _root.ddd.mapPointToPicturePlane(pPosition, _root.ddd.pFocalPoint);
var _local3 = _root.ddd.mapPointToScreen(_local4);
_root.game.myGoalie._x = _local3.X;
_root.game.myGoalie._y = _local3.Y;
break;
case "kick" :
if ((((_root.game.pBall.pPath.pCurrentFrame >= (_root.game.pBall.pPath.pHitFrame - 13)) && (!_root.game.pBall.pPath.pShort)) && (_root.game.pBall.pPath.pInGoal)) && (!pLeaped)) {
doLeap();
}
if (!(((_root.game.pBall.pPath.pCurrentFrame == _root.game.pBall.pPath.pHitFrame) && (pSave)) && (!pHit))) {
break;
}
pHit = true;
_root.game.pBall.hitGoalie();
}
}
function doLeap() {
pSave = false;
pLeapTarget = _root.ddd.duplicateObject(_root.game.pBall.pPath.pHitPos);
var _local4 = pAccuracy + (pAccuracyStep * _root.game.pPlayer.pRound);
var _local15 = _root.ddd.distanceBetweenPoints3D(pPosition, pLeapTarget);
var _local7 = (1 - (_local15 / pHotSpotMaxDistance)) * pProximityIncrease;
var _local16 = _root.ddd.distanceBetweenPoints3D(pHotSpot, pLeapTarget);
var _local10 = (1 - (_local16 / pHotSpotMaxDistance)) * pHotSpotAffinity;
var _local12 = (_root.game.pBall.pPower.pPercent * pSpeedReduction) / 100;
var _local9 = ((Math.abs(_root.game.pBall.pSpin.pHorz.pMovePercent) / 100) * pSpinReduction) / 2;
var _local13 = ((Math.abs(_root.game.pBall.pSpin.pVert.pMovePercent) / 100) * pSpinReduction) / 2;
var _local3 = ((((_local4 + _local7) + _local10) - _local12) - _local9) - _local13;
if (_local3 < _local4) {
_local3 = _local4;
} else if (_local3 > 0.95) {
_local3 = 0.95;
}
_root.myAccuracy.text = ("Base: +" + Math.round(_local4 * 100)) + "%";
_root.myAccuracy.text = _root.myAccuracy.text + newline;
_root.myAccuracy.text = _root.myAccuracy.text + (("Distance: +" + Math.round(_local7 * 100)) + "%");
_root.myAccuracy.text = _root.myAccuracy.text + newline;
_root.myAccuracy.text = _root.myAccuracy.text + (("HotSpot: +" + Math.round(_local10 * 100)) + "%");
_root.myAccuracy.text = _root.myAccuracy.text + newline;
_root.myAccuracy.text = _root.myAccuracy.text + (("Speed: -" + Math.round(_local12 * 100)) + "%");
_root.myAccuracy.text = _root.myAccuracy.text + newline;
_root.myAccuracy.text = _root.myAccuracy.text + (("Spin: -" + Math.round(_local9 + (_local13 * 100))) + "%");
_root.myAccuracy.text = _root.myAccuracy.text + newline;
_root.myAccuracy.text = _root.myAccuracy.text + (("FINAL: " + Math.round(_local3 * 100)) + "%");
if (Math.random() < _local3) {
pSave = true;
} else {
var _local8 = _root.game.pGoal.pPoints.a.X;
var _local14 = _root.game.pGoal.pPoints.d.X - _local8;
var _local17 = _root.game.pGoal.pPoints.b.Y;
pLeapTarget.X = _local8 + (Math.random() * _local14);
pLeapTarget.Y = Math.random() * _local17;
}
var _local6 = (pPosition.X - pLeapTarget.X) * 0.7;
var _local11 = "close";
if (_local6 > ((_root.game.pGoal.pPoints.d.X - _root.game.pGoal.pPoints.d.X) / 3)) {
_local11 = "far";
}
var _local5;
if (pLeapTarget.Y < -170) {
_local5 = "high";
} else if (pLeapTarget.Y < -88) {
_local5 = "mid";
} else {
_local5 = "low";
}
pLeap = chooseLeap(_local11, _local5, pSave);
_root.game.myGoalie.gotoAndPlay(pLeap);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game.myGoalie, "_bezier_", {x:String((-_local6) / 1.5), controlY:String(pLeapTarget.Y)}, 0.5, "linear", 0, {scope:this, func:"setNewPos"});
pLeaped = true;
}
function setNewPos() {
pPosition = _root.ddd.mapPicturePlaneToPointZ(_root.game.myGoalie._x + _root.ddd.pScreenOffset.X, _root.game.myGoalie._y + _root.ddd.pScreenOffset.Y, _root.game.pGoal.pPoints.a.Z);
}
function chooseLeap(thisHorzType, thisVertType, thisSave) {
var _local2;
var _local1;
if (thisHorzType == "close") {
switch (thisVertType) {
case "high" :
_local1 = ["scorpion", "divehigh", "hanging"];
_local2 = _local1[Math.floor(Math.random() * _local1.length)];
break;
case "mid" :
_local2 = "deflectmid";
break;
case "low" :
_local1 = ["kicklow", "pickuplow"];
_local2 = _local1[Math.floor(Math.random() * _local1.length)];
}
} else {
_local2 = "divelow";
}
return(_local2);
}
function setHotSpot() {
_root.game.myTextGoal.myHotSpot.myValue.text = 100;
if (_root.game.pPlayer) {
_root.game.myTextGoal.myHotSpot.myValue.text = _root.game.pPlayer.pRound * 100;
}
var _local4 = _root.game.myTextGoal.myNet._width;
var _local3 = _root.game.myTextGoal.myNet._height;
var _local6 = (_local4 * 0.2) + Math.ceil((Math.random() * _local4) * 0.6);
var _local5 = (_local3 * 0.25) + Math.ceil((Math.random() * _local3) * 0.5);
_root.game.myTextGoal.myHotSpot._x = _local6;
_root.game.myTextGoal.myHotSpot._y = _local5;
var _local10 = _local6 / _local4;
var _local11 = (_local3 - _local5) / _local3;
var _local7 = _root.game.pGoal.pPoints.d.X - _root.game.pGoal.pPoints.a.X;
var _local12 = -_root.game.pGoal.pPoints.b.Y;
var _local9 = _local7 * _local10;
var _local8 = _local12 * _local11;
pHotSpot = new Object();
pHotSpot.X = _root.game.pGoal.pPoints.a.X + _local9;
pHotSpot.Y = _root.game.pGoal.pPoints.a.Y - _local8;
pHotSpot.Z = _root.game.pGoal.pPoints.a.Z;
}
}
Symbol 734 MovieClip [__Packages.ddd_arrow] Frame 0
class ddd_arrow
{
var pPosition, pDirection, pLength, pHeadLength, pPicturePlane, pDraw, pColour, pLineWidth, pAlpha, pPoints, pFlatPoints, pFaces;
function ddd_arrow (thisPosition, thisDirection, thisLength, thisHeadLength, thisPicturePlane, thisDraw, thisColour, thisLineWidth, thisAlpha) {
pPosition = thisPosition;
pDirection = _root.ddd.normaliseVector(thisDirection);
pLength = thisLength;
pHeadLength = thisHeadLength;
pPicturePlane = thisPicturePlane;
if ((thisDraw == undefined) || (thisDraw)) {
pDraw = true;
} else if (!thisDraw) {
pDraw = false;
}
if (thisColour == undefined) {
pColour = 16777215 /* 0xFFFFFF */;
} else {
pColour = thisColour;
}
if (thisLineWidth == undefined) {
pLineWidth = 2;
} else {
pLineWidth = thisLineWidth;
}
if (thisAlpha == undefined) {
pAlpha = 100;
} else {
pAlpha = thisAlpha;
}
buildArrow();
aimArrow(pDirection);
_root.ddd.registerObject(this);
}
function buildArrow() {
pPoints = new Object();
pPoints.a = {X:pPosition.X, Y:pPosition.Y, Z:pPosition.Z};
pPoints.b = {X:pPoints.a.X, Y:pPoints.a.Y, Z:pPoints.a.Z + pLength};
pPoints.c = {X:pPoints.b.X - _root.ddd.toa(45, "?", pHeadLength), Y:pPoints.a.Y, Z:pPoints.b.Z - pHeadLength};
pPoints.d = {X:pPoints.b.X + _root.ddd.toa(45, "?", pHeadLength), Y:pPoints.a.Y, Z:pPoints.b.Z - pHeadLength};
pFlatPoints = _root.ddd.duplicateObject(pPoints);
pFaces = new Array();
var _local3 = ["a", "b"];
var _local4 = ["c", "b", "d"];
pFaces.push(_local3);
pFaces.push(_local4);
}
function moveArrow(thisPosition) {
pPosition = _root.ddd.duplicateObject(thisPosition);
buildArrow();
}
function aimArrow(thisDirection) {
var _local3 = _root.ddd.subtractVector(pFlatPoints.b, pFlatPoints.a);
_local3 = _root.ddd.normaliseVector(_local3);
var _local5 = _root.ddd.angleBetweenVectors(thisDirection, _local3);
_root.myAngle.text = "Angle: " + _local5;
var _local4 = _root.ddd.getCrossProduct(thisDirection, _local3);
var _local6 = _root.ddd.normaliseVector(_local4);
var _local8 = _root.ddd.moveInDirection3D(pPosition, _local6, 40);
_root.myAngle.text = _root.myAngle.text + ((((("\rAxis: X:" + _root.ddd.round(_local4.X, 10)) + " Y:") + _root.ddd.round(_local4.Y, 10)) + " Z:") + _root.ddd.round(_local4.Z, 10));
pPoints = _root.ddd.rotatePoints(pFlatPoints, pPosition, _local8, _local5);
_root.game.pMapY.updateMap("myArrow", {X:_root.game.pEnvironment.pWidth, Y:_root.game.pEnvironment.pHeight, Z:_root.game.pEnvironment.pDepth}, pPoints.b);
_root.game.pMapX.updateMap("myArrow", {X:_root.game.pEnvironment.pWidth, Y:_root.game.pEnvironment.pHeight, Z:_root.game.pEnvironment.pDepth / 2}, pPoints.b);
_root.game.pMapZ.updateMap("myArrow", {X:_root.game.pEnvironment.pWidth, Y:_root.game.pEnvironment.pHeight, Z:_root.game.pEnvironment.pDepth}, pPoints.b);
var _local7 = _root.ddd.distanceBetweenPoints3D(pPosition, pPoints.b);
_root.myArrowLength.text = "Length = " + Math.round(_local7);
}
}
Symbol 735 MovieClip [__Packages.ddd_marker] Frame 0
class ddd_marker
{
var pPosition, pSize, pPicturePlane, pDraw, pColour, pLinewWidth, pAlpha, pPoints, pFaces;
function ddd_marker (thisPosition, thisPicturePlane, thisSize, thisDraw, thisColour, thisLineWidth, thisAlpha) {
pPosition = thisPosition;
pSize = thisSize;
pPicturePlane = thisPicturePlane;
if ((thisDraw == undefined) || (thisDraw)) {
pDraw = true;
} else if (!thisDraw) {
pDraw = false;
}
if (thisColour == undefined) {
pColour = 16777215 /* 0xFFFFFF */;
} else {
pColour = thisColour;
}
if (thisLineWidth == undefined) {
pLinewWidth = 2;
} else {
pLinewWidth = thisLineWidth;
}
if (thisAlpha == undefined) {
pAlpha = 100;
} else {
pAlpha = thisAlpha;
}
buildMarker();
placeMarker(pPosition);
_root.ddd.registerObject(this);
}
function buildMarker(thisPosition) {
pPoints = new Object();
pPoints.a = {X:thisPosition.X - (pSize / 2), Y:thisPosition.Y, Z:thisPosition.Z};
pPoints.b = {X:thisPosition.X + (pSize / 2), Y:thisPosition.Y, Z:thisPosition.Z};
pPoints.c = {X:thisPosition.X, Y:thisPosition.Y - (pSize / 2), Z:thisPosition.Z};
pPoints.d = {X:thisPosition.X, Y:thisPosition.Y + (pSize / 2), Z:thisPosition.Z};
pFaces = new Array();
var _local3 = ["a", "b"];
var _local4 = ["c", "d"];
pFaces.push(_local3);
pFaces.push(_local4);
}
function placeMarker(thisPosition) {
pPosition = thisPosition;
buildMarker(pPosition);
}
}
Symbol 736 MovieClip [__Packages.player] Frame 0
class player
{
var pTeam, pPosition, pRound, pScore, pPoints, pAttempts, pGoals, pShots, pHotSpotPoints, pHotSpots;
function player (thisTeam) {
if (thisTeam == undefined) {
pTeam = 0;
} else {
pTeam = Number(thisTeam);
}
}
function init(thisPosition) {
pPosition = thisPosition;
pRound = 1;
pScore = 0;
pPoints = 0;
pAttempts = 3;
pGoals = 0;
pShots = 0;
pHotSpotPoints = 0;
pHotSpots = 0;
loadPlayerClip(pTeam);
}
function submitScore() {
_root.game_name;
_root.score;
_root.load_id;
_root.score = pScore;
_root.load_id = _level0.load_id;
_root.team = _level0.thereisnoi;
_root.data_send("submit_it");
}
function updateFeedback() {
_root.game.pDisplay.updateScore(pScore);
_root.game.pDisplay.updateRound(pRound);
_root.game.pDisplay.updateAttempts(pAttempts);
}
function drawPlayer() {
var _local3 = _root.ddd.mapPointToPicturePlane(pPosition, _root.ddd.pFocalPoint);
_local3 = _root.ddd.mapPointToScreen(_local3);
_root.game.myPlayerGroup._x = _local3.X;
_root.game.myPlayerGroup._y = _local3.Y;
}
function checkReaction(thisPathObject) {
var _local2 = _root.game.myPlayerGroup.myPlayer;
if (thisPathObject.pHitGoal) {
_local2.gotoAndStop("close");
} else if (thisPathObject.pInGoal) {
if (_root.game.pGoalie.pSave) {
_local2.gotoAndStop("close");
} else {
_local2.gotoAndStop("goal");
}
} else {
_local2.gotoAndStop("missed");
}
}
function loadPlayerClip(thisTeam) {
_root.game.attachMovie("player", "myPlayerGroup", _root.game.getNextHighestDepth());
_root.game.myPlayerGroup.myPlayer._x = -35.5;
_root.game.myPlayerGroup.myPlayer._y = -301.8;
_root.game.myPlayerGroup.myPlayer._xscale = (_root.game.myPlayerGroup.myPlayer._yscale = 79.2);
}
function getNameFromTeamNum(thisNum) {
var _local2 = Number(thisNum);
var _local1;
switch (_local2) {
case 1 :
_local1 = "Brann";
case 2 :
_local1 = "Fredrikstad";
break;
case 3 :
_local1 = "Lillestr\u00F8m";
break;
case 4 :
_local1 = "Lyn";
break;
case 5 :
_local1 = "Odd Grenland";
break;
case 6 :
_local1 = "Rosenborg";
break;
case 7 :
_local1 = "Sandefjord";
break;
case 8 :
_local1 = "Stab\u00E6k";
break;
case 9 :
_local1 = "Start";
break;
case 10 :
_local1 = "Str\u00F8msgodset";
break;
case 11 :
_local1 = "Troms\u00F8";
break;
case 12 :
_local1 = "Viking";
break;
case 13 :
_local1 = "V\u00E5lerenga";
break;
case 14 :
_local1 = "Aalesund";
}
return(_local1);
}
}
Symbol 737 MovieClip [__Packages.gametools] Frame 0
class gametools extends MovieClip
{
var pSoundFadeOut;
function gametools () {
super();
initSoundAndGraphics();
}
function initSoundAndGraphics() {
if (!_root.pSound) {
_root.pSound = "on";
}
if (!_root.pGraphics) {
_root.pGraphics = "med";
}
}
function toggleSound() {
var _local2 = new Sound();
if (_root.pSound == "on") {
_local2.setVolume(0);
_root.pSound = "off";
} else {
_local2.setVolume(100);
_root.pSound = "on";
}
return(_root.pSound);
}
function toggleGraphics() {
switch (_root.pGraphics) {
case "high" :
_root.pGraphics = "low";
_root._quality = "LOW";
break;
case "med" :
_root.pGraphics = "high";
_root._quality = "BEST";
break;
case "low" :
_root.pGraphics = "med";
_root._quality = "MEDIUM";
break;
}
return(_root.pGraphics);
}
function play_sound(linkage, loop, thisVolume, thisClip, thisPan, thisFade) {
if (loop == undefined) {
loop = 1;
}
if (thisVolume == undefined) {
thisVolume = 100;
}
if (thisClip == undefined) {
thisClip = _root;
}
if (thisPan == undefined) {
thisPan = 0;
}
var _local3 = new Sound(thisClip);
_local3.attachSound(linkage);
_local3.setPan(thisPan);
if (thisFade) {
_local3.setVolume(0);
} else {
_local3.setVolume(thisVolume);
_local3.setPan(thisPan);
}
_local3.start(0, loop);
if (thisFade) {
fade_sound(_local3, 1);
}
return(_local3);
}
function fade_sound(thisSound, thisDir) {
clearInterval(pSoundFadeOut);
if (thisDir > 0) {
thisSound.start(0, 9999);
}
pSoundFadeOut = setInterval(this, "fade_sound_interval", 75, thisSound, thisDir, this);
}
function fade_sound_interval(thisSound, thisDir, thisController) {
if (thisDir == undefined) {
thisDir = -1;
}
var _local1 = thisSound.getVolume() + (3 * thisDir);
if (thisDir > 0) {
if (_local1 > 95) {
clearInterval(thisController.pSoundFadeOut);
} else {
thisSound.setVolume(_local1);
}
} else if (_local1 < 0) {
thisSound.stop();
clearInterval(thisController.pSoundFadeOut);
} else {
thisSound.setVolume(_local1);
}
}
function hexToRgb(thisHex) {
var _local3 = seperateHexChannel(thisHex, "red");
var _local5 = seperateHexChannel(thisHex, "green");
var _local6 = seperateHexChannel(thisHex, "blue");
var _local2 = new Object();
_local2.pRed = _local3;
_local2.pGreen = _local5;
_local2.pBlue = _local6;
return(_local2);
}
function seperateHexChannel(thisColour, thisChannel) {
var _local2;
var _local1;
switch (thisChannel) {
case "red" :
_local1 = 16711680 /* 0xFF0000 */;
_local2 = thisColour & _local1;
_local2 = _local2 >>> 16;
break;
case "green" :
_local1 = 65280;
_local2 = thisColour & _local1;
_local2 = _local2 >>> 8;
break;
case "blue" :
_local1 = 255;
_local2 = thisColour & _local1;
}
return(_local2);
}
function rgbToHex(thisRgbObject) {
var _local2 = Number("0x" + thisRgbObject.pRed.toString(16));
_local2 = _local2 << 16;
var _local3 = Number("0x" + thisRgbObject.pGreen.toString(16));
_local3 = _local3 << 8;
var _local4 = Number("0x" + thisRgbObject.pBlue.toString(16));
var _local1 = 0;
_local1 = _local1 | _local2;
_local1 = _local1 | _local3;
_local1 = _local1 | _local4;
return(_local1);
}
}
Symbol 738 MovieClip [__Packages.trig] Frame 0
class trig
{
function trig () {
}
function distanceBetweenPoints(thisFulcrum, thisVector) {
var _local4 = thisVector.Horz - thisFulcrum.Horz;
var _local2 = thisVector.Vert - thisFulcrum.Vert;
var _local3 = pythagoras(_local4, _local2, "?");
return(_local3);
}
function angleBetweenPoints(thisFulcrumPoint, thisVectorPoint) {
var _local2 = thisVectorPoint.Horz - thisFulcrumPoint.Horz;
var _local3 = thisVectorPoint.Vert - thisFulcrumPoint.Vert;
var _local5 = determineHemisphere(_local2);
var _local4 = determineHemisphere(_local3);
var _local6 = determineQuadrant(_local5, _local4);
var _local7 = pythagoras(_local2, _local3, "?");
var _local8 = cah("?", Math.abs(_local2), _local7, _local6);
return(_local8);
}
function dividePoints(thisPoint, thisTarget, thisDivider) {
var _local1 = new Object();
_local1.Horz = (thisTarget.Horz + thisPoint.Horz) / thisDivider;
_local1.Vert = (thisTarget.Vert + thisPoint.Vert) / thisDivider;
return(_local1);
}
function rotatePoint(thisAngle, thisFulcrumH, thisFulcrumV, thisHorz, thisVert) {
var _local3 = new Object();
_local3.Horz = thisFulcrumH;
_local3.Vert = thisFulcrumV;
var _local2 = new Object();
_local2.Horz = thisHorz;
_local2.Vert = thisVert;
var _local6 = distanceBetweenPoints(_local3, _local2);
var _local9 = angleBetweenPoints(_local3, _local2);
var _local5 = _local9 + thisAngle;
var _local7 = cah(_local5, "?", _local6);
var _local8 = soh(_local5, "?", _local6);
var _local4 = new Object();
_local4.Horz = thisFulcrumH + _local7;
_local4.Vert = thisFulcrumV + _local8;
return(_local4);
}
function rotatePointAoundOrigin(thisAngle, thisHorz, thisVert) {
var _local2 = rotatePoint(thisAngle, 0, 0, thisHorz, thisVert);
return(_local2);
}
function extendAlongAngle(thisAngle, thisStartHorz, thisStartVert, thisDist) {
var _local3 = thisStartHorz;
var _local4 = thisStartVert;
var _local6 = cah(thisAngle, "?", thisDist);
var _local5 = soh(thisAngle, "?", thisDist);
_local3 = _local3 + _local6;
_local4 = _local4 + _local5;
var _local2 = new Object();
_local2.Horz = _local3;
_local2.Vert = _local4;
return(_local2);
}
function moveAlongCirc(thisDistance, thisFulcrumH, thisFulcrumV, thisH, thisV, thisDirection) {
var _local3 = new Object();
_local3.Horz = thisFulcrumH;
_local3.Vert = thisFulcrumV;
var _local2 = new Object();
_local2.Horz = thisH;
_local2.Vert = thisV;
var _local7 = distanceBetweenPoints(_local3, _local2);
var _local4 = (Math.PI*2) * _local7;
var _local5 = thisDistance / _local4;
var _local8 = (_local5 * 360) * thisDirection;
var _local6 = rotatePoint(_local8, thisFulcrumH, thisFulcrumV, thisH, thisV);
return(_local6);
}
function soh(thisAng, thisOpp, thisHyp, thisQuadrant) {
var _local2;
var _local3;
if (thisAng == "?") {
_local2 = Math.asin(thisOpp / thisHyp);
_local2 = radiansToDegrees(_local2);
_local2 = makeQuadrantConversion(_local2, thisQuadrant);
} else if (thisOpp == "?") {
_local3 = degreesToRadians(thisAng);
_local2 = Math.sin(_local3) * thisHyp;
} else {
_local3 = degreesToRadians(thisAng);
_local2 = thisOpp / Math.sin(_local3);
}
return(_local2);
}
function cah(thisAng, thisAdj, thisHyp, thisQuadrant) {
var _local2;
var _local3;
var _local7 = 0;
if (thisAng == "?") {
_local2 = Math.acos(thisAdj / thisHyp);
_local2 = radiansToDegrees(_local2);
_local2 = makeQuadrantConversion(_local2, thisQuadrant);
} else if (thisAdj == "?") {
_local3 = degreesToRadians(thisAng);
_local2 = Math.cos(_local3) * thisHyp;
} else {
_local3 = degreesToRadians(thisAng);
_local2 = thisAdj / Math.cos(_local3);
}
return(_local2);
}
function toa(thisAng, thisOpp, thisAdj) {
var _local2;
var _local3;
var _local6 = determineQuadrant(thisAdj / Math.abs(thisAdj), thisOpp / Math.abs(thisOpp));
if (thisAng == "?") {
_local2 = Math.atan(Math.abs(thisOpp) / Math.abs(thisAdj));
_local2 = radiansToDegrees(_local2);
_local2 = makeQuadrantConversion(_local2, _local6);
} else if (thisOpp == "?") {
_local3 = degreesToRadians(thisAng);
_local2 = Math.tan(_local3) * thisAdj;
} else {
_local3 = degreesToRadians(thisAng);
_local2 = thisOpp / Math.tan(_local3);
}
return(_local2);
}
function pythagoras(thisHorz, thisVert, thisHyp) {
var _local2;
if (thisHorz == "?") {
_local2 = Math.sqrt((thisHyp * thisHyp) - (thisVert * thisVert));
} else if (thisVert == "?") {
_local2 = Math.sqrt((thisHyp * thisHyp) - (thisHorz * thisHorz));
} else {
_local2 = Math.sqrt((thisHorz * thisHorz) + (thisVert * thisVert));
}
return(_local2);
}
function cosineLaw(thisSideA, thisSideB, thisSideC, thisAngleC) {
var _local4;
if (thisSideC == "?") {
var _local6 = ((thisSideA * thisSideA) + (thisSideB * thisSideB)) - (((2 * thisSideA) * thisSideB) * Math.cos(degreesToRadians(thisAngleC)));
_local4 = Math.sqrt(_local6);
} else {
var _local6 = (((thisSideA * thisSideA) + (thisSideB * thisSideB)) - (thisSideC * thisSideC)) / ((2 * thisSideA) * thisSideB);
_local4 = radiansToDegrees(Math.acos(_local6));
}
return(_local4);
}
function sineLaw(thisSideA, thisAngleA, thisSideB, thisAngleB) {
var _local2;
if (thisSideA == "?") {
_local2 = (thisSideB / Math.sin(degreesToRadians(thisAngleB))) * Math.sin(degreesToRadians(thisAngleA));
} else {
var _local3 = (Math.sin(degreesToRadians(thisAngleB)) * thisSideA) / thisSideB;
_local2 = radiansToDegrees(Math.asin(_local3));
}
return(_local2);
}
function dotProduct(thisVector1, thisVector2) {
var _local2 = 0;
for (var _local4 in thisVector1) {
_local2 = _local2 + (thisVector1[_local4] * thisVector2[_local4]);
}
return(_local2);
}
function normaliseVector(thisVector) {
var _local2 = duplicateObject(thisVector);
var _local3 = getVectorMagnitude(_local2);
for (var _local4 in _local2) {
_local2[_local4] = _local2[_local4] / _local3;
}
return(_local2);
}
function getVectorMagnitude(thisVector) {
var _local2 = 0;
for (var _local3 in thisVector) {
_local2 = _local2 + (thisVector[_local3] * thisVector[_local3]);
}
_local2 = Math.sqrt(_local2);
return(_local2);
}
function subtractVector(thisVector, thisSubtractionVector) {
var _local2 = duplicateObject(thisVector);
for (var _local3 in _local2) {
_local2[_local3] = _local2[_local3] - thisSubtractionVector[_local3];
}
return(_local2);
}
function addVector(thisVector, thisAdditionVector) {
var _local2 = duplicateObject(thisVector);
for (var _local4 in _local2) {
_local2[_local4] = _local2[_local4] + thisAdditionVector[_local4];
}
return(_local2);
}
function angleBetweenVectors(thisVector1, thisVector2) {
var _local5 = normaliseVector(thisVector1);
var _local4 = normaliseVector(thisVector2);
var _local3 = dotProduct(_local5, _local4);
var _local2 = Math.acos(_local3);
_local2 = radiansToDegrees(_local2);
return(_local2);
}
function degreesToRadians(thisDegrees) {
var _local1 = (Math.PI/180) * thisDegrees;
return(_local1);
}
function radiansToDegrees(thisRadians) {
var _local1 = thisRadians / (Math.PI/180);
return(_local1);
}
function makeQuadrantConversion(thisAngle, thisQuadrant) {
switch (thisQuadrant) {
case 4 :
thisAngle = 360 - thisAngle;
break;
case 3 :
thisAngle = 180 + thisAngle;
break;
case 2 :
thisAngle = 180 - thisAngle;
break;
case 1 :
}
return(thisAngle);
}
function determineHemisphere(thisDistance) {
var _local1;
if (thisDistance == 0) {
_local1 = 1;
} else {
_local1 = thisDistance / Math.abs(thisDistance);
}
return(_local1);
}
function determineQuadrant(thisHorzHemisphere, thisVertHemisphere) {
var _local1;
switch (thisHorzHemisphere + thisVertHemisphere) {
case -2 :
_local1 = 3;
break;
case 0 :
if (thisHorzHemisphere == -1) {
_local1 = 2;
} else {
_local1 = 4;
}
break;
case 2 :
default :
_local1 = 1;
}
return(_local1);
}
function round(thisNumber, thisRounder) {
thisNumber = thisNumber * thisRounder;
thisNumber = Math.round(thisNumber);
thisNumber = thisNumber / thisRounder;
return(thisNumber);
}
function duplicateObject(thisObject) {
var _local2 = new Object();
for (var _local3 in thisObject) {
_local2[_local3] = thisObject[_local3];
}
return(_local2);
}
function duplicateArray(thisArray) {
var _local6 = new Array();
var _local2;
var _local4;
for (var _local7 in thisArray) {
_local2 = thisArray[_local7];
if (typeof(_local2) == "object") {
for (var _local5 in _local2) {
}
_local4 = duplicateObject(_local2);
} else {
_local2 = thisArray[_local7];
}
_local6[_local7] = _local4;
}
return(_local6);
}
function deleteOffset(thisOffset, thisObject) {
for (var _local3 in thisOffset) {
thisObject[_local3] = thisObject[_local3] - thisOffset[_local3];
}
}
function returnOffset(thisOffset, thisObject) {
for (var _local3 in thisOffset) {
thisObject[_local3] = thisObject[_local3] + thisOffset[_local3];
}
}
function compareObjects(thisObject1, thisObject2) {
var _local2 = true;
for (var _local4 in thisObject1) {
if (thisObject1[_local4] != thisObject2[_local4]) {
_local2 = false;
break;
}
}
return(_local2);
}
}
Symbol 739 MovieClip [__Packages.ddd] Frame 0
class ddd extends trig
{
var pScreenOffset, pFocalPoint, pLightPoint, pObjectList, duplicateObject, deleteOffset, returnOffset, normaliseVector, degreesToRadians, addVector, subtractVector, angleBetweenVectors, round, dotProduct, duplicateArray, pEnvironment;
function ddd (thisOffsetPoint, thisFocalPoint, thisLightPoint) {
super();
pScreenOffset = thisOffsetPoint;
pFocalPoint = thisFocalPoint;
pLightPoint = thisLightPoint;
pObjectList = new Array();
}
function distanceBetweenPoints3D(thisPoint, thisTarget) {
var _local5 = (thisTarget.X - thisPoint.X) * (thisTarget.X - thisPoint.X);
var _local6 = (thisTarget.Y - thisPoint.Y) * (thisTarget.Y - thisPoint.Y);
var _local4 = (thisTarget.Z - thisPoint.Z) * (thisTarget.Z - thisPoint.Z);
var _local3 = Math.sqrt((_local5 + _local6) + _local4);
return(_local3);
}
function dividePoints3D(thisPoint, thisTarget, thisDivider) {
var _local3 = duplicateObject(thisPoint);
var _local4 = duplicateObject(thisTarget);
var _local5 = duplicateObject(thisPoint);
deleteOffset(_local5, _local3);
deleteOffset(_local5, _local4);
var _local2 = new Object();
_local2.X = (_local4.X + _local3.X) / thisDivider;
_local2.Y = (_local4.Y + _local3.Y) / thisDivider;
_local2.Z = (_local4.Z + _local3.Z) / thisDivider;
returnOffset(_local5, _local2);
return(_local2);
}
function buildRotationMatrix(thisAngle, thisAxis) {
var _local9 = normaliseVector(thisAxis);
var _local8 = Math.cos(degreesToRadians(thisAngle));
var _local7 = Math.sin(degreesToRadians(thisAngle));
var _local3 = 1 - Math.cos(degreesToRadians(thisAngle));
var _local6 = _local9.X;
var _local5 = _local9.Y;
var _local4 = _local9.Z;
var _local2 = new Array();
_local2.push((_local3 * Math.pow(_local6, 2)) + _local8);
_local2.push(((_local3 * _local6) * _local5) - (_local7 * _local4));
_local2.push(((_local3 * _local6) * _local4) + (_local7 * _local5));
_local2.push(((_local3 * _local6) * _local5) + (_local7 * _local4));
_local2.push((_local3 * Math.pow(_local5, 2)) + _local8);
_local2.push(((_local3 * _local5) * _local4) - (_local7 * _local6));
_local2.push(((_local3 * _local6) * _local4) - (_local7 * _local5));
_local2.push(((_local3 * _local5) * _local4) + (_local7 * _local6));
_local2.push((_local3 * Math.pow(_local4, 2)) + _local8);
return(_local2);
}
function applyMatrixToVector(thisMatrix, thisVector) {
var _local3 = new Object();
_local3.X = ((thisMatrix[0] * thisVector.X) + (thisMatrix[1] * thisVector.Y)) + (thisMatrix[2] * thisVector.Z);
_local3.Y = ((thisMatrix[3] * thisVector.X) + (thisMatrix[4] * thisVector.Y)) + (thisMatrix[5] * thisVector.Z);
_local3.Z = ((thisMatrix[6] * thisVector.X) + (thisMatrix[7] * thisVector.Y)) + (thisMatrix[8] * thisVector.Z);
return(_local3);
}
function getCrossProduct(thisVect1, thisVect2) {
var _local5 = (thisVect1.Y * thisVect2.Z) - (thisVect2.Y * thisVect1.Z);
var _local4 = (thisVect1.Z * thisVect2.X) - (thisVect2.Z * thisVect1.X);
var _local3 = (thisVect1.X * thisVect2.Y) - (thisVect2.X * thisVect1.Y);
var _local6 = {X:_local5, Y:_local4, Z:_local3};
return(_local6);
}
function moveInDirection3D(thisPoint, thisDirection, thisAmount) {
var _local2 = duplicateObject(thisPoint);
var _local4 = normaliseVector(thisDirection);
var _local3 = multipleVectorByScalar(_local4, thisAmount);
_local2 = addVector(_local2, _local3);
return(_local2);
}
function moveTowardsPointInUnits3D(thisPoint, thisTarget, thisAmount) {
var _local2 = distanceBetweenPoints3D(thisPoint, thisTarget);
var _local4 = _local2 / thisAmount;
var _local3 = dividePoints3D(thisPoint, thisTarget, _local4);
return(_local3);
}
function moveTowardsPointInPercent3D(thisPoint, thisTarget, thisAmount) {
var _local3 = 100 / thisAmount;
var _local2 = dividePoints3D(thisPoint, thisTarget, _local3);
return(_local2);
}
function rotateAroundArbAxis3D(thisVectAxis, thisVectDir, thisAngle) {
var _local2 = buildRotationMatrix(thisAngle, thisVectAxis);
var _local3 = applyMatrixToVector(_local2, thisVectDir);
return(_local3);
}
function multipleVectorByScalar(thisVector, thisScalar) {
var _local2 = duplicateObject(thisVector);
for (var _local4 in _local2) {
_local2[_local4] = _local2[_local4] * thisScalar;
}
return(_local2);
}
function pointTowardsTarget(thisObjectPoints, thisPosition, thisStartDir, thisTargetPoint) {
thisStartDir = normaliseVector(thisStartDir);
var _local2 = subtractVector(thisTargetPoint, thisPosition);
_local2 = normaliseVector(_local2);
var _local5 = angleBetweenVectors(_local2, thisStartDir);
var _local8 = getCrossProduct(_local2, thisStartDir);
var _local6 = normaliseVector(_local8);
var _local7 = moveInDirection3D(thisPosition, _local6, 40);
var _local4 = rotatePoints(thisObjectPoints, thisPosition, _local7, _local5);
return(_local4);
}
function axisAngleRotation(thisVector, thisAxis, thisAngle) {
if (((thisVector.X == 0) && (thisVector.Y == 0)) && (thisVector.Z == 0)) {
return(thisVector);
}
var _local3 = degreesToRadians(thisAngle);
var _local9 = new Object();
var _local6 = multipleVectorByScalar(thisVector, round(Math.cos(_local3), 100000));
var _local5 = multipleVectorByScalar(thisAxis, dotProduct(thisAxis, thisVector));
_local5 = multipleVectorByScalar(_local5, 1 - round(Math.cos(_local3), 100000));
var _local4 = getCrossProduct(thisVector, thisAxis);
_local4 = multipleVectorByScalar(_local4, round(Math.sin(_local3), 100000));
var _local8 = addVector(_local6, _local5);
_local8 = addVector(_local8, _local4);
return(_local8);
}
function axisAngleRotation2(p, thisAngle, p1, p2) {
var _local8 = -degreesToRadians(thisAngle);
var _local3 = {X:0, Y:0, Z:0};
var _local4;
var _local7;
var _local2 = new Object();
_local2.X = p2.X - p1.X;
_local2.Y = p2.Y - p1.Y;
_local2.Z = p2.Z - p1.Z;
p.X = p.X - p1.X;
p.Y = p.Y - p1.Y;
p.Z = p.Z - p1.Z;
_local2 = normaliseVector(_local2);
_local4 = Math.cos(_local8);
_local7 = Math.sin(_local8);
_local3.X = _local3.X + ((_local4 + (((1 - _local4) * _local2.X) * _local2.X)) * p.X);
_local3.X = _local3.X + (((((1 - _local4) * _local2.X) * _local2.Y) - (_local2.Z * _local7)) * p.Y);
_local3.X = _local3.X + (((((1 - _local4) * _local2.X) * _local2.Z) + (_local2.Y * _local7)) * p.Z);
_local3.Y = _local3.Y + (((((1 - _local4) * _local2.X) * _local2.Y) + (_local2.Z * _local7)) * p.X);
_local3.Y = _local3.Y + ((_local4 + (((1 - _local4) * _local2.Y) * _local2.Y)) * p.Y);
_local3.Y = _local3.Y + (((((1 - _local4) * _local2.Y) * _local2.Z) - (_local2.X * _local7)) * p.Z);
_local3.Z = _local3.Z + (((((1 - _local4) * _local2.X) * _local2.Z) - (_local2.Y * _local7)) * p.X);
_local3.Z = _local3.Z + (((((1 - _local4) * _local2.Y) * _local2.Z) + (_local2.X * _local7)) * p.Y);
_local3.Z = _local3.Z + ((_local4 + (((1 - _local4) * _local2.Z) * _local2.Z)) * p.Z);
_local3.X = _local3.X + p1.X;
_local3.Y = _local3.Y + p1.Y;
_local3.Z = _local3.Z + p1.Z;
return(_local3);
}
function axisAngleRotationSteps(p, thisAngle, p1, p2) {
var _local7 = -degreesToRadians(thisAngle);
var _local4 = new Object();
var _local2 = new Object();
var _local3 = new Object();
var _local5;
var _local11;
_local2.X = p.X - p1.X;
_local2.Y = p.Y - p1.Y;
_local2.Z = p.Z - p1.Z;
_local4.X = p2.X - p1.X;
_local4.Y = p2.Y - p1.Y;
_local4.Z = p2.Z - p1.Z;
_local4 = normaliseVector(_local4);
_local5 = Math.sqrt((_local4.Y * _local4.Y) + (_local4.Z * _local4.Z));
if (_local5 != 0) {
_local3.X = _local2.X;
_local3.Y = ((_local2.Y * _local4.Z) / _local5) - ((_local2.Z * _local4.Y) / _local5);
_local3.Z = ((_local2.Y * _local4.Y) / _local5) + ((_local2.Z * _local4.Z) / _local5);
} else {
_local3 = _local2;
}
_local2.X = (_local3.X * _local5) - (_local3.Z * _local4.X);
_local2.Y = _local3.Y;
_local2.Z = (_local3.X * _local4.X) + (_local3.Z * _local5);
_local3.X = (_local2.X * Math.cos(_local7)) - (_local2.Y * Math.sin(_local7));
_local3.Y = (_local2.X * Math.sin(_local7)) + (_local2.Y * Math.cos(_local7));
_local3.Z = _local2.Z;
_local2.X = (_local3.X * _local5) + (_local3.Z * _local4.X);
_local2.Y = _local3.Y;
_local2.Z = ((-_local3.X) * _local4.X) + (_local3.Z * _local5);
if (_local5 != 0) {
_local3.X = _local2.X;
_local3.Y = ((_local2.Y * _local4.Z) / _local5) + ((_local2.Z * _local4.Y) / _local5);
_local3.Z = (((-_local2.Y) * _local4.Y) / _local5) + ((_local2.Z * _local4.Z) / _local5);
} else {
_local3 = _local2;
}
_local2.X = _local3.X + p1.X;
_local2.Y = _local3.Y + p1.Y;
_local2.Z = _local3.Z + p1.Z;
return(_local2);
}
function findPointOnSphere(thisPoint, thisCentre, thisRadius) {
var _local4 = duplicateObject(thisPoint);
var _local5 = thisRadius * thisRadius;
if (thisPoint.X == "?") {
var _local6 = (thisPoint.Z - thisCentre.Z) * (thisPoint.Z - thisCentre.Z);
var _local8 = (thisPoint.Y - thisCentre.Y) * (thisPoint.Y - thisCentre.Y);
var _local11 = Math.sqrt((_local5 - _local8) - _local6) + thisCentre.X;
_local4.X = _local11;
} else if (thisPoint.Y == "?") {
var _local6 = (thisPoint.Z - thisCentre.Z) * (thisPoint.Z - thisCentre.Z);
var _local7 = (thisPoint.X - thisCentre.X) * (thisPoint.X - thisCentre.X);
var _local10 = Math.sqrt((_local5 - _local7) - _local6) + thisCentre.Y;
_local4.Y = _local10;
} else {
var _local8 = (thisPoint.Y - thisCentre.Y) * (thisPoint.Y - thisCentre.Y);
var _local7 = (thisPoint.X - thisCentre.X) * (thisPoint.X - thisCentre.X);
var _local9 = Math.sqrt((_local5 - _local8) - _local7) + thisCentre.Z;
_local4.Z = _local9;
}
return(_local4);
}
function mapPointToScreen(thisPoint) {
var _local2 = duplicateObject(thisPoint);
deleteOffset(pScreenOffset, _local2);
return(_local2);
}
function mapPointToNewDimension(thisPoint, thisOrig, thisNew) {
var _local5;
var _local4;
for (var _local1 in thisNew) {
if (thisNew[_local1] == "?") {
_local4 = _local1;
} else {
_local5 = thisNew[_local1] / thisOrig[_local1];
}
}
var _local8 = new Object();
var _local3;
for (var _local1 in thisPoint) {
if (_local1 != _local4) {
_local3 = thisNew[_local1] / thisOrig[_local1];
} else {
_local3 = _local5;
}
_local8[_local1] = thisPoint[_local1] * _local3;
}
return(_local8);
}
function plotShape(thisPointList, thisFaceList, thisClip, thisColour, thisOpen, thisLineWidth, thisAlpha) {
var _local8;
var _local4;
var _local11;
var _local6;
var _local10;
var _local5;
var _local9 = thisColour;
if (thisLineWidth == undefined) {
thisLineWidth = 5;
}
if (thisAlpha == undefined) {
thisAlpha = 100;
}
var _local17 = new Object();
for (var _local20 in thisPointList) {
_local17[_local20] = mapPointToScreen(mapPointToPicturePlane(thisPointList[_local20], pFocalPoint));
}
for (var _local19 in thisFaceList) {
_local5 = new Array();
_local8 = thisFaceList[_local19];
for (_local11 in _local8) {
_local4 = thisPointList[_local8[_local11]];
_local10 = mapPointToPicturePlane(_local4, pFocalPoint);
_local5.push(_local10);
}
_local4 = mapPointToScreen(_local5[0]);
thisClip.moveTo(_local4.X, _local4.Y);
_local6 = 1;
while (_local6 < _local5.length) {
if (thisColour == "random") {
var _local2 = String(Math.round(Math.random() * 99));
var _local3 = _local2;
_local2 = String(Math.round(Math.random() * 99));
_local3 = _local3 + _local2;
_local2 = String(Math.round(Math.random() * 99));
_local3 = _local3 + _local2;
_local9 = Number("0x" + _local3);
}
thisClip.lineStyle(thisLineWidth, _local9, thisAlpha, true, "none", "round", "miter", 1);
_local4 = mapPointToScreen(_local5[_local6]);
thisClip.lineTo(_local4.X, _local4.Y);
_local6++;
}
if (!thisOpen) {
_local4 = mapPointToScreen(_local5[0]);
thisClip.lineTo(_local4.X, _local4.Y);
}
}
return(_local17);
}
function plotShape2(thisPointList, thisFaceList, thisClip, thisColour, thisOpen, thisLineWidth, thisAlpha) {
var _local8;
var _local4;
var _local11;
var _local6;
var _local10;
var _local5;
var _local9 = thisColour;
if (thisLineWidth == undefined) {
thisLineWidth = 5;
}
if (thisAlpha == undefined) {
thisAlpha = 100;
}
for (var _local18 in thisFaceList) {
_local5 = new Array();
_local8 = thisFaceList[_local18];
for (_local11 in _local8) {
_local4 = thisPointList[_local8[_local11]];
_local10 = mapPointToPicturePlane(_local4, pFocalPoint);
_local5.push(_local10);
}
_local4 = mapPointToScreen(_local5[0]);
thisClip.moveTo(_local4.X, _local4.Y);
_local6 = 1;
while (_local6 < _local5.length) {
if (thisColour == "random") {
var _local2 = String(Math.round(Math.random() * 99));
var _local3 = _local2;
_local2 = String(Math.round(Math.random() * 99));
_local3 = _local3 + _local2;
_local2 = String(Math.round(Math.random() * 99));
_local3 = _local3 + _local2;
_local9 = Number("0x" + _local3);
}
thisClip.lineStyle(thisLineWidth, _local9, thisAlpha, true, "none", "round", "miter", 1);
_local4 = mapPointToScreen(_local5[_local6]);
thisClip.lineTo(_local4.X, _local4.Y);
_local6++;
}
if (!thisOpen) {
_local4 = mapPointToScreen(_local5[0]);
thisClip.lineTo(_local4.X, _local4.Y);
}
}
}
function plotCurve(thisStartPoint, thisEndPoint, thisCurvePoint, thisClip, thisColour, thisLineWidth, thisAlpha) {
var _local7 = thisColour;
if (thisLineWidth == undefined) {
thisLineWidth = 5;
}
if (thisAlpha == undefined) {
thisAlpha = 100;
}
var _local2 = mapPointToPicturePlane(thisStartPoint, pFocalPoint);
var _local5 = mapPointToScreen(_local2);
thisClip.moveTo(_local5.X, _local5.Y);
_local2 = mapPointToPicturePlane(thisEndPoint, pFocalPoint);
var _local6 = mapPointToScreen(_local2);
_local2 = mapPointToPicturePlane(thisCurvePoint, pFocalPoint);
var _local8 = mapPointToScreen(_local2);
if (thisColour == "random") {
var _local3 = String(Math.round(Math.random() * 99));
var _local4 = _local3;
_local3 = String(Math.round(Math.random() * 99));
_local4 = _local4 + _local3;
_local3 = String(Math.round(Math.random() * 99));
_local4 = _local4 + _local3;
_local7 = Number("0x" + _local4);
}
thisClip.lineStyle(thisLineWidth, _local7, thisAlpha, true, "none", "round", "miter", 1);
thisClip.curveTo(_local8.X, _local8.Y, _local6.X, _local6.Y);
}
function rotateVectorList(thisList, thisAxis, thisDegrees) {
var _local5 = new Array();
if (thisDegrees == 0) {
_local5 = duplicateArray(thisList);
} else {
var _local3;
var _local2 = 0;
while (_local2 < thisList.length) {
_local3 = axisAngleRotation(thisList[_local2], thisAxis, thisDegrees);
_local5.push(_local3);
_local2++;
}
}
return(_local5);
}
function rotatePoints(thisPoints, thisAxis1, thisAxis2, thisDegrees) {
var _local2 = duplicateObject(thisPoints);
if (thisDegrees == 0) {
} else {
var _local8;
for (var _local7 in _local2) {
_local2[_local7] = axisAngleRotation2(duplicateObject(thisPoints[_local7]), thisDegrees, thisAxis1, thisAxis2);
}
}
return(_local2);
}
function mapPointToPicturePlane(thisPoint, thisFocalPoint) {
if (!pEnvironment) {
pEnvironment = new Object();
pEnvironment.pPicturePlane = new Object();
pEnvironment.pPicturePlane.pWidth = Stage.width;
pEnvironment.pPicturePlane.pHeight = Stage.height;
pEnvironment.pPicturePlane.pDepth = 0;
}
var _local2 = new Object();
_local2.Z = 0;
var _local7 = subtractVector(thisFocalPoint, thisPoint);
var _local3 = normaliseVector(_local7);
var _local6 = pEnvironment.pPicturePlane.pDepth - thisPoint.Z;
var _local5 = _local6 / _local3.Z;
_local2.X = thisPoint.X + (_local3.X * _local5);
_local2.Y = thisPoint.Y + (_local3.Y * _local5);
return(_local2);
}
function mapShadowPointToGround(thisPoint, thisLightPoint) {
var _local6 = _root.ddd.subtractVector(thisPoint, thisLightPoint);
var _local2 = _root.ddd.normaliseVector(_local6);
var _local5 = (thisPoint.Y / _local2.Y) * -1;
var _local3 = {X:0, Y:0, Z:0};
_local3.X = thisPoint.X + (_local2.X * _local5);
_local3.Z = thisPoint.Z + (_local2.Z * _local5);
return(_local3);
}
function mapPicturePlaneToPoint(thisX, thisY, thisYLevel) {
var _local3 = {X:thisX, Y:thisY, Z:0};
var _local2 = new Object();
_local2.Y = 0;
var _local4 = subtractVector(pFocalPoint, _local3);
var _local6 = thisYLevel - _local3.Y;
var _local5 = _local6 / _local4.Y;
_local2.X = _local3.X + (_local4.X * _local5);
_local2.Z = _local3.Z + (_local4.Z * _local5);
return(_local2);
}
function mapPicturePlaneToPointZ(thisX, thisY, thisZLevel) {
var _local3 = {X:thisX, Y:thisY, Z:_root.game.pEnvironment.pPicturePlane.pDepth};
_root.myTarget.text = (((((("Target X = " + thisX) + newline) + "Target Y = ") + thisY) + newline) + "Target Z = ") + _local3.Z;
var _local5 = subtractVector(pFocalPoint, _local3);
var _local7 = thisZLevel - _local3.Z;
var _local6 = _local7 / _local5.Z;
var _local4 = new Object();
_local4.X = _local3.X + (_local5.X * _local6);
_local4.Y = _local3.Y + (_local5.Y * _local6);
_local4.Z = _local3.Z + (_local5.Z * _local6);
return(_local4);
}
function applyVectorForce(thisStartVector, thisForceVector, thisApplicationPercentage) {
var _local3 = new Object();
var _local5;
var _local4;
for (var _local7 in thisStartVector) {
_local5 = ((thisStartVector[_local7] < 0) ? -1 : 1);
_local4 = ((thisForceVector[_local7] < 0) ? -1 : 1);
if (_local5 == _local4) {
if (thisStartVector[_local7] < thisForceVector[_local7]) {
_local3[_local7] = Math.min(thisForceVector[_local7], thisStartVector[_local7] + (thisForceVector[_local7] * thisApplicationPercentage));
} else {
_local3[_local7] = thisStartVector[_local7];
}
} else {
_local3[_local7] = thisStartVector[_local7] + thisForceVector[_local7];
}
}
return(_local3);
}
function registerEnvironment(thisEnvironment) {
pEnvironment = thisEnvironment;
}
function registerObject(thisObject) {
pObjectList.push(thisObject);
}
function drawObjects() {
for (var _local2 in pObjectList) {
if (pObjectList[_local2].pDraw) {
plotShape(pObjectList[_local2].pPoints, pObjectList[_local2].pFaces, pObjectList[_local2].pPicturePlane, pObjectList[_local2].pColour, pObjectList[_local2].pOpen, pObjectList[_local2].pLineWidth, pObjectList[_local2].pAlpha);
}
}
}
}
Symbol 126 MovieClip [__Packages.mx.remoting.DebugClasses] Frame 0
class mx.remoting.DebugClasses extends MovieClip
{
function DebugClasses () {
super();
}
}
Symbol 131 MovieClip [__Packages.mx.services.Log] Frame 0
class mx.services.Log
{
var level, name;
function Log (logLevel, name) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
this.name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
var _local1 = this;
var _local2 = level;
if (_local2 == undefined) {
_local2 = BRIEF;
}
if (_local2 <= _local1.level) {
if (_local2 == DEBUG) {
_local1.onLog((((_local1.getDateString() + " [DEBUG] ") + _local1.name) + ": ") + msg);
} else {
_local1.onLog((((_local1.getDateString() + " [INFO] ") + _local1.name) + ": ") + msg);
}
}
}
function logDebug(msg) {
logInfo(msg, DEBUG);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
function onLog(message) {
trace(message);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
}
Symbol 132 MovieClip [__Packages.mx.remoting.Connection] Frame 0
class mx.remoting.Connection extends NetConnection
{
var uri;
function Connection () {
super();
}
function getService(serviceName, client) {
var _local1 = new mx.remoting.NetServiceProxy(this, serviceName, client);
return(_local1);
}
function setCredentials(userId, password) {
addHeader("Credentials", false, {userid:userId, password:password});
}
function clone() {
var _local1 = new mx.remoting.Connection();
_local1.connect(uri);
return(_local1);
}
function getDebugId() {
return(null);
}
function getDebugConfig() {
return(null);
}
function setDebugId(id) {
}
function call() {
super.call.apply(super, arguments);
}
function close() {
super.close();
}
function connect(url) {
return(super.connect(url));
}
function addHeader(name, mustUnderstand, obj) {
super.addHeader(name, mustUnderstand, obj);
}
function trace(traceObj) {
}
function AppendToGatewayUrl(urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
}
function ReplaceGatewayUrl(newUrl) {
connect(newUrl);
}
function RequestPersistentHeader(info) {
var _local1 = info;
addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
}
static var version = "1.2.0.124";
}
Symbol 133 MovieClip [__Packages.mx.remoting.NetServices] Frame 0
class mx.remoting.NetServices extends Object
{
static var defaultGatewayUrl, logger, traceNetServices;
function NetServices () {
super();
}
static function setDefaultGatewayUrl(url) {
defaultGatewayUrl = url;
}
static function setGatewayUrl(url) {
gatewayUrl = url;
}
static function createGatewayConnection(url, infoLogger) {
var _local1 = url;
logger = infoLogger;
if (_local1 == undefined) {
_local1 = gatewayUrl;
if (_local1 == undefined) {
_local1 = defaultGatewayUrl;
}
}
if (_local1 == undefined) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is undefined");
logger.logInfo(("NetServices: createGatewayConnection - gateway url <" + _local1) + "> is undefined", mx.services.Log.DEBUG);
return(null);
}
var _local2 = new mx.remoting.Connection();
_local2.connect(_local1);
__sharedConnections[_local1] = _local2;
return(_local2);
}
static function getConnection(uri) {
return(__sharedConnections[uri]);
}
static function getHostUrl() {
var _local2 = _root;
if (!isHttpUrl(_local2._url)) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
return(_local2._url.substring(0, _local1));
}
static function isHttpUrl(url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
}
static function getHttpUrl(url) {
var _local1 = url;
if (!isHttpUrl(_local1)) {
_local1 = getHostUrl() + _local1;
}
return(_local1);
}
static function trace(who, severity, number, message) {
traceNetServices(who, severity, number, message);
}
static var version = "1.2.0.124";
static var gatewayUrl = _root.gatewayUrl;
static var __sharedConnections = new Array();
}
Symbol 134 MovieClip [__Packages.mx.data.DataRange] Frame 0
interface mx.data.DataRange{}
Symbol 135 MovieClip [__Packages.mx.data.PageableData] Frame 0
interface mx.data.PageableData{}
Symbol 136 MovieClip [__Packages.mx.data.PageableList] Frame 0
interface mx.data.PageableList{}
Symbol 137 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 138 MovieClip [__Packages.mx.remoting.NetServiceProxy] Frame 0
class mx.remoting.NetServiceProxy extends Object
{
var nc, client;
function NetServiceProxy (netC, servName, cli) {
var _local1 = this;
super();
if (netC != null) {
_local1.nc = netC;
_local1.serviceName = servName;
_local1.client = cli;
}
_local1._allowRes = true;
}
function _setParentService(service) {
nc = service.nc;
client = service.client;
}
function __resolve(methodName) {
var _local1 = this;
var _local2 = arguments;
if (_local1._allowRes) {
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
mx.remoting.NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, and no responder was given in call to " + methodName);
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
}
if (typeof(_local1.serviceName) == "function") {
_local1.serviceName = _local1.servicename;
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
}
return(null);
}
static function registerNetServiceProxy() {
Object.registerClass("NetServiceProxy", mx.remoting.NetServiceProxy);
return(true);
}
static var init = registerNetServiceProxy();
var _allowRes = false;
}
Symbol 139 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 140 MovieClip [__Packages.mx.remoting.RecordSet] Frame 0
class mx.remoting.RecordSet extends Object
{
var mTitles, _items, mRecordSetID, dispatchEvent, gateway_conn, mDataFetcher;
function RecordSet (columnNames) {
var _local1 = this;
super();
mx.events.EventDispatcher.initialize(_local1);
_local1._items = new Array();
_local1.uniqueID = 0;
if (_local1.mTitles != null) {
} else {
if (_local1.serverInfo == null) {
if (_local1.serverinfo != null) {
_local1.serverInfo = _local1.serverinfo;
}
}
if (_local1.serverInfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverInfo.version != 1) {
mx.remoting.NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverInfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverInfo.cursor == null) ? 0 : (_local1.serverInfo.cursor - 1)), _local1.serverInfo.initialData);
if (_local1.serverInfo.initialData.length != _local1.serverInfo.totalCount) {
_local1.mRecordSetID = _local1.serverInfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverInfo.serviceName == null) ? "RecordSet" : (_local1.serverInfo.serviceName));
_local1.mTotalCount = _local1.serverInfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
mx.remoting.NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverInfo = null;
}
}
}
function addItem(item) {
addItemAt(length, item);
}
function addItemAt(index, item) {
var _local1 = index;
var _local2 = this;
var _local3 = true;
if ((_local1 < _local2.__get__length()) && (_local1 >= 0)) {
_local2.items.splice(_local1, 0, item);
} else if (_local1 == _local2.__get__length()) {
_local2.items[_local1] = item;
} else {
_local3 = false;
mx.remoting.NetServices.trace("Cannot add an item outside the bounds of the RecordSet");
return;
}
if (_local3) {
item.__ID__ = _local2.uniqueID++;
}
_local2.updateViews("addItems", _local1, _local1);
}
function addEventListener(event, listener) {
}
function clear() {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
var _local2 = _local1.items.length;
_local1.items.splice(0);
_local1.uniqueID = 0;
_local1.updateViews("removeItems", 0, _local2);
}
}
function contains(itmToCheck) {
var _local2 = itmToCheck;
if (isObjectEmpty(_local2)) {
return(false);
}
var itemAtIndex;
var _local3;
var _local1 = 0;
while (_local1 < items.length) {
itemAtIndex = items[_local1];
_local3 = true;
for (var t in _local2) {
if (_local2[t] != itemAtIndex[t]) {
_local3 = false;
break;
}
}
if (_local3) {
return(true);
}
_local1++;
}
return(false);
}
function getColumnNames() {
return(mTitles);
}
function get columnNames() {
return(getColumnNames());
}
function getLocalLength() {
return(items.length);
}
function getLength() {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
}
function getIterator() {
var _local1 = new mx.remoting.RecordSetIterator(this);
return(_local1);
}
function get length() {
return(getLength());
}
function getItemAt(index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.__get__length())) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
}
function getItemID(index) {
return(items[index].__ID__);
}
function get items() {
return(_items);
}
function initialize(info) {
}
function filter(filterFunction, context) {
if (checkLocal()) {
} else {
var _local3 = new mx.remoting.RecordSet(mTitles);
var rcount = length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
}
function sortItems(compareFunc, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc, optionFlags);
_local1.updateViews("sort");
}
}
function sortItemsBy(fieldNames, order, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
if (typeof(order) == "string") {
_local1.items.sortOn(fieldNames);
if (order.toUpperCase() == "DESC") {
_local1.items.reverse();
}
} else {
_local1.items.sortOn(fieldNames, optionFlags);
}
_local1.updateViews("sort");
}
}
function sort(compareFunc) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews("sort");
}
}
function isEmpty() {
return(items.length == 0);
}
function isLocal() {
return(mRecordSetID == null);
}
function isFullyPopulated() {
return(isLocal());
}
function getRemoteLength() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.mRecordsAvailable);
}
return(_local1.mTotalCount);
}
function getNumberAvailable() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.getLength());
}
return(_local1.mRecordsAvailable);
}
function replaceItemAt(index, item) {
var _local1 = index;
var _local2 = this;
if ((_local1 >= 0) && (_local1 <= _local2.__get__length())) {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = item;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function removeAll() {
clear();
}
function removeItemAt(index) {
var _local1 = index;
var _local2 = this;
var _local3 = _local2._items[_local1];
_local2._items.splice(_local1, 1);
var rItems = [_local2._items[_local1]];
var rIDs = [_local2.getItemID(_local1)];
_local2.dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local1, lastItem:_local1, removedItems:rItems, removedIDs:rIDs});
return(_local3);
}
function removeEventListener(event, listener) {
}
function requestRange(range) {
var _local1 = range.getStart();
var _local2 = range.getEnd();
return(internalRequestRange(_local1, _local2));
}
function setDeliveryMode(mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = numPrefetchPages;
_local1.mDeliveryMode = mode.toLowerCase();
_local1.stopFetchAll();
if ((_local2 == null) || (_local2 <= 0)) {
_local2 = 25;
}
switch (_local1.mDeliveryMode) {
case "ondemand" :
return;
case "page" :
if (_local3 == null) {
_local3 = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = _local3;
return;
case "fetchall" :
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
return;
default :
mx.remoting.NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
function editField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function getEditingData(index, fieldName) {
return(items[index][fieldName]);
}
function setField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function changeFieldValue(index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function isObjectEmpty(objToCheck) {
var _local2 = objToCheck;
var _local1 = true;
for (var _local3 in _local2) {
_local1 = false;
return(_local1);
}
return(_local1);
}
function arrayToObject(anArray) {
if (mTitles == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local3 = new Object();
var alen = anArray.length;
var _local2;
var _local1 = 0;
while (_local1 < alen) {
_local2 = mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
}
function checkLocal() {
if (isLocal()) {
return(false);
}
mx.remoting.NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(true);
}
function getRecordSetService() {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = mx.remoting.NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordSet();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = null;
}
}
return(_local1.mRecordSetService);
}
function internalRequestRange(index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.getRemoteLength()) {
lastIndex = _local2.getRemoteLength() - 1;
}
var _local3;
var last;
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
_local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
last = _local1 - 1;
if (_local3 <= last) {
_local2.logger.logInfo((((" Fetching records from index [" + _local3) + "] to index [") + last) + "]");
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews("fetchRows", _local3, last);
}
}
return(highestRequested);
}
function removeItems(index, len) {
var _local3 = index;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < len) {
_local2.push(getItemID(_local3 + _local1));
_local1++;
}
var oldItems = items.splice(_local3, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local3, lastItem:(_local3 + len) - 1, removedItems:oldItems, removedIDs:_local2});
}
function getRecords_Result(info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews("updateItems", _local2.Cursor - 1, ((_local2.Cursor - 1) + _local2.Page.length) - 1);
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews("allRows");
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
}
function release_Result() {
}
function requestOneRecord(index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
if (_local1.mDeliveryMode == "ondemand") {
_local1.logger.logInfo((" INFO: Fetching Record [" + _local2) + "]");
}
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews("fetchRows", _local2, _local2);
}
}
function requestRecord(index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.internalRequestRange(_local2, _local3);
}
}
function _setParentService(service) {
gateway_conn = service.nc;
}
function setData(start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local3;
var rec;
var _local2 = 0;
while (_local2 < datalen) {
_local3 = _local2 + start;
rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
mx.remoting.NetServices.trace("RecordSet", "warning", 106, "Already got record # " + _local3);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
}
function startFetchAll(pagesize) {
var _local1 = this;
if (_local1.mDataFetcher != null) {
_local1.mDataFetcher.disable();
}
_local1.mDataFetcher = new mx.remoting.RsDataFetcher(_local1, pagesize);
}
function stopFetchAll() {
mDataFetcher.disable();
mDataFetcher = null;
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static function registerRecordSet() {
Object.registerClass("RecordSet", mx.remoting.RecordSet);
return(true);
}
static var version = "1.2.0.124";
static var init = registerRecordSet();
}
Symbol 141 MovieClip [__Packages.mx.remoting.RecordSetIterator] Frame 0
class mx.remoting.RecordSetIterator
{
var _recordSet, _cursor;
function RecordSetIterator (rec) {
_recordSet = rec;
_cursor = 0;
}
function hasNext() {
return(_cursor < _recordSet.getLength());
}
function next() {
return(_recordSet.getItemAt(_cursor++));
}
static var version = "1.2.0.124";
}
Symbol 142 MovieClip [__Packages.mx.remoting.RsDataRange] Frame 0
class mx.remoting.RsDataRange extends Object
{
var _start, _end;
function RsDataRange (s, e) {
super();
_start = s;
_end = e;
}
function getStart() {
return(_start);
}
function getEnd() {
return(_end);
}
function setEnd(e) {
_end = e;
}
function setStart(s) {
_start = s;
}
}
Symbol 143 MovieClip [__Packages.mx.remoting.RsDataFetcher] Frame 0
class mx.remoting.RsDataFetcher extends Object
{
var mEnabled;
function RsDataFetcher (pgRS, increment) {
var _local1 = this;
super();
_local1.mRecordSet = pgRS;
_local1.mRecordSet.addEventListener("modelChanged", _local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
}
function disable() {
mEnabled = false;
}
function doNext() {
var _local1 = this;
if (_local1.mEnabled) {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.getRemoteLength()) {
return;
}
var _local2 = new mx.remoting.RsDataRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mHighestRequested = _local1.mRecordSet.requestRange(_local2);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
}
function modelChanged(eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
}
}
Symbol 144 MovieClip [__Packages.mx.remoting.NetServiceProxyResponder] Frame 0
class mx.remoting.NetServiceProxyResponder extends Object
{
var service, methodName;
function NetServiceProxyResponder (serv, method) {
super();
service = serv;
methodName = method;
}
function onResult(result) {
var _local2 = result;
var _local1 = service.client;
if ((_local2 instanceof mx.remoting.NetServiceProxy) || (_local2 instanceof mx.remoting.RecordSet)) {
_local2._setParentService(service);
}
var _local3 = methodName + "_Result";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + _local2);
}
}
function onStatus(result) {
var _local2 = result;
var _local1 = service.client;
var _local3 = methodName + "_Status";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onStatus) == "function") {
_local1.onStatus(_local2);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local2);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local2.level) + "> ") + _local2.description);
}
}
}
Symbol 145 MovieClip [__Packages.mx.remoting.debug.NetDebugConfig] Frame 0
class mx.remoting.debug.NetDebugConfig extends Object
{
function NetDebugConfig () {
super();
Object.registerClass("NetDebugConfig", mx.remoting.debug.NetDebugConfig);
}
static function getNetDebugVersion() {
return(1);
}
static function attachNetDebugConfigFunctions(ndc) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
return(null);
}
static function getDefaultNetDebugConfig(isController) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (isController) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.netDebugConfigSO.data.config);
}
static function getRealDefaultNetDebugConfig() {
var _local1 = new mx.remoting.debug.NetDebugConfig();
_local1.m_debug = true;
_local1.client = new mx.remoting.debug.NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new mx.remoting.debug.NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new mx.remoting.debug.NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
}
Symbol 146 MovieClip [__Packages.mx.utils.ObjectCopy] Frame 0
class mx.utils.ObjectCopy
{
function ObjectCopy () {
}
static function copy(refObj) {
var _local1 = new Function(refObj.__proto__.constructor)();
copyProperties(_local1, refObj);
return(_local1);
}
static function copyProperties(dstObj, srcObj) {
var _local2 = srcObj;
var to;
for (var i in _local2) {
to = typeof(_local2[i]);
if (to != "function") {
if (to == "object") {
if (_local2[i] instanceof Array) {
var p = new Array();
var _local3 = _local2[i];
var _local1 = 0;
while (_local1 < _local3.length) {
p[_local1] = _local3[_local1];
_local1++;
}
dstObj[i] = p;
} else if (_local2[i] instanceof String) {
dstObj[i] = new String(_local2[i]);
} else if (_local2[i] instanceof Number) {
dstObj[i] = new Number(_local2[i]);
} else if (_local2[i] instanceof Boolean) {
dstObj[i] = new Boolean(_local2[i]);
} else {
dstObj[i] = copy(_local2[i]);
}
} else {
dstObj[i] = _local2[i];
}
}
}
}
}
Symbol 147 MovieClip [__Packages.mx.remoting.debug.events.NetDebug] Frame 0
class mx.remoting.debug.events.NetDebug extends Object
{
var date, time;
function NetDebug () {
super();
init();
}
function init() {
var _local1 = this;
_local1.eventType = "DebugEvent";
_local1.source = "Client";
_local1.movieUrl = unescape(_root._url);
_local1.initDate();
}
function initDate() {
var _local1 = new Date();
date = _local1;
time = _local1.getTime();
}
}
Symbol 148 MovieClip [__Packages.mx.remoting.debug.events.NetDebugNetConnection] Frame 0
class mx.remoting.debug.events.NetDebugNetConnection extends mx.remoting.debug.events.NetDebug
{
function NetDebugNetConnection () {
super();
}
}
Symbol 149 MovieClip [__Packages.mx.remoting.debug.events.NetDebugConnect] Frame 0
class mx.remoting.debug.events.NetDebugConnect extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugConnect (args) {
var _local1 = args;
var _local2 = this;
super();
_local2.eventType = "Connect";
_local2.connectString = _local1[0];
if (_local1[1] != null) {
_local2.userName = _local1[1];
}
if (_local1[2] != null) {
_local2.password = _local1[2];
}
}
}
Symbol 150 MovieClip [__Packages.mx.remoting.debug.commands.Local] Frame 0
class mx.remoting.debug.commands.Local extends Object
{
var command, data;
function Local () {
super();
}
function init(commandname, dataobj) {
command = commandname;
data = dataobj;
}
}
Symbol 151 MovieClip [__Packages.mx.remoting.debug.commands.StartRTMPTrace] Frame 0
class mx.remoting.debug.commands.StartRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StartRTMPTrace (cs) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
init("startRealTimeTrace", _local1);
}
}
Symbol 152 MovieClip [__Packages.mx.remoting.debug.ConnectionMixin] Frame 0
class mx.remoting.debug.ConnectionMixin extends Object
{
var _protocol, _id, _config;
function ConnectionMixin () {
super();
}
static function initialize() {
var _local1 = mx.remoting.Connection.prototype;
var _local2 = mx.remoting.debug.ConnectionMixin.prototype;
if (!_local1.netDebugProxyFunctions) {
_local1.netDebugProxyFunctions = true;
_local1.realConnect = _local1.connect;
_local1.realCall = _local1.call;
_local1.realClose = _local1.close;
_local1.realAddHeader = _local1.addHeader;
_local1.connect = _local2.netDebugProxyConnect;
_local1.call = _local2.netDebugProxyCall;
_local1.close = _local2.netDebugProxyClose;
_local1.addHeader = _local2.netDebugProxyAddHeader;
_local1.attachDebug = _local2.attachDebug;
_local1.sendDebugEvent = _local2.sendDebugEvent;
_local1.sendServerEvent = _local2.sendServerEvent;
_local1.sendClientEvent = _local2.sendClientEvent;
_local1.addNetDebugHeader = _local2.addNetDebugHeader;
_local1.updateConfig = _local2.updateConfig;
_local1.getNetDebug = _local2.getNetDebug;
_local1.isRealTime = _local2.isRealTime;
_local1.setupRecordSet = _local2.setupRecordSet;
_local1.setDebugId = _local2.setDebugId;
_local1.getDebugId = _local2.getDebugId;
_local1.getDebugConfig = _local2.getDebugConfig;
_local1.trace = _local2.trace;
return(true);
}
return(false);
}
function attachDebug() {
var _local1 = this;
if (!_attached) {
_attached = true;
_local1._headerAdded = false;
_local1._configured = false;
_local1._config = new mx.remoting.debug.NetDebugConfig();
mx.utils.ObjectCopy.copyProperties(_local1._config, _local1.getNetDebug().getConfig());
_local1._protocol = "none";
_local1._id = String(_local1.getNetDebug().addNetConnection(_local1));
}
}
function sendDebugEvent(eventobj) {
var _local1 = this;
var _local2 = eventobj;
_local2.protocol = _local1._protocol;
_local2.debugId = _local1._id;
return(_local1.getNetDebug().onEvent(_local2));
}
function sendServerEvent(eventobj) {
eventobj.movieUrl = unescape(_root._url);
if (!sendDebugEvent(eventobj)) {
}
}
function sendClientEvent(eventobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
if ((_local1._config.client.http && (_local1._protocol == "http")) || (_local1._config.client.rtmp && (_local1._protocol.substr(0, 4) == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
}
function addNetDebugHeader() {
var _local1 = this;
if (!_local1._headerAdded) {
_local1._headerAdded = true;
if ((_local1._config.m_debug && (_local1._config.app_server.m_debug)) && (_local1._protocol == "http")) {
_local1.realAddHeader("amf_server_debug", true, _local1._config.app_server);
} else {
_local1.realAddHeader("amf_server_debug", true, undefined);
}
}
}
function updateConfig(config) {
var _local1 = this;
var _local2 = config;
_local1.attachDebug();
if ((_local2 == null) && (!_local1._configured)) {
_local1._configured = true;
_local2 = mx.remoting.debug.NetDebugConfig.getRealDefaultNetDebugConfig();
}
mx.utils.ObjectCopy.copyProperties(_local1._config, _local2);
_local1._headerAdded = false;
}
function isRealTime() {
return(_protocol.substr(0, 4) == "rtmp");
}
function setupRecordSet() {
var _local1 = this;
_local1.attachDebug();
_local1._config.client.http = _local1._config.client.recordset;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (_local2[0].charAt(4) == ":") {
_local1._protocol = _local3;
} else {
_local1._protocol = _local2[0].substr(0, 5);
}
} else {
_local1._protocol = "http";
}
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugConnect(_local2));
if (_local1.isRealTime()) {
_local1._connectString = _local2[0];
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StartRTMPTrace(_local2[0]));
var ret = _local1.realConnect.apply(_local1, _local2);
_local1.realCall("@getClientID", new mx.remoting.RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(Boolean(_local1.realConnect.apply(_local1, _local2)));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugCall(_local2));
_local1.addNetDebugHeader();
if (_local1._config.app_server) {
_local2[1] = new mx.remoting.debug.NetDebugResponseProxy(_local1, _local2[1]);
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugClose());
if (_local1.isRealTime()) {
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StopRTMPTrace(_local1._connectString, _local1._clientId));
}
var _local2 = _local1.realClose();
_local1.getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugAddHeader(arguments));
return(Boolean(_local1.realAddHeader.apply(_local1, arguments)));
}
function setDebugId(id) {
attachDebug();
_id = id;
}
function getDebugId() {
attachDebug();
return(_id);
}
function trace(traceobj) {
var _local1 = this;
_local1.attachDebug();
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj));
}
}
function getDebugConfig() {
attachDebug();
return(_config);
}
function getNetDebug() {
return(mx.remoting.debug.NetDebug.getNetDebug());
}
static var _attached = false;
}
Symbol 153 MovieClip [__Packages.mx.remoting.debug.events.NetDebugDuplicateNCDError] Frame 0
class mx.remoting.debug.events.NetDebugDuplicateNCDError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugDuplicateNCDError () {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.message = "NCD_ALREADY_RUNNING";
}
}
Symbol 154 MovieClip [__Packages.mx.remoting.debug.GlobalLocalConnection] Frame 0
class mx.remoting.debug.GlobalLocalConnection extends Object
{
var sendPrefix;
function GlobalLocalConnection (isController, receiver, domainName) {
var _local2 = this;
var _local3 = _global;
super();
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (isController) {
connectname = sToController;
_local2.sendNames = new Array();
_local2.sendNames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendNames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendNames = new Array();
_local2.sendNames.push(sToController);
}
_local2.setDomainName(domainName);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (isController) {
receiver.onReceiveError(new mx.remoting.debug.events.NetDebugDuplicateNCDError());
}
}
}
}
}
function setDomainName(domainName) {
var _local1 = domainName;
if ((_local1 != null) && (_local1 != "")) {
sendPrefix = _local1 + ":";
} else {
sendPrefix = "";
}
}
function send(dataobj) {
return(sendRaw("onData", dataobj));
}
function sendCommand(commandObj) {
return(sendRaw("onCommand", commandObj));
}
function sendRaw(functionName, obj) {
var _local3 = this;
var _local2 = true;
var snlen = _local3.sendNames.length;
var _local1 = 0;
while (_local1 < snlen) {
_local2 = Boolean(_local2 & _global.g_NetDebugLocalConnection.send(_local3.sendPrefix + _local3.sendNames[_local1], functionName, obj));
_local1++;
}
return(_local2);
}
}
Symbol 155 MovieClip [__Packages.mx.remoting.debug.commands.GetConfig] Frame 0
class mx.remoting.debug.commands.GetConfig extends mx.remoting.debug.commands.Local
{
var init;
function GetConfig () {
super();
}
function GetConfigCommand() {
super();
init("getConfig", null);
}
}
Symbol 156 MovieClip [__Packages.mx.remoting.debug.events.NetDebugFailedSendError] Frame 0
class mx.remoting.debug.events.NetDebugFailedSendError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugFailedSendError (ev) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.originalEvent = ev;
_local1.message = "NCD_FAILED_TO_SEND_EVENT";
}
}
Symbol 157 MovieClip [__Packages.mx.remoting.debug.events.NetDebugStatus] Frame 0
class mx.remoting.debug.events.NetDebugStatus extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, status;
function NetDebugStatus (statusobj) {
super();
eventType = "Status";
status = statusobj;
}
}
Symbol 158 MovieClip [__Packages.mx.remoting.debug.events.NetDebugError] Frame 0
class mx.remoting.debug.events.NetDebugError extends mx.remoting.debug.events.NetDebug
{
var eventType, error;
function NetDebugError (dataobj) {
super();
eventType = "NetDebugError";
error = dataobj;
}
}
Symbol 159 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTraceNetServices] Frame 0
class mx.remoting.debug.events.NetDebugTraceNetServices extends mx.remoting.debug.events.NetDebug
{
function NetDebugTraceNetServices (w, s, n, m) {
var _local1 = this;
super();
_local1.eventType = "NetServicesTrace";
_local1.trace = m;
_local1.who = w;
_local1.severity = s;
_local1.number = n;
}
}
Symbol 160 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTrace] Frame 0
class mx.remoting.debug.events.NetDebugTrace extends mx.remoting.debug.events.NetDebug
{
var eventType, trace;
function NetDebugTrace (traceobj) {
super();
eventType = "Trace";
trace = traceobj;
}
}
Symbol 161 MovieClip [__Packages.mx.remoting.debug.NetDebug] Frame 0
class mx.remoting.debug.NetDebug extends Object
{
static var ndSingleton;
var _ncs, _nextNewId, _glc, _config;
function NetDebug () {
var _local1 = this;
super();
_local1._ncs = new Array();
_local1._config = mx.remoting.debug.NetDebugConfig.getDefaultNetDebugConfig(false);
_local1._glc = new mx.remoting.debug.GlobalLocalConnection(false, _local1);
_local1._glc.sendCommand(new mx.remoting.debug.commands.GetConfig());
_local1._nextNewId = 0;
if (_global.System.onStatus == undefined) {
_global.System.onStatus = globalOnStatus;
}
mx.remoting.NetServices.traceNetServices = traceNetServices;
}
function addNetConnection(nc) {
_ncs.push(nc);
return(_nextNewId++);
}
function requestNewConfig() {
return(sendCommand(new mx.remoting.debug.commands.GetConfig()));
}
function removeNetConnection(nc) {
var _local2 = this;
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (nc == _local2._ncs[_local1]) {
_local2._ncs.splice(_local1, 1);
return;
}
_local1++;
}
}
function sendDebugEvent(eventobj) {
if (!_glc.send(eventobj)) {
_glc.send(new mx.remoting.debug.events.NetDebugFailedSendError(stripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
}
function sendCommand(commandobj) {
return(_glc.sendCommand(commandobj));
}
function updateConfig(config) {
var _local2 = this;
mx.utils.ObjectCopy.copyProperties(_local2._config, config);
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2._ncs[_local1] != null) {
_local2._ncs[_local1].updateConfig(config);
}
_local1++;
}
}
function sendStatus(statusobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
return(_local1._glc.send(new mx.remoting.debug.events.NetDebugStatus(statusobj)));
}
return(undefined);
}
function onEvent(eventObj) {
return(sendDebugEvent(eventObj));
}
function onEventError(errorObj) {
return(sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorObj)));
}
function onReceiveCommand(commandobj) {
this[commandobj.command](commandobj.data);
}
function onReceiveError(errorobj) {
sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorobj));
}
function getConfig() {
return(_config);
}
static function getNetDebug() {
return(ndSingleton);
}
static function trace(obj) {
getNetDebug()._trace(obj);
}
static function traceNetServices(who, severity, number, message) {
getNetDebug()._traceNetServices(who, severity, number, message);
}
static function globalOnStatus(statusobj) {
getNetDebug().sendStatus(statusobj);
}
static function initialize() {
if (ndSingleton == null) {
ndSingleton = new mx.remoting.debug.NetDebug();
mx.remoting.debug.ConnectionMixin.initialize();
}
return(true);
}
static function stripNCDEventToMinmal(ev) {
var _local1 = ev;
var _local2 = new Object();
if (_local1.eventType != null) {
_local2.eventType = _local1.eventType;
}
if (_local1.source != null) {
_local2.source = _local1.source;
}
if (_local1.movieUrl != null) {
_local2.movieUrl = _local1.movieUrl;
}
if (_local1.date != null) {
_local2.date = _local1.date;
}
if (_local1.time != null) {
_local2.time = _local1.time;
}
if (_local1.protocol != null) {
_local2.protocol = _local1.protocol;
}
if (_local1.debugId != null) {
_local2.debugId = _local1.debugId;
}
return(_local2);
}
function _traceNetServices(who, severity, number, message) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTraceNetServices(who, severity, number, message))) {
}
}
}
function _trace(traceobj) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj))) {
}
}
}
static var version = "1.2.0.124";
}
Symbol 162 MovieClip [__Packages.mx.remoting.debug.commands.AddRTMPClient] Frame 0
class mx.remoting.debug.commands.AddRTMPClient extends mx.remoting.debug.commands.Local
{
var init;
function AddRTMPClient (cs, cid) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("addRealTimeClient", _local1);
}
}
Symbol 163 MovieClip [__Packages.mx.remoting.RTMPClientIDResponse] Frame 0
class mx.remoting.RTMPClientIDResponse extends Object
{
var _connectString, _nc;
function RTMPClientIDResponse (cs, nc) {
super();
_connectString = cs;
_nc = nc;
}
function onResult(cid) {
_nc._clientId = cid;
mx.remoting.debug.NetDebug.getNetDebug().sendCommand(new mx.remoting.debug.commands.AddRTMPClient(_connectString, cid));
}
}
Symbol 164 MovieClip [__Packages.mx.remoting.debug.events.NetDebugCall] Frame 0
class mx.remoting.debug.events.NetDebugCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugCall (args) {
var _local2 = this;
var _local3 = args;
super();
_local2.eventType = "Call";
_local2.methodName = _local3[0];
_local2.parameters = new Array();
var alen = _local3.length;
var _local1 = 2;
while (_local1 < alen) {
_local2.parameters[_local1 - 2] = _local3[_local1];
_local1++;
}
}
}
Symbol 165 MovieClip [__Packages.mx.remoting.debug.events.NetDebugResult] Frame 0
class mx.remoting.debug.events.NetDebugResult extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, result;
function NetDebugResult (resultobj) {
super();
eventType = "Result";
result = resultobj;
}
}
Symbol 166 MovieClip [__Packages.mx.remoting.debug.events.NetDebugReceiveCall] Frame 0
class mx.remoting.debug.events.NetDebugReceiveCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugReceiveCall (mName, args) {
var _local1 = this;
super();
_local1.eventType = "ReceivedCall";
_local1.methodName = mName;
_local1.parameters = args;
}
}
Symbol 167 MovieClip [__Packages.mx.remoting.debug.NetDebugResponseProxy] Frame 0
class mx.remoting.debug.NetDebugResponseProxy extends Object
{
var _sourceNC, _originalNR;
function NetDebugResponseProxy (source, original) {
super();
_sourceNC = source;
_originalNR = original;
}
function onDebugEvents(debugevents) {
var _local3 = debugevents;
var _local2 = _local3.length;
var _local1 = 0;
while (_local1 < _local2) {
_sourceNC.sendServerEvent(_local3[_local1]);
_local1++;
}
}
function onResult(resultobj) {
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugResult(resultobj));
_originalNR.onResult(resultobj);
}
function onStatus(statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugStatus(_local2));
if (_local1._originalNR.onStatus != undefined) {
_local1._originalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
}
function __resolve(name) {
var _local1 = name;
trace("NetDebugResponseProxy.__resolve name: " + _local1);
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugReceiveCall(_local1, arguments));
_originalNR[_local1].apply(arguments);
return(null);
}
}
Symbol 168 MovieClip [__Packages.mx.remoting.debug.events.NetDebugClose] Frame 0
class mx.remoting.debug.events.NetDebugClose extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType;
function NetDebugClose () {
super();
eventType = "Close";
}
}
Symbol 169 MovieClip [__Packages.mx.remoting.debug.commands.StopRTMPTrace] Frame 0
class mx.remoting.debug.commands.StopRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StopRTMPTrace () {
super();
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("stopRealTimeTrace", _local1);
}
}
Symbol 170 MovieClip [__Packages.mx.remoting.debug.events.NetDebugAddHeader] Frame 0
class mx.remoting.debug.events.NetDebugAddHeader extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugAddHeader (args) {
var _local1 = this;
var _local2 = args;
super();
_local1.eventType = "AddHeader";
_local1.headerName = _local2[0];
_local1.mustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.headerObject = _local2[2];
}
}
}
Symbol 171 MovieClip [__Packages.mx.remoting.debug.events.NetDebugInfoError] Frame 0
class mx.remoting.debug.events.NetDebugInfoError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugInfoError (infoobj, mes) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.info = infoobj;
if (mes != null) {
_local1.message = mes;
}
}
}
Symbol 172 MovieClip [__Packages.mx.remoting.debug.events.NetDebugRtmpLog] Frame 0
class mx.remoting.debug.events.NetDebugRtmpLog extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugRtmpLog (infoobj) {
var _local1 = this;
super();
_local1.eventType = "Trace";
_local1.source = "Flash Communication Server";
_local1.info = infoobj;
_local1.trace = infoobj.description;
}
}
Symbol 173 MovieClip [__Packages.mx.remoting.debug.commands.UpdateNetDebugConfig] Frame 0
class mx.remoting.debug.commands.UpdateNetDebugConfig extends mx.remoting.debug.commands.Local
{
var init;
function UpdateNetDebugConfig () {
super();
}
function UpdateNetDebugCommand(dataobj) {
super();
init("updateConfig", dataobj);
}
}
Symbol 174 MovieClip [__Packages.mx.remoting.ApiClasses] Frame 0
class mx.remoting.ApiClasses extends MovieClip
{
function ApiClasses () {
super();
}
}
Symbol 176 MovieClip [__Packages.mx.remoting.DataGlue] Frame 0
class mx.remoting.DataGlue extends Object
{
var __dataProv, __labelStr, __dataStr, formatFunction;
function DataGlue (dp) {
super();
__dataProv = dp;
}
function get dataProvider() {
return(__dataProv);
}
function get labelString() {
return(__labelStr);
}
function set labelString(val) {
__labelStr = val;
//return(labelString);
}
function get dataString() {
return(__dataStr);
}
function set dataString(val) {
__dataStr = val;
//return(dataString);
}
static function bindFormatStrings(dataConsumer, dp, labelStr, dataStr) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.__set__labelString(labelStr);
_local1.__set__dataString(dataStr);
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatString;
dataConsumer.dataProvider = _local1;
}
static function bindFormatFunction(dataConsumer, dp, formatFunc) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.formatFunction = formatFunc;
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
}
function addEventListener(eventName, listener) {
dataProvider.addEventListener(eventName, listener);
}
function get length() {
return(getLength());
}
function getLength() {
return(dataProvider.length);
}
function format(formatString, item) {
var _local3 = formatString.split("#");
var result = "";
var tlen = _local3.length;
var _local2;
var _local1 = 0;
while (_local1 < tlen) {
result = result + _local3[_local1];
_local2 = _local3[_local1 + 1];
if (_local2 != undefined) {
result = result + item[_local2];
}
_local1 = _local1 + 2;
}
return(result);
}
function getItemAt_FormatString(index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.__get__labelString(), _local1), data:((_local2.__get__dataString() == null) ? (_local1) : (_local2.format(_local2.__get__dataString(), _local1)))});
}
function getItemAt_FormatFunction(index) {
var _local1 = dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(formatFunction(_local1));
}
function getItemID(index) {
return(dataProvider.getItemID(index));
}
function addItemAt(index, value) {
dataProvider.addItemAt(index, value);
}
function addItem(value) {
dataProvider.addItem(value);
}
function removeItemAt(index) {
dataProvider.removeItemAt(index);
}
function removeAll() {
dataProvider.removeAll();
}
function replaceItemAt(index, itemObj) {
dataProvider.replaceItemAt(index, itemObj);
}
function sortItemsBy(fieldNames, optionFlags) {
dataProvider.sortItemsBy(fieldNames, optionFlags);
}
function sortItems(compareFunc, optionFlags) {
dataProvider.sortItems(compareFunc, optionFlags);
}
static var version = "1.2.0.124";
}
Symbol 177 MovieClip [__Packages.mx.remoting.PendingCall] Frame 0
class mx.remoting.PendingCall extends Object
{
var __service, __methodName, __responder;
function PendingCall (srv, methodName) {
super();
__service = srv;
__methodName = methodName;
}
function get responder() {
return(__responder);
}
function set responder(res) {
__responder = res;
//return(responder);
}
function onResult(result) {
var _local1 = result;
var _local2 = this;
_local1.serviceName = ((typeof(_local1.serviceName) == "function") ? (_local1.servicename) : (_local1.serviceName));
if (_local1 != null) {
if (_local1 instanceof mx.remoting.NetServiceProxy) {
var serv = (new mx.remoting.Service(null, null, _local1.serviceName, _local2.__service.__get__connection(), _local2.__service.__get__responder()));
_local1 = serv;
} else if (_local1 instanceof mx.remoting.RecordSet) {
var _local3 = new mx.remoting.NetServiceProxy(_local2.__service.__get__connection());
_local1._setParentService(_local3);
_local1.logger = _local2.__service.log;
}
}
if (_local2.__responder != null) {
_local2.__responder.onResult(new mx.rpc.ResultEvent(_local1));
}
if (_local2.__service.log != null) {
_local2.__service.log.logInfo((((_local2.__service.__get__name() + ".") + _local2.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local1));
}
}
function onStatus(status) {
var _local1 = this;
var _local2 = status;
if (_local1.__responder != null) {
_local1.__responder.onFault(new mx.rpc.FaultEvent(new mx.rpc.Fault(_local2.code, _local2.description, _local2.details, _local2.type)));
}
if (_local1.__service.log != null) {
_local1.__service.log.logDebug("Service invocation failed.");
_local1.__service.log.logDebug((((_local1.__service.__get__name() + ".") + _local1.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local2));
}
}
function get methodName() {
return(__methodName);
}
static var inited = mx.remoting.NetServiceProxy.registerNetServiceProxy();
}
Symbol 178 MovieClip [__Packages.mx.rpc.ResultEvent] Frame 0
class mx.rpc.ResultEvent extends Object
{
var __result;
function ResultEvent (res) {
super();
__result = res;
}
function get result() {
return(__result);
}
}
Symbol 179 MovieClip [__Packages.mx.rpc.Fault] Frame 0
class mx.rpc.Fault extends Object
{
var __faultcode, __faultstring, __detail, __type;
function Fault (code, msg, detail, type) {
var _local1 = this;
super();
_local1.__faultcode = code;
_local1.__faultstring = msg;
_local1.__detail = detail;
_local1.__type = type;
}
function get faultcode() {
return(__faultcode);
}
function get faultstring() {
return(__faultstring);
}
function get detail() {
return(__detail);
}
function get description() {
var _local2 = this;
if (_local2.__description == null) {
if (_local2.__faultstring.indexOf(":") > -1) {
_local2.__description = _local2.__faultstring.substring(_local2.__faultstring.indexOf(":") + 1);
var _local1 = 0;
while (_local2.__description.indexOf(" ", _local1) == _local1) {
_local1++;
}
if (_local1 > 0) {
_local2.__description = _local2.__description.substring(_local1);
}
} else {
_local2.__description = _local2.__faultstring;
}
}
return(_local2.__description);
}
function get type() {
return(__type);
}
}
Symbol 180 MovieClip [__Packages.mx.rpc.FaultEvent] Frame 0
class mx.rpc.FaultEvent extends Object
{
var __fault;
function FaultEvent (f) {
super();
__fault = f;
}
function get fault() {
return(__fault);
}
}
Symbol 181 MovieClip [__Packages.mx.rpc.Responder] Frame 0
interface mx.rpc.Responder{}
Symbol 182 MovieClip [__Packages.mx.remoting.Service] Frame 0
class mx.remoting.Service extends Object
{
var __conn, __serviceName, __responder;
function Service (gatewayURI, logger, serviceName, conn, resp) {
var _local1 = this;
var _local2 = conn;
var _local3 = gatewayURI;
super();
_local1.log = logger;
_local1.log.logInfo("Creating Service for " + serviceName, mx.services.Log.VERBOSE);
if ((_local3 == "") && (_local2 == null)) {
_local3 = mx.remoting.NetServices.gatewayUrl;
}
_local3 = mx.remoting.NetServices.getHttpUrl(_local3);
if (_local2 == null) {
_local2 = mx.remoting.NetServices.getConnection(_local3);
if (_local2 == null) {
_local1.log.logInfo("Creating gateway connection for " + _local3, mx.services.Log.VERBOSE);
_local2 = mx.remoting.NetServices.createGatewayConnection(_local3, logger);
}
}
_local1.__conn = _local2;
_local2.updateConfig();
_local1._allowRes = true;
_local1.__serviceName = serviceName;
_local1.__responder = resp;
_local1.log.logInfo("Successfully created Service", mx.services.Log.VERBOSE);
}
function get connection() {
return(__conn);
}
function __resolve(methodName) {
var _local2 = this;
if (_local2._allowRes) {
var _local1 = _local2.__makeOpFunc(methodName);
_local2[methodName] = _local1;
return(_local1);
}
return(null);
}
function __makeOpFunc(name) {
var op = (new mx.remoting.Operation(name, this));
var _local1 = function () {
op.invoke(arguments);
return(op.send());
};
_local1.send = function () {
return(op.createThenSend());
};
_local1.setResponder = function (resp) {
op.responder = resp;
};
_local1.getRequest = function () {
return(op.request);
};
_local1.setRequest = function (val) {
op.request = val;
};
_local1.addProperty("request", _local1.getRequest, _local1.setRequest);
_local1.operation = op;
return(_local1);
}
function get name() {
return(__serviceName);
}
function get responder() {
return(__responder);
}
static var version = "1.2.0.124";
var _allowRes = false;
}
Symbol 183 MovieClip [__Packages.mx.remoting.Operation] Frame 0
class mx.remoting.Operation
{
var __arguments, __responder, __request, __methodName;
function Operation (methodName, parent) {
var _local1 = this;
_local1.__service = parent;
_local1.__responder = parent.responder;
_local1.__methodName = methodName;
_local1.__invokationName = (_local1.__service.__get__name() + ".") + methodName;
_local1.__request = new Object();
_local1.__arguments = new Array();
}
function createThenSend(Void) {
createArguments();
return(send());
}
function send(Void) {
var _local1 = this;
_local1.__service.log.logInfo((("Invoking " + _local1.__methodName) + " on ") + _local1.__service.__get__name());
var _local3 = new mx.remoting.PendingCall(_local1.__service, _local1.__methodName);
_local3.__set__responder(_local1.__responder);
var _local2 = null;
if (_local1.__arguments == null) {
_local2 = new Array();
} else {
_local2 = _local1.__arguments.concat();
}
_local1.__invokationName = (_local1.__service.__get__name() + ".") + _local1.__methodName;
_local2.unshift(_local1.__invokationName, _local3);
_local1.__service.connection.call.apply(_local1.__service.__get__connection(), _local2);
return(_local3);
}
function invoke(a) {
__arguments = a;
}
function get responder() {
return(__responder);
}
function set responder(r) {
__responder = r;
//return(responder);
}
function get request() {
return(__request);
}
function set request(r) {
__request = r;
//return(request);
}
function get name() {
return(__methodName);
}
function createArguments() {
var _local1 = this;
if (_local1.__request != null) {
_local1.__arguments = new Array();
for (var _local2 in _local1.__request) {
if (_local2 != "arguments") {
_local1.__arguments.unshift(_local1.__request[_local2]);
}
}
}
}
}
Symbol 184 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = indent;
var _local2 = maxLineLength;
var _local3 = new mx.data.binding.ObjectDumper();
if (_local2 == undefined) {
_local2 = 100;
}
if (_local1 == undefined) {
_local1 = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, _local2, _local1));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = obj;
var x = 0;
while (x < inProgress.length) {
if (inProgress[x] == _local1) {
return("***");
}
x++;
}
inProgress.push(_local1);
indent++;
var t = typeof(_local1);
var result;
if ((_local1 instanceof XMLNode) && (showXMLstructures != true)) {
result = _local1.toString();
} else if (_local1 instanceof Date) {
result = _local1.toString();
} else if (t == "object") {
var _local3 = new Array();
if (_local1 instanceof Array) {
result = "[";
var i = 0;
while (i < _local1.length) {
_local3.push(i);
i++;
}
} else {
result = "{";
for (var i in _local1) {
_local3.push(i);
}
_local3.sort();
}
var sep = "";
var _local2 = 0;
while (_local2 < _local3.length) {
var val = _local1[_local3[_local2]];
var show = true;
if (typeof(val) == "function") {
show = showFunctions == true;
}
if (typeof(val) == "undefined") {
show = showUndefined == true;
}
if (show) {
result = result + sep;
if (!(_local1 instanceof Array)) {
result = result + (_local3[_local2] + ": ");
}
result = result + realToString(val, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
sep = ", `";
}
_local2++;
}
if (_local1 instanceof Array) {
result = result + "]";
} else {
result = result + "}";
}
} else if (t == "function") {
result = "function";
} else if (t == "string") {
result = ("\"" + _local1) + "\"";
} else {
result = String(_local1);
}
if (result == "undefined") {
result = "-";
}
inProgress.pop();
return(replaceAll(result, "`", ((result.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var result = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
result = result + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(result);
}
function doIndent(indent) {
var _local3 = indent;
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 185 MovieClip [__Packages.mx.rpc.RelayResponder] Frame 0
class mx.rpc.RelayResponder extends Object
{
var __onFault, __obj, __onResult;
function RelayResponder (resp, resultFunc, faultFunc) {
var _local1 = this;
super();
_local1.__obj = resp;
_local1.__onFault = faultFunc;
_local1.__onResult = resultFunc;
}
function onFault(fault) {
__obj[__onFault](fault);
}
function onResult(result) {
__obj[__onResult](result);
}
}
Symbol 186 MovieClip [__Packages.mx.rpc.DefaultResponder] Frame 0
class mx.rpc.DefaultResponder
{
var __target;
function DefaultResponder (t) {
target = (t);
}
function get target() {
return(__target);
}
function set target(t) {
__target = t;
//return(target);
}
function onResult(event) {
trace("RPC Result: " + event.__get__result());
}
function onFault(event) {
trace("RPC Fault: " + event.fault.faultstring);
}
}
Symbol 187 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 188 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 189 MovieClip [__Packages.mx.controls.NumericStepper] Frame 0
class mx.controls.NumericStepper extends mx.core.UIComponent
{
var boundingBox_mc, _visible, tabEnabled, tabChildren, nextButton_mc, __width, prevButton_mc, __height, inputField, StepTrack_mc, focusTextField, createObject, enabled, __set__visible, setSize, createClassObject, __maxChars, dispatchEvent;
function NumericStepper () {
super();
}
function init() {
super.init();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
_visible = false;
tabEnabled = false;
tabChildren = true;
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
if (initializing) {
__visible = x;
}
}
function layoutControl() {
nextButton_mc._x = __width - nextButton_mc.__width;
nextButton_mc._y = 0;
prevButton_mc._x = __width - prevButton_mc.__width;
prevButton_mc._y = __height - prevButton_mc.__height;
inputField.setSize(__width - nextButton_mc.__width, __height);
StepTrack_mc._width = Math.max(nextButton_mc.__width, prevButton_mc.__width);
StepTrack_mc._x = __width - StepTrack_mc._width;
StepTrack_mc._height = __height - (nextButton_mc._height + prevButton_mc._height);
StepTrack_mc._y = nextButton_mc.__height;
}
function createChildren() {
super.createChildren();
addAsset("nextButton_mc", skinIDUpArrow);
addAsset("prevButton_mc", skinIDDownArrow);
addAsset("inputField", skinIDInput);
focusTextField = inputField.label;
createObject("StepTrack", "StepTrack_mc", 2);
size();
}
function draw() {
prevButton_mc.enabled = enabled;
nextButton_mc.enabled = enabled;
inputField.enabled = enabled;
size();
initializing = false;
__set__visible(__visible);
}
function size() {
var _local2 = calcMinHeight();
var _local3 = calcMinWidth();
if (__height < _local2) {
setSize(__width, _local2);
}
if (__width < _local3) {
setSize(_local3, __height);
}
layoutControl();
}
function calcMinHeight() {
return(22);
}
function calcMinWidth() {
return(40);
}
function addAsset(id, skinID) {
var _local2 = new Object();
_local2.styleName = this;
if (skinID == 10) {
_local2.falseUpSkin = upArrowUp;
_local2.falseOverSkin = upArrowOver;
_local2.falseDownSkin = upArrowDown;
_local2.falseDisabledSkin = upArrowDisabled;
createClassObject(mx.controls.SimpleButton, id, skinID, _local2);
var _local5 = nextButton_mc;
_local5.tabEnabled = false;
_local5.styleName = this;
_local5._x = __width - _local5.__width;
_local5._y = 0;
_local5.owner = this;
_local5.autoRepeat = true;
_local5.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local5.buttonDownHandler = function () {
this.owner.buttonPress(this);
};
} else if (skinID == 11) {
_local2.falseUpSkin = downArrowUp;
_local2.falseOverSkin = downArrowOver;
_local2.falseDownSkin = downArrowDown;
_local2.falseDisabledSkin = downArrowDisabled;
createClassObject(mx.controls.SimpleButton, id, skinID, _local2);
var _local3 = prevButton_mc;
_local3.tabEnabled = false;
_local3.styleName = this;
_local3._x = __width - _local3.__width;
_local3._y = __height - _local3.__height;
_local3.owner = this;
_local3.autoRepeat = true;
_local3.clickHandler = function () {
Selection.setSelection(0, 0);
};
_local3.buttonDownHandler = function () {
this.owner.buttonPress(this);
};
} else if (skinID == 9) {
createClassObject(mx.controls.TextInput, id, skinID);
var _local4 = inputField;
_local4.styleName = this;
_local4.setSize(__width - nextButton_mc.__width, __height);
_local4.restrict = "0-9\\-\\.\\,";
_local4.maxChars = __maxChars;
_local4.text = value;
_local4.onSetFocus = function () {
this._parent.onSetFocus();
};
_local4.onKillFocus = function () {
this._parent.onKillFocus();
};
_local4.drawFocus = function (b) {
this._parent.drawFocus(b);
};
_local4.onKeyDown = function () {
this._parent.onFieldKeyDown();
};
}
}
function setFocus() {
Selection.setFocus(inputField);
}
function onKillFocus() {
mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = true;
super.onKillFocus();
Key.removeListener(inputField);
if (Number(inputField.text) != value) {
var _local3 = checkValidValue(Number(inputField.text));
inputField.text = _local3;
value = (_local3);
dispatchEvent({type:"change"});
}
}
function onSetFocus() {
super.onSetFocus();
Key.addListener(inputField);
mx.managers.SystemManager.form.focusManager.defaultPushButtonEnabled = false;
}
function onFieldKeyDown() {
var _local2 = value;
switch (Key.getCode()) {
case 40 :
var _local3 = value - stepSize;
value = (_local3);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 38 :
_local3 = stepSize + value;
value = (_local3);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 36 :
inputField.text = minimum;
value = (minimum);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 35 :
inputField.text = maximum;
value = (maximum);
if (_local2 != value) {
dispatchEvent({type:"change"});
}
break;
case 13 :
value = (Number(inputField.text));
if (_local2 == value) {
break;
}
dispatchEvent({type:"change"});
}
}
function get nextValue() {
if (checkRange(value + stepSize)) {
__nextValue = value + stepSize;
return(__nextValue);
}
}
function get previousValue() {
if (checkRange(__value - stepSize)) {
__previousValue = value - stepSize;
return(__previousValue);
}
}
function set maxChars(num) {
__maxChars = num;
inputField.maxChars = __maxChars;
//return(maxChars);
}
function get maxChars() {
return(__maxChars);
}
function get value() {
return(__value);
}
function set value(v) {
var _local2 = checkValidValue(v);
if (_local2 == __value) {
return;
}
inputField.text = (__value = _local2);
//return(value);
}
function get minimum() {
return(__minimum);
}
function set minimum(v) {
__minimum = v;
//return(minimum);
}
function get maximum() {
return(__maximum);
}
function set maximum(v) {
__maximum = v;
//return(maximum);
}
function get stepSize() {
return(__stepSize);
}
function set stepSize(v) {
__stepSize = v;
//return(stepSize);
}
function onFocus() {
}
function buttonPress(button) {
var _local2 = value;
if (button._name == "nextButton_mc") {
value = value + stepSize;
} else {
value = value - stepSize;
}
if (_local2 != value) {
dispatchEvent({type:"change"});
Selection.setSelection(0, 0);
}
}
function checkRange(v) {
return((v >= minimum) and (v <= maximum));
}
function checkValidValue(val) {
var _local7 = val / stepSize;
var _local9 = Math.floor(_local7);
var _local2 = stepSize;
var _local6 = minimum;
var _local5 = maximum;
if ((val > _local6) and (val < _local5)) {
if ((_local7 - _local9) == 0) {
return(val);
}
var _local8 = Math.floor(val / _local2);
var _local4 = _local8 * _local2;
if (((((val - _local4) >= (_local2 / 2)) && (_local5 >= (_local4 + _local2))) && (_local6 <= (_local4 - _local2))) || (((val + _local2) == _local5) && (((_local5 - _local4) - _local2) > 1E-14))) {
_local4 = _local4 + _local2;
}
return(_local4);
}
if (val >= _local5) {
return(_local5);
}
return(_local6);
}
function onLabelChanged(o) {
var _local2 = checkValidValue(Number(o.__get__text()));
o.__set__text(_local2);
value = (_local2);
}
function get tabIndex() {
return(inputField.tabIndex);
}
function set tabIndex(w) {
inputField.tabIndex = w;
//return(tabIndex);
}
static var symbolName = "NumericStepper";
static var symbolOwner = mx.controls.NumericStepper;
static var version = "2.0.2.126";
var className = "NumericStepper";
var upArrowUp = "StepUpArrowUp";
var upArrowDown = "StepUpArrowDown";
var upArrowOver = "StepUpArrowOver";
var upArrowDisabled = "StepUpArrowDisabled";
var downArrowUp = "StepDownArrowUp";
var downArrowDown = "StepDownArrowDown";
var downArrowOver = "StepDownArrowOver";
var downArrowDisabled = "StepDownArrowDisabled";
var skinIDUpArrow = 10;
var skinIDDownArrow = 11;
var skinIDInput = 9;
var initializing = true;
var __visible = true;
var __minimum = 0;
var __maximum = 10;
var __stepSize = 1;
var __value = 0;
var __nextValue = 0;
var __previousValue = 0;
var clipParameters = {minimum:1, maximum:1, stepSize:1, value:1, maxChars:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.NumericStepper.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
}
Symbol 239 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 240 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 241 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 242 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 243 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 244 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 245 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 246 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.126";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 247 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 248 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 249 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 250 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 251 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 252 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 253 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.126";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 254 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 255 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 256 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 257 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 258 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.126";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 271 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 271 MovieClip Frame 2
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
stop();
Symbol 279 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 279 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 1
_root.Branditz.activateElement("pirate", this);
stop();
Instance of Symbol 271 MovieClip in Symbol 281 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Instance of Symbol 272 MovieClip in Symbol 281 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.doMoreGames();
}
Instance of Symbol 279 MovieClip in Symbol 281 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 10
stop();
Symbol 290 MovieClip Frame 20
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 40
gotoAndStop (1);
Symbol 377 MovieClip Frame 1
this.done = false;
stop();
Symbol 377 MovieClip Frame 136
this.done = true;
stop();
Symbol 377 MovieClip Frame 240
this.done = true;
stop();
Symbol 377 MovieClip Frame 353
this.done = true;
stop();
Symbol 377 MovieClip Frame 457
this.done = true;
stop();
Symbol 377 MovieClip Frame 593
this.done = true;
stop();
Symbol 419 MovieClip Frame 1
gotoAndPlay ("begincrouch");
Symbol 419 MovieClip Frame 55
goalieaction = 1 + random(5);
if (goalieaction == 5) {
gotoAndPlay ("clapping");
} else {
gotoAndPlay ("crouch");
}
Symbol 419 MovieClip Frame 70
gotoAndPlay ("crouch");
Symbol 419 MovieClip Frame 81
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 93
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 110
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 125
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 149
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 206
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 217
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 236
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 251
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 263
gotoAndPlay(_currentframe - 1);
Symbol 419 MovieClip Frame 277
gotoAndPlay(_currentframe - 1);
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 20
gotoAndPlay ("roll");
Symbol 486 MovieClip Frame 1
function translateSlow() {
mySlow.text = _root.pTranslation.getTranslated(18);
}
translateSlow();
Symbol 487 MovieClip Frame 1
_root.game.pDisplay.registerSprite("slowtitle", this);
stop();
Symbol 490 MovieClip Frame 1
function translateSpin() {
mySpinTitle.text = _root.pTranslation.getTranslated(17);
}
_root.game.pDisplay.registerSprite("spintitle", this);
translateSpin();
Symbol 493 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 40
_root.game.pBall.doKick();
Symbol 543 MovieClip Frame 52
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 1
this.swapDepths(6000001);
_root.game.pDisplay.registerSprite("score", this);
function translateOverlay() {
myScoreTitle.text = _root.pTranslation.getTranslated(16);
}
translateOverlay();
Symbol 570 MovieClip Frame 1
function translatePoints() {
myAccuracyTitle.text = _root.pTranslation.getTranslated(20);
myPointsTitle.text = _root.pTranslation.getTranslated(21);
}
this.swapDepths(6000002);
_root.game.pDisplay.registerSprite("points", this);
translatePoints();
Symbol 575 MovieClip Frame 1
function translateAttempts() {
myAttemptsTitle.text = _root.pTranslation.getTranslated(19);
}
this.swapDepths(6000003);
_root.game.pDisplay.registerSprite("attempts", this);
translateAttempts();
Symbol 581 MovieClip Frame 1
this.swapDepths(6000006);
_root.game.pDisplay.registerSprite("logo", this);
Symbol 584 MovieClip [game] Frame 1
#initclip 116
Object.registerClass("game", game);
#endinitclip
Instance of Symbol 282 MovieClip "myGrey" in Symbol 584 MovieClip [game] Frame 1
onClipEvent (load) {
this.swapDepths(5000029);
}
Symbol 584 MovieClip [game] Frame 2
stop();
Instance of Symbol 379 MovieClip "myScoreBoard" in Symbol 584 MovieClip [game] Frame 2
onClipEvent (load) {
this.swapDepths(_root.game.pFaceGoal.getDepth() - 2);
}
Instance of Symbol 310 MovieClip "flashes" in Symbol 584 MovieClip [game] Frame 2
onClipEvent (load) {
this.swapDepths(4000001);
}
Instance of Symbol 419 MovieClip "myGoalie" in Symbol 584 MovieClip [game] Frame 2
onClipEvent (load) {
function goalieinit() {
goaliechoice = null;
reflex = null;
goaliedir == null;
goaliedecision = null;
_root.goalie._x = 300;
goalietargetX = null;
goaliechase == "???";
trickshot = 0;
_root.goalsaved = false;
}
}
onClipEvent (enterFrame) {
if (goaliechoice == null) {
if ((_global.ballstate == "grounded") || (_global.ballstate == "spinball")) {
if ((goalietargetX == null) || ((this._x > (goalietargetX - 5)) && (this._x < (goalietargetX + 5)))) {
goalietargetX = 260 + random(80);
}
if (this._x > goalietargetX) {
if (_root.gamelevel < 10) {
this._x = this._x + ((goalietargetX - this._x) * (_root.gamelevel / 100));
} else {
this._x = this._x + ((goalietargetX - this._x) * 0.1);
}
}
if (this._x < goalietargetX) {
if (_root.gamelevel < 10) {
this._x = this._x - ((this._x - goalietargetX) * (_root.gamelevel / 100));
} else {
this._x = this._x - ((this._x - goalietargetX) * 0.1);
}
}
}
if ((_global.ballstate == "airborne") && (goaliechoice == null)) {
if ((_root.gamelevel < 10) && (goaliedecision == null)) {
goaliedecision = Math.ceil(1 + random(_root.gamelevel * 10));
if (goaliedecision > 50) {
goaliedive = _root.divearea;
goaliechase = "bullseye";
} else {
goaliedive = 1 + random(7);
goaliechase = "random";
}
}
if ((_root.gamelevel >= 10) && (_root.gamelevel < 20)) {
goaliedecision = Math.ceil(1 + random(_root.gamelevel * 10));
if (goaliedecision <= 40) {
goaliedive = 1 + random(7);
goaliechase = "random";
} else if (goaliedecision > 40) {
goaliedive = _root.divearea;
goaliechase = "bullseye";
} else if (goaliedecision > 160) {
goaliedive = _root.kicktarget.advanceddivearea;
goaliechase = "statictarget";
}
}
if (_root.gamelevel >= 20) {
goaliedive = _root.kicktarget.advanceddivearea;
goaliechase = "statictarget";
}
_root.goaliechase = "goalie chases: " + goaliechase;
if (goaliedive <= 3) {
goalietargetX = 300 - random(120);
goaliedir = "left";
this._xscale = 100;
_root.goalieshadow._xscale = this._xscale;
} else if (goaliedive == 4) {
goalietargetX = 290 + random(20);
if (goalietargetX < 300) {
goaliedir = "left";
} else {
goaliedir = "right";
}
trickshot = 1 + random(20);
if (((trickshot == 20) && (_root.statictarget._x > 150)) && (_root.ball.initZspeed > 3)) {
goaliechoice = "scorpion";
}
} else if (goaliedive >= 5) {
goalietargetX = 300 + random(120);
goaliedir = "right";
this._xscale = -100;
_root.goalieshadow._xscale = this._xscale;
}
if (goaliechase == "bullseye") {
goalietargetX = _root.scorecircle._x;
} else if (goaliechase == "statictarget") {
goalietargetX = _root.statictarget._x;
if (goalietargetX > 440) {
goalietargetX == 440;
} else if (goalietargetX < 160) {
goalietargetX = 160;
}
}
_root.goaliedive = "Goalie chose: " + goaliedive;
}
ballspeed = Math.round(_root.ball.initZspeed);
if (ballspeed <= 2) {
divereflex = 60;
}
if (ballspeed == 3) {
divereflex = 65;
}
if (ballspeed == 4) {
divereflex = 75;
}
if (ballspeed == 5) {
divereflex = 80;
}
if (ballspeed == 6) {
divereflex = 85;
}
if (ballspeed >= 7) {
divereflex = 90;
}
if (goaliechoice != "scorpion") {
if (_root.ball._xscale <= divereflex) {
if (((goaliedive == 1) || (goaliedive == 7)) && (ballspeed <= 2)) {
goaliechoice = "kicklow";
}
if ((((goaliedive == 1) || (goaliedive == 7)) && (ballspeed > 2)) && (ballspeed <= 4)) {
goaliechoice = "divelow";
}
if (((goaliedive == 1) || (goaliedive == 7)) && (ballspeed > 4)) {
goaliechoice = "diveroll";
}
if (((goaliedive == 2) || (goaliedive == 6)) && (ballspeed < 2)) {
goaliechoice = "deflectmid";
}
if ((((goaliedive == 2) || (goaliedive == 6)) && (ballspeed >= 2)) && (ballspeed <= 4)) {
goaliechoice = "divemid";
}
if ((((goaliedive == 2) || (goaliedive == 6)) && (ballspeed > 4)) && (ballspeed <= 6)) {
goaliechoice = "divehigh";
}
if (((goaliedive == 2) || (goaliedive == 6)) && (ballspeed > 6)) {
goaliechoice = "flip";
}
if (goaliedive == 4) {
if (_root.statictarget._y < 160) {
goaliechoice = "diveup";
} else {
goaliechoice = "pickuplow";
}
}
if ((goaliedive == 3) || (goaliedive == 5)) {
goaliechoice = "divehigh";
}
if (((_root.ball._xscale < 72) && (_root.ball._y > 50)) && (_root.ball._y < 70)) {
goaliechoice = "hanging";
}
}
}
if ((_root.ball._xscale < 72) && (_root.ball._x < 130)) {
goaliedir = "right";
this._xscale = 100;
_root.goalieshadow._xscale = this._xscale;
goaliechoice = "lookside";
}
if ((_root.ball._xscale < 72) && (_root.ball._x > 470)) {
goaliedir = "left";
this._xscale = -100;
_root.goalieshadow._xscale = this._xscale;
goaliechoice = "lookside";
}
if (((_root.ball._xscale < 72) && (_root.ball._y <= 50)) && (ballspeed > 3)) {
goaliechoice = "lookup";
goalietargetX = _root.ball._x;
}
_root.goalie.gotoAndPlay([goaliechoice]);
}
if (_global.ballstate == "airborne") {
_root.ballspeed = this.ballspeed;
if (goaliechoice != "scorpion") {
if (goaliedir == "right") {
if (this._x < goalietargetX) {
this._x = this._x - ((this._x - goalietargetX) * 0.1);
}
} else if (goaliedir == "left") {
if (this._x > goalietargetX) {
this._x = this._x + ((goalietargetX - this._x) * 0.1);
}
}
if (goaliechoice == "scorpion") {
goalietargetX = _root.ball._x;
}
}
if (((_root.ball._xscale > 50) && (_root.ball._xscale <= 56)) && (_global.gamestate == "shooting")) {
if (CollisionDetection.checkForCollision(this, _root.ball, 120)) {
_root.attachMovie("goalieghost", "goalieghost", 1);
_root.goalieghost._x = _root.ball._x;
_root.goalieghost._y = _root.ball._y;
if (goaliechoice == "scorpion") {
_root.ball.ballmovement = "backward";
} else {
goalhit = 1 + random(10);
if (goaliehit < 7) {
_root.ball.ballmovement = "neutral";
} else {
_root.ball.ballmovement = "backward";
}
}
_root.ball.spinLRmax = 0;
_root.goaliesave.start();
_root.gotoAndPlay("goalsaved");
}
}
if (goaliechoice == "hanging") {
if ((this._x < 190) || (this._x > 410)) {
this.gotoAndPlay("hangingoff");
}
}
}
}
Instance of Symbol 483 MovieClip "myBall" in Symbol 584 MovieClip [game] Frame 2
on (release) {
if ((_root.game.pStatus == "spin") && (!_root.game.pBall.pSpinTime)) {
_root.game.pBall.pSpinTime = true;
_root.game.myTextMarkerSpin.myGraphic.myHighLight.gotoAndPlay(2);
com.mosesSupposes.fuse.ZigoEngine.doTween(_root.game.myTextMarkerSpin.myGraphic.myCircle, "_brightness", 100, 0.5, Strong.easeInOut);
_root.game.pDisplay.hideSpinTitle();
_root.game.myTextMarkerSpin.myGraphic.myHighLight.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
_root.game.pBall.setSpin();
this.onEnterFrame = undefined;
this.gotoAndStop(1);
}
};
}
}
Instance of Symbol 495 MovieClip "myPower" in Symbol 584 MovieClip [game] Frame 2
onClipEvent (load) {
this.swapDepths(5000030);
}
Instance of Symbol 544 MovieClip "myPlayerGroupHide" in Symbol 584 MovieClip [game] Frame 2
onClipEvent (load) {
this.swapDepths(5000020);
}
Instance of Symbol 548 MovieClip "myMarkerAim" in Symbol 584 MovieClip [game] Frame 2
onClipEvent (load) {
this.swapDepths(8000000);
}
Instance of Symbol 555 MovieClip "myTextMarkerSpin" in Symbol 584 MovieClip [game] Frame 2
onClipEvent (load) {
_root.spinW = this._width;
_root.spinH = this._height;
}
Symbol 584 MovieClip [game] Frame 12
Mouse.show();
stop();
Symbol 586 MovieClip Frame 1
stop();
Instance of Symbol 593 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
on (rollOver) {
this._alpha = 100;
this._parent.myPlay.textColor = 16724530 /* 0xFF3232 */;
}
on (rollOut) {
this._alpha = 0;
this._parent.myPlay.textColor = 16777215 /* 0xFFFFFF */;
}
on (release) {
_root.Stattooz.reportEvent("play");
_root.gotoAndPlay("game");
}
Instance of Symbol 596 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
on (rollOver) {
this._alpha = 100;
this._parent.myHow.textColor = 16724530 /* 0xFF3232 */;
}
on (rollOut) {
this._alpha = 0;
this._parent.myHow.textColor = 16777215 /* 0xFFFFFF */;
}
on (release) {
_root.gotoAndStop("howto");
}
Instance of Symbol 599 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
on (rollOver) {
this._alpha = 100;
this._parent.myCredits.textColor = 16724530 /* 0xFF3232 */;
}
on (rollOut) {
this._alpha = 0;
this._parent.myCredits.textColor = 16777215 /* 0xFFFFFF */;
}
on (release) {
_root.gotoAndStop("credits");
}
Symbol 608 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 608 MovieClip Frame 2
stop();
Symbol 610 MovieClip Frame 1
_root.Branditz.activateElement("moregames", this);
if (_root.Branditz.pBuy) {
this.myButtonText.text = "BUY THIS GAME";
}
Instance of Symbol 608 MovieClip in Symbol 610 MovieClip Frame 1
on (rollOver) {
gotoAndStop (1);
}
on (release) {
if (!this.clicked) {
if (_root.Branditz.pBuy) {
_root.doMoreGames();
} else {
_root.doBuyGame();
}
this.clicked = true;
}
}
on (rollOut) {
gotoAndPlay (2);
}
Symbol 615 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 2
stop();
Symbol 619 MovieClip Frame 1
stop();
Symbol 619 MovieClip Frame 2
stop();
Symbol 619 MovieClip Frame 3
stop();
Symbol 620 MovieClip Frame 1
_root.pSound = "on";
_root.toggleSound = function () {
var _local2 = new Sound();
if (_root.pSound == "on") {
_local2.setVolume(0);
_root.pSound = "off";
} else {
_local2.setVolume(100);
_root.pSound = "on";
}
return(_root.pSound);
};
_root.pGraphics = "med";
_root.toggleGraphics = function () {
switch (_root.pGraphics) {
case "high" :
_root.pGraphics = "low";
_root._quality = "LOW";
break;
case "med" :
_root.pGraphics = "high";
_root._quality = "BEST";
break;
case "low" :
_root.pGraphics = "med";
_root._quality = "MEDIUM";
break;
}
return(_root.pGraphics);
};
Instance of Symbol 615 MovieClip in Symbol 620 MovieClip Frame 1
onClipEvent (load) {
var myFrame = _root.pSound;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (release) {
var myFrame = _root.toggleSound();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 619 MovieClip in Symbol 620 MovieClip Frame 1
onClipEvent (load) {
var myFrame = _root.pGraphics;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (release) {
var myFrame = _root.toggleGraphics();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Symbol 650 MovieClip Frame 1
function translateHowTo() {
myAimTitle.text = _root.pTranslation.getTranslated(6);
mySpinTitle.text = _root.pTranslation.getTranslated(9);
myHelp1.text = _root.pTranslation.getTranslated(7);
myHelp2.text = _root.pTranslation.getTranslated(8);
myHelp3.text = _root.pTranslation.getTranslated(10);
myHelp4.text = _root.pTranslation.getTranslated(11);
myBack.text = _root.pTranslation.getTranslated(12);
}
function cycleSpin() {
pSpin.pPercent = pSpin.pPercent + pSpin.pDir;
if (pSpin.pPercent >= 200) {
pSpin.pPercent = 200;
}
}
function cyclePower() {
pPower.pPercent = pPower.pPercent + pPower.pDir;
if (pPower.pPercent >= 100) {
pPower.pPercent = 100;
pPower.pDir = pPower.pDir * -1;
}
if (pPower.pPercent <= 1) {
pPower.pPercent = 1;
pPower.pDir = pPower.pDir * -1;
}
}
function swapStage() {
pPower.pPercent = 1;
pPower.pDir = Math.abs(pPower.pDir);
pSpin.pPercent = -200;
pSpin.pDir = Math.abs(pPower.pDir);
if (this.myStage == 1) {
this.myCover1._alpha = 70;
this.myCover2._alpha = 0;
this.myMarkerAnim.stop();
this.mySpinAnim.play();
this.mySpinAnim.mySpin.myGraphic.myCircle.play();
this.myStage = 2;
} else {
this.myCover1._alpha = 0;
this.myCover2._alpha = 70;
this.mySpinAnim.stop();
this.mySpinAnim.mySpin.myGraphic.myCircle.stop();
this.myMarkerAnim.play();
this.myStage = 1;
}
}
translateHowTo();
this.pPower = new Object();
pPower.pState = "none";
pPower.pPercent = 0;
pPower.pDir = 6;
this.pSpin = new Object();
pSpin.pPercent = 0;
pSpin.pDir = 0.5;
this.mySpinAnim.stop();
this.mySpinAnim.mySpin.myGraphic.myCircle.stop();
this.onEnterFrame = function () {
switch (myStage) {
case 1 :
cyclePower();
this.myPower.myRed.gotoAndStop(Math.ceil(pPower.pPercent));
this.myPower.myIndicator._x = this.myPower.myRed._x + this.myPower.myRed._width;
break;
case 2 :
cycleSpin();
if (this.pSpin.pPercent > 30) {
this.mySpin.myGreen.gotoAndStop(Math.ceil(pSpin.pPercent));
} else {
this.mySpin.myGreen.gotoAndStop(30);
}
this.mySpin.myIndicator._x = this.mySpin.myGreen._x + this.mySpin.myGreen._width;
}
};
this.myStage = 1;
this.myInterval = setInterval(this, "swapStage", 10000);
Instance of Symbol 626 MovieClip in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 0;
this._parent.myBack.textColor = 16777215 /* 0xFFFFFF */;
}
on (release) {
_root.gotoAndStop("title");
clearInterval(this._parent.myInterval);
}
Symbol 659 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 659 MovieClip Frame 2
stop();
Symbol 669 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 669 MovieClip Frame 2
stop();
Symbol 670 MovieClip Frame 1
_root.Stattooz.reportEvent("creditsview");
_root.Branditz.activateElement("credits", this);
myCanvas._width = Stage.width;
myCanvas._height = Stage.height;
myDeveloperName.text = _root.Stattooz.pDeveloper;
myDeveloperButton.onRelease = function () {
var _local2 = "http://www.fizzy.com/developers/profile/" + _root.Stattooz.pDeveloperMachineName;
_root.getURL(_local2, "_blank");
_root.Stattooz.reportEvent("creditsthrough");
};
Instance of Symbol 659 MovieClip "myBackButton" in Symbol 670 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Instance of Symbol 669 MovieClip in Symbol 670 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Symbol 671 MovieClip Frame 1
function translateCredits() {
myBack.text = _root.pTranslation.getTranslated(12);
}
translateCredits();
Symbol 687 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 687 MovieClip Frame 2
stop();
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 694 MovieClip Frame 2
stop();
Symbol 697 MovieClip Frame 1
stop();
Instance of Symbol 694 MovieClip in Symbol 697 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Instance of Symbol 694 MovieClip in Symbol 697 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Instance of Symbol 694 MovieClip in Symbol 701 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Instance of Symbol 694 MovieClip in Symbol 701 MovieClip Frame 1
on (release) {
getURL ((("https://www.fizzy.com/buy/start/" + _root.Stattooz.pGameName) + "?a_aid=") + _root.Affiliateid);
}
Symbol 703 MovieClip Frame 1
stop();
Instance of Symbol 694 MovieClip in Symbol 703 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Symbol 704 MovieClip Frame 1
_root.Branditz.activateElement("gameover", this);
if (_root.score >= _root.Stattooz.pThreshold) {
_root.Stattooz.reportEvent("endpass");
} else {
_root.Stattooz.reportEvent("endfail");
}
switch (Number(_root.Stattooz.pGameType)) {
case 1 :
this.gotoAndStop("promo");
break;
case 2 :
this.gotoAndStop("ftp");
break;
case 4 :
this.gotoAndStop("demo");
}
stop();
Instance of Symbol 687 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (load) {
if (_root.AffiliateProgram != "fizzy") {
this._visible = false;
}
}
on (release) {
_root.doAffiliates();
}
Instance of Symbol 688 MovieClip in Symbol 704 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.doMoreGames();
}
Symbol 704 MovieClip Frame 10
stop();
Symbol 704 MovieClip Frame 20
stop();
Symbol 718 MovieClip Frame 1
_root.score = _root.myResults.pScore;
gotoAndStop ("endpass");
Symbol 718 MovieClip Frame 10
stop();
for (var i in _root.myResults) {
trace((i + " = ") + _root.myResults[i]);
}
myScoreResult.text = _root.myResults.pScore;
myAttemptsResult.text = (_root.myResults.pGoals + "/") + _root.myResults.pShots;
myAccuracyResult.text = Math.round((_root.myResults.pGoals / _root.myResults.pShots) * 100) + "%";
myHotSpotsResult.text = _root.myResults.pHotSpots;
myTargetResult.text = ((_root.myResults.pGoals == 0) ? "0%" : (Math.round((_root.myResults.pHotSpotPoints / (_root.myResults.pGoals * 100)) * 100) + "%"));
myRoundResult.text = _root.myResults.pRound;