Frame 7
bytesTotal = this.getBytesTotal();
bytesLoaded = this.getBytesLoaded();
if ((bytesLoaded >= bytesTotal) and (bytesTotal != 0)) {
gotoAndPlay ("XPREFS");
}
Frame 14
bytesTotal = this.getBytesTotal();
bytesLoaded = this.getBytesLoaded();
KBloaded = Math.ceil(bytesLoaded / 1000);
KBtotal = Math.ceil(bytesTotal / 1000);
frame = int(bytesLoaded / (bytesTotal / 100));
LB.gotoAndStop(frame);
LB.percent = frame + "%";
LB.KBloaded = KBloaded;
LB.KBtotal = KBtotal;
if (bytesLoaded >= bytesTotal) {
bytesTotal = 0;
bytesLoaded = 0;
LB.gotoAndStop(100);
LB.percent = "100%";
LB.KBloaded = KBtotal;
LB.KBtotal = KBtotal;
nextFrame();
play();
} else {
gotoAndPlay ("PRE");
}
Frame 21
prefsFile = "treb_gamePrefs.xml";
prefs = new XML();
prefs.load(prefsFile);
prefs.onLoad = function (success) {
trace((prefsFile + ">> PREFS LOADED:") + success);
prefs = prefs.firstChild;
play();
};
stop();
Frame 31
gotoAndPlay (32);
Frame 32
function getChildNodeByName(root, nodeName) {
var _local2 = root;
var _local3 = nodeName;
var _local1 = 0;
while (_local1 <= _local2.childNodes.length) {
childNode = _local2.childNodes[_local1];
if (childNode.nodeName == _local3) {
return(childNode);
}
_local1++;
}
return(undefined);
}
function getChildNodeByAttributeValue(root, attributeName, attributeValue) {
var _local2 = root;
var _local3 = attributeValue;
var _local1 = 0;
while (_local1 <= _local2.childNodes.length) {
childNode = _local2.childNodes[_local1];
if (childNode.Attributes[attributeName] == _local3) {
return(childNode);
}
_local1++;
}
return(undefined);
}
_global.style.setStyle("themeColor", "haloOrange");
if (!gameObj) {
_global.gameObj = new Object();
gameObj.iFace = new Object();
gameObj.iFace.lastPage = "";
gameObj.iFace.adjustDragOn = false;
gameObj.dStore = new Object();
gameObj.dStore.prefs = new Object();
gameObj.dStore.prefs.raw = prefs;
gameObj.dStore.prefs.adjustSettings = getChildNodeByName(getChildNodeByName(prefs, "defaultValues"), "adjustment");
gameObj.dStore.prefs.comboSettings = getChildNodeByName(prefs, "searchFields").childNodes;
gameObj.dStore.prefs.highSettings = getChildNodeByName(prefs, "highscores");
gameObj.dStore.prefs.highSettings.thisGameID = gameObj.dStore.prefs.highSettings.attributes.thisGameID;
gameObj.dStore.prefs.highSettings.getAllScoresURL = gameObj.dStore.prefs.highSettings.attributes.getAllScoresURL;
gameObj.dStore.prefs.highSettings.getTop10ScoresURL = gameObj.dStore.prefs.highSettings.attributes.getTop10ScoresURL;
gameObj.dStore.prefs.highSettings.addScoreURL = gameObj.dStore.prefs.highSettings.attributes.addScoreURL;
gameObj.dStore.prefs.highSettings.getTop10Only = gameObj.dStore.prefs.highSettings.attributes.getTop10Only;
gameObj.dStore.prefs.highSettings.postJRVstyle = Boolean(gameObj.dStore.prefs.highSettings.attributes.postJRVstyle);
trace(" ** HS ** GameID:" + gameObj.dStore.prefs.highSettings.thisGameID);
trace("postJRVstyle:" + gameObj.dStore.prefs.highSettings.postJRVstyle);
gameObj.dStore.prefs.challengeSettings = getChildNodeByName(prefs, "sendToFriend");
gameObj.dStore.prefs.challengeSettings.sendMailURL = gameObj.dStore.prefs.challengeSettings.attributes.sendMailURL;
gameObj.dStore.prefs.challengeSettings.sendMailSUBJECT = gameObj.dStore.prefs.challengeSettings.attributes.sendMailSUBJECT;
gameObj.dStore.prefs.challengeSettings.sendMailBODY = gameObj.dStore.prefs.challengeSettings.firstChild.nodeValue;
gameObj.dStore.prefs.challengeSettings.postJRVstyle = Boolean(gameObj.dStore.prefs.challengeSettings.attributes.postJRVstyle);
trace(" ** CHAL **");
trace("sendMailURL:" + gameObj.dStore.prefs.challengeSettings.sendMailURL);
trace("sendMailSUBJECT:" + gameObj.dStore.prefs.challengeSettings.sendMailSUBJECT);
trace("sendMailBODY:" + gameObj.dStore.prefs.challengeSettings.sendMailBODY);
trace("postJRVstyle:" + gameObj.dStore.prefs.challengeSettings.postJRVstyle);
gameObj.dStore.windSettings = new Object();
gameObj.dStore.windSettings.c = Number(gameObj.dStore.prefs.adjustSettings.attributes.wind_c);
gameObj.dStore.windSettings.p = Number(gameObj.dStore.prefs.adjustSettings.attributes.wind_p);
gameObj.dStore.windSettings.A = Number(gameObj.dStore.prefs.adjustSettings.attributes.wind_A);
trace("WIND: c:" + gameObj.dStore.windSettings.c);
trace("WIND: p:" + gameObj.dStore.windSettings.p);
trace("WIND: A:" + gameObj.dStore.windSettings.A);
gameObj.dStore.adjustSettings = new Object();
gameObj.dStore.adjustSettings.getDefault = function (attributeName) {
var attributeValue = eval ("gameObj.dStore.prefs.adjustSettings.attributes." + attributeName);
if (attributeValue == undefined) {
attributeValue = 25;
}
trace((("get:" + attributeName) + " = ") + attributeValue);
return(attributeValue);
};
gameObj.dStore.adjustSettings.pMass = gameObj.dStore.adjustSettings.getDefault("pMass");
gameObj.dStore.adjustSettings.cMass = gameObj.dStore.adjustSettings.getDefault("cMass");
gameObj.dStore.adjustSettings.cHeight = gameObj.dStore.adjustSettings.getDefault("cHeight");
gameObj.dStore.comboBox = new Object();
gameObj.dStore.comboBox.getList = function () {
trace("Getting Combo Data -----------");
var _local1 = gameObj.dStore.prefs.comboSettings;
return(_local1);
};
gameObj.dStore.elapsedStartTime = getTimer();
gameObj.iFace.timer = new Object();
gameObj.iFace.timer.clipRef = timer_mc;
gameObj.iFace.timer.resetTimer = function () {
trace("<> REseT TIMER <>");
gameObj.iFace.timer.clipRef.hours = 0;
gameObj.iFace.timer.clipRef.minutes = 0;
gameObj.iFace.timer.clipRef.seconds = 0;
gameObj.iFace.timer.clipRef.milli = 0;
gameObj.iFace.timer.buttonPressTime = 0;
gameObj.iFace.timer.pauseTime = 0;
gameObj.iFace.timer.unpauseTime = 0;
gameObj.iFace.timer.pauseLength = 0;
gameObj.iFace.timer.timing = false;
};
gameObj.iFace.timer.clearTimer = function () {
trace("<> CLeAR TIMER <>");
gameObj.iFace.timer.clipRef.hours = "00";
gameObj.iFace.timer.clipRef.minutes = "00";
gameObj.iFace.timer.clipRef.seconds = "00";
gameObj.iFace.timer.clipRef.milli = "00";
gameObj.iFace.timer.buttonPressTime = (getTimer() / 1000) - pauseLength;
gameObj.iFace.timer.pauseTime = getTimer() / 1000;
gameObj.iFace.timer.timing = false;
};
gameObj.iFace.timer.pauseTimer = function () {
if (gameObj.iFace.timer.timing == true) {
trace("<> PAuSE TIMER <>");
gameObj.iFace.timer.pauseTime = getTimer() / 1000;
gameObj.iFace.timer.timing = false;
}
};
gameObj.iFace.timer.unpauseTimer = function () {
if (gameObj.iFace.timer.timing == false) {
trace("<> unPAuSE TIMER <>");
gameObj.iFace.timer.unpauseTime = getTimer() / 1000;
gameObj.iFace.timer.pauseLength = (gameObj.iFace.timer.unpauseTime - gameObj.iFace.timer.pauseTime) + gameObj.iFace.timer.pauseLength;
gameObj.iFace.timer.timing = true;
}
};
gameObj.iFace.timer.doTimerStuff = function () {
gameObj.iFace.timer.mytotalTime = (getTimer() / 1000) - gameObj.iFace.timer.pauseLength;
gameObj.iFace.timer.goTime = gameObj.iFace.timer.mytotalTime - gameObj.iFace.timer.buttonPressTime;
if (gameObj.iFace.timer.timing) {
gameObj.iFace.timer.hours = Math.floor(gameObj.iFace.timer.goTime / 3600);
gameObj.iFace.timer.minutes = Math.floor(((gameObj.iFace.timer.goTime / 3600) - gameObj.iFace.timer.hours) * 60);
gameObj.iFace.timer.seconds = Math.floor(((((gameObj.iFace.timer.goTime / 3600) - gameObj.iFace.timer.hours) * 60) - gameObj.iFace.timer.minutes) * 60);
gameObj.iFace.timer.milli = Math.floor((gameObj.iFace.timer.gotime - ((gameObj.iFace.timer.seconds + (gameObj.iFace.timer.minutes * 60)) + (gameObj.iFace.timer.hours * 3600))) * 100);
seconds.text = gameObj.iFace.timer.seconds;
minutes.text = gameObj.iFace.timer.minutes;
if (gameObj.iFace.timer.seconds < 10) {
seconds.text = "0" + gameObj.iFace.timer.seconds;
}
if (gameObj.iFace.timer.seconds == 0) {
seconds.text = "00";
}
if (gameObj.iFace.timer.minutes < 10) {
minutes.text = "0" + gameObj.iFace.timer.minutes;
}
if (gameObj.iFace.timer.minutes == 0) {
minutes.text = "00";
}
}
};
gameObj.dStore.dynClips = new Object();
gameObj.dStore.dynClips.clipList = new Array();
gameObj.dStore.dynClips.addClipRefArray = function (clipRef) {
gameObj.dStore.dynClips.clipList.join(clipRef);
trace((("added:" + clipRef.length) + " to clipList -- total:") + gameObj.dStore.dynClips.clipList.length);
};
gameObj.dStore.dynClips.addClipRef = function (clipRef) {
var _local2 = clipRef;
var _local1 = checkForItemInArray(_local2, gameObj.dStore.dynClips.clipList);
if (!_local1) {
gameObj.dStore.dynClips.clipList.push(_local2);
trace((("added:" + _local2) + " to clipList -- total:") + gameObj.dStore.dynClips.clipList.length);
}
};
gameObj.dStore.dynClips.removeClips = function (clipList) {
var _local2 = clipList;
for (clp in _local2) {
var _local1 = _local2[clp];
removeMovieClip(_local1);
}
trace(("removed:" + clp) + " clips");
};
gameObj.dStore.dynClips.removeAllClips = function () {
clipList = gameObj.dStore.dynClips.clipList;
for (clp in clipList) {
var _local1 = clipList[clp];
removeMovieClip(_local1);
}
trace(("removed:" + clp) + " clips");
};
gameObj.dStore.dynClips.setAllVisibleTo = function (vis) {
var clipList = gameObj.dStore.dynClips.clipList;
trace("clipList:" + clipList);
for (clp in clipList) {
var cref = clipList[clp];
eval (cref)._visible = vis;
}
trace(((vis + ":vis:") + clp) + " clips");
};
gameObj.iFace.setCombo = function () {
jrvlearn_cb.learn_cb.setStyle("fontSize", 9);
jrvlearn_cb.learn_cb.setStyle("color", 170);
if ((gameObj.iFace.comboListener == undefined) or (gameObj.iFace.comboListener == null)) {
gameObj.iFace.comboListener = new Object();
gameObj.iFace.comboListener.change = function (evt) {
trace(evt.type + " triggered");
var _local1 = gameObj.iFace.getComboSelect();
if ((_local1[0] != "") && (_local1[1] != "")) {
getURL ("http://" + _local1[0], _local1[1]);
}
};
jrvlearn_cb.learn_cb.addEventListener("change", gameObj.iFace.comboListener);
jrvlearn_cb.learn_cb.invalidate();
jrvlearn_cb.learn_cb.removeAllItems();
var comboData = gameObj.dStore.comboBox.getList();
var _local2 = 0;
while (_local2 < comboData.length) {
var _local1 = comboData[_local2].firstChild.nodeValue;
var _local3 = new Array();
_local3[0] = comboData[_local2].attributes.itemURL;
_local3[1] = comboData[_local2].attributes.itemTarget;
var nodeDat = _local3;
var thisOne = getChildNodeByName(_local1, "item");
if (((_local1 != "") and (_local1 != null)) and (_local1 != undefined)) {
jrvlearn_cb.learn_cb.addItem(_local1, nodeDat);
trace("nodeVal:" + _local1);
trace("nodeDat:" + nodeDat);
}
_local2++;
}
}
};
gameObj.iFace.getComboSelect = function () {
var _local1 = jrvlearn_cb.learn_cb.selectedItem.data;
trace("comboSelectedItem:" + _local1[0]);
return(_local1);
};
gameObj.iFace.backArray = new Array();
gameObj.iFace.backArraySet = function (backPage) {
var _local1 = gameObj.iFace.backArray.push(backPage);
trace((_local1 + " SET:current back array = ") + gameObj.iFace.backArray);
};
gameObj.iFace.backButtonClicked = function () {
trace("BACKBUTTONCLICKED");
};
gameObj.iFace.backArrayGet = function () {
backPage = gameObj.iFace.backArray.pop();
trace("PAGE I'm ON:" + backPage);
backPage = gameObj.iFace.backArray.pop();
if ((backPage == undefined) or (backPage == "")) {
backPage = "INTRO";
}
trace("BACK BUTTON CLICKED:" + backPage);
trace(" GET:current back array = " + gameObj.iFace.backArray);
return(backPage);
};
gameObj.iFace.setLastPage = function (pageLabel) {
gameObj.iFace.backArraySet(pageLabel);
trace("last page set:" + pageLabel);
};
gameObj.iFace.getBackPage = function () {
pageLabel = gameObj.iFace.backArrayGet();
trace("back page get:" + pageLabel);
return(pageLabel);
};
}
gameObj.resetGameVars = function () {
gameObj.clearTrajectory();
gameObj.iFace.backArray = new Array();
gameObj.iFace.comboListener = null;
gameObj.iFace.timer.resetTimer();
gameObj.dStore.scores.totalDmg = 0;
gameObj.dStore.scores.distanceScores = [];
gameObj.dStore.scores.accuracyScores = [];
gameObj.dStore.scores.powerScores = [];
projectileObj.projectiles = [];
adjustObj.saveLastAngle = undefined;
environmentObj.challenge = 0;
environmentObj.totalAttempts = 0;
environmentObj.depth = 0;
gameObj.dStore.adjustSettings.pMass = gameObj.dStore.adjustSettings.getDefault("pMass");
gameObj.dStore.adjustSettings.cMass = gameObj.dStore.adjustSettings.getDefault("cMass");
gameObj.dStore.adjustSettings.cHeight = gameObj.dStore.adjustSettings.getDefault("cHeight");
};
_global.checkForItemInArray = function (thisItem, thatArray) {
var _local2 = thatArray;
var _local3 = false;
for (it in _local2) {
var _local1 = _local2[it];
if (_local1 == thisItem) {
_local3 = true;
break;
}
}
return(_local3);
};
_global.randomMover = function (obj) {
var _local1 = obj;
tX = ((random(3) * 0.5) - 0.5) / 2;
tY = ((random(3) * 0.5) - 0.5) / 2;
_local1._xscale = _local1._xscale + _local1.scale;
_local1._yscale = _local1._yscale + _local1.scale;
if (_local1._xscale > 200) {
_local1.scale = _local1.scale * -1;
}
if (_local1._xscale < 50) {
_local1.scale = _local1.scale * -1;
}
if ((_local1.state == 0) or (_local1.state == null)) {
if (random(100) > 90) {
_local1.state = -1;
_local1.scale = 0;
if (random(100) > 70) {
_local1.scale = 0.5;
}
}
}
if (_local1.state == 1) {
_local1._alpha = _local1._alpha + 2;
if (_local1._alpha >= 70) {
_local1._alpha = 70;
_local1.state = 0;
}
}
if (_local1.state == -1) {
_local1._alpha = _local1._alpha - 2;
if (_local1._alpha <= 0) {
_local1._alpha = 0;
_local1.state = 1;
}
}
};
if (soundCon == undefined) {
_global.soundCon = new Object();
}
if (oRoot == undefined) {
oRoot = this;
}
soundCon.musicState = true;
sfxBonObj = new Sound(oRoot.createEmptyMovieClip("sfxBonObj_mc", 1000));
sfxMusObj = new Sound(oRoot.createEmptyMovieClip("sfxMusObj_mc", 1001));
soundCon.sfxPlay = function (channelRef, linkage, vol) {
var _local1 = channelRef;
if (soundCon.musicState) {
trace((((_local1 + " :playing: ") + linkage) + " :vol:") + vol);
_local1.stop();
_local1.setVolume(vol);
_local1.attachSound(linkage);
_local1.start();
}
};
soundCon.musicOff = function () {
soundCon.musicState = false;
stopAllSounds();
};
soundCon.musicON = function () {
musicObj.stop();
sfxBonObj.stop();
soundCon.musicState = true;
};
Instance of Symbol 349 MovieClip in Frame 32
onClipEvent (load) {
this.adjDisable_btn.useHandCursor = false;
}
Frame 39
gameObj.resetGameVars();
gameObj.dStore.dynClips.setAllVisibleTo(false);
gameObj.clearTrajectory();
popup_mc.gotoAndStop(1);
Frame 45
soundCon.sfxPlay(sfxMusObj, "fanfare6", 75);
gameObj.iFace.setLastPage("INTRO");
stop();
Frame 46
stopAllSounds();
gameObj.clearTrajectory();
adjpanel_mc._visible = false;
gameObj.iFace.timer.pauseTimer();
soundCon.sfxPlay(sfxMusObj, "drum_02", 100);
if ((gameObj.dStore.scores.bestDistance == 0) || (gameObj.dStore.scores.bestDistance == undefined)) {
gameObj.dStore.scores.bestDistance = 0;
}
gameObj.dStore.challengeName = "CHALLENGE 1 : THE DISTANCE CHALLENGE\nFINAL SCORE: " + (gameObj.dStore.scores.bestDistance - gameObj.dStore.scores.launchPenalty);
challName.gotoAndPlay(1);
stop();
Instance of Symbol 547 MovieClip "musictoggle_mc" in Frame 46
onClipEvent (load) {
if (soundCon.musicState == false) {
gotoAndStop ("musicOFF");
} else {
gotoAndStop ("musicON");
}
}
Frame 53
stop();
Frame 58
if (!gameObj) {
_global.gameObj = new Object();
gameObj.dStore = new Object();
gameObj.dStore.adjustSettings = new Object();
}
gameObj.dStore.scores = new Object();
gameObj.dStore.environment = new Object();
gameObj.dStore.projectile = new Object();
gameObj.dStore.challengeName = "CHALLENGE 1 of 3\nTHE DISTANCE CHALLENGE";
gameObj.dStore.endGameMessage = "";
gameObj.dStore.rootPath = this;
adjustObj = gameObj.dStore.adjustSettings;
environmentObj = gameObj.dStore.environment;
projectileObj = gameObj.dStore.projectile;
environmentObj.elapsedDelayTime = 0;
environmentObj.delayTime = 1;
gameObj.dStore.scores.penaltyPoints = 10;
gameObj.dStore.scores.attemptYpos = 111;
gameObj.dStore.scores.attemptxpos = 28;
gameObj.dStore.scores.attemptSpacer = 70;
projectileObj.cx = arm._x;
projectileObj.cy = arm._y;
projectileObj.armLength = arm._height;
environmentObj.challenge = 0;
environmentObj.totalAttempts = 0;
environmentObj.depth = 0;
environmentObj.startTraject = miniTreb_mc._y + (miniTreb_mc._height / 2);
environmentObj.bottomOfField = (miniTreb_mc._y + (miniTreb_mc._height / 2)) - 5;
environmentObj.penaltyZone = 650;
environmentObj.endOfTreb = 30;
environmentObj.totalAttemptsAllowed = 5;
environmentObj.wallMass = 100;
trace("environmentObj.startTraject:" + environmentObj.startTraject);
trace("environmentObj.bottomOfField :" + environmentObj.bottomOfField);
gameObj.dStore.scores.totalDmg = 0;
gameObj.dStore.scores.distanceScores = [];
gameObj.dStore.scores.accuracyScores = [];
gameObj.dStore.scores.powerScores = [];
projectileObj.projectiles = [];
gameObj.dStore.scores.bonusPointsPerSec = 10;
gameObj.dStore.scores.bounsThreshold = 120;
gameObj.endChallengeDelay = function (delayTime, frameToPlay) {
environmentObj.powerElapsedDelayTime = environmentObj.powerElapsedDelayTime + 1;
trace("waiting...");
if (environmentObj.powerElapsedDelayTime >= delayTime) {
trace("reset -- ");
gameObj.dStore.rootPath.gotoAndPlay(frameToPlay);
environmentObj.powerElapsedDelayTime = 0;
clearInterval(gameObj.challengeDelay);
}
};
gameObj.bonusScore = function () {
ameObj.dStore.scores.bonusTimeScore = 0;
if (gameObj.iFace.timer.mytotalTime <= gameObj.dStore.scores.bounsThreshold) {
gameObj.dStore.scores.bonusTime = int(gameObj.dStore.scores.bounsThreshold - gameObj.iFace.timer.mytotalTime);
gameObj.dStore.scores.bonusTimeScore = gameObj.dStore.scores.bonusTime * gameObj.dStore.scores.bonusPointsPerSec;
trace("----------- ------------");
trace("BONUS SCORE POINTS ");
trace("TIME UNDER 2 Sec " + gameObj.dStore.scores.bonusTime);
trace("TIME Score " + gameObj.dStore.scores.bonusTimeScore);
trace("----------- ------------");
gameObj.dStore.scores.totalScore = gameObj.dStore.scores.totalScore + gameObj.dStore.scores.bonusTimeScore;
gameObj.dStore.rootPath.score_txt.text = gameObj.dStore.scores.totalScore;
trace("TOTAL Score " + gameObj.dStore.scores.totalScore);
}
if (gameObj.dStore.scores.bonusTimeScore < 1) {
gameObj.dStore.scores.bonusTimeScore = 0;
}
return([gameObj.dStore.scores.bonusTimeScore, gameObj.dStore.scores.totalScore]);
};
gameObj.screenResetDelay = function () {
environmentObj.elapsedDelayTime = environmentObj.elapsedDelayTime + 1;
if (environmentObj.elapsedDelayTime >= environmentObj.delayTime) {
gameObj.resetTargetPos();
environmentObj.elapsedDelayTime = 0;
clearInterval(gameObj.resetDelay);
}
};
gameObj.calcPe = function () {
adjustObj.potEnergy = (adjustObj.cMass * adjustObj.gravity) * adjustObj.cHeight;
pe_txt.text = adjustObj.potEnergy;
};
gameObj.calcKe = function () {
adjustObj.kinEnergy = (adjustObj.pMass / 2) * Math.pow(adjustObj.vel, 2);
ke_txt.text = adjustObj.kinEnergy;
};
gameObj.calcRange = function () {
adjustObj.thRange = (2 * (adjustObj.cMass / adjustObj.pMass)) * adjustObj.cHeight;
thRange_txt.text = adjustObj.thRange;
adjustObj.range = (Math.pow(adjustObj.vel, 2) * Math.sin(2 * adjustObj.launchAngle)) / adjustObj.gravity;
range_mc._x = adjustObj.range;
range_txt.text = adjustObj.range;
range_mc.range_txt.text = range_mc._x;
};
gameObj.calcVel = function () {
adjustObj.vel = Math.sqrt(adjustObj.potEnergy / (0.5 * adjustObj.pMass));
velocity_txt.text = adjustObj.vel;
};
gameObj.calcMom = function () {
adjustObj.momentum = adjustObj.pMass * adjustObj.vel;
momentum_txt.text = adjustObj.momentum;
};
gameObj.callAllCalcs = function () {
trace(">> gameObj.callAllCalcs <<");
adjustObj.launchAngle = Number(gameObj.dStore.adjustSettings.launchAngle);
angle_txt.text = gameObj.dStore.adjustSettings.launchAngle;
adjustObj.pMass = Number(gameObj.dStore.adjustSettings.pMass);
m2_txt.text = gameObj.dStore.adjustSettings.pMass;
adjustObj.cMass = Number(gameObj.dStore.adjustSettings.cMass);
m1_txt.text = gameObj.dStore.adjustSettings.cMass;
adjustObj.cHeight = Number(gameObj.dStore.adjustSettings.cHeight);
cwHeight_txt.text = gameObj.dStore.adjustSettings.cHeight;
adjustObj.gravity = Number(gameObj.dStore.adjustSettings.gravity);
gravity_txt.textgameObj.dStore.adjustSettings.gravity;
adjustObj.wind = Number(gameObj.dStore.adjustSettings.windMag);
windMag_txt.text = gameObj.dStore.adjustSettings.windMag;
gameObj.calcPe();
gameObj.calcVel();
gameObj.calcKe();
gameObj.calcMom();
gameObj.calcWind();
gameObj.calcRange();
};
gameObj.calcWind = function () {
c = gameObj.dStore.windSettings.c;
p = gameObj.dStore.windSettings.p;
A = gameObj.dStore.windSettings.A;
Vh = adjustObj.vel;
Vw = adjustObj.wind;
m = adjustObj.pMass;
timeOfFlight = (2 * adjustObj.vel) / adjustObj.gravity;
Tdel = timeOfFlight / 24;
Vr = Vh + Vw;
adjustObj.Vdel = ((((p * c) * A) * Math.pow(Vr, 2)) * Tdel) / (2 * m);
trace("VEDEL" + adjustObj.Vdel);
};
gameObj.resetTargetPos = function () {
targetMCArray = [target1_mc, target2_mc, target3_mc];
randomPosition1 = gameObj.myRandom(0, targetMCArray.length - 1);
targetName1 = targetMCArray[randomPosition1];
targetMCArray.splice(randomPosition1, 1);
randomPosition2 = gameObj.myRandom(0, targetMCArray.length - 1);
targetName2 = targetMCArray[randomPosition2];
targetMCArray.splice(randomPosition2, 1);
randomPosition3 = gameObj.myRandom(0, targetMCArray.length - 1);
targetName3 = targetMCArray[randomPosition3];
targetMCArray.splice(randomPosition3, 1);
targetName1._x = gameObj.myRandom(150, 275);
targetName2._x = gameObj.myRandom(350, 420);
targetName3._x = gameObj.myRandom(500, 600);
};
gameObj.resetWallPos = function (min, max) {
wall._x = gameObj.myRandom(min, max);
};
gameObj.myRandom = function (minVal, maxVal) {
return(minVal + Math.floor(Math.random() * ((maxVal + 1) - minVal)));
};
gameObj.fireMe = function () {
var _local1 = this;
miniTreb_mc.play();
hitWall = false;
environmentObj.totalAttempts = environmentObj.totalAttempts + 1;
trace("BOOM : totalAttempts : " + environmentObj.totalAttempts);
if (gameObj.dStore.adjustSettings.launchAngle == undefined) {
gameObj.dStore.adjustSettings.launchAngle = 45;
trace("<> <> forcing angle to 45' <> <>");
}
if (adjustObj.saveLastAngle == undefined) {
adjustObj.launchAngle = gameObj.dStore.adjustSettings.launchAngle;
}
if ((adjustObj.saveLastAngle != undefined) && (adjustObj.launchAngle < 0)) {
adjustObj.launchAngle = adjustObj.saveLastAngle;
}
adjustObj.saveLastAngle = adjustObj.launchAngle;
adjustObj.launchAngle = adjustObj.launchAngle * -1;
adjustObj.launchAngle = (adjustObj.launchAngle * Math.PI) / 180;
projectileObj.cosAngle = Math.cos(adjustObj.launchAngle);
projectileObj.sinAngle = Math.sin(adjustObj.launchAngle);
projectileObj.armLengthx = projectileObj.armLength * projectileObj.cosAngle;
projectileObj.armLengthy = projectileObj.armLength * projectileObj.sinAngle;
projectileObj.x = projectileObj.cx + projectileObj.armLengthx;
projectileObj.y = projectileObj.cy + projectileObj.armLengthy;
trajectoryPath = "trajpath" + environmentObj.depth;
gameObj.dStore.rootPath.createEmptyMovieClip([trajectoryPath], 10000 + environmentObj.depth);
gameObj.dStore.rootPath[trajectoryPath].makeTrajectory(projectileObj.cx, projectileObj.cy);
gameObj.projName = "projectile" + environmentObj.depth;
gameObj.projClip = gameObj.dStore.rootPath.attachMovie("projectile", projectileObj.projName, environmentObj.depth);
projectileObj.projectiles.push(gameObj.projClip);
gameObj.projClip._x = projectileObj.x;
gameObj.projClip._y = projectileObj.y;
gameObj.projClip.xmov = adjustObj.vel * projectileObj.cosAngle;
gameObj.projClip.ymov = adjustObj.vel * projectileObj.sinAngle;
gameObj.projClip.onEnterFrame = function () {
var _local1 = this;
if (_local1._y < (environmentObj.bottomOfField + (_local1._height * 0.5))) {
var _local2 = adjustObj.pMass;
var mass2 = environmentObj.wallMass;
var xVel1 = _local1.xmov;
var yVel1 = _local1.ymov;
var run = (_local1.xmov - (_local1.xmov - adjustObj.Vdel));
var rise = (_local1.ymov - (_local1.ymov + adjustObj.gravity));
var _local3 = Math.atan2(rise, run);
var cosTheta = math.cos(_local3);
var sinTheta = math.sin(_local3);
var xVel1prime = ((xVel1 * cosTheta) + (yVel1 * sinTheta));
var P = ((_local2 * xVel1prime) + (mass2 * 0));
var V = (xVel1prime - 0);
var v2f = ((P + (_local2 * V)) / (_local2 + mass2));
var v1f = ((v2f - xVel1prime) + 0);
var xVel1prime = v1f;
adjustObj.xVel1prime = xVel1prime;
trace("xVel1prime :: " + xVel1prime);
if ((Vr < 0) || (_local1.xmov < adjustObj.Vdel)) {
_local1.xmov = _local1.xmov + adjustObj.Vdel;
} else {
_local1.xmov = _local1.xmov - adjustObj.Vdel;
}
_local1.ymov = _local1.ymov + adjustObj.gravity;
if (_local1.ymov < environmentObj.bottomOfField) {
_local1._x = _local1._x + _local1.xmov;
_local1._y = _local1._y + _local1.ymov;
gameObj.dStore.rootPath[trajectoryPath].lineTo(_local1._x, _local1._y);
}
gameObj.powerWallCollision(_local1._x, _local1);
} else {
fire_btn.enabled = true;
projectileObj.xFinal = _local1._x;
gameObj.calcTravledDist();
delete _local1.onEnterframe;
}
};
environmentObj.depth++;
};
gameObj.calcTravledDist = function () {
projectileObj.xDist = int(projectileObj.xFinal - projectileObj.x);
gameObj.score(xDist);
};
gameObj.badLauncher = function () {
switch (environmentObj.challenge) {
case 0 :
gameObj.updateDistanceScore(0);
return;
case 1 :
gameObj.updateAccuracyScore(0);
return;
case 2 :
gameObj.updatePowerScore(0);
}
};
gameObj.score = function (xDist, powerScore) {
if (projectileObj.xDist > environmentObj.penaltyZone) {
trace("PENALTY ZONE + LOOSE 10 Points from BEST SCORE");
gameObj.dStore.scores.launchPenalty = gameObj.dStore.scores.launchPenalty + gameObj.dStore.scores.penaltyPoints;
penaltyPoints_txt.text = gameObj.dStore.scores.launchPenalty;
gameObj.badLauncher();
} else if (projectileObj.xDist < environmentObj.endOfTreb) {
trace("YOU BLEW UP YOUR OWN TREB AUTO LOOSE");
gameObj.dStore.rootPath.miniTreb_mc.gotoAndPlay("die");
gameObj.badLauncher();
} else {
switch (environmentObj.challenge) {
case 0 :
trace("distance");
trace("YOUR DISTANCE SCORE IS ::" + projectileObj.xDist);
gameObj.updateDistanceScore(projectileObj.xDist);
return;
case 1 :
trace("Accuracy");
if ((projectileObj.xFinal > (target1_mc._x - (target1_mc._width * 0.5))) && (projectileObj.xFinal < (target1_mc._x + (target1_mc._width * 0.5)))) {
trace("COLLIDED LOOSE 15 Points");
gameObj.dStore.scores.accuracyScore = 50;
gameObj.updateAccuracyScore(gameObj.dStore.scores.accuracyScore);
target1_mc.hitAnim_mc.play();
gameObj.resetDelay = setInterval(gameObj.screenResetDelay, 1000);
} else if ((projectileObj.xFinal > (target2_mc._x - (target2_mc._width * 0.5))) && (projectileObj.xFinal < (target2_mc._x + (target2_mc._width * 0.5)))) {
trace("COLLIDED ADD 100 Points");
gameObj.dStore.scores.accuracyScore = 250;
gameObj.updateAccuracyScore(gameObj.dStore.scores.accuracyScore);
target2_mc.hitAnim_mc.play();
gameObj.resetDelay = setInterval(gameObj.screenResetDelay, 1000);
} else if ((projectileObj.xFinal > (target3_mc._x - (target3_mc._width * 0.5))) && (projectileObj.xFinal < (target3_mc._x + (target3_mc._width * 0.5)))) {
trace("COLLIDED + LOOSE 15 Points");
gameObj.dStore.scores.accuracyScore = 100;
gameObj.updateAccuracyScore(gameObj.dStore.scores.accuracyScore);
target3_mc.hitAnim_mc.play();
gameObj.resetDelay = setInterval(gameObj.screenResetDelay, 1000);
} else {
trace("MISSED EVERYTHING");
gameObj.dStore.scores.accuracyScore = 0;
gameObj.updateAccuracyScore(gameObj.dStore.scores.accuracyScore);
}
return;
case 2 :
trace("Power");
gameObj.updatePowerScore(gameObj.dStore.scores.powerScore);
}
}
};
gameObj.toGlobal = function (clip, x, y) {
var _local1 = new Object();
_local1.x = x;
_local1.y = y;
clip.localToGlobal(_local1);
return([_local1.x, _local1.y]);
};
gameObj.powerWallCollision = function (xDist, mc) {
var _local1 = mc;
wallName = _root.wall.wallDmg.wallG;
coords = gameObj.toGlobal(wallName, wallName._x, wallName._y);
trace((("LOOK X " + coords[0]) + "LOOK Y ") + coords[1]);
if (((((hitwall == false) && (_local1._y < coords[1])) && (_local1._y > (coords[1] - (wallName._height - 15)))) && (_local1._x > coords[0])) && ((_local1._x - 10) < (coords[0] + (wallName._width - 20)))) {
if (_local1._y > ((coords[1] - wallName._height) + 5)) {
trace("I HIT THE SIDE______" + (coords[1] - wallName._height));
_local1.xmov = _local1.xmov * -1;
} else {
trace("I HIT THE TOPPPPPP ______" + (coords[1] - wallName._height));
_local1.ymov = _local1.ymov * -1;
}
hitWall = true;
_local1.xmov = _local1.xmov + 2;
combinedMass = adjustObj.pMass + environmentObj.wallMass;
damage = adjustObj.momentum / combinedMass;
damage = damage * 100;
angleReduction = adjustObj.xVel1prime;
damage = (damage - int(angleReduction)) / 2;
gameObj.dStore.scores.totalDmg = gameObj.dStore.scores.totalDmg + damage;
trace("WE HAVE COLLIDED with THE WALL");
trace("DAMAGE :: " + damage);
trace("angleReduction :: " + angleReduction);
trace("TOTAL DMG :: " + gameObj.dStore.scores.totalDmg);
gameObj.dStore.scores.powerScore = int(damage);
if ((gameObj.dStore.scores.totalDmg >= 0) && (gameObj.dStore.scores.totalDmg <= 100)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(1);
}
gameObj.dStore.scores.totalDmg;
if ((gameObj.dStore.scores.totalDmg >= 101) && (gameObj.dStore.scores.totalDmg <= 200)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(2);
}
if ((gameObj.dStore.scores.totalDmg >= 201) && (gameObj.dStore.scores.totalDmg <= 300)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(3);
}
if ((gameObj.dStore.scores.totalDmg >= 301) && (gameObj.dStore.scores.totalDmg <= 400)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(4);
}
if ((gameObj.dStore.scores.totalDmg >= 401) && (gameObj.dStore.scores.totalDmg <= 500)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(5);
}
if ((gameObj.dStore.scores.totalDmg >= 501) && (gameObj.dStore.scores.totalDmg <= 600)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(6);
}
if ((gameObj.dStore.scores.totalDmg >= 601) && (gameObj.dStore.scores.totalDmg <= 700)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(7);
}
if ((gameObj.dStore.scores.totalDmg >= 701) && (gameObj.dStore.scores.totalDmg <= 800)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(8);
}
if ((gameObj.dStore.scores.totalDmg >= 801) && (gameObj.dStore.scores.totalDmg <= 900)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(9);
}
if ((gameObj.dStore.scores.totalDmg >= 901) && (gameObj.dStore.scores.totalDmg < 1000)) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(10);
}
if (gameObj.dStore.scores.totalDmg >= 1000) {
gameObj.dStore.rootPath.wall.wallDmg.gotoAndStop(11);
}
}
};
gameObj.updateDistanceScore = function (xDist) {
gameObj.dStore.scores.distanceScores.push(xDist);
trace("SCORES :: " + gameObj.dStore.scores.distanceScores);
var i = 0;
while (i < gameObj.dStore.scores.distanceScores.length) {
attemptName = "attempt" + i;
gameObj.dStore.rootPath.attachMovie("attempts", [attemptName], i + 20000);
gameObj.dStore.rootPath[attemptName]._y = gameObj.dStore.scores.attemptYpos;
gameObj.dStore.rootPath[attemptName]._x = gameObj.dStore.scores.attemptXpos + (gameObj.dStore.scores.attemptSpacer * i);
gameObj.dStore.rootPath[attemptName].distAttepScore.text = gameObj.dStore.scores.distanceScores[i];
gameObj.dStore.rootPath[attemptName].distAttep.text = i + 1;
gameObj.dStore.scores.bestDistance = 0;
var clipRef = eval ("gameObj.dStore.rootPath." + attemptName);
gameObj.dStore.dynClips.addClipRef(clipRef);
i++;
}
for (tScore in gameObj.dStore.scores.distanceScores) {
var thisScore = gameObj.dStore.scores.distanceScores[tScore];
if (thisScore > gameObj.dStore.scores.bestDistance) {
gameObj.dStore.scores.bestDistance = thisScore;
}
}
trace("gameObj.dStore.scores.bestDistance:" + gameObj.dStore.scores.bestDistance);
gameObj.dStore.rootPath.bestDist_txt.text = gameObj.dStore.scores.bestDistance;
gameObj.dStore.scores.totalScore = gameObj.dStore.scores.bestDistance - gameObj.dStore.scores.launchPenalty;
gameObj.dStore.rootPath.score_txt.text = gameObj.dStore.scores.totalScore;
if (environmentObj.totalAttempts >= environmentObj.totalAttemptsAllowed) {
trace("environmentObj.totalAttempts :" + environmentObj.totalAttempts);
gameObj.clearenvironmentObj.challengeAttempts();
environmentObj.challenge = environmentObj.challenge + 1;
var chalName = ("CHA0" + String(environmentObj.challenge));
trace(">>> chalName:" + chalName);
environmentObj.totalAttempts = 0;
fire_btn.enabled = false;
gameObj.challengeDelay = setInterval(gameObj.endChallengeDelay, 1000, 3, chalName);
}
};
gameObj.updateAccuracyScore = function (accuracyScore) {
gameObj.dStore.scores.accuracyScores.push(accuracyScore);
trace("SCORES :: " + gameObj.dStore.scores.accuracyScores);
var _local1 = 0;
while (_local1 < gameObj.dStore.scores.accuracyScores.length) {
attemptName = "attempt" + _local1;
gameObj.dStore.rootPath.attachMovie("attempts", [attemptName], _local1 + 20000);
gameObj.dStore.rootPath[attemptName]._y = gameObj.dStore.scores.attemptYpos;
gameObj.dStore.rootPath[attemptName]._x = gameObj.dStore.scores.attemptXpos + (gameObj.dStore.scores.attemptSpacer * _local1);
gameObj.dStore.rootPath[attemptName].distAttepScore.text = gameObj.dStore.scores.accuracyScores[_local1];
gameObj.dStore.rootPath[attemptName].distAttep.text = _local1 + 1;
_local1++;
}
gameObj.dStore.scores.totalAccuracy = gameObj.dStore.scores.totalAccuracy + gameObj.dStore.scores.accuracyScore;
gameObj.dStore.scores.totalScore = (gameObj.dStore.scores.bestDistance + gameObj.dStore.scores.totalAccuracy) - gameObj.dStore.scores.launchPenalty;
gameObj.dStore.rootPath.totalAccuracy_txt.text = gameObj.dStore.scores.totalAccuracy;
gameObj.dStore.rootPath.score_txt.text = gameObj.dStore.scores.totalScore;
if (environmentObj.totalAttempts >= environmentObj.totalAttemptsAllowed) {
trace("environmentObj.totalAttempts :" + environmentObj.totalAttempts);
gameObj.clearenvironmentObj.challengeAttempts();
environmentObj.challenge = environmentObj.challenge + 1;
var _local2 = "CHA0" + String(environmentObj.challenge);
trace(">>> chalName:" + _local2);
environmentObj.totalAttempts = 0;
fire_btn.enabled = false;
gameObj.challengeDelay = setInterval(gameObj.endChallengeDelay, 1000, 3, _local2);
}
};
gameObj.updatePowerScore = function (powerScore) {
gameObj.dStore.scores.powerScores.push(powerScore);
var _local1 = 0;
while (_local1 < gameObj.dStore.scores.powerScores.length) {
attemptName = "attempt" + _local1;
gameObj.dStore.rootPath.attachMovie("attempts", [attemptName], _local1 + 20000);
gameObj.dStore.rootPath[attemptName]._y = gameObj.dStore.scores.attemptYpos;
gameObj.dStore.rootPath[attemptName]._x = gameObj.dStore.scores.attemptXpos + (gameObj.dStore.scores.attemptSpacer * _local1);
trace("THIS POWER:" + gameObj.dStore.scores.powerScores[_local1]);
var _local2 = gameObj.dStore.scores.powerScores[_local1];
if ((_local2 == undefined) or (_local2 < 0)) {
_local2 = 0;
}
gameObj.dStore.rootPath[attemptName].distAttepScore.text = _local2;
gameObj.dStore.rootPath[attemptName].distAttep.text = _local1 + 1;
_local1++;
}
gameObj.dStore.scores.totalPower = gameObj.dStore.scores.totalPower + gameObj.dStore.scores.powerScore;
gameObj.dStore.scores.totalScore = ((gameObj.dStore.scores.bestDistance + gameObj.dStore.scores.totalAccuracy) + gameObj.dStore.scores.totalPower) - gameObj.dStore.scores.launchPenalty;
gameObj.dStore.rootPath.totalPower_txt.text = gameObj.dStore.scores.totalPower;
gameObj.dStore.rootPath.score_txt.text = gameObj.dStore.scores.totalScore;
gameObj.dStore.scores.powerScore = 0;
trace((((("attempt:" + environmentObj.totalAttempts) + " powerScore:") + gameObj.dStore.scores.powerScore) + " totalPower:") + gameObj.dStore.scores.totalPower);
if ((environmentObj.totalAttempts >= environmentObj.totalAttemptsAllowed) or (gameObj.dStore.scores.totalPower >= 1000)) {
trace((((("** BOOM ** attempt:" + environmentObj.totalAttempts) + " powerScore:") + gameObj.dStore.scores.powerScore) + " totalPower:") + gameObj.dStore.scores.totalPower);
gameObj.clearenvironmentObj.challengeAttempts();
environmentObj.challenge = environmentObj.challenge + 1;
var _local3 = "CHA0" + String(environmentObj.challenge);
trace(">>> chalName:" + _local3);
environmentObj.totalAttempts = 0;
fire_btn.enabled = false;
gameObj.challengeDelay = setInterval(gameObj.endChallengeDelay, 1000, 3, _local3);
}
};
gameObj.clearTrajectory = function () {
var _local1 = 0;
while (_local1 <= environmentObj.depth) {
trajectoryPath = "trajpath" + _local1;
gameObj.dStore.rootPath[trajectoryPath].removeMovieClip();
projectileName = "projectile" + _local1;
projectileObj.projectiles[_local1].removeMovieClip();
trace(("DELETE THIS PROJECTILE " + projectileName) + _local1);
_local1++;
}
environmentObj.depth = 0;
projectileObj.projectiles = [];
};
gameObj.clearChallengeAttempts = function () {
var _local1 = 0;
while (_local1 < environmentObj.totalAttempts) {
attemptName = "attempt" + _local1;
gameObj.dStore.rootPath[attemptName].removeMovieClip();
_local1++;
}
};
gameObj.callAllCalcs();
MovieClip.prototype.makeTrajectory = function (cx, cy) {
var _local1 = this;
_local1.lineAlpha = 5;
_local1.lineStyle(0.5, 16750848, _local1.lineAlpha);
_local1.moveTo(projectileObj.x, projectileObj.y);
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.lineAlpha < 90) {
_local1.lineAlpha = _local1.lineAlpha + 5;
_local1.lineStyle(0.5, 16750848, _local1.lineAlpha);
}
if (_local1._alpha > 20) {
_local1._alpha = _local1._alpha - 0.25;
} else {
delete eval (onEnterFrame());
}
};
};
m2_txt.onChanged = function () {
gameObj.callAllCalcs();
};
m1_txt.onChanged = function () {
gameObj.callAllCalcs();
};
cwHeight_txt.onChanged = function () {
gameObj.callAllCalcs();
};
angle_txt.onChanged = function () {
gameObj.callAllCalcs();
};
gravity_txt.onChanged = function () {
gameObj.callAllCalcs();
};
windMag_txt.onChanged = function () {
gameObj.callAllCalcs();
};
environmentObj.challenge = 0;
gameObj.clearChallengeAttempts();
gameObj.resetWallPos(-550, -550);
gameObj.clearTrajectory();
stopAllSounds();
gameObj.iFace.setCombo();
adjpanel_mc._visible = true;
adjpanel_mc.gotoAndPlay("opn");
gameObj.iFace.timer.pauseTimer();
soundCon.sfxPlay(sfxMusObj, "fanfare3", 100);
gameObj.dStore.challengeName = "CHALLENGE 1 of 3\nTHE DISTANCE CHALLENGE";
challName.gotoAndPlay(1);
stop();
Instance of Symbol 565 MovieClip "nextChallenge_btn" in Frame 58
on (release) {
_root.gotoAndStop("accuracy");
}
Instance of Symbol 569 MovieClip "fire_btn" in Frame 58
on (press) {
_parent.popup_mc.gotoAndStop(1);
}
Frame 59
popup_mc.gotoAndPlay("C1");
Frame 60
gameObj.iFace.setLastPage("CHA01");
gameObj.dStore.dynClips.setAllVisibleTo(true);
fire_btn.onRelease = function () {
gameObj.callAllCalcs();
gameObj.fireMe();
fire_btn.enabled = false;
adjpanel_mc.gotoAndPlay("clsd");
gameObj.iFace.timer.unpauseTimer();
};
stop();
Frame 61
gameObj.iFace.setLastPage("CHA02");
gameObj.clearTrajectory();
adjpanel_mc._visible = false;
gameObj.iFace.timer.pauseTimer();
soundCon.sfxPlay(sfxMusObj, "drum_02", 100);
gameObj.dStore.challengeName = "CHALLENGE 2 : THE ACCURACY CHALLENGE\nFINAL SCORE: " + gameObj.dStore.scores.totalAccuracy;
challName.gotoAndPlay(1);
stop();
Frame 64
stop();
Frame 66
stopAllSounds();
gameObj.iFace.setLastPage("CHA02GO");
environmentObj.challenge = 1;
gameObj.resetTargetPos();
gameObj.clearTrajectory();
soundCon.sfxPlay(sfxMusObj, "fanfare3", 100);
gameObj.dStore.challengeName = "CHALLENGE 2 of 3\nTHE ACCURACY CHALLENGE";
challName.gotoAndPlay(1);
stop();
Instance of Symbol 565 MovieClip "nextChallenge_btn" in Frame 66
on (release) {
_root.gotoAndStop("accuracy");
}
Instance of Symbol 569 MovieClip "fire_btn" in Frame 66
on (press) {
_parent.popup_mc.gotoAndStop(1);
}
Frame 67
popup_mc.gotoAndPlay("C2");
gameObj.iFace.timer.pauseTimer();
Frame 68
fire_btn.onRelease = function () {
gameObj.callAllCalcs();
gameObj.fireMe();
fire_btn.enabled = false;
adjpanel_mc.gotoAndPlay("clsd");
gameObj.iFace.timer.unpauseTimer();
};
stop();
Frame 69
gameObj.iFace.setLastPage("CHA03");
gameObj.clearTrajectory();
adjpanel_mc._visible = false;
gameObj.iFace.timer.pauseTimer();
timeBonus = gameObj.bonusScore();
soundCon.sfxPlay(sfxMusObj, "drum_02", 100);
gameObj.dStore.challengeName = "CHALLENGE 3 : THE POWER CHALLENGE\nFINAL SCORE: " + gameObj.dStore.scores.totalPower;
if (gameObj.dStore.scores.totalPower > 900) {
gameObj.dStore.challengeName = ("CHALLENGE 3 : THE POWER CHALLENGE\nFINAL SCORE: " + gameObj.dStore.scores.totalPower) + "\n That wall never had a chance!";
}
if (gameObj.dStore.scores.totalPower > 990) {
gameObj.dStore.challengeName = ("CHALLENGE 3 : THE POWER CHALLENGE\nFINAL SCORE: " + gameObj.dStore.scores.totalPower) + "\n Complete Obliteration!";
}
challName.gotoAndPlay(1);
if ((timeBonus[0] == "") or (timeBonus[0] == undefined)) {
timeBonus[0] = "0";
}
gameObj.dStore.endGameMessage = (("TIME BONUS: " + timeBonus[0]) + "\nTOTAL SCORE: ") + timeBonus[1];
stop();
Frame 72
stop();
Frame 74
stopAllSounds();
soundCon.sfxPlay(sfxMusObj, "fanfare3", 100);
gameObj.dStore.challengeName = "CHALLENGE 3 of 3\nTHE POWER CHALLENGE";
challName.gotoAndPlay(1);
stop();
Instance of Symbol 565 MovieClip "nextChallenge_btn" in Frame 74
on (release) {
_root.gotoAndStop("accuracy");
}
Instance of Symbol 569 MovieClip "fire_btn" in Frame 74
on (press) {
_parent.popup_mc.gotoAndStop(1);
}
Frame 75
popup_mc.gotoAndPlay("C3");
gameObj.iFace.timer.pauseTimer();
Frame 76
environmentObj.challenge = 2;
gameObj.resetWallPos(300, 400);
gameObj.clearChallengeAttempts();
gameObj.clearTrajectory();
fire_btn.onRelease = function () {
gameObj.callAllCalcs();
gameObj.fireMe();
fire_btn.enabled = false;
adjpanel_mc.gotoAndPlay("clsd");
gameObj.iFace.timer.unpauseTimer();
};
stop();
Instance of Symbol 349 MovieClip in Frame 77
onClipEvent (load) {
this.adjDisable_btn.useHandCursor = false;
}
Frame 86
gameObj.iFace.setLastPage("ADJUST");
stop();
Frame 87
adjpanel_mc.gotoAndPlay(1);
gameObj.iFace.setCombo();
gameObj.dStore.dynClips.setAllVisibleTo(false);
score_txt.text = gameObj.dStore.scores.totalScore;
Instance of Symbol 131 MovieClip [ScrollPane] "scoreTable_sp" in Frame 87
//component parameters
onClipEvent (initialize) {
contentPath = "mc_HTMLBOX (dynamic)";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "off";
scrollDrag = false;
vLineScrollSize = 20;
vPageScrollSize = 100;
vScrollPolicy = "on";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 92
gameObj.iFace.setLastPage("HSCORES");
stop();
Frame 97
adjpanel_mc.gotoAndPlay(1);
gameObj.iFace.setCombo();
gameObj.dStore.dynClips.setAllVisibleTo(false);
score_txt.text = gameObj.dStore.scores.totalScore;
if (gameObj.dStore.gameFinished == undefined) {
gameObj.dStore.gameFinished = 1;
} else {
gameObj.dStore.gameFinished++;
}
Frame 100
if ((gameObj.dStore.scoreToBeat == undefined) or (gameObj.dStore.scoreToBeat == 0)) {
gotoAndPlay ("HSWAIT");
} else {
trace("scoreToBeat:" + gameObj.dStore.scoreToBeat);
if (gameObj.dStore.scores.totalScore < gameObj.dStore.scoreToBeat) {
gotoAndPlay ("HSCORESLOSE");
} else {
gotoAndPlay ("HSCORESWIN");
}
}
Frame 102
adjpanel_mc.gotoAndPlay(1);
gameObj.iFace.setCombo();
gameObj.dStore.dynClips.setAllVisibleTo(false);
score_txt.text = gameObj.dStore.scores.totalScore;
Frame 107
gameObj.iFace.setLastPage("HSCORESLOSE");
stop();
Frame 112
adjpanel_mc.gotoAndPlay(1);
gameObj.iFace.setCombo();
gameObj.dStore.dynClips.setAllVisibleTo(false);
score_txt.text = gameObj.dStore.scores.totalScore;
Frame 115
gameObj.iFace.setLastPage("HSCORESWIN");
score_txt.text = gameObj.dStore.scores.totalScore;
stop();
Frame 116
score_txt.text = gameObj.dStore.scores.totalScore;
Frame 118
Instance of Symbol 131 MovieClip [ScrollPane] "scoreTable_sp" in Frame 164
//component parameters
onClipEvent (initialize) {
contentPath = "mc_HTMLBOX (dynamic)";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "off";
scrollDrag = false;
vLineScrollSize = 20;
vPageScrollSize = 100;
vScrollPolicy = "on";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 165
stop();
Symbol 13 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 15 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 18 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 20 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 23 MovieClip [Defaults] Frame 1
#initclip 45
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 24 MovieClip [UIObjectExtensions] Frame 1
#initclip 46
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 25 MovieClip [UIObject] Frame 1
#initclip 47
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 28 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 29 MovieClip Frame 1
#initclip 48
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 30 MovieClip [FocusRect] Frame 1
#initclip 49
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 31 MovieClip [FocusManager] Frame 1
#initclip 50
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 32 MovieClip [UIComponentExtensions] Frame 1
#initclip 51
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 33 MovieClip [UIComponent] Frame 1
#initclip 52
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 34 MovieClip [SimpleButton] Frame 1
#initclip 53
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 35 MovieClip [Border] Frame 1
#initclip 54
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 36 MovieClip [RectBorder] Frame 1
#initclip 55
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 37 MovieClip [ButtonSkin] Frame 1
#initclip 56
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 38 MovieClip [Button] Frame 1
#initclip 57
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 34 MovieClip [SimpleButton] in Symbol 38 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 39 MovieClip [CustomBorder] Frame 1
#initclip 58
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 51 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 53 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 64 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 66 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 73 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 94 MovieClip [BtnDownArrow] Frame 1
#initclip 59
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 95 MovieClip [BtnUpArrow] Frame 1
#initclip 60
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 97 MovieClip [VScrollBar] Frame 1
#initclip 61
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 38 MovieClip [Button] in Symbol 97 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 34 MovieClip [SimpleButton] in Symbol 97 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 98 MovieClip [HScrollBar] Frame 1
#initclip 62
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 38 MovieClip [Button] in Symbol 98 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 34 MovieClip [SimpleButton] in Symbol 98 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 99 MovieClip [UIScrollBar] Frame 1
#initclip 63
Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);
#endinitclip
stop();
Instance of Symbol 97 MovieClip [VScrollBar] in Symbol 99 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 98 MovieClip [HScrollBar] in Symbol 99 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 129 MovieClip [View] Frame 1
#initclip 64
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 130 MovieClip [ScrollView] Frame 1
#initclip 65
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 98 MovieClip [HScrollBar] in Symbol 130 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 97 MovieClip [VScrollBar] in Symbol 130 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 131 MovieClip [ScrollPane] Frame 1
#initclip 66
Object.registerClass("ScrollPane", mx.containers.ScrollPane);
#endinitclip
stop();
Symbol 170 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 76
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 172 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 176 MovieClip [ComboAssets] Frame 1
#initclip 77
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.prototype.adjustFocusRect = function () {
var _local1 = this;
var _local2 = _local1.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = _local1._parent.focus_mc;
_local3.setSize(_local1.width + 4, _local1.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(_local1.x - 2, _local1.y - 2);
};
#endinitclip
Symbol 178 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 179 MovieClip [FScrollBarSymbol] Frame 1
#initclip 78
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yscale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmlText");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 180 MovieClip [FUIComponentSymbol] Frame 1
#initclip 75
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.substring(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.substring(4, _local2.length);
var firstChar = textProp.substring(0, 1);
firstChar = firstChar.toLowerCase();
textProp = firstChar + textProp.substring(1, textProp.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 193 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 203 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 212 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 213 MovieClip [UpArrow] Frame 1
stop();
Symbol 213 MovieClip [UpArrow] Frame 2
stop();
Symbol 213 MovieClip [UpArrow] Frame 3
stop();
Symbol 220 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 227 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 232 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 233 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 241 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 249 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 257 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 258 MovieClip [DownArrow] Frame 1
stop();
Symbol 258 MovieClip [DownArrow] Frame 2
stop();
Symbol 258 MovieClip [DownArrow] Frame 3
stop();
Symbol 274 MovieClip [mc_HTMLBOX (dynamic)] Frame 1
_global.thisGameID = gameObj.dStore.prefs.highSettings.thisGameID;
_global.get10ScoresURL = gameObj.dStore.prefs.highSettings.getTop10ScoresURL;
_global.getAllScoresURL = gameObj.dStore.prefs.highSettings.getAllScoresURL;
_global.addScoreURL = gameObj.dStore.prefs.highSettings.addScoreURL;
_global.getTop10Only = gameObj.dStore.prefs.highSettings.getTop10Only;
trace(" ** HIGH SCORE HELPER INITIALIZED **");
trace("_global.thisGameID:" + _global.thisGameID);
trace("_global.getAllScoresURL:" + _global.getAllScoresURL);
trace("_global.addScoreURL:" + _global.addScoreURL);
trace(" ** ----------------------------- **");
_global.populateScoreTable = function (scores_xml) {
trace("SCORE XML =================\n" + scores_xml);
_global.scoreToBeat = 0;
scoreToBeatArray = [];
var xdata = scores_xml.firstChild.childNodes;
_global.dataObj.xmlData = xdata;
trace("xdata:" + xdata);
var sub = 0;
for (subNum in xdata) {
if (xdata[subNum].nodeName eq "score") {
trace("SUB:" + subNum);
trace(">SCORE>" + xdata[subNum].attributes.score);
trace(">NAME>" + xdata[subNum].attributes.un);
trace(">DATE>" + xdata[subNum].attributes.posted);
trace(">UID>" + xdata[subNum].attributes.uid);
if (subNum == 0) {
trace("nondupe");
ITEM_mc.num_txt.text = "1.";
ITEM_mc.name_txt.text = xdata[subNum].attributes.un;
ITEM_mc.score_txt.text = xdata[subNum].attributes.score;
ITEM_mc.date_txt.text = xdata[subNum].attributes.posted;
ITEM_mc.diff_mc.gotoAndStop(xdata[subNum].attributes.uid);
var stringScore = String(ITEM_mc.score_txt.text);
var zero = "0";
var totalChars = 4;
var charsInScore = String(ITEM_mc.score_txt.text).length;
var i = 0;
while (i < (totalChars - charsInScore)) {
i++;
var stringScore = zero.concat(stringScore);
}
ITEM_mc.score_txt.text = stringScore;
} else {
var newClipName = (("ITEM" + subNum) + "_mc");
trace("newClipName:" + newClipName);
duplicateMovieClip (ITEM_mc, newClipName, 100 + subNum);
var newClipRef = eval (newClipName);
newClipRef._y = ITEM_mc._y + (20 * subNum);
newClipRef.name_txt.text = xdata[subNum].attributes.un;
punkNumber = 1 + Number(subNum);
trace("punkNumber:" + punkNumber);
newClipRef.num_txt.text = punkNumber + ".";
newClipRef.score_txt.text = xdata[subNum].attributes.score;
newClipRef.date_txt.text = xdata[subNum].attributes.posted;
newClipRef.diff_mc.gotoAndStop(xdata[subNum].attributes.uid);
var stringScore = String(newClipRef.score_txt.text);
var zero = "0";
var totalChars = 4;
var charsInScore = String(newClipRef.score_txt.text).length;
var i = 0;
while (i < (totalChars - charsInScore)) {
i++;
var stringScore = zero.concat(stringScore);
}
newClipRef.score_txt.text = stringScore;
}
trace("===============");
if (scoreToBeat == 0) {
scoreToBeat = int(xdata[subNum].attributes.score);
}
if (int(xdata[subNum].attributes.score) < int(scoreToBeat)) {
scoreToBeat = int(xdata[subNum].attributes.score);
}
scoreToBeatArray.push(xdata[subNum].attributes.score);
}
}
if (scoreToBeat == 0) {
scoreToBeat = 1;
}
gameObj.dStore.scoreToBeat = scoreToBeat;
trace(">> SCORE TO BEAT:" + gameObj.dStore.scoreToBeat);
_parent._parent.scoreTable_sp.invalidate();
};
_global.postScore = function (args) {
var _local1 = args;
gameObj.dStore.elapsedTime = getTimer() - gameObj.dStore.elapsedStartTime;
trace("gameObj.dStore.elapsedTime:" + gameObj.dStore.elapsedTime);
var _local2 = int(10 * Math.random(999999));
if (gameObj.dStore.prefs.highSettings.postJRVstyle) {
postString = (((((((((addScoreURL + "?gameID=") + _local1.gameID) + "&uid=") + _local1.uid) + "&un=") + _local1.un) + "&score=") + _local1.score) + "&ranInt=") + _local2;
} else {
postString = (((((((((((((((((addScoreURL + "?gameid=") + _local1.gameID) + "&email=") + _local1.uid) + "&username=") + _local1.un) + "&score=") + _local1.score) + "&elapsedTime=") + gameObj.dStore.elapsedTime) + "&numEmailSent=") + gameObj.dStore.numEmailSent) + "&gameFinished=") + gameObj.dStore.gameFinished) + "&scoreHash=") + _local1.scoreHash) + "&ranInt=") + _local2;
}
trace("POST:" + postString);
loadVariables (postString, _root);
Set(undefined, undefined);
_local2 = "x";
_local1 = _local2;
};
_global.getAllScores = function (args) {
gID = args.gameID;
var ranInt = int(10 * Math.random(999999));
if (((((getTop10Only == 1) or (getTop10Only == "true")) or (getTop10Only == "True")) or (getTop10Only == "TRUE")) or (getTop10Only == "1")) {
dataFile = (((get10ScoresURL + "?gameID=") + gID) + "&ranInt=") + ranInt;
} else {
dataFile = (((getAllScoresURL + "?gameID=") + gID) + "&ranInt=") + ranInt;
}
trace(" >> LOAD HS >> " + dataFile);
xo_xml = new XML();
xo_xml.ignoreWhite = true;
xo_xml.load(dataFile);
xo_xml.onLoad = function (success) {
if (success) {
} else {
errorText = (("XML ERROR\n\n" + errorCheck(xo_xml)[0]) + ",") + errorCheck(xo_xml)[0];
trace(errorText);
}
};
_global.errorCheck = function (tOBJ) {
var _local1 = tOBJ.status;
var _local2 = "";
var _local3 = new Array();
if (_local1 == 0) {
_local2 = "XML Data Loaded.";
}
if (_local1 == -2) {
_local2 = "Termination Error in CDATA. " + XMLstatusNum;
}
if (_local1 == -3) {
_local2 = "Termination Error in DECLARATION. " + XMLstatusNum;
}
if (_local1 == -4) {
_local2 = "Termination Error in DOCTYPE. " + XMLstatusNum;
}
if (_local1 == -5) {
_local2 = "Termination Error in COMMENT. " + XMLstatusNum;
}
if (_local1 == -6) {
_local2 = "Malformed Error in XML. " + XMLstatusNum;
}
if (_local1 == -7) {
_local2 = "Out of memory Error. " + XMLstatusNum;
}
if (_local1 == -8) {
_local2 = "Termination Error in ATTRIBUTE. " + XMLstatusNum;
}
if (_local1 == -9) {
_local2 = "Error in START/END tag. " + XMLstatusNum;
}
if (_local1 == -10) {
_local2 = "Error in END/START tag. " + XMLstatusNum;
}
_local3 = [_local1, _local2];
return(_local3);
};
};
thisGameID = gameObj.dStore.prefs.highSettings.thisGameID;
getAllScores({gameID:thisGameID});
Symbol 274 MovieClip [mc_HTMLBOX (dynamic)] Frame 4
if (xo_xml.loaded) {
} else {
gotoAndPlay ("xwait");
}
Symbol 274 MovieClip [mc_HTMLBOX (dynamic)] Frame 5
populateScoreTable(xo_xml);
Symbol 274 MovieClip [mc_HTMLBOX (dynamic)] Frame 6
_parent._parent.trans_sp.refreshPane();
stop();
Symbol 280 MovieClip [TextInput] Frame 1
#initclip 67
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 281 MovieClip [ComboBase] Frame 1
#initclip 68
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 34 MovieClip [SimpleButton] in Symbol 281 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 280 MovieClip [TextInput] in Symbol 281 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 282 MovieClip [DataProvider] Frame 1
#initclip 69
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 283 MovieClip [DataSelector] Frame 1
#initclip 70
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 284 MovieClip [SelectableRow] Frame 1
#initclip 71
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 285 MovieClip [ScrollSelectList] Frame 1
#initclip 72
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 286 MovieClip [List] Frame 1
#initclip 73
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 287 MovieClip [ComboBox] Frame 1
#initclip 74
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 286 MovieClip [List] in Symbol 287 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 112 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local1 = new Color(this);
_local1.setRGB(c);
}
}
function draw(Void) {
var _local1 = this;
_local1.setColor(_local1.getStyle(_local1._color));
_local1.onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
var _local1 = p;
if (_local1._color == undefined) {
_local1._color = colorStyle;
}
_local1.setColor = mixins.setColor;
_local1.invalidateStyle = mixins.invalidateStyle;
_local1.draw = mixins.draw;
_local1.setColor(_local1.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 6 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _minHeight, _minWidth, _visible, _xscale, _yscale, onEnterFrame, methodTable, attachMovie, idNames, childrenCreated, className, ignoreClassStyleDeclaration, styleName, stylecache, _parent;
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() {
var _local1 = this;
return(_local1._parent.width - (_local1._x + _local1.__get__width()));
}
function get bottom() {
var _local1 = this;
return(_local1._parent.height - (_local1._y + _local1.__get__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) {
var _local1 = this;
var _local2 = x;
if (_local2 != _local1._visible) {
_local1._visible = _local2;
if (noEvent != true) {
_local1.dispatchEvent({type:(_local2 ? "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) {
var _local1 = this;
if (_local1.methodTable == undefined) {
_local1.methodTable = new Array();
}
_local1.methodTable.push({obj:obj, fn:fn});
_local1.onEnterFrame = _local1.doLaterDispatcher;
}
function doLaterDispatcher(Void) {
var _local3 = this;
delete _local3.onEnterFrame;
if (_local3.invalidateFlag) {
_local3.redraw();
}
var _local2 = _local3.methodTable;
_local3.methodTable = new Array();
if (_local2.length > 0) {
var _local1;
while (_local1 = _local2.shift() , _local1 != undefined) {
_local1.obj[_local1.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
var _local1 = this;
_local1.invalidateFlag = true;
_local1.onEnterFrame = _local1.doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
var _local1 = this;
if (_local1.invalidateFlag || (bAlways)) {
_local1.invalidateFlag = false;
var _local2;
for (_local2 in _local1.tfList) {
_local1.tfList[_local2].draw();
}
_local1.draw();
_local1.dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local1 = this;
var oldX = _local1._x;
var oldY = _local1._y;
_local1._x = x;
_local1._y = y;
if (noEvent != true) {
_local1.dispatchEvent({type:"move", oldX:oldX, oldY:oldY});
}
}
function setSize(w, h, noEvent) {
var _local1 = this;
var oldWidth = _local1.__width;
var oldHeight = _local1.__height;
_local1.__width = w;
_local1.__height = h;
_local1.size();
if (noEvent != true) {
_local1.dispatchEvent({type:"resize", oldWidth:oldWidth, oldHeight:oldHeight});
}
}
function size(Void) {
var _local1 = this;
_local1._width = _local1.__width;
_local1._height = _local1.__height;
}
function drawRect(x1, y1, x2, y2) {
var _local1 = this;
var _local2 = y1;
var _local3 = x1;
_local1.moveTo(_local3, _local2);
_local1.lineTo(x2, _local2);
_local1.lineTo(x2, y2);
_local1.lineTo(_local3, y2);
_local1.lineTo(_local3, _local2);
}
function createLabel(name, depth, text) {
var _local2 = this;
var _local3 = name;
_local2.createTextField(_local3, depth, 0, 0, 0, 0);
var _local1 = _local2[_local3];
_local1._color = textColorList;
_local1._visible = false;
_local1.__text = text;
if (_local2.tfList == undefined) {
_local2.tfList = new Object();
}
_local2.tfList[_local3] = _local1;
_local1.invalidateStyle();
_local2.invalidate();
_local1.styleName = _local2;
return(_local1);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local1 = className;
var _local2 = _local1.symbolName == undefined;
if (_local2) {
Object.registerClass(_local1.symbolOwner.symbolName, _local1);
}
var _local3 = createObject(_local1.symbolOwner.symbolName, id, depth, initobj);
if (_local2) {
Object.registerClass(_local1.symbolOwner.symbolName, _local1.symbolOwner);
}
return(_local3);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this;
var _local1 = _local2[id];
if (_local1.getDepth() < 0) {
var dt = _local2.buildDepthTable();
var i = _local2.findNextAvailableDepth(0, dt, "up");
var _local3 = i;
_local1.swapDepths(_local3);
}
_local1.removeMovieClip();
delete _local2[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
var _local1 = linkageName;
if (_global.skinRegistry[_local1] == undefined) {
mx.skins.SkinElement.registerElement(_local1, mx.skins.SkinElement);
}
return(createObject(_local1, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = this;
var _local1 = _local2.getSkinIDName(tag);
_local2.createEmptyObject(_local1, tag);
return(_local2[_local1]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
var _local1 = this;
if (_local1._name == undefined) {
} else {
_local1.init();
_local1._createChildren();
_local1.createAccessibilityImplementation();
_local1._endInit();
if (_local1.validateNow) {
_local1.redraw(true);
} else {
_local1.invalidate();
}
}
}
function initFromClipParameters(Void) {
var _local2 = this;
var bFound = false;
var _local1;
for (_local1 in _local2.clipParameters) {
if (_local2.hasOwnProperty(_local1)) {
bFound = true;
_local2["def_" + _local1] = _local2[_local1];
delete _local2[_local1];
}
}
if (bFound) {
for (_local1 in _local2.clipParameters) {
var _local3 = _local2["def_" + _local1];
if (_local3 != undefined) {
_local2[_local1] = _local3;
}
}
}
}
function init(Void) {
var _local1 = this;
_local1.__width = _local1._width;
_local1.__height = _local1._height;
if (_local1.initProperties == undefined) {
_local1.initFromClipParameters();
} else {
_local1.initProperties();
}
if (_global.cascadingStyles == true) {
_local1.stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local3 = _global;
var _local2 = this;
var _local1 = className;
while (_local1 != undefined) {
if (ignoreClassStyleDeclaration[_local1] == undefined) {
if (_local3.styles[_local1] != undefined) {
return(_local3.styles[_local1]);
}
}
_local2 = _local2.__proto__;
_local1 = _local2.className;
}
return(undefined);
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local2 = this;
var _local3 = tf;
var o = _local2.stylecache.tf;
if (o != undefined) {
var _local1;
for (_local1 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local1])) {
if (_local3[_local1] == undefined) {
_local3[_local1] = o[_local1];
}
}
}
return(false);
}
var bUndefined = false;
for (var _local1 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local1])) {
if (_local3[_local1] == undefined) {
var v = _local2._tf[_local1];
if (v != undefined) {
_local3[_local1] = v;
} else if ((_local1 == "font") && (_local2.fontFamily != undefined)) {
_local3[_local1] = _local2.fontFamily;
} else if ((_local1 == "size") && (_local2.fontSize != undefined)) {
_local3[_local1] = _local2.fontSize;
} else if ((_local1 == "color") && (_local2.color != undefined)) {
_local3[_local1] = _local2.color;
} else if ((_local1 == "leftMargin") && (_local2.marginLeft != undefined)) {
_local3[_local1] = _local2.marginLeft;
} else if ((_local1 == "rightMargin") && (_local2.marginRight != undefined)) {
_local3[_local1] = _local2.marginRight;
} else if ((_local1 == "italic") && (_local2.fontStyle != undefined)) {
_local3[_local1] = _local2.fontStyle == _local1;
} else if ((_local1 == "bold") && (_local2.fontWeight != undefined)) {
_local3[_local1] = _local2.fontWeight == _local1;
} else if ((_local1 == "align") && (_local2.textAlign != undefined)) {
_local3[_local1] = _local2.textAlign;
} else if ((_local1 == "indent") && (_local2.textIndent != undefined)) {
_local3[_local1] = _local2.textIndent;
} else if ((_local1 == "underline") && (_local2.textDecoration != undefined)) {
_local3[_local1] = _local2.textDecoration == _local1;
} else if ((_local1 == "embedFonts") && (_local2.embedFonts != undefined)) {
_local3[_local1] = _local2.embedFonts;
} else {
bUndefined = true;
}
}
}
}
if (bUndefined) {
var name = _local2.styleName;
if (name != undefined) {
if (typeof(name) != "string") {
bUndefined = name.__getTextFormat(_local3, true, _local2);
} else if (_global.styles[name] != undefined) {
bUndefined = _global.styles[name].__getTextFormat(_local3, true, _local2);
}
}
}
if (bUndefined) {
var ss = _local2.getClassStyleDeclaration();
if (ss != undefined) {
bUndefined = ss.__getTextFormat(_local3, true, _local2);
}
}
if (bUndefined) {
if (_global.cascadingStyles) {
if (_local2._parent != undefined) {
bUndefined = _local2._parent.__getTextFormat(_local3, false);
}
}
}
if (bUndefined) {
bUndefined = _global.style.__getTextFormat(_local3, true, _local2);
}
return(bUndefined);
}
function _getTextFormat(Void) {
var _local2 = this;
var _local1 = _local2.stylecache.tf;
if (_local1 != undefined) {
return(_local1);
}
_local1 = new TextFormat();
_local2.__getTextFormat(_local1, true);
_local2.stylecache.tf = _local1;
if (_local2.enabled == false) {
var _local3 = _local2.getStyle("disabledColor");
_local1.color = _local3;
}
return(_local1);
}
function getStyleName(Void) {
var _local2 = this;
var _local1 = _local2.styleName;
if (_local1 != undefined) {
if (typeof(_local1) != "string") {
return(_local1.getStyleName());
}
return(_local1);
}
if (_local2._parent != undefined) {
return(_local2._parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local2 = styleProp;
var _local1;
_global.getStyleCounter++;
if (this[_local2] != undefined) {
return(this[_local2]);
}
var name = styleName;
if (name != undefined) {
if (typeof(name) != "string") {
_local1 = name.getStyle(_local2);
} else {
var ss = _global.styles[name];
_local1 = ss.getStyle(_local2);
}
}
if (_local1 != undefined) {
return(_local1);
}
var ss = getClassStyleDeclaration();
if (ss != undefined) {
_local1 = ss[_local2];
}
if (_local1 != undefined) {
return(_local1);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(_local2) || (mx.styles.StyleManager.isColorStyle(_local2))) {
var _local3 = stylecache;
if (_local3 != undefined) {
if (_local3[_local2] != undefined) {
return(_local3[_local2]);
}
}
if (_parent != undefined) {
_local1 = _parent.getStyle(_local2);
} else {
_local1 = _global.style[_local2];
}
if (_local3 != undefined) {
_local3[_local2] = _local1;
}
return(_local1);
}
}
if (_local1 == undefined) {
_local1 = _global.style[_local2];
}
return(_local1);
}
static function mergeClipParameters(o, p) {
var _local1 = p;
var _local2 = o;
for (var _local3 in _local1) {
_local2[_local3] = _local1[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.1.78";
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 100 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 101 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
//var _local1 = this;
var _local2 = o;
_local2.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.align = x;
});
_local2.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.bold = x == "bold";
});
if (bColor) {
_local2.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.color = x;
});
}
_local2.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.font = x;
});
_local2.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.indent = x;
});
_local2.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.italic = x == "italic";
});
_local2.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.leftMargin = x;
});
_local2.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.rightMargin = x;
});
_local2.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.size = x;
});
_local2.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.underline = x == "underline";
});
_local2.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
var _local1 = this;
if (_local1._tf == undefined) {
_local1._tf = new TextFormat();
}
_local1._tf.embedFonts = x;
});
}
}
Symbol 103 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local3 = tf;
var bUndefined = false;
if (_tf != undefined) {
var _local1;
for (_local1 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local1])) {
if (_local3[_local1] == undefined) {
var _local2 = _tf[_local1];
if (_local2 != undefined) {
_local3[_local1] = _local2;
} else {
bUndefined = true;
}
}
}
}
} else {
bUndefined = true;
}
return(bUndefined);
}
function getStyle(styleProp) {
var _local1 = this[styleProp];
var _local2 = mx.styles.StyleManager.getColorName(_local1);
if (_local2 != undefined) {
return(_local2);
}
return(_local1);
}
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 102 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 7 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, dispatchEvent;
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) {
var _local1 = this;
_local1.setEnabled(newValue);
_local1.invalidate();
delete _local1.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 _local1 = this;
while (_local1 != undefined) {
if (_local1.focusManager != undefined) {
return(_local1.focusManager);
}
_local1 = _local1._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
var _local1 = this;
_local1.removeEventListener("keyDown", _local1);
_local1.removeEventListener("keyUp", _local1);
_local1.dispatchEvent({type:"focusOut"});
_local1.drawFocus(false);
}
function onSetFocus(oldFocus) {
var _local1 = this;
_local1.addEventListener("keyDown", _local1);
_local1.addEventListener("keyUp", _local1);
_local1.dispatchEvent({type:"focusIn"});
if (_local1.getFocusManager().bDrawFocus != false) {
_local1.drawFocus(true);
}
}
function findFocusInChildren(o) {
var _local1 = o;
if (_local1.focusTextField != undefined) {
return(_local1.focusTextField);
}
if (_local1.tabEnabled == true) {
return(_local1);
}
return(undefined);
}
function findFocusFromObject(o) {
var _local1 = o;
if (_local1.tabEnabled != true) {
if (_local1._parent == undefined) {
return(undefined);
}
if (_local1._parent.tabEnabled == true) {
_local1 = _local1._parent;
} else if (_local1._parent.tabChildren) {
_local1 = findFocusInChildren(_local1._parent);
} else {
_local1 = findFocusFromObject(_local1._parent);
}
}
return(_local1);
}
function pressFocus() {
var _local3 = this;
var _local2 = _local3.findFocusFromObject(_local3);
var _local1 = _local3.getFocus();
if (_local2 != _local1) {
_local1.drawFocus(false);
if (_local3.getFocusManager().bDrawFocus != false) {
_local2.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = this;
var _local1 = _local2.findFocusFromObject(_local2);
if (_local1 != _local2.getFocus()) {
_local1.setFocus();
}
}
function isParent(o) {
var _local1 = o;
var _local2 = this;
while (_local1 != undefined) {
if (_local1 == _local2) {
return(true);
}
_local1 = _local1._parent;
}
return(false);
}
function size() {
}
function init() {
var _local1 = this;
super.init();
_local1._xscale = 100;
_local1._yscale = 100;
_local1._focusrect = _global.useFocusRect == false;
_local1.watch("enabled", _local1.enabledChanged);
if (_local1.enabled == false) {
_local1.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.1.78";
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 104 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var enabled, invalidate, dispatchEvent;
function SimpleButton () {
super();
}
function init(Void) {
var _local1 = this;
super.init();
if (_local1.preset == undefined) {
_local1.boundingBox_mc._visible = false;
_local1.boundingBox_mc._width = (_local1.boundingBox_mc._height = 0);
}
_local1.useHandCursor = false;
}
function createChildren(Void) {
var _local1 = this;
if (_local1.preset != undefined) {
var _local2 = _local1[_local1.idNames[_local1.preset]];
_local1[_local1.refNames[_local1.preset]] = _local2;
_local1.skinName = _local2;
if (_local1.falseOverSkin.length == 0) {
_local1.rolloverSkin = _local1.fus;
}
if (_local1.falseOverIcon.length == 0) {
_local1.rolloverIcon = _local1.fui;
}
_local1.initializing = false;
} else if (_local1.__state == true) {
_local1.setStateVar(true);
} else {
if (_local1.falseOverSkin.length == 0) {
_local1.rolloverSkin = _local1.fus;
}
if (_local1.falseOverIcon.length == 0) {
_local1.rolloverIcon = _local1.fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
var _local1 = this;
_local1.linkLength = linkageName.length;
var _local2 = _local1.stateNames[tag] + "Icon";
_local1[_local2] = linkageName;
_local1[_local1.idNames[tag + 8]] = _local2;
_local1.setStateVar(_local1.getState());
}
function changeSkin(tag, linkageName) {
var _local1 = this;
var _local2 = _local1.stateNames[tag] + "Skin";
_local1[_local2] = linkageName;
_local1[_local1.idNames[tag]] = _local2;
_local1.setStateVar(_local1.getState());
}
function viewIcon(varName) {
var _local2 = this;
var _local3 = varName + "Icon";
var _local1 = _local2[_local3];
if (typeof(_local1) == "string") {
var s = _local1;
if (_local2.__emphasized) {
if (_local2[_local1 + "Emphasized"].length > 0) {
_local1 = _local1 + "Emphasized";
}
}
if (_local2[_local1].length == 0) {
return;
}
_local1 = _local2.setIcon(_local2.tagMap[s], _local2[_local1]);
if ((_local1 == undefined) && (_global.isLivePreview)) {
_local1 = _local2.setIcon(0, "ButtonIcon");
}
_local2[_local3] = _local1;
}
_local2.iconName._visible = false;
_local2.iconName = _local1;
_local2.iconName._visible = true;
}
function removeIcons() {
var _local2 = this;
var _local3 = 0;
while (_local3 < 2) {
var _local1 = 8;
while (_local1 < 16) {
_local2.destroyObject(_local2.idNames[_local1]);
_local2[_local2.stateNames[_local1 - 8] + "Icon"] = "";
_local1++;
}
_local3++;
}
_local2.refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local1 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local1);
return(_local1);
}
function calcSize(Void) {
var _local1 = this;
_local1.__width = _local1._width;
_local1.__height = _local1._height;
}
function viewSkin(varName, initObj) {
var _local1 = this;
var _local3 = varName + "Skin";
var _local2 = _local1[_local3];
if (typeof(_local2) == "string") {
var s = _local2;
if (_local1.__emphasized) {
if (_local1[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (_local1[_local2].length == 0) {
return;
}
_local2 = _local1.setSkin(_local1.tagMap[s], _local1[_local2], ((initObj != undefined) ? (initObj) : ({styleName:_local1})));
_local1[_local3] = _local2;
}
_local1.skinName._visible = false;
_local1.skinName = _local2;
_local1.skinName._visible = true;
}
function showEmphasized(e) {
var _local1 = this;
if (e && (!_local1.__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
_local1.__emphaticStyleName = _local1.styleName;
_local1.styleName = emphasizedStyleDeclaration;
}
_local1.__emphatic = true;
} else {
if (_local1.__emphatic) {
_local1.styleName = _local1.__emphaticStyleName;
}
_local1.__emphatic = false;
}
}
function refresh(Void) {
var _local1 = this;
var offset = _local1.getState();
if (_local1.enabled == false) {
_local1.viewIcon("disabled");
_local1.viewSkin("disabled");
} else {
_local1.viewSkin(_local1.phase);
_local1.viewIcon(_local1.phase);
}
_local1.setView(_local1.phase == "down");
_local1.iconName.enabled = _local1.enabled;
}
function setView(offset) {
var _local1 = this;
if (_local1.iconName == undefined) {
} else {
var _local2 = (offset ? (_local1.btnOffset) : 0);
_local1.iconName._x = ((_local1.__width - _local1.iconName._width) / 2) + _local2;
_local1.iconName._y = ((_local1.__height - _local1.iconName._height) / 2) + _local2;
}
}
function setStateVar(state) {
var _local1 = this;
if (state) {
if (_local1.trueOverSkin.length == 0) {
_local1.rolloverSkin = _local1.tus;
} else {
_local1.rolloverSkin = _local1.trs;
}
if (_local1.trueOverIcon.length == 0) {
_local1.rolloverIcon = _local1.tui;
} else {
_local1.rolloverIcon = _local1.tri;
}
_local1.upSkin = _local1.tus;
_local1.downSkin = _local1.tds;
_local1.disabledSkin = _local1.dts;
_local1.upIcon = _local1.tui;
_local1.downIcon = _local1.tdi;
_local1.disabledIcon = _local1.dti;
} else {
if (_local1.falseOverSkin.length == 0) {
_local1.rolloverSkin = _local1.fus;
} else {
_local1.rolloverSkin = _local1.frs;
}
if (_local1.falseOverIcon.length == 0) {
_local1.rolloverIcon = _local1.fui;
} else {
_local1.rolloverIcon = _local1.fri;
}
_local1.upSkin = _local1.fus;
_local1.downSkin = _local1.fds;
_local1.disabledSkin = _local1.dfs;
_local1.upIcon = _local1.fui;
_local1.downIcon = _local1.fdi;
_local1.disabledIcon = _local1.dfi;
}
_local1.__state = state;
}
function setState(state) {
var _local1 = this;
if (state != _local1.__state) {
_local1.setStateVar(state);
_local1.invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
var _local1 = this;
if (_local1.initializing) {
_local1.initializing = false;
_local1.skinName.visible = true;
_local1.iconName.visible = true;
}
_local1.size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
var _local1 = this;
_local1.__toggle = val;
if (_local1.__toggle == false) {
_local1.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) {
var _local1 = this;
if (_local1.__toggle) {
_local1.setState(val);
} else {
_local1.setState((_local1.initializing ? (val) : (_local1.__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
var _local1 = this;
_local1.pressFocus();
_local1.phase = "down";
_local1.refresh();
_local1.dispatchEvent({type:"buttonDown"});
if (_local1.autoRepeat) {
_local1.interval = setInterval(_local1, "onPressDelay", _local1.getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
var _local1 = this;
_local1.dispatchEvent({type:"buttonDown"});
if (_local1.autoRepeat) {
clearInterval(_local1.interval);
_local1.interval = setInterval(_local1, "onPressRepeat", _local1.getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
var _local1 = this;
_local1.releaseFocus();
_local1.phase = "rollover";
if (_local1.interval != undefined) {
clearInterval(_local1.interval);
delete _local1.interval;
}
if (_local1.getToggle()) {
_local1.setState(!_local1.getState());
} else {
_local1.refresh();
}
_local1.dispatchEvent({type:"click"});
}
function onDragOut(Void) {
var _local1 = this;
_local1.phase = "up";
_local1.refresh();
_local1.dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
var _local1 = this;
if (_local1.phase != "up") {
_local1.onPress();
} else {
_local1.phase = "down";
_local1.refresh();
}
}
function onReleaseOutside(Void) {
var _local1 = this;
_local1.releaseFocus();
_local1.phase = "up";
if (_local1.interval != undefined) {
clearInterval(_local1.interval);
delete _local1.interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
var _local1 = this;
var _local3 = val;
if (typeof(_local1.fui) == "string") {
_local1.createLabel("fui", 8, _local3);
_local1.fui.styleName = _local1;
} else {
_local1.fui.text = _local3;
}
var tf = _local1.fui._getTextFormat();
var _local2 = tf.getTextExtent2(_local3);
_local1.fui._width = _local2.width + 5;
_local1.fui._height = _local2.height + 5;
_local1.iconName = _local1.fui;
_local1.setView(_local1.__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
var _local1 = this;
_local1.__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
_local1[_local1.idNames[_local2]] = _local1.stateNames[_local2] + "Skin";
if (typeof(_local1[_local1.idNames[_local2 + 8]]) == "movieclip") {
_local1[_local1.idNames[_local2 + 8]] = _local1.stateNames[_local2] + "Icon";
}
_local2++;
}
_local1.showEmphasized(_local1.__emphasized);
_local1.setStateVar(_local1.__state);
_local1.invalidateStyle();
//return(_local1.__get__emphasized());
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
var _local1 = this;
super.onKillFocus();
if (_local1.phase != "up") {
_local1.phase = "up";
_local1.refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.1.78";
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 275 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __dataProvider, selected;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local2 = obj;
var _local3 = mixinProps;
var l = _local3.length;
_local2 = _local2.prototype;
var _local1 = 0;
while (_local1 < l) {
_local2[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(_local2, "dataProvider", true);
mixins.createProp(_local2, "length", false);
mixins.createProp(_local2, "value", false);
mixins.createProp(_local2, "selectedIndex", true);
mixins.createProp(_local2, "selectedIndices", true);
mixins.createProp(_local2, "selectedItems", false);
mixins.createProp(_local2, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var _local2 = propName;
var p = (_local2.charAt(0).toUpperCase() + _local2.substr(1));
var _local1 = null;
var _local3 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local1 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(_local2, _local3, _local1);
}
function setDataProvider(dP) {
var _local1 = this;
var _local2 = dP;
if (_local1.__vPosition != 0) {
_local1.setVPosition(0);
}
_local1.clearSelected();
_local1.__dataProvider.removeEventListener(_local1);
_local1.__dataProvider = _local2;
_local2.addEventListener("modelChanged", _local1);
_local2.addView(_local1);
_local1.modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
var _local2 = index;
var _local3 = this;
if ((_local2 < 0) || (!_local3.enabled)) {
} else {
var _local1 = _local3.__dataProvider;
if (_local1 == undefined) {
_local1 = (_local3.__dataProvider = new Array());
_local1.addEventListener("modelChanged", _local3);
_local2 = 0;
}
if ((typeof(label) == "object") || (typeof(_local1.getItemAt(0)) == "string")) {
_local1.addItemAt(_local2, label);
} else {
_local1.addItemAt(_local2, {label:label, data:data});
}
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
var _local1 = newLabel;
if (typeof(_local1) == "object") {
__dataProvider.replaceItemAt(index, _local1);
} else {
__dataProvider.replaceItemAt(index, {label:_local1, data:newData});
}
}
function sortItemsBy(fieldName, order) {
var _local1 = this;
_local1.lastSelID = _local1.__dataProvider.getItemID(_local1.lastSelected);
_local1.__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
var _local1 = this;
_local1.lastSelID = _local1.__dataProvider.getItemID(_local1.lastSelected);
_local1.__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local1 = this;
var _local3 = eventObj.firstItem;
var lastItem = eventObj.lastItem;
var event = eventObj.eventName;
if (event == undefined) {
event = eventObj.event;
_local3 = eventObj.firstRow;
lastItem = eventObj.lastRow;
if (event == "addRows") {
event = (eventObj.eventName = "addItems");
} else if (event == "deleteRows") {
event = (eventObj.eventName = "removeItems");
} else if (event == "updateRows") {
event = (eventObj.eventName = "updateItems");
}
}
if (event == "addItems") {
for (var _local2 in _local1.selected) {
var ind = _local1.selected[_local2];
if ((ind != undefined) && (ind >= _local3)) {
_local1.selected[_local2] = _local1.selected[_local2] + ((lastItem - _local3) + 1);
}
}
} else if (event == "removeItems") {
if (_local1.__dataProvider.length == 0) {
delete _local1.selected;
} else {
var removedIDs = eventObj.removedIDs;
var len = removedIDs.length;
var _local2 = 0;
while (_local2 < len) {
var id = removedIDs[_local2];
if (_local1.selected[id] != undefined) {
delete _local1.selected[id];
}
_local2++;
}
for (_local2 in _local1.selected) {
if (_local1.selected[_local2] >= _local3) {
_local1.selected[_local2] = _local1.selected[_local2] - ((lastItem - _local3) + 1);
}
}
}
} else if (event == "sort") {
if (typeof(_local1.__dataProvider.getItemAt(0)) != "object") {
delete _local1.selected;
} else {
var len = _local1.__dataProvider.length;
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var id = _local1.__dataProvider.getItemID(_local2);
if (id == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[id] = _local2;
}
_local2++;
}
}
} else if (event == "filterModel") {
_local1.setVPosition(0);
}
_local1.invUpdateControl = true;
_local1.invalidate();
}
function getValue(Void) {
var _local1 = getSelectedItem();
if (typeof(_local1) != "object") {
return(_local1);
}
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
}
function getSelectedIndex(Void) {
var _local2 = this;
for (var _local3 in _local2.selected) {
var _local1 = _local2.selected[_local3];
if (_local1 != undefined) {
return(_local1);
}
}
return(undefined);
}
function setSelectedIndex(index) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.__dataProvider.length)) && (_local1.enabled)) {
delete _local1.selected;
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invUpdateControl = true;
_local1.invalidate();
} else if (_local2 == undefined) {
_local1.clearSelected();
}
}
function getSelectedIndices(Void) {
var _local1 = this;
var _local2 = new Array();
for (var _local3 in _local1.selected) {
_local2.push(_local1.selected[_local3]);
}
_local2.reverse();
if (_local2.length <= 0) {
return(undefined);
}
return(_local2);
}
function setSelectedIndices(indexArray) {
var _local3 = this;
if (_local3.multipleSelection != true) {
} else {
delete _local3.selected;
var _local2 = 0;
while (_local2 < indexArray.length) {
var _local1 = indexArray[_local2];
if ((_local1 >= 0) && (_local1 < _local3.__dataProvider.length)) {
_local3.selectItem(_local1, true);
}
_local2++;
}
_local3.invUpdateControl = true;
_local3.updateControl();
}
}
function getSelectedItems(Void) {
var _local2 = getSelectedIndices();
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(getItemAt(_local2[_local1]));
_local1++;
}
if (_local3.length <= 0) {
return(undefined);
}
return(_local3);
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
var _local1 = this;
var _local3 = index;
if (_local1.selected == undefined) {
_local1.selected = new Object();
}
var _local2 = _local1.__dataProvider.getItemID(_local3);
if (_local2 == undefined) {
} else if (selectedFlag && (!_local1.isSelected(_local3))) {
_local1.selected[_local2] = _local3;
} else if (!selectedFlag) {
delete _local1.selected[_local2];
}
}
function isSelected(index) {
var _local1 = __dataProvider.getItemID(index);
if (_local1 == undefined) {
return(false);
}
return(selected[_local1] != undefined);
}
function clearSelected(transition) {
var _local1 = this;
var _local3 = 0;
for (var uniqueID in _local1.selected) {
var _local2 = _local1.selected[uniqueID];
if (((_local2 != undefined) && (_local1.__vPosition <= _local2)) && (_local2 < (_local1.__vPosition + _local1.__rowCount))) {
_local1.rows[_local2 - _local1.__vPosition].drawRow(_local1.rows[_local2 - _local1.__vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete _local1.selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 276 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, text_mc, getFocusManager, __get__height, downArrow_mc, border_mc, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
var _local1 = this;
super.init();
_local1.tabEnabled = !_local1._editable;
_local1.tabChildren = _local1._editable;
_local1.boundingBox_mc._visible = false;
_local1.boundingBox_mc._width = (_local1.boundingBox_mc._height = 0);
}
function createChildren() {
var _local1 = this;
var _local2 = new Object();
_local2.styleName = _local1;
if (_local1.downArrow_mc == undefined) {
_local2.falseUpSkin = _local1.downArrowUpName;
_local2.falseOverSkin = _local1.downArrowOverName;
_local2.falseDownSkin = _local1.downArrowDownName;
_local2.falseDisabledSkin = _local1.downArrowDisabledName;
_local2.validateNow = true;
_local2.tabEnabled = false;
_local1.createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local2);
_local1.downArrow_mc.buttonDownHandler = _local1.onDownArrow;
_local1.downArrow_mc.useHandCursor = false;
_local1.downArrow_mc.onPressWas = _local1.downArrow_mc.onPress;
_local1.downArrow_mc.onPress = function () {
var _local1 = this;
_local1.trackAsMenuWas = _local1.trackAsMenu;
_local1.trackAsMenu = true;
if (!_local1._editable) {
_local1._parent.text_mc.trackAsMenu = _local1.trackAsMenu;
}
_local1.onPressWas();
};
_local1.downArrow_mc.onDragOutWas = _local1.downArrow_mc.onDragOut;
_local1.downArrow_mc.onDragOut = function () {
var _local1 = this;
_local1.trackAsMenuWas = _local1.trackAsMenu;
_local1.trackAsMenu = false;
if (!_local1._editable) {
_local1._parent.text_mc.trackAsMenu = _local1.trackAsMenu;
}
_local1.onDragOutWas();
};
_local1.downArrow_mc.onDragOverWas = _local1.downArrow_mc.onDragOver;
_local1.downArrow_mc.onDragOver = function () {
var _local1 = this;
_local1.trackAsMenu = _local1.trackAsMenuWas;
if (!_local1._editable) {
_local1._parent.text_mc.trackAsMenu = _local1.trackAsMenu;
}
_local1.onDragOverWas();
};
}
if (_local1.border_mc == undefined) {
_local2.tabEnabled = false;
_local1.createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local2);
_local1.border_mc.move(0, 0);
_local1.__border = _local1.border_mc;
}
_local2.borderStyle = "none";
_local2.readOnly = !_local1._editable;
_local2.tabEnabled = _local1._editable;
if (_local1.text_mc == undefined) {
_local1.createClassObject(mx.controls.TextInput, "text_mc", 18, _local2);
_local1.text_mc.move(0, 0);
_local1.text_mc.addEnterEvents();
_local1.text_mc.enterHandler = _local1._enterHandler;
_local1.text_mc.changeHandler = _local1._changeHandler;
_local1.text_mc.oldOnSetFocus = _local1.text_mc.onSetFocus;
_local1.text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
_local1.text_mc.__set__restrict("^\x1B");
_local1.text_mc.oldOnKillFocus = _local1.text_mc.onKillFocus;
_local1.text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
_local1.text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete _local1.text_mc.borderStyle;
}
_local1.focusTextField = _local1.text_mc;
_local1.text_mc.owner = _local1;
_local1.layoutChildren(_local1.__width, _local1.__height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
var _local1 = this;
if (_local1._editable) {
Selection.setFocus(_local1.text_mc);
} else {
Selection.setFocus(_local1);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
var _local1 = enabledFlag;
super.setEnabled(_local1);
downArrow_mc.enabled = _local1;
text_mc.enabled = _local1;
}
function setEditable(e) {
var _local1 = this;
var _local2 = e;
_local1._editable = _local2;
if (_local1.wrapDownArrowButton == false) {
if (_local2) {
_local1.border_mc.borderStyle = "inset";
_local1.text_mc.borderStyle = "inset";
symbolName = "ComboBox";
_local1.invalidateStyle();
} else {
_local1.border_mc.borderStyle = "comboNonEdit";
_local1.text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
_local1.invalidateStyle();
}
}
_local1.tabEnabled = !_local2;
_local1.tabChildren = _local2;
_local1.text_mc.tabEnabled = _local2;
if (_local2) {
delete _local1.text_mc.onPress;
delete _local1.text_mc.onRelease;
delete _local1.text_mc.onReleaseOutside;
delete _local1.text_mc.onDragOut;
delete _local1.text_mc.onDragOver;
delete _local1.text_mc.onRollOver;
delete _local1.text_mc.onRollOut;
} else {
_local1.text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
_local1.text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
_local1.text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
_local1.text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
_local1.text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
_local1.text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
_local1.text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
_local1.text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
var _local1 = this;
if (!_local1._editable) {
return(_local1.DSgetValue());
}
return(_local1.text_mc.getText());
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
var _local1 = this;
_local1.layoutChildren(_local1.__width, _local1.__height);
}
function setTheme(t) {
var _local1 = t;
var _local2 = this;
_local2.downArrowUpName = (_local1 + "downArrow") + "Up_mc";
_local2.downArrowDownName = (_local1 + "downArrow") + "Down_mc";
_local2.downArrowDisabledName = (_local1 + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
var _local1 = this;
_local1.downArrow_mc.invalidateStyle();
_local1.text_mc.invalidateStyle();
_local1.border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
var _local1 = this;
var _local3 = w;
if (_local1.downArrow_mc == undefined) {
} else if (_local1.wrapDownArrowButton) {
var _local2 = _local1.border_mc.__get__borderMetrics();
_local1.downArrow_mc._width = (_local1.downArrow_mc._height = (h - _local2.top) - _local2.bottom);
_local1.downArrow_mc.move((_local3 - _local1.downArrow_mc._width) - _local2.right, _local2.top);
_local1.border_mc.setSize(_local3, h);
_local1.text_mc.setSize(_local3 - _local1.downArrow_mc._width, h);
} else {
_local1.downArrow_mc.move(_local3 - _local1.downArrow_mc._width, 0);
_local1.border_mc.setSize(_local3 - _local1.downArrow_mc.width, h);
_local1.text_mc.setSize(_local3 - _local1.downArrow_mc._width, h);
_local1.downArrow_mc._height = _local1.height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local1 = _parent;
obj.target = _local1;
_local1.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.1.78";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 105 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 122 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height;
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 = this;
var _local1 = _local2.offset;
if (_local2.__borderMetrics == undefined) {
_local2.__borderMetrics = {left:_local1, top:_local1, right:_local1, bottom:_local1};
} else {
_local2.__borderMetrics.left = _local1;
_local2.__borderMetrics.top = _local1;
_local2.__borderMetrics.right = _local1;
_local2.__borderMetrics.bottom = _local1;
}
return(_local2.__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.1.78";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 288 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, label, enterListener;
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() {
var _local1 = this;
if (_local1.enterListener == undefined) {
_local1.enterListener = new Object();
_local1.enterListener.owner = _local1;
_local1.enterListener.onKeyDown = _local1.enterOnKeyDown;
}
}
function init(Void) {
var _local1 = this;
super.init();
_local1.label.styleName = _local1;
_local1.tabChildren = true;
_local1.tabEnabled = false;
_local1.focusTextField = _local1.label;
_local1._color = mx.core.UIObject.textColorList;
_local1.label.onSetFocus = function () {
this._parent.onSetFocus();
};
_local1.label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
_local1.label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
_local1.label.onChanged = _local1.onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
var _local1 = this;
_local1._parent.dispatchEvent({type:"change"});
_local1._parent.dispatchValueChangedEvent(_local1.__get__text());
}
function createChildren(Void) {
var _local1 = this;
super.createChildren();
if (_local1.border_mc == undefined) {
_local1.createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:_local1});
}
_local1.border_mc.swapDepths(_local1.label);
_local1.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() {
var _local1 = this;
if (_local1.initializing) {
return(_local1.initText);
}
if (_local1.label.html == true) {
return(_local1.label.htmlText);
}
return(_local1.label.text);
}
function setText(t) {
var _local2 = t;
var _local3 = this;
if (_local3.initializing) {
_local3.initText = _local2;
} else {
var _local1 = _local3.label;
if (_local1.html == true) {
_local1.htmlText = _local2;
} else {
_local1.text = _local2;
}
}
_local3.dispatchValueChangedEvent(_local2);
}
function size(Void) {
var _local1 = this;
_local1.border_mc.setSize(_local1.__get__width(), _local1.__get__height());
var _local2 = _local1.border_mc.__get__borderMetrics();
var bW = (_local2.left + _local2.right);
var _local3 = _local2.top + _local2.bottom;
var bX = _local2.left;
var bY = _local2.top;
_local1.tfx = bX;
_local1.tfy = bY;
_local1.tfw = _local1.__get__width() - bW;
_local1.tfh = _local1.__get__height() - _local3;
_local1.label.move(_local1.tfx, _local1.tfy);
_local1.label.setSize(_local1.tfw, _local1.tfh + 1);
}
function setEnabled(enable) {
var _local1 = this;
var _local3 = enable;
_local1.label.type = (((_local1.__editable == true) || (_local3 == false)) ? "input" : "dynamic");
_local1.label.selectable = _local3;
var _local2 = _local1.getStyle((_local3 ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (_local3 ? 0 : 8947848);
}
_local1.setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
var _local1 = this;
if (_local1.enterListener != undefined) {
Key.removeListener(_local1.enterListener);
}
if (_local1.bind != undefined) {
_local1.updateModel(_local1.__get__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 = this;
var _local1 = _local2.label;
var t = _local2.getText();
if (_local2.initializing) {
_local2.initializing = false;
delete _local2.initText;
}
var _local3 = _local2._getTextFormat();
_local1.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local1.setTextFormat(_local3);
_local1.setNewTextFormat(_local3);
}
_local1.multiline = false;
_local1.wordWrap = false;
if (_local1.html == true) {
_local1.setTextFormat(_local3);
_local1.htmlText = t;
} else {
_local1.text = t;
}
_local1.type = (((_local2.__editable == true) || (_local2.enabled == false)) ? "input" : "dynamic");
_local2.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.1.78";
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 277 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __labels, __labelFunction, __dropdown, length, __dropdownWidth, selectedItem, _parent, owner, selectedIndex, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
var _local2 = this;
super.createChildren();
_local2.__set__editable(_local2.editable);
if (_local2.__labels.length > 0) {
var dp = new Array();
var _local1 = 0;
while (_local1 < _local2.labels.length) {
dp.addItem({label:_local2.labels[_local1], data:_local2.data[_local1]});
_local1++;
}
_local2.setDataProvider(dp);
}
_local2.__set__dropdownWidth(((typeof(_local2.__dropdownWidth) == "number") ? (_local2.__dropdownWidth) : (_local2.__width)));
if (!_local2._editable) {
_local2.selectedIndex = 0;
}
_local2.initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
var _local1 = this;
if (_local1.initializing) {
return(undefined);
}
if (!_local1.hasDropdown()) {
var _local2 = new Object();
_local2.styleName = _local1;
if (_local1.dropdownBorderStyle != undefined) {
_local2.borderStyle = _local1.dropdownBorderStyle;
}
_local2._visible = false;
_local1.__dropdown = mx.managers.PopUpManager.createPopUp(_local1, mx.controls.List, false, _local2, true);
_local1.__dropdown.scroller.mask.removeMovieClip();
if (_local1.dataProvider == undefined) {
_local1.dataProvider = new Array();
}
_local1.__dropdown.setDataProvider(_local1.dataProvider);
_local1.__dropdown.selectMultiple = false;
_local1.__dropdown.rowCount = _local1.__rowCount;
_local1.__dropdown.selectedIndex = _local1.selectedIndex;
_local1.__dropdown.vScrollPolicy = "auto";
_local1.__dropdown.labelField = _local1.__labelField;
_local1.__dropdown.labelFunction = _local1.__labelFunction;
_local1.__dropdown.owner = _local1;
_local1.__dropdown.changeHandler = _local1._changeHandler;
_local1.__dropdown.scrollHandler = _local1._scrollHandler;
_local1.__dropdown.itemRollOverHandler = _local1._itemRollOverHandler;
_local1.__dropdown.itemRollOutHandler = _local1._itemRollOutHandler;
_local1.__dropdown.resizeHandler = _local1._resizeHandler;
_local1.__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this;
var _local1 = _local3.owner;
var _local2 = new Object();
_local2.x = _local1._root._xmouse;
_local2.y = _local1._root._ymouse;
_local1._root.localToGlobal(_local2);
if (_local1.hitTest(_local2.x, _local2.y, false)) {
} else if ((!_local3.wrapDownArrowButton) && (_local3.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local1.displayDropdown(false);
}
};
_local1.__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
_local1.__dropdown.setSize(_local1.__dropdownWidth, _local1.__dropdown.height);
_local1.createObject("BoundingBox", "mask", 20);
_local1.mask._y = _local1.border_mc.height;
_local1.mask._width = _local1.__dropdownWidth;
_local1.mask._height = _local1.__dropdown.height;
_local1.mask._visible = false;
_local1.__dropdown.setMask(_local1.mask);
}
return(_local1.__dropdown);
}
function setSize(w, h, noEvent) {
var _local1 = this;
super.setSize(w, h, noEvent);
_local1.__dropdownWidth = w;
_local1.__dropdown.rowHeight = h;
_local1.__dropdown.setSize(_local1.__dropdownWidth, _local1.__dropdown.height);
}
function setEditable(e) {
var _local1 = this;
super.setEditable(e);
if (e) {
_local1.text_mc.setText("");
} else {
_local1.text_mc.setText(_local1.__get__selectedLabel());
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
var _local1 = this;
_local1.__labels = lbls;
_local1.setDataProvider(lbls);
//return(_local1.__get__labels());
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
var _local1 = this;
_local1.__dropdown.labelField = (_local1.__labelField = s);
_local1.text_mc.setText(_local1.__get__selectedLabel());
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
var _local1 = this;
_local1.__dropdown.labelFunction = (_local1.__labelFunction = f);
_local1.text_mc.setText(_local1.__get__selectedLabel());
//return(_local1.__get__labelFunction());
}
function setSelectedItem(v) {
var _local1 = this;
super.setSelectedItem(v);
_local1.__dropdown.selectedItem = v;
_local1.text_mc.setText(_local1.__get__selectedLabel());
}
function setSelectedIndex(v) {
var _local1 = this;
var _local2 = v;
super.setSelectedIndex(_local2);
_local1.__dropdown.selectedIndex = _local2;
if (_local2 != undefined) {
_local1.text_mc.setText(_local1.__get__selectedLabel());
}
_local1.dispatchValueChangedEvent(_local1.getValue());
}
function setRowCount(count) {
var _local1 = count;
if (isNaN(_local1)) {
} else {
__rowCount = _local1;
__dropdown.setRowCount(_local1);
}
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
var _local1 = this;
_local1.__dropdownWidth = w;
_local1.__dropdown.setSize(w, _local1.__dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
var _local1 = this;
super.setDataProvider(dp);
_local1.__dropdown.setDataProvider(dp);
if (!_local1._editable) {
_local1.selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local1 = selectedItem;
if (_local1 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local1));
}
if (typeof(_local1) != "object") {
return(_local1);
}
if (_local1[labelField] != undefined) {
return(_local1[labelField]);
}
if (_local1.label != undefined) {
return(_local1.label);
}
var _local2 = " ";
for (var _local3 in _local1) {
if (_local3 != "__ID__") {
_local2 = (_local1[_local3] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 3);
return(_local2);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
var _local1 = this;
_local1._y = value;
_local1.isPressed = true;
_local1.owner.dispatchEvent({type:"open", target:_local1.owner});
}
function tweenEndHide(value) {
var _local1 = this;
_local1._y = value;
_local1.__set__visible(false);
_local1.owner.dispatchEvent({type:"close", target:_local1.owner});
}
function displayDropdown(show) {
var _local1 = this;
if (show == _local1._showingDropdown) {
} else {
var _local3 = new Object();
_local3.x = 0;
_local3.y = _local1.height;
_local1.localToGlobal(_local3);
if (show) {
_local1.__selectedIndexOnDropdown = _local1.selectedIndex;
_local1.getDropdown();
var _local2 = _local1.__dropdown;
_local2.isPressed = true;
_local2.rowCount = _local1.rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = _local1.tweenEndShow;
var initVal;
var endVal;
if ((_local3.y + _local2.height) > Stage.height) {
initVal = _local3.y - _local1.__get__height();
endVal = initVal - _local2.height;
_local1.mask._y = -_local2.height;
} else {
initVal = _local3.y - _local2.height;
endVal = _local3.y;
_local1.mask._y = _local1.border_mc.height;
}
var sel = _local2.selectedIndex;
if (sel == undefined) {
sel = 0;
}
var pos = _local2.vPosition;
pos = sel - 1;
pos = Math.min(Math.max(pos, 0), _local2.length - _local2.rowCount);
_local2.vPosition = pos;
_local2.move(_local3.x, initVal);
_local2.tween = new mx.effects.Tween(_local1.__dropdown, initVal, endVal, _local1.getStyle("openDuration"));
} else {
_local1.__dropdown._parent.globalToLocal(_local3);
delete _local1.__dropdown.dragScrolling;
_local1.__dropdown.onTweenEnd = _local1.tweenEndHide;
_local1.__dropdown.tween = new mx.effects.Tween(_local1.__dropdown, _local1.__dropdown._y, _local3.y - _local1.__dropdown.height, _local1.getStyle("openDuration"));
}
var ease = _local1.getStyle("openEasing");
if (ease != undefined) {
_local1.__dropdown.tween.easingEquation = ease;
}
_local1._showingDropdown = show;
}
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
var _local1 = this;
var _local2 = e;
if (_local2.ctrlKey && (_local2.code == 40)) {
_local1.displayDropdown(true);
} else if (_local2.ctrlKey && (_local2.code == 38)) {
_local1.displayDropdown(false);
_local1.dispatchChangeEvent(undefined, _local1.__selectedIndexOnDropdown, _local1.selectedIndex);
} else if (_local2.code == 27) {
_local1.displayDropdown(false);
} else if (_local2.code == 13) {
if (_local1._showingDropdown) {
_local1.selectedIndex = _local1.__dropdown.selectedIndex;
_local1.displayDropdown(false);
_local1.dispatchChangeEvent(undefined, _local1.__selectedIndexOnDropdown, _local1.selectedIndex);
}
} else if (((((!_local1._editable) || (_local2.code == 38)) || (_local2.code == 40)) || (_local2.code == 33)) || (_local2.code == 34)) {
_local1.selectedIndex = 0 + _local1.selectedIndex;
_local1.bInKeyDown = true;
var _local3 = _local1.__get__dropdown();
_local3.keyDown(_local2);
_local1.bInKeyDown = false;
_local1.selectedIndex = _local1.__dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
var _local1 = this;
var _local2 = styleProp;
if (_local1.dropdown.stylecache != undefined) {
delete _local1.dropdown.stylecache[_local2];
delete _local1.dropdown.stylecache.tf;
}
_local1.__dropdown.changeTextStyleInChildren(_local2);
super.changeTextStyleInChildren(_local2);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
var _local1 = this;
var _local2 = styleProp;
if (_local1.dropdown.stylecache != undefined) {
delete _local1.dropdown.stylecache[_local2];
delete _local1.dropdown.stylecache.tf;
}
_local1.__dropdown.changeColorStyleInChildren(sheetName, _local2, newValue);
super.changeColorStyleInChildren(sheetName, _local2, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local1 = this;
var _local2 = styleProp;
if (_local1.dropdown.stylecache != undefined) {
delete _local1.dropdown.stylecache[_local2];
delete _local1.dropdown.stylecache.tf;
}
_local1.__dropdown.notifyStyleChangeInChildren(sheetName, _local2, newValue);
super.notifyStyleChangeInChildren(sheetName, _local2, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = this;
var _local1 = _local2.owner;
_local1.mask._width = _local2.width;
_local1.mask._height = _local2.height;
}
function _changeHandler(obj) {
var _local3 = obj;
var _local1 = owner;
var _local2 = _local1.selectedIndex;
_local3.target = _local1;
if (this == owner.text_mc) {
_local1.selectedIndex = undefined;
_local1.dispatchChangeEvent(_local3, -1, -2);
} else {
_local1.selectedIndex = selectedIndex;
if (!_local1._showingDropdown) {
_local1.dispatchChangeEvent(_local3, _local2, _local1.selectedIndex);
} else if (!_local1.bInKeyDown) {
_local1.displayDropdown(false);
_local1.dispatchChangeEvent(_local3, _local2, _local1.selectedIndex);
}
}
}
function _scrollHandler(obj) {
var _local1 = owner;
obj.target = _local1;
_local1.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local1 = owner;
obj.target = _local1;
_local1.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local1 = owner;
obj.target = _local1;
_local1.dispatchEvent(obj);
}
function modelChanged(eventObj) {
var _local1 = this;
var _local2 = eventObj;
super.modelChanged(_local2);
if (0 == _local1.__dataProvider.length) {
_local1.text_mc.setText("");
delete _local1.selected;
} else if ((_local1.__dataProvider.length == ((_local2.lastItem - _local2.firstItem) + 1)) && (_local2.eventName == "addItems")) {
_local1.selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2 = obj;
var _local1;
if (prevValue != newValue) {
if ((_local2 != undefined) && (_local2.type == "change")) {
_local1 = _local2;
} else {
_local1 = {type:"change"};
}
dispatchEvent(_local1);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.1.78";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 289 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager
{
var setSize, move, modalWindow, _visible;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = o;
var _local1 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local1.setDepthBelow(_local2);
_local2.modalID = _local1._name;
_local1._alpha = _global.style.modalTransparency;
_local1.tabEnabled = false;
if (broadcastOutsideEvents) {
_local1.onPress = mixins.onPress;
} else {
_local1.onPress = mixins.nullFunction;
}
_local1.onRelease = mixins.nullFunction;
_local1.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local1);
_local1.resize();
_local1.useHandCursor = false;
_local1.popUp = _local2;
_local2.modalWindow = _local1;
_local2.deletePopUp = mixins.deletePopUp;
_local2.setVisible = mixins.setVisible;
_local2.getVisible = mixins.getVisible;
_local2.addProperty("visible", _local2.getVisible, _local2.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
var _local2 = parent;
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var localRoot = _local2._root;
if (localRoot == undefined) {
localRoot = _root;
}
while (_local2 != localRoot) {
_local2 = _local2._parent;
}
initobj.popUp = true;
var _local3 = _local2.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local1 = _root;
var useFocusManager = (_local1.focusManager != undefined);
while (_local1._parent != undefined) {
_local1 = _local1._parent._root;
if (_local1.focusManager != undefined) {
useFocusManager = true;
break;
}
}
if (useFocusManager) {
_local3.createObject("FocusManager", "focusManager", -1);
if (_local3._visible == false) {
mx.managers.SystemManager.deactivate(_local3);
}
}
if (modal) {
createModalWindow(_local2, _local3, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local3.mouseListener = new Object();
_local3.mouseListener.owner = _local3;
_local3.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local3.mouseListener);
}
_local3.deletePopUp = mixins.deletePopUp;
}
return(_local3);
}
function onPress(Void) {
var _local2 = this;
var _local1 = _local2.popUp._root;
if (_local1 == undefined) {
_local1 = _root;
}
if (_local2.popUp.hitTest(_local1._xmouse, _local1._ymouse, false)) {
} else {
_local2.popUp.dispatchEvent({type:"mouseDownOutside"});
}
}
function nullFunction(Void) {
}
function resize(Void) {
var _local1 = mx.managers.SystemManager.__get__screen();
setSize(_local1.width, _local1.height);
move(_local1.x, _local1.y);
}
function deletePopUp(Void) {
var _local1 = this;
if (_local1.modalWindow != undefined) {
_local1._parent.destroyObject(_local1.modalWindow._name);
}
_local1._parent.destroyObject(_local1._name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = this;
var _local1 = _local3.owner._root;
if (_local1 == undefined) {
_local1 = _root;
}
var _local2 = new Object();
_local2.x = _local1._xmouse;
_local2.y = _local1._ymouse;
_local1.localToGlobal(_local2);
if (_local3.owner.hitTest(_local2.x, _local2.y, false)) {
} else {
_local3.owner.mouseDownOutsideHandler(_local3.owner);
}
}
static var version = "2.0.1.78";
static var mixins = undefined;
}
Symbol 115 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _parent, getDepth, swapDepths;
function DepthManager () {
var _local1 = _global;
var _local2 = this;
MovieClip.prototype.createClassChildAtDepth = _local2.createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = _local2.createChildAtDepth;
MovieClip.prototype.setDepthTo = _local2.setDepthTo;
MovieClip.prototype.setDepthAbove = _local2.setDepthAbove;
MovieClip.prototype.setDepthBelow = _local2.setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = _local2.findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = _local2.shuffleDepths;
MovieClip.prototype.getDepthByFlag = _local2.getDepthByFlag;
MovieClip.prototype.buildDepthTable = _local2.buildDepthTable;
_local1.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_local1.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_local1.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_local1.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_local1.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_local1.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_local1.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_local1.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_local1.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);
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);
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
var _local1 = this;
if (_local1._childCounter == undefined) {
_local1._childCounter = 0;
}
var _local3 = _local1.buildDepthTable();
var _local2 = _local1.getDepthByFlag(depthFlag, _local3);
var shuffleDir = "down";
if (depthFlag == kBottom) {
shuffleDir = "up";
}
var desiredDepth = undefined;
if (_local3[_local2] != undefined) {
desiredDepth = _local2;
_local2 = _local1.findNextAvailableDepth(_local2, _local3, shuffleDir);
}
var o = _local1.createClassObject(className, "depthChild" + (_local1._childCounter++), _local2, initObj);
if (desiredDepth != undefined) {
_local3[_local2] = o;
_local1.shuffleDepths(o, desiredDepth, _local3, shuffleDir);
}
if (depthFlag == kTopmost) {
o._topmost = true;
}
return(o);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
var _local1 = this;
if (_local1._childCounter == undefined) {
_local1._childCounter = 0;
}
var _local3 = _local1.buildDepthTable();
var _local2 = _local1.getDepthByFlag(depthFlag, _local3);
var shuffleDir = "down";
if (depthFlag == kBottom) {
shuffleDir = "up";
}
var desiredDepth = undefined;
if (_local3[_local2] != undefined) {
desiredDepth = _local2;
_local2 = _local1.findNextAvailableDepth(_local2, _local3, shuffleDir);
}
var o = _local1.createObject(linkageName, "depthChild" + (_local1._childCounter++), _local2, initObj);
if (desiredDepth != undefined) {
_local3[_local2] = o;
_local1.shuffleDepths(o, desiredDepth, _local3, shuffleDir);
}
if (depthFlag == kTopmost) {
o._topmost = true;
}
return(o);
}
function setDepthTo(depthFlag) {
var _local1 = this;
var _local2 = _local1._parent.buildDepthTable();
var _local3 = _local1._parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
_local1.shuffleDepths(_local1, _local3, _local2, undefined);
} else {
_local1.swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_local1._topmost = true;
} else {
delete _local1._topmost;
}
}
function setDepthAbove(targetInstance) {
var _local2 = this;
if (targetInstance._parent != _local2._parent) {
} else {
var _local1 = targetInstance.getDepth() + 1;
var _local3 = _local2._parent.buildDepthTable();
if ((_local3[_local1] != undefined) && (_local2.getDepth() < _local1)) {
_local1 = _local1 - 1;
}
if (_local1 > highestDepth) {
_local1 = highestDepth;
}
if (_local1 == highestDepth) {
_local2._parent.shuffleDepths(_local2, _local1, _local3, "down");
} else if (_local3[_local1] != undefined) {
_local2._parent.shuffleDepths(_local2, _local1, _local3, undefined);
} else {
_local2.swapDepths(_local1);
}
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
} else {
var targetDepth = (targetInstance.getDepth() - 1);
var _local2 = _parent.buildDepthTable();
if ((_local2[targetDepth] != undefined) && (getDepth() > targetDepth)) {
targetDepth = targetDepth + 1;
}
var _local3 = lowestDepth + numberOfAuthortimeLayers;
var i;
for (i in _local2) {
var _local1 = _local2[i];
if (_local1._parent != undefined) {
_local3 = Math.min(_local3, _local1.getDepth());
}
}
if (targetDepth < _local3) {
targetDepth = _local3;
}
if (targetDepth == _local3) {
_parent.shuffleDepths(this, targetDepth, _local2, "up");
} else if (_local2[targetDepth] != undefined) {
_parent.shuffleDepths(this, targetDepth, _local2, undefined);
} else {
swapDepths(targetDepth);
}
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local3 = depthTable;
var highestAuthoringDepth = (lowestDepth + numberOfAuthortimeLayers);
if (targetDepth < highestAuthoringDepth) {
targetDepth = highestAuthoringDepth;
}
if (_local3[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (_local3[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (_local3[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local2 = subject;
var lowestDepth = (lowestDepth + numberOfAuthortimeLayers);
var highestAuthoringDepth = lowestDepth;
var i;
for (i in depthTable) {
var x = depthTable[i];
if (x._parent != undefined) {
lowestDepth = Math.min(lowestDepth, x.getDepth());
}
}
if (direction == undefined) {
if (_local2.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (i in depthTable) {
var x = depthTable[i];
if (x._parent != undefined) {
_local1.push(x);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var lastd;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != _local2);
do {
if (_local1.length <= 0) {
break;
}
lastd = _local2.getDepth();
_local3 = _local1.pop();
var d = _local3.getDepth();
if (lastd > (d + 1)) {
if (d >= 0) {
_local2.swapDepths(d + 1);
} else if ((lastd > highestAuthoringDepth) && (d < highestAuthoringDepth)) {
_local2.swapDepths(highestAuthoringDepth);
}
}
_local2.swapDepths(_local3);
} while (d != targetDepth);
} else if (direction == "down") {
var _local3;
var lastd;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != _local2);
do {
if (_local1.length <= 0) {
break;
}
lastd = _local3.getDepth();
_local3 = _local1.shift();
var d = _local3.getDepth();
if ((lastd < (d - 1)) && (d > 0)) {
_local2.swapDepths(d - 1);
}
_local2.swapDepths(_local3);
} while (d != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local1 = depthTable;
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var lowestTopmost = 0;
var anyTopmost = false;
var j;
for (j in _local1) {
var i = _local1[j];
var _local3 = typeof(i);
if ((_local3 == "movieclip") || ((_local3 == "object") && (i.__getTextFormat != undefined))) {
if (i.getDepth() <= highestDepth) {
if (!i._topmost) {
_local2 = Math.max(_local2, i.getDepth());
} else if (!anyTopmost) {
lowestTopmost = i.getDepth();
anyTopmost = true;
} else {
lowestTopmost = Math.min(lowestTopmost, i.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (anyTopmost) {
if (_local2 >= lowestTopmost) {
_local2 = lowestTopmost - 1;
}
}
} else if (depthFlag == kBottom) {
var j;
for (j in _local1) {
var i = _local1[j];
var _local3 = typeof(i);
if ((_local3 == "movieclip") || ((_local3 == "object") && (i.__getTextFormat != undefined))) {
if (i.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, i.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
var j;
for (j in _local1) {
var i = _local1[j];
var _local3 = typeof(i);
if ((_local3 == "movieclip") || ((_local3 == "object") && (i.__getTextFormat != undefined))) {
if (i.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, i.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var lowestDepth = (lowestDepth + numberOfAuthortimeLayers);
var i;
for (i in _local1) {
var x = _local1[i];
if (x._parent != undefined) {
lowestDepth = Math.min(lowestDepth, x.getDepth());
}
}
if (_local2 <= lowestDepth) {
_local2 = lowestDepth;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local3 = this;
var depthTable = new Array();
var j;
for (j in _local3) {
var _local1 = _local3[j];
var _local2 = typeof(_local1);
if ((_local2 == "movieclip") || ((_local2 == "object") && (_local1.__getTextFormat != undefined))) {
if (_local1._parent == _local3) {
depthTable[_local1.getDepth()] = _local1;
}
}
}
return(depthTable);
}
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 116 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 w = Stage.width;
var h = Stage.height;
var m = _global.origWidth;
var n = _global.origHeight;
var _local1 = Stage.align;
var _local3 = (m - w) / 2;
var _local2 = (n - h) / 2;
if (_local1 == "T") {
_local2 = 0;
} else if (_local1 == "B") {
_local2 = n - h;
} else if (_local1 == "L") {
_local3 = 0;
} else if (_local1 == "R") {
_local3 = m - w;
} else if (_local1 == "LT") {
_local2 = 0;
_local3 = 0;
} else if (_local1 == "TR") {
_local2 = 0;
_local3 = m - w;
} else if (_local1 == "LB") {
_local2 = n - h;
_local3 = 0;
} else if (_local1 == "RB") {
_local2 = n - h;
_local3 = m - w;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local3;
__screen.y = _local2;
__screen.width = w;
__screen.height = h;
_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 110 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
var _local3 = queue;
if (_local3 != undefined) {
var l = _local3.length;
var _local1;
_local1 = 0;
while (_local1 < l) {
var _local2 = _local3[_local1];
if (_local2 == handler) {
_local3.splice(_local1, 1);
return;
}
_local1++;
}
}
}
static function initialize(object) {
var _local1 = object;
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
_local1.addEventListener = _fEventDispatcher.addEventListener;
_local1.removeEventListener = _fEventDispatcher.removeEventListener;
_local1.dispatchEvent = _fEventDispatcher.dispatchEvent;
_local1.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local2 = eventObj;
var queueName = ("__q_" + _local2.type);
var queue = queueObj[queueName];
if (queue != undefined) {
var i;
for (i in queue) {
var _local1 = queue[i];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(_local2);
}
if (_local1[_local2.type] != undefined) {
if (exceptions[_local2.type] == undefined) {
_local1[_local2.type](_local2);
}
}
} else {
_local1.apply(queueObj, [_local2]);
}
}
}
}
function dispatchEvent(eventObj) {
var _local1 = eventObj;
var _local2 = this;
if (_local1.target == undefined) {
_local1.target = _local2;
}
_local2[_local1.type + "Handler"](_local1);
_local2.dispatchQueue(_local2, _local1);
}
function addEventListener(event, handler) {
var _local2 = this;
var _local1 = "__q_" + event;
if (_local2[_local1] == undefined) {
_local2[_local1] = new Array();
}
_global.ASSetPropFlags(_local2, _local1, 1);
_removeEventListener(_local2[_local1], event, handler);
_local2[_local1].push(handler);
}
function removeEventListener(event, handler) {
var _local1 = "__q_" + event;
_removeEventListener(this[_local1], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1};
}
Symbol 126 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabEnabled, __tabIndex;
function View () {
super();
}
function init() {
var _local1 = this;
super.init();
_local1.tabChildren = true;
_local1.tabEnabled = false;
_local1.boundingBox_mc._visible = false;
_local1.boundingBox_mc._width = (_local1.boundingBox_mc._height = 0);
}
function size() {
var _local1 = this;
_local1.border_mc.move(0, 0);
_local1.border_mc.setSize(_local1.__get__width(), _local1.__get__height());
_local1.doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = this;
var _local2 = childNameBase;
var _local1 = 0;
while (true) {
if (_local3[_local2 + _local1] == undefined) {
return(_local1);
}
_local1++;
}
return(_local3);
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
var _local1 = this;
var _local3 = className;
if (_local1.depth == undefined) {
_local1.depth = 1;
}
var _local2;
if (typeof(_local3) == "string") {
_local2 = _local1.createObject(_local3, instanceName, _local1.depth++, initProps);
} else {
_local2 = _local1.createClassObject(_local3, instanceName, _local1.depth++, initProps);
}
if (_local2 == undefined) {
_local2 = _local1.loadExternal(_local3, _local1._loadExternalClass, instanceName, _local1.depth++, initProps);
} else {
_local1[childNameBase + _local1.__get__numChildren()] = _local2;
_local2._complete = true;
_local1.childLoaded(_local2);
}
_local1.addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
var _local2 = this;
if (!((childIndex >= 0) && (childIndex < _local2.__get__numChildren()))) {
} else {
var childName = (childNameBase + childIndex);
var nChildren = _local2.__get__numChildren();
var _local3;
for (_local3 in _local2) {
if (_local3 == childName) {
childName = "";
_local2.destroyObject(_local3);
break;
}
}
var _local1 = Number(childIndex);
while (_local1 < (nChildren - 1)) {
_local2[childNameBase + _local1] = _local2[childNameBase + (_local1 + 1)];
_local1++;
}
delete _local2[childNameBase + (nChildren - 1)];
_local2.depth--;
}
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
var _local1 = this;
if (_local1.border_mc == undefined) {
_local1.border_mc = _local1.createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:_local1});
}
_local1.doLater(_local1, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.1.78";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 132 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var doLater;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local1 = this;
var _local2;
_local2 = _local1.createObject(placeholderClassName, instanceName, depth, initProps);
_local1[mx.core.View.childNameBase + _local1.numChildren] = _local2;
if (_local1.prepList == undefined) {
_local1.prepList = new Object();
}
_local1.prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
_local1.prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local1 = this;
var _local3;
for (_local3 in _local1.prepList) {
var _local2 = _local1.prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (_local1.loadList == undefined) {
_local1.loadList = new Object();
}
_local1.loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete _local1.prepList[_local3];
_local1.doLater(_local1, "checkLoadProgress");
} else {
_local1.doLater(_local1, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local2 = this;
var _local3;
for (_local3 in _local2.loadList) {
var _local1 = _local2.loadList[_local3];
_local1.loaded = _local1.obj.getBytesLoaded();
_local1.total = _local1.obj.getBytesTotal();
if (_local1.total > 0) {
_local1.obj._visible = false;
_local2.dispatchEvent({type:"progress", target:_local1.obj, current:_local1.loaded, total:_local1.total});
if (_local1.loaded == _local1.total) {
if (_local2.loadedList == undefined) {
_local2.loadedList = new Object();
}
_local2.loadedList[_local3] = _local1;
delete _local2.loadList[_local3];
_local2.doLater(_local2, "contentLoaded");
}
} else if (_local1.total == -1) {
if (_local1.failedOnce != undefined) {
_local1.failedOnce++;
if (_local1.failedOnce > 3) {
_local2.dispatchEvent({type:"complete", target:_local1.obj, current:_local1.loaded, total:_local1.total});
delete _local2.loadList[_local3];
}
} else {
_local1.failedOnce = 0;
}
}
_local2.doLater(_local2, "checkLoadProgress");
}
}
function contentLoaded() {
var _local3 = this;
var i;
for (i in _local3.loadedList) {
var _local1 = _local3.loadedList[i];
_local1.obj._visible = true;
_local1.obj._complete = true;
var _local2;
for (_local2 in _local1.initProps) {
_local1.obj[_local2] = _local1.initProps[_local2];
}
_local3.childLoaded(_local1.obj);
_local3.dispatchEvent({type:"complete", target:_local1.obj, current:_local1.loaded, total:_local1.total});
delete _local3.loadedList[i];
}
}
function convertToUIObject(obj) {
var _local1 = obj;
if (_local1.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
_local1.addProperty("width", _local2.__get__width, null);
_local1.addProperty("height", _local2.__get__height, null);
_local1.addProperty("left", _local2.__get__left, null);
_local1.addProperty("x", _local2.__get__x, null);
_local1.addProperty("top", _local2.__get__top, null);
_local1.addProperty("y", _local2.__get__y, null);
_local1.addProperty("right", _local2.__get__right, null);
_local1.addProperty("bottom", _local2.__get__bottom, null);
_local1.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
_local1.move = mx.core.UIObject.prototype.move;
_local1.setSize = mx.core.UIObject.prototype.setSize;
_local1.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(_local1);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 111 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var owner, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
var _local2 = obj;
if (_local2.keyHandler == undefined) {
var _local1 = (_local2.keyHandler = new Object());
_local1.owner = _local2;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(_local2.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
var _local1 = obj;
if (_local1.onLoad == undefined) {
_local1.onLoad = _fEventDispatcher.onLoad;
_local1.onUnload = _fEventDispatcher.onUnload;
if (_local1.getBytesTotal() == _local1.getBytesLoaded()) {
_local1.doLater(_local1, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
var _local1 = obj;
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
_local1.addEventListener = _fEventDispatcher.__addEventListener;
_local1.__origAddEventListener = _fEventDispatcher.addEventListener;
_local1.removeEventListener = _fEventDispatcher.removeEventListener;
_local1.dispatchEvent = _fEventDispatcher.dispatchEvent;
_local1.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
var _local1 = eventObj;
var _local2 = this;
if (_local1.target == undefined) {
_local1.target = _local2;
}
_local2[_local1.type + "Handler"](_local1);
_local2.dispatchQueue(mx.events.EventDispatcher, _local1);
_local2.dispatchQueue(_local2, _local1);
}
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) {
var _local1 = this;
if (_local1.__sentLoadEvent != true) {
_local1.dispatchEvent({type:"load"});
}
_local1.__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
var _local3 = event;
__origAddEventListener(_local3, handler);
var _local2 = lowLevelEvents;
for (var i in _local2) {
if (mx.events.UIEventDispatcher[i][_local3] != undefined) {
var _local1 = _local2[i][0];
mx.events.UIEventDispatcher[_local1](this);
}
}
}
function removeEventListener(event, handler) {
var _local3 = event;
var queueName = ("__q_" + _local3);
mx.events.EventDispatcher._removeEventListener(this[queueName], _local3, handler);
if (this[queueName].length == 0) {
var _local1 = lowLevelEvents;
for (var i in _local1) {
if (mx.events.UIEventDispatcher[i][_local3] != undefined) {
var _local2 = _local1[i][1];
mx.events.UIEventDispatcher[_local1[i][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 127 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var hScroller, vScroller, __maxHPosition, __viewMetrics, _parent, dispatchEvent, mask_mc;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
var _local1 = this;
_local1.__hScrollPolicy = policy.toLowerCase();
if (_local1.__width == undefined) {
} else {
_local1.setScrollProperties(_local1.numberOfCols, _local1.columnWidth, _local1.rowC, _local1.rowH, _local1.heightPadding, _local1.widthPadding);
}
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
var _local1 = this;
_local1.__vScrollPolicy = policy.toLowerCase();
if (_local1.__width == undefined) {
} else {
_local1.setScrollProperties(_local1.numberOfCols, _local1.columnWidth, _local1.rowC, _local1.rowH, _local1.heightPadding, _local1.widthPadding);
}
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local1 = vScroller.maxPos;
if (_local1 != undefined) {
return(_local1);
}
return(0);
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
var _local2 = this;
if (_local2.__maxHPosition != undefined) {
return(_local2.__maxHPosition);
}
var _local1 = _local2.hScroller.maxPos;
if (_local1 != undefined) {
return(_local1);
}
return(0);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local1 = this;
var _local3 = _local1.getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
_local1.propsInited = true;
delete _local1.scrollAreaChanged;
_local1.heightPadding = hPadding;
_local1.widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var viewableCols = Math.ceil((((_local1.__width - _local3.left) - _local3.right) - _local1.widthPadding) / colWidth);
if ((_local1.__hScrollPolicy == "on") || ((viewableCols < colCount) && (_local1.__hScrollPolicy == "auto"))) {
if ((_local1.hScroller == undefined) || (_local1.specialHScrollCase)) {
delete _local1.specialHScrollCase;
_local1.hScroller = _local1.createObject("HScrollBar", "hSB", 1001);
_local1.hScroller.__set__lineScrollSize(20);
_local1.hScroller.scrollHandler = _local1.scrollProxy;
_local1.hScroller.__set__scrollPosition(_local1.__hPosition);
_local1.scrollAreaChanged = true;
}
if ((((_local1.numberOfCols != colCount) || (_local1.columnWidth != colWidth)) || (_local1.viewableColumns != viewableCols)) || (_local1.scrollAreaChanged)) {
_local1.hScroller.setScrollProperties(viewableCols, 0, colCount - viewableCols);
_local1.viewableColumns = viewableCols;
_local1.numberOfCols = colCount;
_local1.columnWidth = colWidth;
}
} else if (((_local1.__hScrollPolicy == "auto") || (_local1.__hScrollPolicy == "off")) && (_local1.hScroller != undefined)) {
_local1.hScroller.removeMovieClip();
delete _local1.hScroller;
_local1.scrollAreaChanged = true;
}
if (_local1.heightPadding == undefined) {
_local1.heightPadding = 0;
}
var viewableRws = Math.ceil((((_local1.__height - _local3.top) - _local3.bottom) - _local1.heightPadding) / rwHeight);
var rndUp = ((((_local1.__height - _local3.top) - _local3.bottom) % rwHeight) != 0);
if ((_local1.__vScrollPolicy == "on") || ((viewableRws < (rwCount + rndUp)) && (_local1.__vScrollPolicy == "auto"))) {
if (_local1.vScroller == undefined) {
_local1.vScroller = _local1.createObject("VScrollBar", "vSB", 1002);
_local1.vScroller.scrollHandler = _local1.scrollProxy;
_local1.vScroller.__set__scrollPosition(_local1.__vPosition);
_local1.scrollAreaChanged = true;
_local1.rowH = 0;
}
if ((((_local1.rowC != rwCount) || (_local1.rowH != rwHeight)) || ((_local1.viewableRows + rndUp) != (viewableRws + _local1.oldRndUp))) || (_local1.scrollAreaChanged)) {
_local1.vScroller.setScrollProperties(viewableRws, 0, (rwCount - viewableRws) + rndUp);
_local1.viewableRows = viewableRws;
_local1.rowC = rwCount;
_local1.rowH = rwHeight;
_local1.oldRndUp = rndUp;
}
} else if (((_local1.__vScrollPolicy == "auto") || (_local1.__vScrollPolicy == "off")) && (_local1.vScroller != undefined)) {
_local1.vScroller.removeMovieClip();
delete _local1.vScroller;
_local1.scrollAreaChanged = true;
}
_local1.numberOfCols = colCount;
_local1.columnWidth = colWidth;
if (_local1.scrollAreaChanged) {
_local1.doLayout();
var _local2 = _local1.__viewMetrics;
var ownr = ((_local1.owner != undefined) ? (_local1.owner) : (_local1));
ownr.layoutContent(_local2.left, _local2.top, ((_local1.columnWidth * _local1.numberOfCols) - _local2.left) - _local2.right, _local1.rowC * _local1.rowH, (_local1.__width - _local2.left) - _local2.right, (_local1.__height - _local2.top) - _local2.bottom);
}
if (!_local1.enabled) {
_local1.setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local1 = this;
var _local2 = _local1.__viewMetrics;
var _local3 = _local1.border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (_local1.vScroller != undefined) {
_local2.right = _local2.right + _local1.vScroller.minWidth;
}
_local2.top = _local3.top;
if ((_local1.hScroller == undefined) && ((_local1.__hScrollPolicy == "on") || (_local1.__hScrollPolicy == true))) {
_local1.hScroller = _local1.createObject("FHScrollBar", "hSB", 1001);
_local1.specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (_local1.hScroller != undefined) {
_local2.bottom = _local2.bottom + _local1.hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local1 = this;
var w = _local1.__get__width();
var h = _local1.__get__height();
delete _local1.invLayout;
var _local3 = (_local1.__viewMetrics = _local1.getViewMetrics());
var _local2 = _local3.left;
var ro = _local3.right;
var to = _local3.top;
var bo = _local3.bottom;
var hsb = _local1.hScroller;
var vsb = _local1.vScroller;
hsb.setSize((w - _local2) - ro, hsb.minHeight + 0);
hsb.move(_local2, h - bo);
vsb.setSize(vsb.minWidth + 0, (h - to) - bo);
vsb.move(w - ro, to);
var mask = _local1.mask_mc;
mask._width = (w - _local2) - ro;
mask._height = (h - to) - bo;
mask._x = _local2;
mask._y = to;
}
function createChild(id, name, props) {
var _local1 = super.createChild(id, name, props);
return(_local1);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local1 = (_global.__SVMouseWheelManager = new Object());
_local1.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local1);
}
}
function __onMouseWheel(delta, scrollTarget) {
var i = scrollTarget;
var _local1;
while (i != undefined) {
if (i instanceof mx.core.ScrollView) {
_local1 = i;
delete i;
}
i = i._parent;
}
if (_local1 != undefined) {
var i = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * i);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
var _local1 = this;
super.createChildren();
if (_local1.mask_mc == undefined) {
_local1.mask_mc = _local1.createObject("BoundingBox", "mask_mc", _local1.MASK_DEPTH);
}
_local1.mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local2 = docObj.target;
var _local1 = _local2.scrollPosition;
if (_local2 == vScroller) {
var _local3 = "vertical";
var prop = "__vPosition";
} else {
var _local3 = "horizontal";
var prop = "__hPosition";
}
dispatchEvent({type:"scroll", direction:_local3, position:_local1});
this[prop] = _local1;
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.1.78";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 8 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var __height, dispatchEvent, _parent;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
var _local1 = this;
var _local2 = pos;
_local1._scrollPosition = _local2;
if (_local1.isScrolling != true) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
var _local3 = (((_local2 - _local1.minPos) * (_local1.scrollTrack_mc.height - _local1.scrollThumb_mc._height)) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTrack_mc.top;
_local1.scrollThumb_mc.move(0, _local3);
}
//return(_local1.__get__scrollPosition());
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
var _local1 = this;
super.init();
_local1._scrollPosition = 0;
_local1.tabEnabled = false;
_local1.focusEnabled = false;
_local1.boundingBox_mc._visible = false;
_local1.boundingBox_mc._width = (_local1.boundingBox_mc._height = 0);
}
function createChildren(Void) {
var _local1 = this;
if (_local1.scrollTrack_mc == undefined) {
_local1.setSkin(skinIDTrack, _local1.scrollTrackName);
}
_local1.scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (_local1.upArrow_mc == undefined) {
_local2 = _local1.createButton(_local1.upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = _local1.onUpArrow;
_local2.clickHandler = _local1.onScrollChanged;
_local1._minHeight = _local2.height;
_local1._minWidth = _local2.width;
if (_local1.downArrow_mc == undefined) {
_local2 = _local1.createButton(_local1.downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = _local1.onDownArrow;
_local2.clickHandler = _local1.onScrollChanged;
_local1._minHeight = _local1._minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
var _local1 = this;
var _local2 = o;
if (skinID == skinIDUpArrow) {
_local2.falseUpSkin = _local1.upArrowUpName;
_local2.falseDownSkin = _local1.upArrowDownName;
_local2.falseOverSkin = _local1.upArrowOverName;
} else {
_local2.falseUpSkin = _local1.downArrowUpName;
_local2.falseDownSkin = _local1.downArrowDownName;
_local2.falseOverSkin = _local1.downArrowOverName;
}
var _local3 = _local1.createObject(linkageName, id, skinID, _local2);
_local1[id].visible = false;
_local1[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = this;
var _local1 = new Object();
_local1.validateNow = true;
_local1.tabEnabled = false;
_local1.leftSkin = _local2.thumbTopName;
_local1.middleSkin = _local2.thumbMiddleName;
_local1.rightSkin = _local2.thumbBottomName;
_local1.gripSkin = _local2.thumbGripName;
_local2.createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local1);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local1 = this;
var thumbHeight;
var _local2 = _local1.scrollTrack_mc;
_local1.pageSize = pSize;
_local1.largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1._scrollPosition = Math.max(_local1.minPos, _local1._scrollPosition);
_local1._scrollPosition = Math.min(_local1.maxPos, _local1._scrollPosition);
if (((_local1.maxPos - _local1.minPos) > 0) && (_local1.enabled)) {
var tmp = _local1._scrollPosition;
if (!_local1.initializing) {
_local1.upArrow_mc.enabled = true;
_local1.downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = _local1.startTrackScroller);
_local2.onRelease = _local1.releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = _local1.stopScrolling);
_local2.onReleaseOutside = _local1.releaseScrolling;
_local2.useHandCursor = false;
if (_local1.scrollThumb_mc == undefined) {
_local1.createThumb();
}
var _local3 = _local1.scrollThumb_mc;
if (_local1.scrollTrackOverName.length > 0) {
_local2.onRollOver = _local1.trackOver;
_local2.onRollOut = _local1.trackOut;
}
thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local2.height;
if (thumbHeight < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
thumbHeight = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_local1._minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_local1._minWidth, thumbHeight);
}
_local3.setRange(_local1.upArrow_mc.__get__height() + 0, (_local1.__get__virtualHeight() - _local1.downArrow_mc.__get__height()) - _local3.__get__height(), _local1.minPos, _local1.maxPos);
tmp = Math.min(tmp, _local1.maxPos);
_local1.__set__scrollPosition(Math.max(tmp, _local1.minPos));
} else {
_local1.scrollThumb_mc.__set__visible(false);
if (!_local1.initializing) {
_local1.upArrow_mc.enabled = false;
_local1.downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (_local1.initializing) {
_local1.scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
var _local1 = this;
super.setEnabled(enabledFlag);
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos, _local1.largeScroll);
}
function draw(Void) {
var _local1 = this;
if (_local1.initializing) {
_local1.initializing = false;
_local1.scrollTrack_mc.visible = true;
_local1.upArrow_mc.__set__visible(true);
_local1.downArrow_mc.__set__visible(true);
}
_local1.size();
}
function size(Void) {
var _local1 = this;
if (_local1._height == 1) {
} else if (_local1.upArrow_mc == undefined) {
} else {
var _local3 = _local1.upArrow_mc.__get__height();
var _local2 = _local1.downArrow_mc.__get__height();
_local1.upArrow_mc.move(0, 0);
var st = _local1.scrollTrack_mc;
st._y = _local3;
st._height = (_local1.__get__virtualHeight() - _local3) - _local2;
_local1.downArrow_mc.move(0, _local1.__get__virtualHeight() - _local2);
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos, _local1.largeScroll);
}
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
var _local1 = this;
if (k == 36) {
if (_local1.__get__scrollPosition() != 0) {
_local1.__set__scrollPosition(0);
_local1.dispatchScrollEvent(_local1.minMode);
}
return(true);
}
if (k == 35) {
if (_local1.__get__scrollPosition() < _local1.maxPos) {
_local1.__set__scrollPosition(_local1.maxPos);
_local1.dispatchScrollEvent(_local1.maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "Line") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1._scrollPosition + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
if (_local1.__get__scrollPosition() != _local2) {
_local1.__set__scrollPosition(_local2);
var move = ((mode < 0) ? (_local1.minusMode) : (_local1.plusMode));
_local1.dispatchScrollEvent(inc + move);
}
}
function startTrackScroller(Void) {
var _local1 = this;
_local1._parent.pressFocus();
if (_local1._parent.scrollTrackDownName.length > 0) {
if (_local1._parent.scrollTrackDown_mc == undefined) {
_local1._parent.setSkin(skinIDTrackDown, _local1.scrollTrackDownName);
} else {
_local1._parent.scrollTrackDown_mc.visible = true;
}
}
_local1._parent.trackScroller();
_local1._parent.scrolling = setInterval(_local1._parent, "scrollInterval", _local1.getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "Page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", _local1.getStyle("repeatInterval"), _local2, mode);
}
function trackScroller(Void) {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.scrollThumb_mc.__get__height()) < _local1._ymouse) {
_local1.scrollIt("Page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
var _local1 = this;
_local1._parent.releaseFocus();
_local1.stopScrolling();
_local1._parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
var _local1 = this;
if (_local1._parent.scrollTrackOverName.length > 0) {
if (_local1._parent.scrollTrackOver_mc == undefined) {
_local1._parent.setSkin(skinIDTrackOver, _local1.scrollTrackOverName);
} else {
_local1._parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 106 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
var _local1 = this;
if (_local1.l_mc == undefined) {
var z = _local1.setSkin(tagL, _local1.leftSkin);
if (_local1.horizontal) {
_local1.minHeight = _local1.l_mc._height;
_local1.minWidth = _local1.l_mc._width;
} else {
_local1.minHeight = _local1.l_mc._height;
_local1.minWidth = _local1.l_mc._width;
}
}
if (_local1.m_mc == undefined) {
_local1.setSkin(tagM, _local1.middleSkin);
if (_local1.horizontal) {
_local1.minHeight = _local1.m_mc._height;
_local1.minWidth = _local1.minWidth + _local1.m_mc._width;
} else {
_local1.minHeight = _local1.minHeight + _local1.m_mc._height;
_local1.minWidth = _local1.m_mc._width;
}
}
if (_local1.r_mc == undefined) {
_local1.setSkin(tagR, _local1.rightSkin);
if (_local1.horizontal) {
_local1.minHeight = _local1.r_mc._height;
_local1.minWidth = _local1.minWidth + _local1.r_mc._width;
} else {
_local1.minHeight = _local1.minHeight + _local1.r_mc._height;
_local1.minWidth = _local1.r_mc._width;
}
}
_local1.size();
}
function size(Void) {
var _local1 = this;
_local1.l_mc.move(0, 0);
if (_local1.horizontal) {
_local1.r_mc.move(_local1.__get__width() - _local1.r_mc.width, 0);
_local1.m_mc.move(_local1.l_mc.width, 0);
_local1.m_mc.setSize(_local1.r_mc.x - _local1.m_mc.x, _local1.m_mc.height);
} else {
_local1.r_mc.move(0, _local1.__get__height() - _local1.r_mc.height, 0);
_local1.m_mc.move(0, _local1.l_mc.height);
_local1.m_mc.setSize(_local1.m_mc.width, _local1.r_mc.y - _local1.m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.1.78";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 107 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, _parent;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
var _local1 = this;
_local1.ymin = _ymin;
_local1.ymax = _ymax;
_local1.datamin = _datamin;
_local1.datamax = _datamax;
}
function dragThumb(Void) {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.ymin) {
_local1.scrollMove = _local1.ymin;
} else if (_local1.scrollMove > _local1.ymax) {
_local1.scrollMove = _local1.ymax;
}
_local1._parent.isScrolling = true;
_local1._y = _local1.scrollMove;
var _local2 = Math.round(((_local1.datamax - _local1.datamin) * (_local1._y - _local1.ymin)) / (_local1.ymax - _local1.ymin)) + _local1.datamin;
_local1._parent.scrollPosition = _local2;
_local1._parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
var _local1 = this;
_local1._parent.isScrolling = false;
_local1._parent.dispatchScrollEvent("ThumbPosition");
_local1._parent.dispatchScrollChangedEvent();
delete _local1.onMouseMove;
}
function onPress(Void) {
var _local1 = this;
_local1._parent.pressFocus();
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
var _local1 = this;
super.draw();
if (_local1.grip_mc == undefined) {
_local1.setSkin(3, _local1.gripSkin);
}
}
function size() {
var _local1 = this;
super.size();
_local1.grip_mc.move((_local1.__get__width() - _local1.grip_mc.width) / 2, (_local1.__get__height() - _local1.grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 290 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local3 = obj;
var _local2 = mixinProps;
var l = _local2.length;
_local3 = _local3.prototype;
var _local1 = 0;
while (_local1 < l) {
_local3[_local2[_local1]] = mixins[_local2[_local1]];
_global.ASSetPropFlags(_local3, _local2[_local1], 1);
_local1++;
}
mx.events.EventDispatcher.initialize(_local3);
_global.ASSetPropFlags(_local3, "addEventListener", 1);
_global.ASSetPropFlags(_local3, "removeEventListener", 1);
_global.ASSetPropFlags(_local3, "dispatchEvent", 1);
_global.ASSetPropFlags(_local3, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
var _local1 = this;
if (_local1.__ID__ == undefined) {
_local1.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(_local1, "__ID__", 1);
}
return(_local1.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
var _local1 = index;
var _local2 = this;
if (_local1 < _local2.length) {
_local2.splice(_local1, 0, value);
} else if (_local1 > _local2.length) {
trace("Cannot add an item past the end of the DataProvider");
return;
}
_local2[_local1] = value;
_local2.updateViews("addItems", _local1, _local1);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
var _local1 = index;
var _local2 = this;
var _local3 = newItems;
_local1 = Math.min(_local2.length, _local1);
_local3.unshift(_local1, 0);
_local2.splice.apply(_local2, _local3);
_local3.splice(0, 2);
_local2.updateViews("addItems", _local1, (_local1 + _local3.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = index;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < len) {
_local2.push(getItemID(_local3 + _local1));
_local1++;
}
var oldItems = splice(_local3, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local3, lastItem:(_local3 + len) - 1, removedItems:oldItems, removedIDs:_local2});
}
function removeItemAt(index) {
var _local1 = this[index];
removeItemsAt(index, 1);
return(_local1);
}
function removeAll(Void) {
var _local1 = this;
_local1.splice(0);
_local1.updateViews("removeItems", 0, _local1.length - 1);
}
function replaceItemAt(index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
var _local3 = _local2.getItemID(_local1);
_local2[_local1] = itemObj;
_local2[_local1].__ID__ = _local3;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local1 = this[index];
if ((typeof(_local1) != "object") && (_local1 != undefined)) {
return(index);
}
return(_local1.getID());
}
function sortItemsBy(fieldName, order) {
var _local1 = this;
var _local2 = order;
if (typeof(_local2) == "string") {
_local1.sortOn(fieldName);
if (_local2.toUpperCase() == "DESC") {
_local1.reverse();
}
} else {
_local1.sortOn(fieldName, _local2);
}
_local1.updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
var _local1 = index;
this[_local1][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:_local1, lastItem:_local1, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 291 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invUpdateControl, invalidate, __cellRenderer, __labelFunction, __iconField, __iconFunction, __dataProvider, propertyTable, isSelected;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
var _local1 = this;
delete _local1.invLayoutContent;
var newCount = Math.ceil(h / _local1.__rowHeight);
_local1.roundUp = (h % _local1.__rowHeight) != 0;
var deltaRows = (newCount - _local1.__rowCount);
if (deltaRows < 0) {
var _local3 = newCount;
while (_local3 < _local1.__rowCount) {
_local1.rows[_local3].removeMovieClip();
delete _local1.rows[_local3];
_local3++;
}
_local1.topRowZ = _local1.topRowZ + deltaRows;
} else if (deltaRows > 0) {
if (_local1.rows == undefined) {
_local1.rows = new Array();
}
var _local3 = _local1.__rowCount;
while (_local3 < newCount) {
var _local2 = (_local1.rows[_local3] = _local1.listContent.createObject(_local1.__rowRenderer, "listRow" + (_local1.topRowZ++), _local1.topRowZ, {owner:_local1, styleName:_local1, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * _local1.__rowHeight) + y);
_local2.setSize(w, _local1.__rowHeight);
_local2.drawRow(_local1.__dataProvider.getItemAt(_local1.__vPosition + _local3), _local1.getStateAt(_local1.__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != _local1.tW) {
var c = ((deltaRows > 0) ? (_local1.__rowCount) : (newCount));
var _local3 = 0;
while (_local3 < c) {
_local1.rows[_local3].setSize(w, _local1.__rowHeight);
_local3++;
}
}
if ((_local1.layoutX != x) || (_local1.layoutY != y)) {
var _local3 = 0;
while (_local3 < newCount) {
_local1.rows[_local3]._x = x;
_local1.rows[_local3]._y = Math.round((_local3 * _local1.__rowHeight) + y);
_local3++;
}
}
_local1.__rowCount = newCount;
_local1.layoutX = x;
_local1.layoutY = y;
_local1.tW = w;
_local1.tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
var _local1 = this;
_local1.__rowHeight = v;
_local1.invRowHeight = true;
_local1.invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local1 = this;
var _local2 = ((_local1.__rowCount == 0) ? (Math.ceil(_local1.__height / _local1.__rowHeight)) : (_local1.__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
var _local2 = this;
_local2.__cellRenderer = cR;
var _local1 = 0;
while (_local1 < _local2.rows.length) {
_local2.rows[_local1].setCellRenderer(true);
_local1++;
}
_local2.invUpdateControl = true;
_local2.invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
var _local1 = this;
_local1.__labelField = field;
_local1.invUpdateControl = true;
_local1.invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
var _local1 = this;
_local1.__labelFunction = func;
_local1.invUpdateControl = true;
_local1.invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
var _local1 = this;
_local1.__iconField = field;
_local1.invUpdateControl = true;
_local1.invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
var _local1 = this;
_local1.__iconFunction = func;
_local1.invUpdateControl = true;
_local1.invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
var _local2 = this;
if (pos < 0) {
} else if ((pos > 0) && (pos > ((_local2.getLength() - _local2.__rowCount) + _local2.roundUp))) {
} else {
var deltaPos = (pos - _local2.__vPosition);
if (deltaPos == 0) {
} else {
_local2.__vPosition = pos;
var scrollUp = (deltaPos > 0);
deltaPos = Math.abs(deltaPos);
if (deltaPos >= _local2.__rowCount) {
_local2.updateControl();
} else {
var _local3 = new Array();
var moveBlockLength = (_local2.__rowCount - deltaPos);
var moveBlockDistance = (deltaPos * _local2.__rowHeight);
var shuffleBlockDistance = (moveBlockLength * _local2.__rowHeight);
var inc = (scrollUp ? 1 : -1);
var _local1 = 0;
while (_local1 < _local2.__rowCount) {
if (((_local1 < deltaPos) && (scrollUp)) || ((_local1 >= moveBlockLength) && (!scrollUp))) {
_local2.rows[_local1]._y = _local2.rows[_local1]._y + Math.round(inc * shuffleBlockDistance);
var newRow = (_local1 + (inc * moveBlockLength));
var newItem = (_local2.__vPosition + newRow);
_local3[newRow] = _local2.rows[_local1];
_local3[newRow].rowIndex = newRow;
_local3[newRow].drawRow(_local2.__dataProvider.getItemAt(newItem), _local2.getStateAt(newItem), false);
} else {
_local2.rows[_local1]._y = _local2.rows[_local1]._y - Math.round(inc * moveBlockDistance);
var newRow = (_local1 - (inc * deltaPos));
_local3[newRow] = _local2.rows[_local1];
_local3[newRow].rowIndex = newRow;
}
_local1++;
}
_local2.rows = _local3;
_local1 = 0;
while (_local1 < _local2.__rowCount) {
_local2.rows[_local1].swapDepths(_local2.baseRowZ + _local1);
_local1++;
}
}
_local2.lastPosition = pos;
super.setVPosition(pos);
}
}
}
function setPropertiesAt(index, obj) {
var _local1 = this;
var _local3 = index;
var _local2 = _local1.__dataProvider.getItemID(_local3);
if (_local2 == undefined) {
} else {
if (_local1.propertyTable == undefined) {
_local1.propertyTable = new Object();
}
_local1.propertyTable[_local2] = obj;
_local1.rows[_local3 - _local1.__vPosition].drawRow(_local1.__dataProvider.getItemAt(_local3), _local1.getStateAt(_local3));
}
}
function getPropertiesAt(index) {
var _local1 = __dataProvider.getItemID(index);
if (_local1 == undefined) {
return(undefined);
}
return(propertyTable[_local1]);
}
function getPropertiesOf(obj) {
var _local1 = obj.getID();
if (_local1 == undefined) {
return(undefined);
}
return(propertyTable[_local1]);
}
function getStyle(styleProp) {
var _local1 = super.getStyle(styleProp);
var _local2 = mx.styles.StyleManager.colorNames[_local1];
if (_local2 != undefined) {
_local1 = _local2;
}
return(_local1);
}
function updateControl(Void) {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.__rowCount) {
_local2.rows[_local1].drawRow(_local2.__dataProvider.getItemAt(_local1 + _local2.__vPosition), _local2.getStateAt(_local1 + _local2.__vPosition));
_local1++;
}
delete _local2.invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
var _local1 = this;
if (!_local1.selectable) {
} else {
var _local3 = _local1.__vPosition + rowIndex;
var item = _local1.__dataProvider.getItemAt(_local3);
var row = _local1.rows[rowIndex];
if (item == undefined) {
} else {
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = _local1.wasKeySelected;
}
_local1.changeFlag = true;
if (((!_local1.multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
_local1.clearSelected(transition);
_local1.selectItem(_local3, true);
_local1.lastSelected = _local3;
row.drawRow(row.item, _local1.getStateAt(_local3), transition);
} else if (Key.isDown(16) && (_local1.multipleSelection)) {
if (_local1.lastSelected == undefined) {
_local1.lastSelected = _local3;
}
var incr = ((_local1.lastSelected < _local3) ? 1 : -1);
_local1.clearSelected(false);
var _local2 = _local1.lastSelected;
while (_local2 != _local3) {
_local1.selectItem(_local2, true);
if ((_local2 >= _local1.__vPosition) && (_local2 < (_local1.__vPosition + _local1.__rowCount))) {
_local1.rows[_local2 - _local1.__vPosition].drawRow(_local1.rows[_local2 - _local1.__vPosition].item, "selected", false);
}
_local2 = _local2 + incr;
}
_local1.selectItem(_local3, true);
row.drawRow(row.item, "selected", transition);
} else if (Key.isDown(17)) {
var selectedFlag = _local1.isSelected(_local3);
if ((!_local1.multipleSelection) || (_local1.wasKeySelected)) {
_local1.clearSelected(transition);
}
if (!((!_local1.multipleSelection) && (selectedFlag))) {
_local1.selectItem(_local3, !selectedFlag);
var state = ((!selectedFlag) ? "selected" : "normal");
row.drawRow(row.item, state, transition);
}
_local1.lastSelected = _local3;
}
if (allowChangeEvent) {
_local1.dispatchEvent({type:"change"});
}
delete _local1.wasKeySelected;
}
}
}
function dragScroll(Void) {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1._ymouse < 0) {
_local1.setVPosition(_local1.__vPosition - 1);
_local1.selectRow(0, false);
var _local2 = Math.min((-_local1._ymouse) - 30, 0);
_local1.scrollInterval = (((0.593 * _local2) * _local2) + 1) + _local1.minScrollInterval;
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.__vPosition});
} else if (_local1._ymouse > _local1.__height) {
var _local3 = _local1.__vPosition;
_local1.setVPosition(_local1.__vPosition + 1);
if (_local3 != _local1.__vPosition) {
_local1.selectRow((_local1.__rowCount - 1) - _local1.roundUp, false);
}
var _local2 = Math.min((_local1._ymouse - _local1.__height) - 30, 0);
_local1.scrollInterval = (((0.593 * _local2) * _local2) + 1) + _local1.minScrollInterval;
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.__vPosition});
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
var _local1 = this;
clearInterval(_local1.dragScrolling);
delete _local1.dragScrolling;
delete _local1.dragScrolling;
delete _local1.isPressed;
delete _local1.onMouseUp;
if (!_local1.selectable) {
} else {
if (_local1.changeFlag) {
_local1.dispatchEvent({type:"change"});
}
delete _local1.changeFlag;
}
}
function moveSelBy(incr) {
var _local1 = this;
if (!_local1.selectable) {
_local1.setVPosition(_local1.__vPosition + incr);
} else {
var _local3 = _local1.getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(_local1.getLength() - 1, _local2);
if (_local2 == _local3) {
} else {
if ((_local3 < _local1.__vPosition) || (_local3 >= (_local1.__vPosition + _local1.__rowCount))) {
_local1.setVPosition(_local3);
}
if ((_local2 >= ((_local1.__vPosition + _local1.__rowCount) - _local1.roundUp)) || (_local2 < _local1.__vPosition)) {
_local1.setVPosition(_local1.__vPosition + incr);
}
_local1.wasKeySelected = true;
_local1.selectRow(_local2 - _local1.__vPosition, false);
}
}
}
function keyDown(e) {
var _local1 = this;
var _local2 = e;
if (_local1.selectable) {
if (_local1.findInputText()) {
return;
}
} else if (_local2.code == 40) {
_local1.moveSelBy(1);
} else if (_local2.code == 38) {
_local1.moveSelBy(-1);
} else if (_local2.code == 34) {
if (_local1.selectable) {
var _local3 = _local1.getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
_local1.setVPosition(_local3);
}
_local1.moveSelBy((_local1.__rowCount - 1) - _local1.roundUp);
} else if (_local2.code == 33) {
if (_local1.selectable) {
var _local3 = _local1.getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
_local1.setVPosition(_local3);
}
_local1.moveSelBy((1 - _local1.__rowCount) + _local1.roundUp);
} else if (_local2.code == 36) {
_local1.moveSelBy(-_local1.__dataProvider.length);
} else if (_local2.code == 35) {
_local1.moveSelBy(_local1.__dataProvider.length);
}
}
function findInputText(Void) {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
findString(String.fromCharCode(_local1));
return(true);
}
return(undefined);
}
function findString(str) {
var _local3 = this;
if (_local3.__dataProvider.length == 0) {
} else {
var curIndex = _local3.getSelectedIndex();
if (curIndex == undefined) {
curIndex = 0;
}
var jump = 0;
var _local2 = curIndex + 1;
while (_local2 != curIndex) {
var _local1 = _local3.__dataProvider.getItemAt(_local2);
if (_local1 instanceof XMLNode) {
_local1 = _local1.attributes[_local3.__labelField];
} else if (typeof(_local1) != "string") {
_local1 = String(_local1[_local3.__labelField]);
}
_local1 = _local1.substring(0, str.length);
if ((str == _local1) || (str.toUpperCase() == _local1.toUpperCase())) {
var jump = (_local2 - curIndex);
break;
}
if (_local2 >= (_local3.getLength() - 1)) {
_local2 = -1;
}
_local2++;
}
if (jump != 0) {
_local3.moveSelBy(jump);
}
}
}
function onRowPress(rowIndex) {
var _local1 = this;
if (!_local1.enabled) {
} else {
_local1.isPressed = true;
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
_local1.onMouseUp = _local1.__onMouseUp;
if (!_local1.selectable) {
} else {
_local1.selectRow(rowIndex);
}
}
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
var _local1 = this;
var _local3 = rowIndex;
if (!_local1.enabled) {
} else {
var _local2 = _local1.rows[_local3].item;
if (_local1.getStyle("useRollOver") && (_local2 != undefined)) {
_local1.rows[_local3].drawRow(_local2, "highlighted", false);
}
_local1.dispatchEvent({type:"itemRollOver", index:_local3 + _local1.__vPosition});
}
}
function onRowRollOut(rowIndex) {
var _local1 = this;
var _local2 = rowIndex;
if (!_local1.enabled) {
} else {
if (_local1.getStyle("useRollOver")) {
_local1.rows[_local2].drawRow(_local1.rows[_local2].item, _local1.getStateAt(_local2 + _local1.__vPosition), false);
}
_local1.dispatchEvent({type:"itemRollOut", index:_local2 + _local1.__vPosition});
}
}
function onRowDragOver(rowIndex) {
var _local1 = this;
if (((!_local1.enabled) || (_local1.isPressed != true)) || (!_local1.selectable)) {
} else if (_local1.dropEnabled) {
} else if (_local1.dragScrolling) {
_local1.selectRow(rowIndex, false);
} else {
_local1.onMouseUp = _local1.__onMouseUp;
_local1.onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
var _local1 = this;
if (!_local1.enabled) {
} else if (_local1.dragEnabled) {
} else {
_local1.onRowRollOut(rowIndex);
}
}
function init(Void) {
var _local1 = this;
super.init();
_local1.tabEnabled = true;
_local1.tabChildren = false;
if (_local1.__dataProvider == undefined) {
_local1.__dataProvider = new Array();
_local1.__dataProvider.addEventListener("modelChanged", _local1);
}
_local1.baseRowZ = (_local1.topRowZ = 10);
}
function createChildren(Void) {
var _local1 = this;
super.createChildren();
_local1.listContent = _local1.createEmptyMovieClip("content_mc", _local1.CONTENTDEPTH);
_local1.invLayoutContent = true;
_local1.invalidate();
}
function draw(Void) {
var _local1 = this;
if (_local1.invRowHeight) {
delete _local1.invRowHeight;
_local1.__rowCount = 0;
_local1.listContent.removeMovieClip();
_local1.listContent = _local1.createEmptyMovieClip("content_mc", _local1.CONTENTDEPTH);
}
if (_local1.invUpdateControl) {
_local1.updateControl();
}
_local1.border_mc.draw();
}
function invalidateStyle(propName) {
var _local2 = this;
var _local3 = propName;
if (_local2.isRowStyle[_local3]) {
_local2.invUpdateControl = true;
_local2.invalidate();
} else {
var _local1 = 0;
while (_local1 < _local2.__rowCount) {
_local2.rows[_local1].invalidateStyle(_local3);
_local1++;
}
}
super.invalidateStyle(_local3);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 292 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, __maxHPosition, invScrollProps, invalidate, __hPosition, listContent;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
var _local1 = this;
_local1.__labels = lbls;
_local1.setDataProvider(lbls);
//return(_local1.__get__labels());
}
function setVPosition(pos) {
var _local1 = pos;
var _local2 = this;
_local1 = Math.min((_local2.__dataProvider.length - _local2.__get__rowCount()) + _local2.roundUp, _local1);
_local1 = Math.max(0, _local1);
super.setVPosition(_local1);
}
function setHPosition(pos) {
var _local1 = pos;
_local1 = Math.max(Math.min(__maxHPosition, _local1), 0);
super.setHPosition(_local1);
hScroll(_local1);
}
function setMaxHPosition(pos) {
var _local1 = this;
_local1.__maxHPosition = pos;
_local1.invScrollProps = true;
_local1.invalidate();
}
function setHScrollPolicy(policy) {
var _local1 = this;
var _local2 = policy;
if ((_local2.toLowerCase() == "auto") && (!_local1.autoHScrollAble)) {
} else {
super.setHScrollPolicy(_local2);
if (_local2 == "off") {
_local1.setHPosition(0);
_local1.setVPosition(Math.min((_local1.__dataProvider.length - _local1.__get__rowCount()) + _local1.roundUp, _local1.__vPosition));
}
}
}
function setRowCount(rC) {
var _local2 = this;
if (isNaN(rC)) {
} else {
var _local1 = _local2.getViewMetrics();
_local2.setSize(_local2.__width, ((_local2.__rowHeight * rC) + _local1.top) + _local1.bottom);
}
}
function layoutContent(x, y, tW, tH, dW, dH) {
var _local1 = this;
var _local2 = dW;
_local1.totalWidth = tW;
_local1.totalHeight = tH;
_local1.displayWidth = _local2;
var _local3 = (((_local1.__hScrollPolicy == "on") || (_local1.__hScrollPolicy == "auto")) ? (Math.max(tW, _local2)) : (_local2));
super.layoutContent(x, y, _local3, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local1 = eventObj.eventName;
if ((((_local1 == "addItems") || (_local1 == "removeItems")) || (_local1 == "updateAll")) || (_local1 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local2 = this;
var _local1 = eventObj.target;
if (_local1 == _local2.vScroller) {
_local2.setVPosition(_local1.scrollPosition);
} else {
_local2.hScroll(_local1.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
var _local2 = this;
super.init();
if (_local2.labels.length > 0) {
var dp = new Array();
var _local1 = 0;
while (_local1 < _local2.labels.length) {
dp.addItem({label:_local2.labels[_local1], data:_local2.data[_local1]});
_local1++;
}
_local2.setDataProvider(dp);
}
_local2.__maxHPosition = 0;
}
function createChildren(Void) {
var _local1 = this;
super.createChildren();
_local1.listContent.setMask(_local1.mask_mc);
_local1.border_mc.move(0, 0);
_local1.border_mc.setSize(_local1.__width, _local1.__height);
}
function getRowCount(Void) {
var _local1 = this;
var _local2 = _local1.getViewMetrics();
if (_local1.__rowCount != 0) {
return(_local1.__rowCount);
}
return(Math.ceil(((_local1.__height - _local2.top) - _local2.bottom) / _local1.__rowHeight));
}
function size(Void) {
var _local2 = this;
super.size();
_local2.configureScrolling();
var _local1 = _local2.getViewMetrics();
_local2.layoutContent(_local1.left, _local1.top, _local2.__width + _local2.__maxHPosition, _local2.totalHeight, (_local2.__width - _local1.left) - _local1.right, (_local2.__height - _local1.top) - _local1.bottom);
}
function draw(Void) {
var _local1 = this;
if (_local1.invRowHeight) {
_local1.invScrollProps = true;
super.draw();
_local1.listContent.setMask(_local1.mask_mc);
_local1.invLayoutContent = true;
}
if (_local1.invScrollProps) {
_local1.configureScrolling();
delete _local1.invScrollProps;
}
if (_local1.invLayoutContent) {
var _local2 = _local1.getViewMetrics();
_local1.layoutContent(_local2.left, _local2.top, _local1.__width + _local1.__maxHPosition, _local1.totalHeight, (_local1.__width - _local2.left) - _local2.right, (_local1.__height - _local2.top) - _local2.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local1 = this;
var _local2 = _local1.__dataProvider.length;
if (_local1.__vPosition > Math.max(0, (_local2 - _local1.getRowCount()) + _local1.roundUp)) {
_local1.setVPosition(Math.max(0, Math.min((_local2 - _local1.getRowCount()) + _local1.roundUp, _local1.__vPosition)));
}
var _local3 = _local1.getViewMetrics();
var vWidth = ((_local1.__hScrollPolicy != "off") ? (((_local1.__maxHPosition + _local1.__width) - _local3.left) - _local3.right) : ((_local1.__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
_local1.setScrollProperties(vWidth, 1, _local2, _local1.__rowHeight);
if (_local1.oldVWidth != vWidth) {
_local1.invLayoutContent = true;
}
_local1.oldVWidth = vWidth;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.1.78";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 293 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var updateFunc, endFunc;
function Tween (listenerObj, init, end, dur) {
var _local1 = this;
super();
if (listenerObj == undefined) {
} else {
if (typeof(init) != "number") {
_local1.arrayMode = true;
}
_local1.listener = listenerObj;
_local1.initVal = init;
_local1.endVal = end;
if (dur != undefined) {
_local1.duration = dur;
}
_local1.startTime = getTimer();
if (_local1.duration == 0) {
_local1.endTween();
} else {
AddTween(_local1);
}
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local3 = index;
var _local2 = ActiveTweens;
if (((_local3 >= _local2.length) || (_local3 < 0)) || (_local3 == undefined)) {
} else {
_local2.splice(_local3, 1);
var len = _local2.length;
var _local1 = _local3;
while (_local1 < len) {
_local2[_local1].ID--;
_local1++;
}
if (len == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local1 = this;
var _local2 = getTimer() - _local1.startTime;
var _local3 = _local1.getCurVal(_local2);
if (_local2 >= _local1.duration) {
_local1.endTween();
} else if (_local1.updateFunc != undefined) {
_local1.listener[_local1.updateFunc](_local3);
} else {
_local1.listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
var _local2 = this;
if (_local2.arrayMode) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.initVal.length) {
_local3[_local1] = _local2.easingEquation(curTime, _local2.initVal[_local1], _local2.endVal[_local1] - _local2.initVal[_local1], _local2.duration);
_local1++;
}
return(_local3);
}
return(_local2.easingEquation(curTime, _local2.initVal, _local2.endVal - _local2.initVal, _local2.duration));
}
function endTween() {
var _local1 = this;
if (_local1.endFunc != undefined) {
_local1.listener[_local1.endFunc](_local1.endVal);
} else {
_local1.listener.onTweenEnd(_local1.endVal);
}
RemoveTweenAt(_local1.ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 9 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0
class mx.controls.UIScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var textField, wasHorizontal, __width, __height, _parent, synchScroll, setScrollProperties, __set__scrollPosition, initializing, _rotation, _xscale, hScroller, vScroller, onChanged, onScroller, scrollPosition, dispatchEvent;
function UIScrollBar () {
super();
}
function init(Void) {
super.init();
textField.owner = this;
horizontal = (wasHorizontal);
if (horizontal) {
((textField != undefined) ? (super.setSize(textField._width, 16)) : (super.setSize(__width, __height)));
} else {
((textField != undefined) ? (super.setSize(16, textField._height)) : (super.setSize(__width, __height)));
}
if (horizontal) {
var _local3 = __width;
__height = __width;
width = _local3;
__width = 16;
}
textField.onScroller = function () {
this.hPosition = this.hscroll;
this.vPosition = this.scroll - 1;
};
if (_targetInstanceName != undefined) {
setScrollTarget(_targetInstanceName);
_targetInstanceName.addListener(this);
}
}
function get _targetInstanceName() {
return(textField);
}
function get height() {
if (wasHorizontal) {
return(__width);
}
return(__height);
}
function get width() {
if (wasHorizontal) {
return(__height);
}
return(__width);
}
function size(Void) {
super.size();
onTextChanged();
}
function draw() {
super.draw();
}
function set _targetInstanceName(t) {
if (t == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
var _local3 = _parent[t];
textField = _parent[t];
onTextChanged();
//return(_targetInstanceName);
}
function setSize(w, h) {
if (horizontal) {
super.setSize(h, w);
} else {
super.setSize(w, h);
}
}
function onTextChanged(Void) {
if (textField == undefined) {
return(undefined);
}
clearInterval(synchScroll);
if (horizontal) {
var _local2 = textField.hscroll;
setScrollProperties(textField._width, 0, textField.maxhscroll);
__set__scrollPosition(Math.min(_local2, textField.maxhscroll));
} else {
var _local2 = textField.scroll;
var _local3 = textField.bottomScroll - textField.scroll;
setScrollProperties(_local3, 1, textField.maxscroll);
__set__scrollPosition(Math.min(_local2, textField.maxscroll));
}
}
function get horizontal() {
return(wasHorizontal);
}
function set horizontal(v) {
wasHorizontal = v;
if (v and initializing) {
if (_rotation == 90) {
return;
}
_xscale = -100;
_rotation = -90;
}
if (!initializing) {
if (v) {
if (_rotation == 0) {
_rotation = -90;
_xscale = -100;
}
} else if (_rotation == -90) {
_rotation = 0;
_xscale = 100;
}
}
//return(horizontal);
}
function callback(prop, oldval, newval) {
clearInterval(hScroller.synchScroll);
clearInterval(vScroller.synchScroll);
hScroller.synchScroll = setInterval(hScroller, "onTextChanged", 50);
vScroller.synchScroll = setInterval(vScroller, "onTextChanged", 50);
return(newval);
}
function setScrollTarget(tF) {
if (tF == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
textField = tF;
if (horizontal) {
textField.hScroller = this;
textField.hScroller.lineScrollSize = 5;
} else {
textField.vScroller = this;
textField.vScroller.lineScrollSize = 1;
}
onTextChanged();
onChanged = function (Void) {
this.onTextChanged();
};
onScroller = function (Void) {
if (!this.isScrolling) {
if (!this.horizontal) {
this.scrollPosition = this.textField.scroll;
} else {
this.scrollPosition = this.textField.hscroll;
}
}
};
textField.addListener(this);
textField.watch("text", callback);
textField.watch("htmlText", callback);
}
function scrollHandler(Void) {
if (horizontal) {
var _local2 = textField.background;
textField.hscroll = scrollPosition;
textField.background = _local2;
} else {
textField.scroll = scrollPosition;
}
}
function setEnabled(enable) {
super.setEnabled(enable);
if (enable) {
textField.addListener(this);
} else {
textField.removeListener();
}
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll"});
}
static var symbolName = "UIScrollBar";
static var symbolOwner = mx.controls.UIScrollBar;
var className = "UIScrollBar";
var clipParameters = {_targetInstanceName:1, horizontal:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters);
static var version = "2.0.1.78";
}
Symbol 108 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.1.78";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 109 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.1.78";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 113 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 114 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 117 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.1.78";
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 118 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 119 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 120 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 121 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 123 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.1.78";
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 124 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 125 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.1.78";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 128 MovieClip [__Packages.mx.containers.ScrollPane] Frame 0
class mx.containers.ScrollPane extends mx.core.ScrollView
{
var _total, _loaded, destroyChildAt, createChild, __scrollContent, spContentHolder, hScroller, vScroller, __get__hScrollPolicy, __vScrollPolicy, __get__vScrollPolicy, tabEnabled, keyDown, mask_mc, hPosition, __get__maxHPosition, vPosition, __get__maxVPosition, __hPosition, __vPosition, invalidate;
function ScrollPane () {
super();
}
function getBytesTotal() {
return(_total);
}
function getBytesLoaded() {
return(_loaded);
}
function set contentPath(scrollableContent) {
if (!initializing) {
if (scrollableContent == undefined) {
destroyChildAt(0);
} else {
if (this[mx.core.View.childNameBase + 0] != undefined) {
destroyChildAt(0);
}
createChild(scrollableContent, "spContentHolder");
}
}
__scrollContent = scrollableContent;
//return(contentPath);
}
function get contentPath() {
return(__scrollContent);
}
function get content() {
return(spContentHolder);
}
function setHPosition(position) {
if ((position <= hScroller.maxPos) && (position >= hScroller.minPos)) {
super.setHPosition(position);
spContentHolder._x = -position;
}
}
function setVPosition(position) {
if ((position <= vScroller.maxPos) && (position >= vScroller.minPos)) {
super.setVPosition(position);
spContentHolder._y = -position;
}
}
function get vLineScrollSize() {
return(__vLineScrollSize);
}
function set vLineScrollSize(vLineSize) {
__vLineScrollSize = vLineSize;
vScroller.__set__lineScrollSize(vLineSize);
//return(vLineScrollSize);
}
function get hLineScrollSize() {
return(__hLineScrollSize);
}
function set hLineScrollSize(hLineSize) {
__hLineScrollSize = hLineSize;
hScroller.__set__lineScrollSize(hLineSize);
//return(hLineScrollSize);
}
function get vPageScrollSize() {
return(__vPageScrollSize);
}
function set vPageScrollSize(vPageSize) {
__vPageScrollSize = vPageSize;
vScroller.__set__pageScrollSize(vPageSize);
//return(vPageScrollSize);
}
function get hPageScrollSize() {
return(__hPageScrollSize);
}
function set hPageScrollSize(hPageSize) {
__hPageScrollSize = hPageSize;
hScroller.__set__pageScrollSize(hPageSize);
//return(hPageScrollSize);
}
function set hScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
//return(__get__hScrollPolicy());
}
function set vScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
//return(__get__vScrollPolicy());
}
function get scrollDrag() {
return(__scrollDrag);
}
function set scrollDrag(s) {
__scrollDrag = s;
if (__scrollDrag) {
spContentHolder.useHandCursor = true;
spContentHolder.onPress = function () {
this._parent.startDragLoop();
};
spContentHolder.tabEnabled = false;
spContentHolder.onRelease = (spContentHolder.onReleaseOutside = function () {
delete this.onMouseMove;
});
__scrollDrag = true;
} else {
delete spContentHolder.onPress;
spContentHolder.tabEnabled = false;
spContentHolder.tabChildren = true;
spContentHolder.useHandCursor = false;
__scrollDrag = false;
}
//return(scrollDrag);
}
function init(Void) {
super.init();
tabEnabled = true;
keyDown = _onKeyDown;
}
function createChildren(Void) {
super.createChildren();
mask_mc._visible = false;
initializing = false;
if ((__scrollContent != undefined) && (__scrollContent != "")) {
contentPath = (__scrollContent);
}
}
function size(Void) {
super.size();
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
hPosition = Math.min(hPosition, __get__maxHPosition());
vPosition = Math.min(vPosition, __get__maxVPosition());
}
function setScrollProperties(columnCount, columnWidth, rowCount, rowHeight) {
super.setScrollProperties(columnCount, columnWidth, rowCount, rowHeight);
hScroller.__set__lineScrollSize(__hLineScrollSize);
hScroller.__set__pageScrollSize(__hPageScrollSize);
vScroller.__set__lineScrollSize(__vLineScrollSize);
vScroller.__set__pageScrollSize(__vPageScrollSize);
}
function onScroll(scrollEvent) {
super.onScroll(scrollEvent);
spContentHolder._x = -__hPosition;
spContentHolder._y = -__vPosition;
}
function childLoaded(obj) {
super.childLoaded(obj);
onComplete();
}
function onComplete(Void) {
setScrollProperties(spContentHolder._width, 1, spContentHolder._height, 1);
hPosition = 0;
vPosition = 0;
scrollDrag = (__scrollDrag);
invalidate();
}
function startDragLoop(Void) {
spContentHolder.lastX = spContentHolder._xmouse;
spContentHolder.lastY = spContentHolder._ymouse;
spContentHolder.onMouseMove = function () {
var _local5 = this.lastX - this._xmouse;
var _local4 = this.lastY - this._ymouse;
_local5 = _local5 + this._parent.hPosition;
_local4 = _local4 + this._parent.vPosition;
var _local3 = this._parent.getViewMetrics();
var _local7 = (this._parent.__height - _local3.top) - _local3.bottom;
var _local6 = (this._parent.__width - _local3.left) - _local3.right;
this._parent.__hPosition = Math.max(0, Math.min(_local5, this._width - _local6));
this._parent.__vPosition = Math.max(0, Math.min(_local4, this._height - _local7));
this._parent.hScroller.scrollPosition = this._parent.__hPosition;
this._x = -this._parent.hPosition;
this._parent.vScroller.scrollPosition = this._parent.__vPosition;
this._y = -this._parent.vPosition;
super.dispatchEvent({type:"scroll"});
};
}
function dispatchEvent(o) {
o.target = this;
_total = o.total;
_loaded = o.current;
super.dispatchEvent(o);
}
function refreshPane(Void) {
contentPath = (__scrollContent);
}
function _onKeyDown(e) {
if (e.code == 40) {
vPosition = vPosition + vLineScrollSize;
} else if (e.code == 38) {
vPosition = vPosition - vLineScrollSize;
} else if (e.code == 37) {
hPosition = hPosition - hLineScrollSize;
} else if (e.code == 39) {
hPosition = hPosition + hLineScrollSize;
} else if (e.code == 33) {
vPosition = vPosition - vPageScrollSize;
} else if (e.code == 34) {
vPosition = vPosition + vPageScrollSize;
} else if (e.code == 36) {
vPosition = vScroller.minPos;
} else if (e.code == 35) {
vPosition = vScroller.maxPos;
}
}
static var symbolName = "ScrollPane";
static var symbolOwner = mx.containers.ScrollPane;
var className = "ScrollPane";
static var version = "2.0.1.78";
var __hScrollPolicy = "auto";
var __scrollDrag = false;
var __vLineScrollSize = 5;
var __hLineScrollSize = 5;
var __vPageScrollSize = 20;
var __hPageScrollSize = 20;
var clipParameters = {contentPath:1, scrollDrag:1, hScrollPolicy:1, vScrollPolicy:1, vLineScrollSize:1, hLineScrollSize:1, vPageScrollSize:1, hPageScrollSize:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.containers.ScrollPane.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var initializing = true;
}
Symbol 294 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Symbol 311 MovieClip Frame 1
stop();
Instance of Symbol 327 MovieClip "f01" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
randomMover(this);
}
Instance of Symbol 329 MovieClip "f02" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
randomMover(this);
}
Instance of Symbol 331 MovieClip "f03" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
randomMover(this);
}
Instance of Symbol 333 MovieClip "f04" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
randomMover(this);
}
Instance of Symbol 335 MovieClip "f05" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
randomMover(this);
}
Instance of Symbol 337 MovieClip "f06" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
randomMover(this);
}
Instance of Symbol 339 MovieClip "f07" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
randomMover(this);
}
Symbol 343 Button
on (release) {
gotoAndPlay ("CHA01FIRST");
}
Symbol 344 Button
on (release) {
popup_mc.gotoAndPlay("INSTRUCT");
}
Symbol 345 Button
on (release) {
gotoAndPlay ("HSCORES");
}
Symbol 356 MovieClip Frame 1
Symbol 356 MovieClip Frame 16
_parent.gotoAndStop(1);
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 2
soundCon.sfxPlay(_root.sfxBonObj, "catapult", 100);
Symbol 359 MovieClip Frame 10
stop();
Symbol 359 MovieClip Frame 15
soundCon.sfxPlay(_root.sfxBonObj, "catapult", 100);
Symbol 359 MovieClip Frame 40
gotoAndStop (1);
Symbol 363 MovieClip Frame 6
stop();
Symbol 374 Button
on (release) {
gotoAndStop (1);
}
Symbol 382 Button
on (release) {
gotoAndStop (1);
}
Symbol 403 Button
on (release) {
var e_from = email_from_txt.text;
var e_to = email_to_txt.text;
var e_subj = email_subject_txt.text;
var e_body = email_body_txt.text;
if ((((e_from == "") || (e_from == undefined)) || (e_to == "")) || (e_to == undefined)) {
getURL ("JavaScript:alert('Please fill out both a FROM E-MAIL address and a TO E-MAIL address. Thank you.');");
} else {
var sendToPath = "";
var sendToFile = gameObj.dStore.prefs.challengeSettings.sendMailURL;
var gameID = 1;
var fullSendURL = ((((((((((((sendToPath + sendToFile) + "?") + "gameID=") + gameID) + "&fromEmail=") + e_from) + "&toEmail=") + e_to) + "&subject=") + e_subj) + "&message=") + e_body);
trace("fullSendURL:" + fullSendURL);
_root.success = false;
loadVariables (fullSendURL, _root, "POST");
gotoAndPlay ("SENDING");
}
}
Symbol 406 MovieClip Frame 1
gameObj.dStore.dynClips.setAllVisibleTo(true);
stop();
Symbol 406 MovieClip Frame 5
stopAllSounds();
gameObj.clearTrajectory();
gameObj.dStore.dynClips.setAllVisibleTo(false);
gameObj.iFace.timer.pauseTimer();
stop();
Instance of Symbol 367 MovieClip in Symbol 406 MovieClip Frame 5
onClipEvent (load) {
this._btn.useHandCursor = false;
}
Symbol 406 MovieClip Frame 7
Symbol 406 MovieClip Frame 8
stopAllSounds();
gameObj.clearTrajectory();
gameObj.dStore.dynClips.setAllVisibleTo(false);
gameObj.iFace.timer.pauseTimer();
stop();
Symbol 406 MovieClip Frame 10
Symbol 406 MovieClip Frame 11
stopAllSounds();
gameObj.clearTrajectory();
gameObj.dStore.dynClips.setAllVisibleTo(false);
gameObj.iFace.timer.pauseTimer();
stop();
Symbol 406 MovieClip Frame 14
stopAllSounds();
gameObj.clearTrajectory();
gameObj.dStore.dynClips.setAllVisibleTo(false);
gameObj.iFace.timer.pauseTimer();
Instance of Symbol 131 MovieClip [ScrollPane] "rules_sp" in Symbol 406 MovieClip Frame 14
//component parameters
onClipEvent (initialize) {
contentPath = "DOC_RULES";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 406 MovieClip Frame 22
stop();
Symbol 406 MovieClip Frame 23
stopAllSounds();
gameObj.clearTrajectory();
gameObj.dStore.dynClips.setAllVisibleTo(false);
gameObj.iFace.timer.pauseTimer();
Instance of Symbol 131 MovieClip [ScrollPane] "princ_sp" in Symbol 406 MovieClip Frame 23
//component parameters
onClipEvent (initialize) {
contentPath = "DOC_PRINCIPLES";
hLineScrollSize = 5;
hPageScrollSize = 20;
hScrollPolicy = "auto";
scrollDrag = false;
vLineScrollSize = 5;
vPageScrollSize = 20;
vScrollPolicy = "auto";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 406 MovieClip Frame 30
stop();
Symbol 406 MovieClip Frame 34
stopAllSounds();
gameObj.clearTrajectory();
gameObj.dStore.dynClips.setAllVisibleTo(false);
gameObj.iFace.timer.pauseTimer();
Symbol 406 MovieClip Frame 41
email_subject_txt.text = gameObj.dStore.prefs.challengeSettings.sendMailSUBJECT;
email_body_txt.text = gameObj.dStore.prefs.challengeSettings.sendMailBODY;
stop();
Symbol 406 MovieClip Frame 44
if (gameObj.dStore.numEmailSent == undefined) {
gameObj.dStore.numEmailSent = 1;
} else {
gameObj.dStore.numEmailSent++;
}
Symbol 406 MovieClip Frame 56
Symbol 406 MovieClip Frame 59
stop();
Symbol 413 Button
on (press) {
adjArrow4_mc._x = _xmouse;
adjArrow4_mc.setClip(_xmouse);
}
Symbol 418 Button
on (press) {
this.startDrag(false, 0, this._y, 200, this._y);
showHilite();
}
on (release) {
this.stopDrag();
trace(this);
setClip(this._x);
hideHilite();
}
on (dragOut, releaseOutside) {
this.stopDrag();
hideHilite();
}
Instance of Symbol 419 MovieClip "adjArrow4_mc" in Symbol 423 MovieClip Frame 1
onClipEvent (load) {
trace(" ----- > LAUNCH ARROW ON ");
setClip = function (theX) {
trace(" ----- > LAUNCH ARROW SETCLIP ");
trace("theX:" + theX);
var _local1 = theX - 10;
if (_local1 > 180) {
_local1 = 180;
}
if (_local1 < 0) {
_local1 = 0;
}
_parent.cheightclip_mc._yscale = _local1;
_parent.cheight_txt.text = String(Math.floor(int(_local1 / 2)));
gameObj.dStore.adjustSettings.launchAngle = Math.floor(int(_local1 / 2));
gameObj.callAllCalcs();
};
showHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(4);
gameObj.iFace.adjustDragOn = true;
_parent.cheightclip_mc._alpha = 100;
};
hideHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(1);
gameObj.iFace.adjustDragOn = false;
_parent.cheightclip_mc._alpha = 75;
};
this.setClip(_parent.adjArrow4_mc._x);
}
onClipEvent (enterFrame) {
if (gameObj.iFace.adjustDragOn) {
setClip(this._x);
}
}
Symbol 428 Button
on (press) {
adjArrow5_mc._x = _xmouse;
adjArrow5_mc.setClip(_xmouse);
}
Instance of Symbol 419 MovieClip "adjArrow5_mc" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
setClip = function (theX) {
trace("theX:" + theX);
var _local1 = ((theX / 2) * 0.1) / 4;
trace("theXAdjusted:" + _local1);
if (_local1 > 10) {
_local1 = 10;
}
if (_local1 < 0.1) {
_local1 = 0.1;
}
_parent.cheightclip_mc._yscale = _local1;
_parent.gravity_txt.text = String(_local1);
gameObj.dStore.adjustSettings.gravity = _local1;
gameObj.callAllCalcs();
};
showHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(4);
gameObj.iFace.adjustDragOn = true;
_parent.cheightclip_mc._alpha = 100;
};
hideHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(1);
gameObj.iFace.adjustDragOn = false;
_parent.cheightclip_mc._alpha = 75;
};
this.setClip(_parent.adjArrow5_mc._x);
}
onClipEvent (enterFrame) {
if (gameObj.iFace.adjustDragOn) {
setClip(this._x);
}
}
Symbol 434 Button
on (press) {
adjArrow6_mc._x = _xmouse;
adjArrow6_mc.setClip(_xmouse);
}
Instance of Symbol 419 MovieClip "adjArrow6_mc" in Symbol 437 MovieClip Frame 1
onClipEvent (load) {
setClip = function (theX) {
trace("theX:" + theX);
var _local1 = ((theX / 2) / 5) - 10;
if (_local1 > 10) {
_local1 = 10;
}
if (_local1 < -10) {
_local1 = -10;
}
_parent.cheightclip_mc._yscale = _local1;
_parent.windMag_txt.text = String(Math.floor(int(_local1)));
gameObj.dStore.adjustSettings.windMag = Math.floor(int(_local1 * 5));
gameObj.callAllCalcs();
};
showHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(4);
gameObj.iFace.adjustDragOn = true;
_parent.cheightclip_mc._alpha = 100;
};
hideHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(1);
gameObj.iFace.adjustDragOn = false;
_parent.cheightclip_mc._alpha = 75;
};
this.setClip(_parent.adjArrow6_mc._x);
}
onClipEvent (enterFrame) {
if (gameObj.iFace.adjustDragOn) {
setClip(this._x);
}
}
Symbol 446 Button
on (press) {
adjArrow1_mc._x = _xmouse;
adjArrow1_mc.setClip(_xmouse);
}
Symbol 449 Button
on (press) {
this.startDrag(false, 20, this._y, 200, this._y);
showHilite();
}
on (release) {
this.stopDrag();
trace(this);
setClip(this._x);
hideHilite();
}
on (dragOut, releaseOutside) {
this.stopDrag();
hideHilite();
}
Instance of Symbol 450 MovieClip "adjArrow1_mc" in Symbol 453 MovieClip Frame 1
onClipEvent (load) {
trace("-----------------------------------");
setClip = function (theX) {
var _local2 = _parent;
var _local1 = theX;
if (_local1 < 20) {
_local1 = 20;
}
_local2.pmassclip_mc._xscale = _local1 * 0.7;
_local2.pmassclip_mc._yscale = _local1 * 0.7;
_local2.pmass_txt.text = String(Math.floor(int(_local1 / 2)));
gameObj.dStore.adjustSettings.pMass = Math.floor(int(_local1 / 2));
gameObj.callAllCalcs();
};
showHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(2);
gameObj.iFace.adjustDragOn = true;
_parent.pmassclip_mc._alpha = 100;
};
hideHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(1);
gameObj.iFace.adjustDragOn = false;
_parent.pmassclip_mc._alpha = 75;
};
trace(" BEGIN : X:" + (gameObj.dStore.adjustSettings.pMass * 4));
trace(" BEGIN : pMass:" + gameObj.dStore.adjustSettings.pMass);
_parent.adjArrow1_mc._x = (gameObj.dStore.adjustSettings.pMass * 4) / 2;
this.setClip(_parent.adjArrow1_mc._x);
}
onClipEvent (enterFrame) {
if (gameObj.iFace.adjustDragOn) {
setClip(this._x);
}
}
Symbol 454 Button
on (press) {
adjArrow2_mc._x = _xmouse;
adjArrow2_mc.setClip(_xmouse);
}
Instance of Symbol 450 MovieClip "adjArrow2_mc" in Symbol 459 MovieClip Frame 1
onClipEvent (load) {
trace("-----------------------------------");
setClip = function (theX) {
var _local2 = _parent;
var _local1 = theX;
if (_local1 < 10) {
_local1 = 10;
}
_local2.cmassclip_mc._xscale = _local1 * 0.7;
_local2.cmassclip_mc._yscale = _local1 * 0.7;
_local2.cmass_txt.text = String(Math.floor(int(_local1 / 2)));
gameObj.dStore.adjustSettings.cMass = Math.floor(int(_local1 / 2));
gameObj.callAllCalcs();
};
showHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(3);
gameObj.iFace.adjustDragOn = true;
_parent.cmassclip_mc._alpha = 100;
};
hideHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(1);
gameObj.iFace.adjustDragOn = false;
_parent.cmassclip_mc._alpha = 75;
};
trace(" BEGIN : X:" + (gameObj.dStore.adjustSettings.cMass * 4));
trace(" BEGIN : cMass:" + gameObj.dStore.adjustSettings.cMass);
_parent.adjArrow2_mc._x = (gameObj.dStore.adjustSettings.cMass * 4) / 2;
this.setClip(_parent.adjArrow2_mc._x);
}
onClipEvent (enterFrame) {
if (gameObj.iFace.adjustDragOn) {
setClip(this._x);
}
}
Symbol 460 Button
on (press) {
adjArrow3_mc._x = _xmouse;
adjArrow3_mc.setClip(_xmouse);
}
Instance of Symbol 450 MovieClip "adjArrow3_mc" in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
trace("-----------------------------------");
setClip = function (theX) {
var _local1 = theX;
if (_local1 < 10) {
_local1 = 10;
}
_parent.cheightclip_mc._yscale = _local1 * 0.7;
_parent.cheight_txt.text = String(Math.floor(int(_local1 / 2)));
gameObj.dStore.adjustSettings.cHeight = Math.floor(int(_local1 / 2));
gameObj.callAllCalcs();
};
showHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(4);
gameObj.iFace.adjustDragOn = true;
_parent.cheightclip_mc._alpha = 100;
};
hideHilite = function () {
_parent._parent.trebHilite_mc.gotoAndStop(1);
gameObj.iFace.adjustDragOn = false;
_parent.cheightclip_mc._alpha = 75;
};
trace(" BEGIN : X:" + (gameObj.dStore.adjustSettings.cHeight * 4));
trace(" BEGIN : cMass:" + gameObj.dStore.adjustSettings.cHeight);
_parent.adjArrow3_mc._x = (gameObj.dStore.adjustSettings.cHeight * 4) / 2;
this.setClip(_parent.adjArrow3_mc._x);
}
onClipEvent (enterFrame) {
if (gameObj.iFace.adjustDragOn) {
setClip(this._x);
}
}
Symbol 471 Button
on (release) {
_parent.gotoAndPlay("RESETFRAME");
}
Symbol 474 MovieClip Frame 3
stop();
Symbol 474 MovieClip Frame 4
gotoAndPlay (1);
Instance of Symbol 453 MovieClip "adjPMASS_mc" in Symbol 474 MovieClip Frame 5
/* no clip actions */
Symbol 474 MovieClip Frame 6
stop();
Symbol 474 MovieClip Frame 8
stop();
Symbol 474 MovieClip Frame 10
gotoAndPlay (1);
Instance of Symbol 287 MovieClip [ComboBox] "learn_cb" in Symbol 477 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
editable = false;
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 482 Button
on (release) {
popup_mc.gotoAndPlay("INSTRUCT");
gameObj.iFace.timer.pauseTimer();
}
Symbol 486 Button
on (release) {
popup_mc.gotoAndPlay("CHALL");
gameObj.iFace.timer.pauseTimer();
}
Symbol 490 Button
on (release) {
popup_mc.gotoAndPlay("PRINCIPLES");
gameObj.iFace.timer.pauseTimer();
}
Symbol 525 MovieClip Frame 1
if (gameObj.iFace.timer.timerON) {
millitime = (getTimer() / 60000) - int(gameObj.iFace.timer.startTime / 60000);
trace("millitime:" + millitime);
if (time_seconds < 10) {
time_seconds = "0";
} else {
time_seconds = "";
}
time_seconds = time_seconds + String(int(millitime * 60));
mymin = int(getTimer() / 60000);
if (Number(mymin) < 1) {
mintime = "00";
} else {
if (mymin < 10) {
mintime = "0";
}
mintime = mintime + String(int(getTimer() / 60000));
}
time_minutes = mintime;
}
Symbol 525 MovieClip Frame 2
gameObj.iFace.timer.mytotalTime = (getTimer() / 1000) - gameObj.iFace.timer.pauseLength;
gameObj.iFace.timer.goTime = gameObj.iFace.timer.mytotalTime - gameObj.iFace.timer.buttonPressTime;
if (gameObj.iFace.timer.timing) {
gameObj.iFace.timer.hours = Math.floor(gameObj.iFace.timer.goTime / 3600);
gameObj.iFace.timer.minutes = Math.floor(((gameObj.iFace.timer.goTime / 3600) - gameObj.iFace.timer.hours) * 60);
gameObj.iFace.timer.seconds = Math.floor(((((gameObj.iFace.timer.goTime / 3600) - gameObj.iFace.timer.hours) * 60) - gameObj.iFace.timer.minutes) * 60);
gameObj.iFace.timer.milli = Math.floor((gameObj.iFace.timer.gotime - ((gameObj.iFace.timer.seconds + (gameObj.iFace.timer.minutes * 60)) + (gameObj.iFace.timer.hours * 3600))) * 100);
seconds.text = gameObj.iFace.timer.seconds;
minutes.text = gameObj.iFace.timer.minutes;
if (gameObj.iFace.timer.seconds < 10) {
seconds.text = "0" + gameObj.iFace.timer.seconds;
}
if (gameObj.iFace.timer.seconds == 0) {
seconds.text = "00";
}
if (gameObj.iFace.timer.minutes < 10) {
minutes.text = "0" + gameObj.iFace.timer.minutes;
}
if (gameObj.iFace.timer.minutes == 0) {
minutes.text = "00";
}
}
Symbol 543 Button
on (release) {
soundCon.musicOFF();
gotoAndStop ("musicOFF");
}
Symbol 546 Button
on (release) {
soundCon.musicON();
gotoAndStop ("musicON");
}
Symbol 547 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 1
gameObj.clearChallengeAttempts();
gameObj.dStore.dynClips.removeAllClips();
Symbol 550 MovieClip Frame 2
challName_mc.challName_txt.text = gameObj.dStore.challengeName;
Symbol 550 MovieClip Frame 11
challName_mc.challName_txt.text = gameObj.dStore.challengeName;
Symbol 550 MovieClip Frame 51
challName_mc.challName_txt.text = gameObj.dStore.challengeName;
Symbol 550 MovieClip Frame 60
challName_mc.challName_txt.text = gameObj.dStore.challengeName;
Symbol 550 MovieClip Frame 61
trace("gameObj.dStore.endGameMessage " + gameObj.dStore.endGameMessage);
if ((gameObj.dStore.endGameMessage == "") || (gameObj.dStore.endGameMessage == undefined)) {
_parent.play();
} else {
_parent.endGameMsg.play();
}
stop();
Symbol 550 MovieClip Frame 120
gameObj.clearChallengeAttempts();
gameObj.dStore.dynClips.removeAllClips();
Symbol 550 MovieClip Frame 133
stop();
Symbol 551 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 2
challName_mc.challName_txt.text = gameObj.dStore.endGameMessage;
Symbol 551 MovieClip Frame 11
challName_mc.challName_txt.text = gameObj.dStore.endGameMessage;
Symbol 551 MovieClip Frame 81
challName_mc.challName_txt.text = gameObj.dStore.endGameMessage;
Symbol 551 MovieClip Frame 90
challName_mc.challName_txt.text = gameObj.dStore.endGameMessage;
Symbol 551 MovieClip Frame 91
_parent.play();
stop();
Symbol 551 MovieClip Frame 150
gameObj.clearChallengeAttempts();
gameObj.dStore.dynClips.removeAllClips();
Symbol 551 MovieClip Frame 163
stop();
Symbol 555 Button
on (release) {
gotoAndPlay ("CHA02GO");
}
Symbol 586 Button
on (release) {
gotoAndPlay ("CHA03GO");
}
Symbol 591 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 2
soundCon.sfxPlay(_root.sfxBonObj, "cash", 200);
Symbol 591 MovieClip Frame 20
gotoAndStop (1);
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 2
soundCon.sfxPlay(_root.sfxBonObj, "cash", 50);
Symbol 596 MovieClip Frame 20
gotoAndStop (1);
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
soundCon.sfxPlay(_root.sfxBonObj, "cash", 100);
Symbol 600 MovieClip Frame 20
gotoAndStop (1);
Symbol 608 Button
on (release) {
gotoAndPlay ("HSCORESCHECK");
}
Symbol 624 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 11
stop();
Symbol 625 MovieClip Frame 1
Symbol 635 Button
on (release) {
var backPage = gameObj.iFace.getBackPage();
trace("< backPage:" + backPage);
_root.gotoAndPlay(backPage);
}
Symbol 644 Button
on (release) {
popup_mc.gotoAndPlay("CHALL");
gameObj.iFace.timer.pauseTimer();
}
Symbol 645 Button
on (release) {
gotoAndPlay ("RESETFRAME");
}
Symbol 655 Button
on (release) {
function bitOR(a, b) {
var _local1 = (a & 1) | (b & 1);
var _local2 = (a >>> 1) | (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitXOR(a, b) {
var _local1 = (a & 1) ^ (b & 1);
var _local2 = (a >>> 1) ^ (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitAND(a, b) {
var _local1 = (a & 1) & (b & 1);
var _local2 = (a >>> 1) & (b >>> 1);
return((_local2 << 1) | _local1);
}
function addme(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rhex(num) {
var _local1 = num;
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((_local1 >> ((j * 8) + 4)) & 15) + hex_chr.charAt((_local1 >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
var _local1 = str;
nblk = ((_local1.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < _local1.length) {
blks[i >> 2] = blks[i >> 2] | (_local1.charCodeAt(i) << ((((_local1.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((_local1.length * 8) + i) % 4) * 8));
var _local2 = _local1.length * 8;
blks[(nblk * 16) - 2] = _local2 & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 24) & 255) << 24);
return(blks);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
var _local1 = b;
return(cmn(bitOR(bitAND(_local1, c), bitAND(~_local1, d)), a, _local1, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var _local1;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
_local1 = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
args = new Object();
args.gameID = gameObj.dStore.prefs.highSettings.thisGameID;
args.uid = _parent.email_from_txt.text;
args.un = _parent.name_txt.text;
args.score = _parent.score_txt.text;
stop();
var hex_chr = "0123456789abcdef";
args.scoreHash = calcMD5(_parent.score_txt.text);
postScore(args);
gotoAndStop (2);
_parent.gotoAndPlay("HSPOST");
}
Symbol 657 MovieClip Frame 1
stop();