Frame 1
function SyncPos(mcTarget, mcScope) {
var _local3 = mcTarget;
var _local2 = new Object();
_local2.x = _local3._x;
_local2.y = _local3._y;
_local3._parent.localToGlobal(_local2);
mcScope.globalToLocal(_local2);
this.x = _local2.x;
this.y = _local2.y;
}
function SyncMouse(mcTarget) {
var _local2 = new Object();
var _local3 = mcTarget._parent;
_local2.x = _local3._xmouse;
_local2.y = _local3._ymouse;
this.x = _local2.x;
this.y = _local2.y;
}
function GlobalPos(mcTarget) {
var _local3 = mcTarget;
var _local2 = new Object();
_local2.x = _local3._x;
_local2.y = _local3._y;
_local3._parent.localToGlobal(_local2);
this.x = _local2.x;
this.y = _local2.y;
}
function parseData() {
var _local1 = 0;
for (_local1 in myData) {
if (_local1.contains("clipData_")) {
myData[_local1] = myData[_local1].split(",");
}
}
censorList = myData.censor.split(",");
}
function resetScores() {
scores.length = 0;
highScoreIndexes.length = 0;
highScore = 0;
}
function processInput(input) {
resetScores();
input = (" " + input.toLowerCase()) + " ";
input.removePunct();
inputQueue.push(input);
prevInputField.text = input;
if (input.length > 1) {
var _local4;
var _local5 = 0;
var _local2 = 0;
var _local3 = 0;
while (_local3 < myData.numClips) {
_local2 = 0;
_local4 = myData["clipData_" + _local3];
var _local1 = 0;
while (_local1 <= _local4.length) {
_local5 = input.findCount(_local4[_local1]);
_local2 = _local2 + _local5;
_local1++;
}
scores[_local3] = _local2;
_local3++;
}
}
highScore = scores.max();
highScoreIndexes = scores.getIndexesOf(highScore);
chosenClipIndex = highScoreIndexes[random(highScoreIndexes.length)];
if ((((highScore == 0) || (highScore == "")) || (highScore == null)) || (highScore == undefined)) {
processInput("DEFAULT");
return(undefined);
}
vidQueue.push(chosenClipIndex);
display(chosenClipIndex);
}
function display(clip) {
debug.bestScore.text = highScore;
debug.bestScoreIndexes.text = highScoreIndexes;
debug.matchesField.text = highScoreIndexes.length;
debug.clipNum.text = clip;
debug.matchDataField.text = myData["clipData_" + clip];
debug.queueField.text = vidQueue;
if (vidQueue.length == 0) {
comm._visible = false;
} else {
comm._visible = true;
}
}
function playMovie() {
var _local2 = this;
var _local3 = vidQueue[vidQueue.length - queueLength];
debug.nowPlayingField.text = _local3;
if (censorList.contains(_local3)) {
censored._visible = true;
} else {
censored._visible = false;
}
vidQueue = vidQueue.slice(vidQueue.length - queueLength, vidQueue.length - queueLength);
inputQueue = inputQueue.slice(inputQueue.length - queueLength, inputQueue.length - queueLength);
if (vidQueue.length == 0) {
comm._visible = false;
} else {
comm._visible = true;
}
mc = vidHolder.createEmptyMovieClip("vid" + vidDepth, vidDepth);
mc.loadMovie(("vids/clip_" + _local3) + ".swf");
vidHolder["vid" + (vidDepth - 2)].removeMovieClip();
vidDepth++;
vidHolder.count = 0;
vidHolder.onEnterFrame = function () {
var _local2 = this;
_local2.vid = _local2["vid" + (vidDepth - 1)];
var _local3 = _local2.vid._totalframes;
var _local5 = _local2.vid._currentframe;
var _local4 = _local2.vid._framesloaded;
if (_local3 > 1) {
if ((_local4 == _local3) && (_local5 == _local3)) {
if (vidQueue.length >= 1) {
playMovie();
} else {
processInput("INACTIVE");
playMovie();
}
}
}
_local2.vid.stop();
if ((_local2.count % 4) == 0) {
_local2.vid.gotoAndStop(_local2.vid._currentframe + 1);
}
_local2.count++;
};
}
function setDropDown() {
}
function rolloverEffect() {
}
MovieClip.prototype.setVisible = function (param) {
this._visible = param;
};
MovieClip.prototype.getPercentLoaded = function () {
var _local2 = this;
if (_local2.getBytesTotal() < 20) {
return(0);
}
return((_local2.getBytesLoaded() * 100) / _local2.getBytesTotal());
};
MovieClip.prototype.centerStage = function () {
var _local2 = 786;
var _local4 = this._width;
var _local3 = _local4 / 2;
var _local6 = _local2 / 2;
var _local5 = Math.floor(_local6 - _local3);
this._x = _local5;
};
MovieClip.prototype.getLowestDepth = function () {
var _local2 = this;
var _local3 = 0;
for (var _local4 in _local2) {
if (typeof(_local2[_local4]) == "movieclip") {
_local3 = _local2[_local4].getDepth();
}
}
return(_local3);
};
MovieClip.prototype.killChildren = function () {
var _local2 = this;
for (var _local3 in _local2) {
if (typeof(_local2[_local3]) == "movieclip") {
_local2[_local3].removeMovieClip();
}
}
};
MovieClip.prototype.getHighestDepth = function () {
var _local2 = this;
var _local3 = 0;
for (var _local4 in _local2) {
if (typeof(_local2[_local4]) == "movieclip") {
_local3 = _local2[_local4].getDepth();
break;
}
}
if (_local3 < 0) {
_local3 = 0;
}
return(_local3);
};
MovieClip.prototype.getNextHighestDepth = function () {
return(++this.nextHighestDepth);
};
MovieClip.prototype.getHighestDepthAvailable = function () {
var _local3 = this;
var _local5 = 0;
var _local4 = new Array();
for (var _local2 in _local3) {
if (typeof(_local3[_local2]) == "movieclip") {
_local4[_local3[_local2].getDepth()] = _local3[_local2];
}
}
var _local2 = _local4.length;
while (_local2 > 0) {
if (_local4[_local2 - 1] == null) {
_local5 = _local2 - 1;
break;
}
_local2--;
}
return(_local5);
};
_global.timerNum = 0;
_level0.createEmptyMovieClip("timer", 985321);
MovieClip.prototype.pauseAndInvoke = function (myDelay, myFunction, myLocation, p0, p1, p2) {
var _local6 = this;
var _local3 = timerNum;
_global.timerNum++;
_level0.timer.createEmptyMovieClip("timer_" + _local3, _local3);
var _local5 = _level0.timer["timer_" + _local3];
_local5.time = myDelay;
_local5.onEnterFrame = function () {
var _local2 = this;
if (_local2.time <= 0) {
myLocation[myFunction](p0, p1, p2);
_local2.removeMovieClip();
return(undefined);
}
_local2.time--;
};
};
MovieClip.prototype.transform = function (myTween, myDuration, myProperty, myValue) {
var _local5 = this;
var amplitude = 2;
var period = 0.5;
var _local7 = arguments;
var inputLength = ((arguments.length - 3) / 2);
var duration = myDuration;
var property = new Array();
var pStart = new Array();
var pChange = new Array();
var _local4 = null;
var _local8 = null;
var _local6 = 0;
while (_local6 < inputLength) {
_local4 = _local7[2 + (_local6 * 2)];
_local8 = _local7[3 + (_local6 * 2)];
property.push(_local4);
pStart.push(_local5[_local4]);
pChange.push(_local8 - _local5[_local4]);
_local6++;
}
_local5.time = 0;
var _local9 = _local5.getHighestDepth() + 1;
_local5.createEmptyMovieClip("controller" + _local9, _local9);
var _local10 = _local5["controller" + _local9];
_local10.onEnterFrame = function () {
var _local3 = this;
_local3 = _local3._parent;
tween = myTween;
var _local2 = 0;
while (_local2 < inputLength) {
if (pChange[_local2] != 0) {
_local3[property[_local2]] = Math[tween](_local3.time, pStart[_local2], pChange[_local2], duration, amplitude, period);
}
_local2++;
}
if (_local3.time >= duration) {
myConroller.removeMovieClip();
}
_local3.time++;
};
};
MovieClip.prototype.setColor = function (hexRGB) {
var _local2 = this;
var _local3 = new Color(_local2);
_local2.rgb = hexRGB;
_local3.setRGB(_local2.rgb);
};
MovieClip.prototype.transformColor = function (tween, duration, hex, percent, alpha, offset) {
if (arguments.length == 3) {
percent = 100;
alpha = 100;
} else if (arguments.length == 4) {
alpha = 100;
} else if (arguments.length == 5) {
offset = 0;
}
this.transformColorData = new Object();
var mcData = this.transformColorData;
mcData.timer = 0;
mcData.duration = duration;
mcData.percent = percent / 100;
mcData.alpha = alpha / 100;
mcData.tween = tween;
mcData.mcColor = new Color(this);
mcData.colorStart = mcData.mcColor.getTransform();
mcData.colorHolder = new Object();
mcData.colorsArray = new Array("r", "g", "b", "a");
mcData.typeArray = new Array("b", "a");
if (hex == "restore") {
mcData.deltara = (100 - mcData.colorStart.ra) + offset;
mcData.deltaga = (100 - mcData.colorStart.ga) + offset;
mcData.deltaba = (100 - mcData.colorStart.ba) + offset;
mcData.deltaaa = (100 * mcData.alpha) - mcData.colorStart.aa;
mcData.deltarb = -mcData.colorStart.rb;
mcData.deltagb = -mcData.colorStart.gb;
mcData.deltabb = -mcData.colorStart.bb;
mcData.deltaab = -mcData.colorStart.ab;
} else {
mcData.colorDest = Color.hexToRGB(hex);
mcData.deltara = ((100 * (1 - mcData.percent)) - mcData.colorStart.ra) + offset;
mcData.deltaga = ((100 * (1 - mcData.percent)) - mcData.colorStart.ga) + offset;
mcData.deltaba = ((100 * (1 - mcData.percent)) - mcData.colorStart.ba) + offset;
mcData.deltaaa = (100 * mcData.alpha) - mcData.colorStart.aa;
mcData.deltarb = (mcData.colorDest.r * mcData.percent) - mcData.colorStart.rb;
mcData.deltagb = (mcData.colorDest.g * mcData.percent) - mcData.colorStart.gb;
mcData.deltabb = (mcData.colorDest.b * mcData.percent) - mcData.colorStart.bb;
mcData.deltaab = -mcData.colorStart.ab;
}
this.createEmptyMovieClip("mcControlTransformColor", this.getHighestDepth() + 1);
this.mcControlTransformColor.onEnterFrame = function () {
var _local6 = 0;
while (_local6 <= (mcData.typeArray.length - 1)) {
var _local4 = mcData.typeArray[_local6];
var _local3 = 0;
while (_local3 <= (mcData.colorsArray.length - 1)) {
var _local2 = mcData.colorsArray[_local3];
var _local5 = mcData[("delta" + _local2) + _local4];
if (_local5 != 0) {
mcData.colorHolder[_local2 + _local4] = Math[mcData.tween](mcData.timer, mcData.colorStart[_local2 + _local4], mcData[("delta" + _local2) + _local4], mcData.duration, mcData.amplitude, mcData.period);
}
_local3++;
}
_local6++;
}
mcData.mcColor.setTransform(mcData.colorHolder);
if (mcData.timer >= mcData.duration) {
this.removeMovieClip();
return(undefined);
}
mcData.timer++;
};
};
MovieClip.prototype.fadeInBrightness = function (increment, delay) {
var _local2 = this;
_local2._visible = true;
_local2.brightness = new Color(_local2);
_local2.brightnessTrans = new Object();
_local2.brightnessTrans.rb = 255;
_local2.brightnessTrans.bb = 255;
_local2.brightnessTrans.gb = 255;
_local2.brightness.setTransform(_local2.brightnessTrans);
updateAfterEvent();
_local2.createEmptyMovieClip("fadeMC", 763121);
_local2.fadeMC.increment = increment;
_local2.fadeMC.delay = delay;
_local2.fadeMC.onEnterFrame = function () {
var _local2 = this;
if (_local2.delay <= 0) {
if (_local2._parent.brightnessTrans.rb <= 0) {
_local2.removeMovieClip();
} else {
_local2.newValue = _local2._parent.brightnessTrans.gb - _local2.increment;
if (_local2.newValue < 0) {
_local2.newValue = 0;
}
_local2._parent.brightnessTrans.rb = _local2.newValue;
_local2._parent.brightnessTrans.bb = _local2.newValue;
_local2._parent.brightnessTrans.gb = _local2.newValue;
_local2._parent.brightness.setTransform(_local2._parent.brightnessTrans);
updateAfterEvent();
}
return(undefined);
}
_local2.delay--;
};
};
MovieClip.prototype.fadeOutBrightness = function (increment, delay) {
var _local2 = this;
_local2.brightness = new Color(_local2);
_local2.brightnessTrans = new Object();
_local2.brightnessTrans.rb = 0;
_local2.brightnessTrans.bb = 0;
_local2.brightnessTrans.gb = 0;
_local2.brightness.setTransform(_local2.brightnessTrans);
updateAfterEvent();
_local2.createEmptyMovieClip("fadeMC", 763121);
_local2.fadeMC.increment = increment;
_local2.fadeMC.delay = delay;
_local2.fadeMC.onEnterFrame = function () {
var _local2 = this;
if (_local2.delay <= 0) {
if (_local2._parent.brightnessTrans.rb >= 255) {
_local2.removeMovieClip();
} else {
_local2.newValue = _local2._parent.brightnessTrans.rb + _local2.increment;
if (_local2.newValue < 0) {
_local2.newValue = 0;
}
_local2._parent.brightnessTrans.rb = _local2.newValue;
_local2._parent.brightnessTrans.bb = _local2.newValue;
_local2._parent.brightnessTrans.gb = _local2.newValue;
_local2._parent.brightness.setTransform(_local2._parent.brightnessTrans);
updateAfterEvent();
}
return(undefined);
}
_local2.delay--;
};
};
MovieClip.prototype.fadeIn = function (increment, delay) {
var _local2 = this;
_local2._visible = true;
_local2._alpha = 0;
_local2.createEmptyMovieClip("fadeMC", 763121);
_local2.fadeMC.alphaTrans = increment;
_local2.fadeMC.delay = delay;
_local2.fadeMC.onEnterFrame = function () {
var _local2 = this;
if (_local2.delay <= 0) {
if (_local2._parent._alpha >= 100) {
_local2.removeMovieClip();
} else {
_local2._parent._alpha = _local2._parent._alpha + _local2.alphaTrans;
}
return(undefined);
}
_local2.delay--;
};
};
MovieClip.prototype.fadeOut = function (increment, delay) {
var _local2 = this;
_local2.createEmptyMovieClip("fadeMC", 763121);
_local2.fadeMC.alphaTrans = -1 * increment;
_local2.fadeMC.delay = delay;
_local2.fadeMC.onEnterFrame = function () {
var _local2 = this;
if (_local2.delay <= 0) {
if (_local2._parent._alpha <= 0) {
_local2.removeMovieClip();
} else {
_local2._parent._alpha = _local2._parent._alpha + _local2.alphaTrans;
}
return(undefined);
}
_local2.delay--;
};
};
Math.convertToScale = function (x, xmin, xmax, ymin, ymax) {
var _local1 = (((x - xmin) * (ymax - ymin)) / (xmax - xmin)) + ymin;
return(_local1);
};
Math.getChance = function (chance) {
var _local1 = Math.floor(Math.random() * (chance + 1));
if (_local1 == chance) {
return(true);
}
return(false);
};
Math.getCircleIntersectDistance = function (circ1, circ2) {
var _local1 = circ2;
var _local2 = circ1;
var _local7 = _local2._width / 2;
var _local8 = _local1._width / 2;
var _local3 = Math.getDistance(_local2._x, _local2._y, _local1._x, _local1._y);
var _local5 = Math.pow(_local7, 2);
var _local6 = Math.pow(_local8, 2);
var _local4 = Math.pow(_local3, 2);
var _local9 = ((_local5 - _local6) + _local4) / (2 * _local3);
return(Math.round(_local9));
};
Math.degreesToRadians = function (degrees) {
return(degrees * 0.01745329);
};
Math.getAngle = function (x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local3 = y2 - y1;
var _local1 = (-180 * Math.atan2(_local3, _local2)) / 3.141593;
return(Math.round(_local1));
};
Math.getDistance = function (x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local3 = y2 - y1;
var _local1 = Math.sqrt(Math.pow(_local2, 2) + Math.pow(_local3, 2));
return(_local1);
};
Math.getRadPoint = function (angle, radius, mc) {
var _local2 = mc;
var _local6 = Math.degreesToRadians(angle);
var _local3 = radius * Math.cos(_local6);
var _local4 = radius * Math.sin(_local6);
var _local1 = new Object();
if (((_local2 != null) && (_local2 != undefined)) && (_local2 != "")) {
var _local5 = new syncPos(_local2);
_local1.x = _local5.x + _local3;
_local1.y = _local5.y - _local4;
} else {
_local1.x = _local3;
_local1.y = _local4;
}
return(_local1);
};
Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
};
Math.easeInQuad = function (t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((c / 2) * _local1) * _local1) + b);
}
_local1--;
return((((-c) / 2) * ((_local1 * (_local1 - 2)) - 1)) + b);
};
Math.easeInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((c * _local1) * _local1) * _local1) + b);
};
Math.easeOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * _local1) + 1)) + b);
};
Math.easeInOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((c / 2) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((_local1 * _local1) * _local1) + 2)) + b);
};
Math.easeInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((((c * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return(((-c) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
};
Math.easeInOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((((c / 2) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + b);
};
Math.easeInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((((c * _local1) * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((((c / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + b);
};
Math.easeInSine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * 1.570796)) + c) + b);
};
Math.easeOutSine = function (t, b, c, d) {
return((c * Math.sin((t / d) * 1.570796)) + b);
};
Math.easeInOutSine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((3.141593 * t) / d) - 1)) + b);
};
Math.easeInExpo = function (t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
};
Math.easeOutExpo = function (t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
};
Math.easeInOutExpo = function (t, b, c, d) {
var _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local2);
}
_local1--;
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local2);
};
Math.easeInCirc = function (t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
};
Math.easeOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * Math.sqrt(1 - (_local1 * _local1))) + b);
};
Math.easeInOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + b);
};
Math.easeInElastic = function (t, b, c, d, a, p) {
var _local2 = p;
var _local1 = t;
var _local3 = c;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / d;
if (_local1 == 1) {
return(b + _local3);
}
if (!_local2) {
_local2 = d * 0.3;
}
if (a < Math.abs(_local3)) {
a = _local3;
var _local5 = _local2 / 4;
} else {
var _local5 = (_local2 / 6.283185) * Math.asin(_local3 / a);
}
_local1 = _local1 - 1;
return((((-a) * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - _local5) * 6.283185) / _local2)) + b);
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
var _local2 = c;
var _local3 = p;
var _local1 = t;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / d;
if (_local1 == 1) {
return(b + _local2);
}
if (!_local3) {
_local3 = d * 0.3;
}
if (a < Math.abs(_local2)) {
a = _local2;
var _local5 = _local3 / 4;
} else {
var _local5 = (_local3 / 6.283185) * Math.asin(_local2 / a);
}
return((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - _local5) * 6.283185) / _local3)) + _local2) + b);
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = p;
var _local3 = c;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + _local3);
}
if (!_local2) {
_local2 = d * 0.45;
}
if (a < Math.abs(_local3)) {
a = _local3;
var _local5 = _local2 / 4;
} else {
var _local5 = (_local2 / 6.283185) * Math.asin(_local3 / a);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((a * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - _local5) * 6.283185) / _local2))) + b);
}
_local1 = _local1 - 1;
return(((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - _local5) * 6.283185) / _local2)) * 0.5) + _local3) + b);
};
Math.easeInBack = function (t, b, c, d, s) {
var _local2 = s;
var _local1 = t;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / d;
return((((c * _local1) * _local1) * (((_local2 + 1) * _local1) - _local2)) + b);
};
Math.easeOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
};
Math.easeInOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local2 = _local2 * 1.525;
return(((c / 2) * ((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2))) + b);
}
_local1 = _local1 - 2;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 2)) + b);
};
Math.easeInBounce = function (t, b, c, d) {
return((c - Math.easeOutBounce(d - t, 0, c, d)) + b);
};
Math.easeOutBounce = function (t, b, c, d) {
var _local1 = t;
var _local2 = c;
var _local3 = b;
_local1 = _local1 / d;
if (_local1 < 0.3636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.7272727) {
_local1 = _local1 - 0.5454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.9090909) {
_local1 = _local1 - 0.8181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.9545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
};
Math.easeInOutBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeInBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeOutBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
String.prototype.contains = function (searchSubstr) {
if ((searchSubstr.length < 1) || (this.indexOf(searchSubstr) == -1)) {
return(false);
}
var _local3 = this;
var _local9 = _local3.length;
var _local8 = searchSubstr.length;
var _local7 = searchSubstr.substring(0, 1);
var _local2 = _local3.indexOf(_local7);
var _local5;
var _local4;
while ((_local2 > -1) && (_local2 < _local9)) {
_local4 = _local2 + _local8;
_local5 = _local3.substring(_local2, _local4);
if (_local5 == searchSubstr) {
return(true);
}
_local2 = _local3.indexOf(_local7, _local2 + 1);
}
return(false);
};
String.prototype.findCount = function (searchSubstr) {
var _local6 = 0;
if ((searchSubstr.length < 1) || (this.indexOf(searchSubstr) == -1)) {
return(_local6);
}
var _local3 = this;
var _local9 = _local3.length;
var _local10 = searchSubstr.length;
var _local8 = searchSubstr.substring(0, 1);
var _local2 = _local3.indexOf(_local8);
var _local5;
var _local4;
while ((_local2 > -1) && (_local2 < _local9)) {
_local4 = _local2 + _local10;
_local5 = _local3.substring(_local2, _local4);
if (_local5 == searchSubstr) {
_local6++;
}
_local2 = _local3.indexOf(_local8, _local2 + 1);
}
return(_local6);
};
String.prototype.replace = function (searchSubstr, replaceSubstr) {
var _local6 = ((arguments[2] != null) ? (arguments[2]) : 0);
if ((searchSubstr.length < 1) || (this.indexOf(searchSubstr) == -1)) {
return(this);
}
var _local4 = this;
var _local9 = _local4.length;
var _local15 = searchSubstr.length;
var _local16 = replaceSubstr.length;
var _local14 = searchSubstr.substring(0, 1);
var _local5 = new Array(3);
var _local10 = 0;
var _local3 = _local4.indexOf(_local14);
var _local12;
var _local8;
var _local11;
var _local7;
while ((_local3 > -1) && (_local3 < _local9)) {
_local7 = _local3 + _local15;
_local12 = _local4.substring(_local3, _local7);
if (_local12 == searchSubstr) {
_local8 = _local4.substring(0, _local3);
_local11 = _local4.substring(_local7);
_local5[0] = _local8;
_local5[1] = replaceSubstr;
_local5[2] = _local11;
_local4 = _local5.join("");
_local10++;
_local9 = ((((_local6 > 0) && (_local10 < _local6)) || (_local6 == 0)) ? (_local4.length) : -1);
_local3 = _local8.length + _local16;
}
_local3 = _local4.indexOf(_local14, _local3 + 1);
}
this=_local4;//parameter overwritten
return(_local4);
};
String.prototype.removePunct = function () {
var _local2 = this.replace("?", " ");
_local2 = _local2.replace(".", " ");
_local2 = _local2.replace(",", " ");
_local2 = _local2.replace("!", " ");
_local2 = _local2.replace(" ", " ");
this=_local2;//parameter overwritten
return(_local2);
};
Array.prototype.max = function () {
var _local3 = this;
var _local2;
var _local4 = _local3[0];
_local2 = 1;
while (_local2 < _local3.length) {
if (_local4 < _local3[_local2]) {
_local4 = _local3[_local2];
}
_local2++;
}
return(_local4);
};
Array.prototype.getIndexesOf = function (value) {
var _local3 = this;
var _local4 = new Array();
var _local2 = 0;
while (_local2 <= _local3.length) {
if (_local3[_local2] == value) {
_local4.push(_local2);
}
_local2++;
}
return(_local4);
};
Array.prototype.contains = function (value) {
var _local3 = this;
var _local4 = false;
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2] == value) {
_local4 = true;
break;
}
_local2++;
}
return(_local4);
};
myData = new LoadVars();
myData.preset1 = "dance";
myData.preset2 = "do the worm";
myData.preset3 = "hide";
myData.preset4 = "jump";
myData.preset5 = "chicken sandwich";
myData.censor = "";
myData.numClips = "339";
myData.clipData_24 = "full, 1";
myData.clipData_23 = "black,off, o";
myData.clipData_22 = "Show, camshow, c";
myData.clipData_21 = "Butt, ass, a";
myData.clipData_20 = "Smile, s";
myData.clipData_19 = "kiss, blow, k";
myData.clipData_18 = "five, 5, high, f";
myData.clipData_17 = "tits, boobs, flash, b";
myData.clipData_16 = "inactive";
myData.clipData_15 = "wave, w";
myData.clipData_14 = "default";
myData.clipData_13 = "no, n";
myData.clipData_12 = "middle, flip, m";
myData.clipData_11 = "p, peace";
myData.clipData_10 = "heart, h";
myData.clipData_9 = "inactive";
myData.clipData_8 = "inactive";
myData.clipData_7 = "inactive";
myData.clipData_6 = "inactive,stand still, stop";
myData.clipData_5 = "start";
var scores = new Array();
var highScoreIndexes = new Array();
var highScore = 0;
var chosenClipIndex;
var vidDepth = 1;
var queueLength = 1;
var vidQueue = new Array();
var inputQueue = new Array();
var matchQueue = new Array();
var censorList = new Array();
parseData();
debug._visible = false;
Frame 11
loader.onEnterFrame = function () {
var _local3 = _root;
bt = _local3.getBytesTotal();
bl = _local3.getBytesLoaded();
if (bl == bt) {
_local3.play();
delete this.onEnterFrame;
}
loadedField.text = bl;
};
stop();
Frame 95
function dropHandler(component) {
var _local1 = component;
if (_local1.getValue() != "") {
inputField.text = _local1.getValue();
resetComboBox(_local1);
return(undefined);
}
resetComboBox(_local1);
}
function resetComboBox(component) {
var _local4 = this;
ctrl = _root.createEmptyMovieClip("comboCtrl", 777);
ctrl.count = 0;
ctrl.onEnterFrame = function () {
var _local2 = this;
if (_local2.count == 1) {
component.setSelectedIndex(0);
Selection.setFocus("_root");
delete _local2.onEnterFrame;
_local2.removeMovieClip();
}
_local2.count++;
};
}
var initInput = "Type in your command here.";
inputField.text = initInput;
inputField.onSetFocus = function () {
if (this.text == initInput) {
this.text = "";
}
};
dropDown.addItem("", "");
var i = 1;
while (i <= 5) {
dropDown.addItem(myData["preset" + i], myData["preset" + i]);
i++;
}
dropDown.setChangeHandler("dropHandler");
processInput("START");
playMovie();
stop();
Symbol 3 MovieClip [FLabelSymbol] Frame 1
#initclip 3
_global.FLabelClass = function () {
var _local2 = this;
if (_local2.hostComponent == undefined) {
_local2.hostComponent = ((_local2._parent.controller == undefined) ? (_local2._parent) : (_local2._parent.controller));
}
if (_local2.customTextStyle == undefined) {
if (_local2.hostComponent.textStyle == undefined) {
_local2.hostComponent.textStyle = new TextFormat();
}
_local2.textStyle = _local2.hostComponent.textStyle;
_local2.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local2 = this;
var _local3 = _local2.hostComponent.styleTable.embedFonts.value;
if (_local3 != undefined) {
_local2.labelField.embedFonts = _local3;
}
_local2.labelField.setNewTextFormat(_local2.textStyle);
_local2.labelField.text = label;
_local2.labelField._height = _local2.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local3 = this;
var _local4 = enable;
_local3.enable = _local4;
var _local2 = _local3.hostComponent.styleTable[(_local4 ? "textColor" : "textDisabled")].value;
if (_local2 == undefined) {
_local2 = (_local4 ? 0 : 8947848);
}
_local3.setColor(_local2);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 6 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 6 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 6 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 7 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local3 = this;
var _local4 = _global;
_local3.enable = true;
_local3.focused = false;
_local3.useHandCursor = false;
_local3._accImpl = new Object();
_local3._accImpl.stub = true;
_local3.styleTable = new Array();
if (_local4.globalStyleFormat == undefined) {
_local4.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local4._focusControl = new Object();
_local4._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local4._focusControl);
}
if (_local3._name != undefined) {
_local3._focusrect = false;
_local3.tabEnabled = true;
_local3.focusEnabled = true;
_local3.tabChildren = false;
_local3.tabFocused = true;
if (_local3.hostStyle == undefined) {
globalStyleFormat.addListener(_local3);
} else {
_local3.styleTable = _local3.hostStyle;
}
_local3.deadPreview._visible = false;
_local3.deadPreview._width = (_local3.deadPreview._height = 1);
_local3.methodTable = new Object();
_local3.keyListener = new Object();
_local3.keyListener.controller = _local3;
_local3.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local3.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local5 in _local3.styleFormat_prm) {
_local3.setStyleProperty(_local5, _local3.styleFormat_prm[_local5]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this;
_local3.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local3.tabEnabled = (_local3.focusEnabled = enabledFlag);
if ((!_local3.enable) && (_local3.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local2 = this;
_local2.width = w;
_local2.height = h;
_local2.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local2 = this;
_local2.handlerObj = ((obj == undefined) ? (_local2._parent) : (obj));
_local2.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local2 = this;
_local2.methodTable[methodName] = true;
_local2.onEnterFrame = _local2.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local2 = this;
if (_local2.methodTable.setSize) {
_local2.setSize(_local2.width, _local2.height);
} else {
_local2.cleanUINotSize();
}
_local2.methodTable = new Object();
delete _local2.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local2 = this;
for (var _local3 in _local2.methodTable) {
_local2[_local3]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local2 = this;
var _local3 = y;
var _local4 = x;
var _local6 = _local2.styleTable.focusRectInner.value;
var _local5 = _local2.styleTable.focusRectOuter.value;
if (_local6 == undefined) {
_local6 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
_local2.createEmptyMovieClip("focusRect", 1000);
_local2.focusRect.controller = _local2;
_local2.focusRect.lineStyle(1, _local5);
_local2.focusRect.moveTo(_local4, _local3);
_local2.focusRect.lineTo(_local4 + w, _local3);
_local2.focusRect.lineTo(_local4 + w, _local3 + h);
_local2.focusRect.lineTo(_local4, _local3 + h);
_local2.focusRect.lineTo(_local4, _local3);
_local2.focusRect.lineStyle(1, _local6);
_local2.focusRect.moveTo(_local4 + 1, _local3 + 1);
_local2.focusRect.lineTo((_local4 + w) - 1, _local3 + 1);
_local2.focusRect.lineTo((_local4 + w) - 1, (_local3 + h) - 1);
_local2.focusRect.lineTo(_local4 + 1, (_local3 + h) - 1);
_local2.focusRect.lineTo(_local4 + 1, _local3 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local2 = this;
_local2.tabFocused = false;
_local2.focusRect.removeMovieClip();
Selection.setFocus(_local2);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local2 = this;
_local2.drawRect(-2, -2, _local2.width + 4, _local2.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local2 = this;
_local2.focused = true;
Key.addListener(_local2.keyListener);
if (_local2.tabFocused) {
_local2.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local2 = this;
_local2.tabFocused = true;
_local2.focused = false;
_local2.focusRect.removeMovieClip();
Key.removeListener(_local2.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local2 = this;
_local2.handlerObj[_local2.changeHandler](_local2);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local3 = this;
var _local4 = propName;
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local18 = ((arguments.length > 2) ? (isGlobal) : false);
if (_local3.styleTable[_local4] == undefined) {
_local3.styleTable[_local4] = new Object();
_local3.styleTable[_local4].useGlobal = true;
}
if (_local3.styleTable[_local4].useGlobal || (!_local18)) {
_local3.styleTable[_local4].value = value;
if (_local3.setCustomStyleProperty(_local4, value)) {
} else if (_local4 == "embedFonts") {
_local3.invalidate("setSize");
} else if (_local4.subString(0, 4) == "text") {
if (_local3.textStyle == undefined) {
_local3.textStyle = new TextFormat();
}
var _local19 = _local4.subString(4, _local4.length);
_local3.textStyle[_local19] = value;
_local3.invalidate("setSize");
} else {
for (var _local16 in _local3.styleTable[_local4].coloredMCs) {
var _local5 = new Color(_local3.styleTable[_local4].coloredMCs[_local16]);
if (_local3.styleTable[_local4].value == undefined) {
var _local6 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local5.setTransform(_local6);
continue;
}
_local5.setRGB(value);
}
}
_local3.styleTable[_local4].useGlobal = _local18;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local2 = this;
var _local3 = propName;
if (_local2.styleTable[_local3] == undefined) {
_local2.styleTable[_local3] = new Object();
_local2.styleTable[_local3].useGlobal = true;
}
if (_local2.styleTable[_local3].coloredMCs == undefined) {
_local2.styleTable[_local3].coloredMCs = new Object();
}
_local2.styleTable[_local3].coloredMCs[skinMCRef] = skinMCRef;
if (_local2.styleTable[_local3].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(_local2.styleTable[_local3].value);
}
};
_global.FStyleFormat = function () {
var _local3 = arguments;
var _local4 = this;
_local4.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local4.listeners = new Object();
_local4.isGlobal = false;
if (_local3.length > 0) {
for (var _local5 in _local3[0]) {
_local4[_local5] = _local3[0][_local5];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = this;
var _local4 = 0;
while (_local4 < arguments.length) {
var _local5 = arguments[_local4];
_local3.listeners[arguments[_local4]] = _local5;
for (var _local6 in _local3) {
if (_local3.isAStyle(_local6)) {
_local5.updateStyleProperty(_local3, _local6.toString());
}
}
_local4++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local2 = this;
var _local3 = component;
_local2.listeners[_local3] = undefined;
for (var _local5 in _local2) {
if (_local2.isAStyle(_local5)) {
if (_local3.styleTable[_local5].useGlobal == _local2.isGlobal) {
_local3.styleTable[_local5].useGlobal = true;
var _local4 = (_local2.isGlobal ? undefined : (globalStyleFormat[_local5]));
_local3.setStyleProperty(_local5, _local4, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local3 = this;
var _local4 = arguments;
var _local8 = 0;
for (var _local7 in _local3.listeners) {
var _local5 = _local3.listeners[_local7];
if (_local4.length > 0) {
var _local6 = 0;
while (_local6 < _local4.length) {
if (_local3.isAStyle(_local4[_local6])) {
_local5.updateStyleProperty(_local3, _local4[_local6]);
}
_local6++;
}
continue;
}
for (var _local6 in _local3) {
if (_local3.isAStyle(_local6)) {
_local5.updateStyleProperty(_local3, _local6.toString());
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 20 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 30 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 39 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 40 MovieClip [UpArrow] Frame 1
stop();
Symbol 40 MovieClip [UpArrow] Frame 2
stop();
Symbol 40 MovieClip [UpArrow] Frame 3
stop();
Symbol 47 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 54 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 59 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 60 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 71 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 72 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 80 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 81 MovieClip [DownArrow] Frame 1
stop();
Symbol 81 MovieClip [DownArrow] Frame 2
stop();
Symbol 81 MovieClip [DownArrow] Frame 3
stop();
Symbol 83 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 84 MovieClip [FScrollBarSymbol] Frame 1
#initclip 5
FScrollBarClass = function () {
var _local2 = this;
if (_local2._height == 4) {
return(undefined);
}
_local2.init();
_local2.minPos = (_local2.maxPos = (_local2.pageSize = (_local2.largeScroll = 0)));
_local2.smallScroll = 1;
_local2.width = (_local2.horizontal ? (_local2._width) : (_local2._height));
_local2._xscale = (_local2._yscale = 100);
_local2.setScrollPosition(0);
_local2.tabEnabled = false;
if (_local2._targetInstanceName.length > 0) {
_local2.setScrollTarget(_local2._parent[_local2._targetInstanceName]);
}
_local2.tabChildren = false;
_local2.setSize(_local2.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local2 = this;
var _local3 = flag;
if (_local2.horizontal && (!_local3)) {
_local2._xscale = 100;
_local2._rotation = 0;
} else if (_local3 && (!_local2.horizontal)) {
_local2._xscale = -100;
_local2._rotation = -90;
}
_local2.horizontal = _local3;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local2 = this;
if (!_local2.enable) {
return(undefined);
}
_local2.pageSize = pSize;
_local2.minPos = Math.max(mnPos, 0);
_local2.maxPos = Math.max(mxPos, 0);
_local2.scrollPosition = Math.max(_local2.minPos, _local2.scrollPosition);
_local2.scrollPosition = Math.min(_local2.maxPos, _local2.scrollPosition);
if ((_local2.maxPos - _local2.minPos) <= 0) {
_local2.scrollThumb_mc.removeMovieClip();
_local2.upArrow_mc.gotoAndStop(3);
_local2.downArrow_mc.gotoAndStop(3);
_local2.downArrow_mc.onPress = (_local2.downArrow_mc.onRelease = (_local2.downArrow_mc.onDragOut = null));
_local2.upArrow_mc.onPress = (_local2.upArrow_mc.onRelease = (_local2.upArrow_mc.onDragOut = null));
_local2.scrollTrack_mc.onPress = (_local2.scrollTrack_mc.onRelease = null);
_local2.scrollTrack_mc.onDragOut = (_local2.scrollTrack_mc.onRollOut = null);
_local2.scrollTrack_mc.useHandCursor = false;
return(undefined);
}
var _local3 = _local2.getScrollPosition();
_local2.upArrow_mc.gotoAndStop(1);
_local2.downArrow_mc.gotoAndStop(1);
_local2.upArrow_mc.onPress = (_local2.upArrow_mc.onDragOver = _local2.startUpScroller);
_local2.upArrow_mc.onRelease = (_local2.upArrow_mc.onDragOut = _local2.stopScrolling);
_local2.downArrow_mc.onPress = (_local2.downArrow_mc.onDragOver = _local2.startDownScroller);
_local2.downArrow_mc.onRelease = (_local2.downArrow_mc.onDragOut = _local2.stopScrolling);
_local2.scrollTrack_mc.onPress = (_local2.scrollTrack_mc.onDragOver = _local2.startTrackScroller);
_local2.scrollTrack_mc.onRelease = _local2.stopScrolling;
_local2.scrollTrack_mc.onDragOut = _local2.stopScrolling;
_local2.scrollTrack_mc.onRollOut = _local2.stopScrolling;
_local2.scrollTrack_mc.useHandCursor = false;
_local2.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local2.scrollThumb_mc._x = 0;
_local2.scrollThumb_mc._y = _local2.upArrow_mc._height;
_local2.scrollThumb_mc.onPress = _local2.startDragThumb;
_local2.scrollThumb_mc.controller = _local2;
_local2.scrollThumb_mc.onRelease = (_local2.scrollThumb_mc.onReleaseOutside = _local2.stopDragThumb);
_local2.scrollThumb_mc.useHandCursor = false;
_local2.thumbHeight = (_local2.pageSize / ((_local2.maxPos - _local2.minPos) + _local2.pageSize)) * _local2.trackSize;
_local2.thumbMid_mc = _local2.scrollThumb_mc.mc_sliderMid;
_local2.thumbTop_mc = _local2.scrollThumb_mc.mc_sliderTop;
_local2.thumbBot_mc = _local2.scrollThumb_mc.mc_sliderBot;
_local2.thumbHeight = Math.max(_local2.thumbHeight, 6);
_local2.midHeight = (_local2.thumbHeight - _local2.thumbTop_mc._height) - _local2.thumbBot_mc._height;
_local2.thumbMid_mc._yScale = (_local2.midHeight * 100) / _local2.thumbMid_mc._height;
_local2.thumbMid_mc._y = _local2.thumbTop_mc._height;
_local2.thumbBot_mc._y = _local2.thumbTop_mc._height + _local2.midHeight;
_local2.scrollTop = _local2.scrollThumb_mc._y;
_local2.trackHeight = _local2.trackSize - _local2.thumbHeight;
_local2.scrollBot = _local2.trackHeight + _local2.scrollTop;
_local3 = Math.min(_local3, _local2.maxPos);
_local2.setScrollPosition(Math.max(_local3, _local2.minPos));
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local2 = this;
var _local3 = pos;
_local2.scrollPosition = _local3;
if (_local2.scrollThumb_mc != undefined) {
_local3 = Math.min(_local3, _local2.maxPos);
_local3 = Math.max(_local3, _local2.minPos);
}
_local2.scrollThumb_mc._y = (((_local3 - _local2.minPos) * _local2.trackHeight) / (_local2.maxPos - _local2.minPos)) + _local2.scrollTop;
_local2.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
var _local3 = enabledFlag;
var _local4 = _local2.enable;
if (_local3 && (!_local4)) {
_local2.enable = _local3;
if (_local2.textField != undefined) {
_local2.setScrollTarget(_local2.textField);
} else {
_local2.setScrollProperties(_local2.pageSize, _local2.cachedMinPos, _local2.cachedMaxPos);
_local2.setScrollPosition(_local2.cachedPos);
}
_local2.clickFilter = undefined;
return(undefined);
}
if ((!_local3) && (_local4)) {
_local2.textField.removeListener(_local2);
_local2.cachedPos = _local2.getScrollPosition();
_local2.cachedMinPos = _local2.minPos;
_local2.cachedMaxPos = _local2.maxPos;
if (_local2.clickFilter == undefined) {
_local2.setScrollProperties(_local2.pageSize, 0, 0);
} else {
_local2.clickFilter = true;
}
_local2.enable = _local3;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local2 = this;
if (_local2._height == 1) {
return(undefined);
}
_local2.width = hgt;
_local2.scrollTrack_mc._yscale = 100;
_local2.scrollTrack_mc._yscale = (100 * _local2.width) / _local2.scrollTrack_mc._height;
if (_local2.upArrow_mc == undefined) {
_local2.attachMovie("UpArrow", "upArrow_mc", 1);
_local2.attachMovie("DownArrow", "downArrow_mc", 2);
_local2.downArrow_mc.controller = (_local2.upArrow_mc.controller = _local2);
_local2.upArrow_mc.useHandCursor = (_local2.downArrow_mc.useHandCursor = false);
_local2.upArrow_mc._x = (_local2.upArrow_mc._y = 0);
_local2.downArrow_mc._x = 0;
}
_local2.scrollTrack_mc.controller = _local2;
_local2.downArrow_mc._y = _local2.width - _local2.downArrow_mc._height;
_local2.trackSize = _local2.width - (2 * _local2.downArrow_mc._height);
if (_local2.textField != undefined) {
_local2.onTextChanged();
return(undefined);
}
_local2.setScrollProperties(_local2.pageSize, _local2.minPos, _local2.maxPos);
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local2 = this;
var _local4 = _local2.smallScroll;
if (inc != "one") {
_local4 = ((_local2.largeScroll == 0) ? (_local2.pageSize) : (_local2.largeScroll));
}
var _local3 = _local2.getScrollPosition() + (mode * _local4);
if (_local3 > _local2.maxPos) {
_local3 = _local2.maxPos;
} else if (_local3 < _local2.minPos) {
_local3 = _local2.minPos;
}
_local2.setScrollPosition(_local3);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local2 = this;
_local2.lastY = _local2._ymouse;
_local2.onMouseMove = _local2.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local2 = this;
_local2.scrollMove = _local2._ymouse - _local2.lastY;
_local2.scrollMove = _local2.scrollMove + _local2._y;
if (_local2.scrollMove < _local2.controller.scrollTop) {
_local2.scrollMove = _local2.controller.scrollTop;
} else if (_local2.scrollMove > _local2.controller.scrollBot) {
_local2.scrollMove = _local2.controller.scrollBot;
}
_local2._y = _local2.scrollMove;
var _local3 = _local2.controller;
_local3.scrollPosition = Math.round(((_local3.maxPos - _local3.minPos) * (_local2._y - _local3.scrollTop)) / _local3.trackHeight) + _local3.minPos;
_local2.controller.isScrolling = true;
updateAfterEvent();
_local2.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local2 = this;
_local2.controller.trackScroller();
_local2.controller.scrolling = setInterval(_local2.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local2 = this;
var _local3 = inc;
clearInterval(_local2.scrolling);
if (_local3 == "page") {
_local2.trackScroller();
} else {
_local2.scrollIt(_local3, mode);
}
_local2.scrolling = setInterval(_local2, "scrollInterval", 35, _local3, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local2 = this;
if ((_local2.scrollThumb_mc._y + _local2.thumbHeight) < _local2._ymouse) {
_local2.scrollIt("page", 1);
return(undefined);
}
if (_local2.scrollThumb_mc._y > _local2._ymouse) {
_local2.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local2 = this;
_local2.controller.downArrow_mc.gotoAndStop(1);
_local2.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local2.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local2 = this;
_local2.controller.upArrow_mc.gotoAndStop(2);
_local2.controller.scrollIt("one", -1);
_local2.controller.scrolling = setInterval(_local2.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local2 = this;
_local2.controller.downArrow_mc.gotoAndStop(2);
_local2.controller.scrollIt("one", 1);
_local2.controller.scrolling = setInterval(_local2.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local2 = this;
var _local3 = tF;
if (_local3 == undefined) {
_local2.textField.removeListener(_local2);
delete _local2.textField[(_local2.horizontal ? "hScroller" : "vScroller")];
if ((_local2.textField.hScroller != undefined) && (_local2.textField.vScroller != undefined)) {
_local2.textField.unwatch("text");
_local2.textField.unwatch("htmltext");
}
}
_local2.textField = undefined;
if (!(_local3 instanceof TextField)) {
return(undefined);
}
_local2.textField = _local3;
_local2.textField[(_local2.horizontal ? "hScroller" : "vScroller")] = _local2;
_local2.onTextChanged();
_local2.onChanged = function () {
this.onTextChanged();
};
_local2.onScroller = function () {
var _local2 = this;
if (!_local2.isScrolling) {
if (!_local2.horizontal) {
_local2.setScrollPosition(_local2.textField.scroll);
return(undefined);
}
_local2.setScrollPosition(_local2.textField.hscroll);
}
};
_local2.textField.addListener(_local2);
_local2.textField.watch("text", _local2.callback);
_local2.textField.watch("htmlText", _local2.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local2 = this;
clearInterval(_local2.hScroller.synchScroll);
clearInterval(_local2.vScroller.synchScroll);
_local2.hScroller.synchScroll = setInterval(_local2.hScroller, "onTextChanged", 50);
_local2.vScroller.synchScroll = setInterval(_local2.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local2 = this;
if ((!_local2.enable) || (_local2.textField == undefined)) {
return(undefined);
}
clearInterval(_local2.synchScroll);
if (_local2.horizontal) {
var _local3 = _local2.textField.hscroll;
_local2.setScrollProperties(_local2.textField._width, 0, _local2.textField.maxhscroll);
_local2.setScrollPosition(Math.min(_local3, _local2.textField.maxhscroll));
return(undefined);
}
var _local3 = _local2.textField.scroll;
var _local4 = _local2.textField.bottomScroll - _local2.textField.scroll;
_local2.setScrollProperties(_local4, 1, _local2.textField.maxscroll);
_local2.setScrollPosition(Math.min(_local3, _local2.textField.maxscroll));
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local3 = this;
if (_local3.textField == undefined) {
super.executeCallBack();
return(undefined);
}
if (_local3.horizontal) {
_local3.textField.hscroll = _local3.getScrollPosition();
return(undefined);
}
_local3.textField.scroll = _local3.getScrollPosition();
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 85 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
var _local2 = this;
_local2.items = new Array();
_local2.uniqueID = 0;
_local2.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local2 = {event:"updateAll"};
viewRef.modelChanged(_local2);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local2 = index;
var _local3 = this;
var _local4 = value;
if (_local2 < _local3.getLength()) {
_local3.items.splice(_local2, 0, "tmp");
}
_local3.items[_local2] = new Object();
if (typeof(_local4) == "object") {
_local3.items[_local2] = _local4;
} else {
_local3.items[_local2].label = _local4;
}
_local3.items[_local2].__ID__ = _local3.uniqueID++;
var _local5 = {event:"addRows", firstRow:_local2, lastRow:_local2};
_local3.updateViews(_local5);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local2 = index;
var _local3 = this;
var _local4 = _local3.items[_local2];
_local3.items.splice(_local2, 1);
var _local5 = {event:"deleteRows", firstRow:_local2, lastRow:_local2};
_local3.updateViews(_local5);
return(_local4);
};
DataProviderClass.prototype.removeAll = function () {
var _local2 = this;
_local2.items = new Array();
_local2.updateViews({event:"deleteRows", firstRow:0, lastRow:_local2.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local2 = index;
var _local3 = this;
if ((_local2 < 0) || (_local2 >= _local3.getLength())) {
return(undefined);
}
var _local5 = _local3.getItemID(_local2);
if (typeof(itemObj) == "object") {
_local3.items[_local2] = itemObj;
} else {
_local3.items[_local2].label = itemObj;
}
_local3.items[_local2].__ID__ = _local5;
_local3.updateViews({event:"updateRows", firstRow:_local2, lastRow:_local2});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local2 = this;
_local2.items.sortOn(fieldName);
if (order == "DESC") {
_local2.items.reverse();
}
_local2.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local3 = this;
var _local4 = eventObj;
var _local2 = 0;
while (_local2 < _local3.views.length) {
_local3.views[_local2].modelChanged(_local4);
_local2++;
}
};
#endinitclip
Symbol 86 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 7
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
var _local2 = this;
if (_local2._name != "itemAsset") {
_local2.highlighted = false;
_local2.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local2 = this;
var _local3 = selected;
_local2.displayContent(itmObj, _local3);
if ((_local2.highlighted != _local3) || ((_local2.controller.focused != _local2.oldFocus) && (_local3))) {
_local2.setHighlighted(_local3);
}
_local2.oldFocus = _local2.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local2 = this;
var _local3 = width;
var _local4 = -16384;
_local2.width = _local3;
_local2.layoutContent(_local3);
_local2.attachMovie("FHighlightSymbol", "highlight_mc", _local4);
_local2.highlight_mc._x = 0.5;
_local2.highlight_mc._width = _local3 - 0.5;
_local2.highlight_mc._height = height;
_local2.highlight_mc.controller = _local2;
_local2.highlight_mc._alpha = 0;
_local2.highlight_mc.trackAsMenu = true;
_local2.highlight_mc.onPress = function () {
var _local2 = this;
if (_local2.controller.enable) {
_local2.controller.controller.clickHandler(_local2.controller.itemNum);
}
};
_local2.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local2.highlight_mc.useHandCursor = false;
_local2.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
var _local3 = enabledFlag;
_local2.enable = _local3;
_local2.fLabel_mc.setEnabled(_local3);
_local2.highlight_mc.gotoAndStop((_local3 ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
var _local2 = this;
_local2.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:_local2.controller});
_local2.fLabel_mc._x = 2;
_local2.fLabel_mc._y = 0;
_local2.fLabel_mc.setSize(width - 2);
_local2.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local3 = itmObj;
var _local2 = "";
if (_local3.label != undefined) {
_local2 = _local3.label;
} else if (typeof(_local3) == "object") {
for (var _local4 in _local3) {
if (_local4 != "__ID__") {
_local2 = (_local3[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = _local3;
}
if (this.fLabel_mc.labelField.text != _local2) {
this.fLabel_mc.setLabel(_local2);
}
var _local5 = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (_local5 == undefined) {
_local5 = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(_local5);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
var _local2 = this;
var _local3 = flag;
fade = _local2.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local3)) {
_local2.highlight_mc._alpha = (_local3 ? 100 : 0);
delete _local2.onEnterFrame;
} else {
_local2.fadeN = fade;
_local2.fadeX = 1;
_local2.highLight_mc._alpha = 20;
_local2.onEnterFrame = function () {
var _local2 = this;
_local2.highLight_mc._alpha = (60 * Math.sqrt((_local2.fadeX++) / _local2.fadeN)) + 40;
if (_local2.fadeX > _local2.fadeN) {
delete _local2.onEnterFrame;
}
};
}
_local2.highlighted = _local3;
};
#endinitclip
Symbol 87 MovieClip [FSelectableListSymbol] Frame 1
#initclip 4
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
var _local3 = this;
super.init();
_local3.enable = true;
_local3.selected = new Array();
_local3.topDisplayed = (_local3.numDisplayed = 0);
_local3.lastSelected = 0;
_local3.tabChildren = false;
if (_local3._name != undefined) {
_local3.dataProvider = new DataProviderClass();
_local3.dataProvider.addView(_local3);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
var _local2 = this;
_local2.selectHolder = _local2.getSelectedIndex();
var _local3 = _local2.getItemAt(index);
_local2.dataProvider.removeItemAt(index);
return(_local3);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
var _local2 = this;
_local2.lastSelID = _local2.dataProvider.getItemID(_local2.lastSelected);
_local2.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local3 = this;
for (var _local4 in _local3.selected) {
var _local2 = _local3.selected[_local4].sIndex;
if (_local2 != undefined) {
return(_local2);
}
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var _local2 = this.getSelectedItem();
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local2 = this;
var _local3 = index;
if (((_local3 >= 0) && (_local3 < _local2.getLength())) && (_local2.enable)) {
_local2.clearSelected();
_local2.selectItem(_local3, true);
_local2.lastSelected = _local3;
_local2.invalidate("updateControl");
if (flag != false) {
_local2.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local3 = obj;
this.setScrollPosition(0);
this.clearSelected();
if (_local3 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = ((typeof(_local3[_local2]) == "string") ? ({label:_local3[_local2]}) : (_local3[_local2]));
this.dataProvider.addItem(_local4);
_local2++;
}
} else {
this.dataProvider = _local3;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local2 = this;
_local2.tmpPos = _local2.getScrollPosition();
_local2.itemSymbol = linkID;
_local2.invalidate("setSize");
_local2.setScrollPosition(_local2.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local4 = this;
_local4.cleanUI();
super.setEnabled(enabledFlag);
_local4.enable = enabledFlag;
_local4.boundingBox_mc.gotoAndStop((_local4.enable ? "enabled" : "disabled"));
var _local5 = Math.min(_local4.numDisplayed, _local4.getLength());
var _local3 = 0;
while (_local3 < _local5) {
_local4.container_mc[("fListItem" + _local3) + "_mc"].setEnabled(_local4.enable);
_local3++;
}
if (_local4.enable) {
_local4.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local3 = this;
var _local2 = 0;
while (_local2 < _local3.numDisplayed) {
_local3.container_mc[("fListItem" + _local2) + "_mc"].drawItem(_local3.getItemAt(_local3.topDisplayed + _local2), _local3.isSelected(_local3.topDisplayed + _local2));
_local2++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local3 = this;
super.setSize(w, h);
_local3.boundingBox_mc._xscale = (_local3.boundingBox_mc._yscale = 100);
_local3.boundingBox_mc._xscale = (_local3.width * 100) / _local3.boundingBox_mc._width;
_local3.boundingBox_mc._yscale = (_local3.height * 100) / _local3.boundingBox_mc._height;
var _local4 = 0;
while (_local4 < _local3.numDisplayed) {
_local3.container_mc.attachMovie(_local3.itemSymbol, ("fListItem" + _local4) + "_mc", 10 + _local4, {controller:_local3, itemNum:_local4});
var _local5 = _local3.container_mc[("fListItem" + _local4) + "_mc"];
var _local6 = ((_local3.scrollOffset == undefined) ? 0 : (_local3.scrollOffset));
_local5.setSize(_local3.width - _local6, _local3.itmHgt);
_local5._y = (_local3.itmHgt - 2) * _local4;
_local4++;
}
_local3.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local2 = this;
var _local5 = eventObj.firstRow;
var _local7 = eventObj.lastRow;
var _local9 = eventObj.event;
if (_local9 == "addRows") {
for (var _local3 in _local2.selected) {
if ((_local2.selected[_local3].sIndex != undefined) && (_local2.selected[_local3].sIndex >= _local5)) {
_local2.selected[_local3].sIndex = _local2.selected[_local3].sIndex + ((_local7 - _local5) + 1);
_local2.setSelectedIndex(_local2.selected[_local3].sIndex, false);
}
}
} else if (_local9 == "deleteRows") {
if (_local5 == _local7) {
var _local8 = _local5;
if (_local2.selectHolder == _local8) {
_local2.selectionDeleted = true;
}
if (((_local2.topDisplayed + _local2.numDisplayed) >= _local2.getLength()) && (_local2.topDisplayed > 0)) {
_local2.topDisplayed--;
if (_local2.selectionDeleted && ((_local8 - 1) >= 0)) {
_local2.setSelectedIndex(_local8 - 1, false);
}
} else if (_local2.selectionDeleted) {
var _local6 = _local2.getLength();
if (((_local8 == (_local6 - 1)) && (_local6 > 1)) || (_local8 > (_local6 / 2))) {
_local2.setSelectedIndex(_local8 - 1, false);
} else {
_local2.setSelectedIndex(_local8, false);
}
}
for (var _local3 in _local2.selected) {
if (_local2.selected[_local3].sIndex > _local5) {
_local2.selected[_local3].sIndex--;
}
}
} else {
_local2.clearSelected();
_local2.topDisplayed = 0;
}
} else if (_local9 == "sort") {
var _local6 = _local2.getLength();
var _local3 = 0;
while (_local3 < _local6) {
if (_local2.isSelected(_local3)) {
var _local4 = _local2.dataProvider.getItemID(_local3);
if (_local4 == _local2.lastSelID) {
_local2.lastSelected = _local3;
}
_local2.selected[String(_local4)].sIndex = _local3;
}
_local3++;
}
}
_local2.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local2 = this;
_local2.attachMovie(_local2.itemSymbol, "tmpItem_mc", 0, {controller:_local2});
_local2.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local2.itmHgt = _local2.tmpItem_mc._height;
_local2.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local2 = this;
var _local3 = index;
if (selectedFlag && (!_local2.isSelected(_local3))) {
_local2.selected[String(_local2.dataProvider.getItemID(_local3))] = {sIndex:_local3};
return(undefined);
}
if (!selectedFlag) {
delete _local2.selected[String(_local2.dataProvider.getItemID(_local3))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local2 = this;
for (var _local4 in _local2.selected) {
var _local3 = _local2.selected[_local4].sIndex;
if (((_local3 != undefined) && (_local2.topDisplayed <= _local3)) && (_local3 < (_local2.topDisplayed + _local2.numDisplayed))) {
_local2.container_mc[("fListItem" + (_local3 - _local2.topDisplayed)) + "_mc"].drawItem(_local2.getItemAt(_local3), false);
}
}
delete _local2.selected;
_local2.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local2 = this;
var _local3 = _local2.topDisplayed + itemNum;
if (_local2.getItemAt(_local3 == undefined)) {
_local2.changeFlag = false;
return(undefined);
}
_local2.changeFlag = true;
_local2.clearSelected();
_local2.selectItem(_local3, true);
_local2.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local2.getItemAt(_local3), _local2.isSelected(_local3));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local2 = this;
var _local4 = _local2.getSelectedIndex();
var _local3 = _local4 + incr;
_local3 = Math.max(0, _local3);
_local3 = Math.min(_local2.getLength() - 1, _local3);
if (_local3 == _local4) {
return(undefined);
}
if ((_local4 < _local2.topDisplayed) || (_local4 >= (_local2.topDisplayed + _local2.numDisplayed))) {
_local2.setScrollPosition(_local4);
}
if ((_local3 >= (_local2.topDisplayed + _local2.numDisplayed)) || (_local3 < _local2.topDisplayed)) {
_local2.setScrollPosition(_local2.topDisplayed + incr);
}
_local2.selectionHandler(_local3 - _local2.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local2 = this;
_local2.focusRect.removeMovieClip();
if (!_local2.focused) {
_local2.pressFocus();
}
_local2.selectionHandler(itmNum);
_local2.onMouseUp = _local2.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local2 = this;
if (_local2.changeFlag) {
_local2.executeCallBack();
}
_local2.changeFlag = false;
_local2.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local4 = this;
super.myOnSetFocus();
var _local3 = 0;
while (_local3 < _local4.numDisplayed) {
_local4.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local3++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local4 = this;
super.myOnKillFocus();
var _local3 = 0;
while (_local3 < _local4.numDisplayed) {
_local4.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local3++;
}
};
#endinitclip
Instance of Symbol 85 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 87 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 86 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 87 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 88 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 6
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
var _local2 = pos;
var _local3 = this;
if (_local3.enable) {
_local2 = Math.min(_local2, _local3.getLength() - _local3.numDisplayed);
_local2 = Math.max(_local2, 0);
_local3.scrollBar_mc.setScrollPosition(_local2);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
var _local2 = this;
_local2.permaScrollBar = !flag;
_local2.setSize(_local2.width, _local2.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local3 = this;
var _local4 = _local3.getScrollPosition();
super.setSize(w, h);
if (_local3.scrollBar_mc != undefined) {
_local3.removed = true;
}
_local3.scrollBar_mc = undefined;
_local3.initScrollBar();
_local3.setScrollPosition(_local4);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local2 = this;
if ((!_local2.permaScrollBar) && (_local2.getLength() <= _local2.numDisplayed)) {
if (_local2.removed) {
_local2.scrollBar_mc.removeMovieClip();
_local2.scrollBar_mc = undefined;
_local2.scrollOffset = undefined;
_local2.invalidate("setSize");
}
return(undefined);
}
if (_local2.scrollBar_mc == undefined) {
_local2.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local2.styleTable});
_local2.scrollBar_mc = _local2.container_mc.scrollBar_mc;
_local2.scrollBar_mc.setChangeHandler("scrollHandler", _local2);
_local2.scrollBar_mc.setSize(_local2.height);
_local2.scrollBar_mc._x = _local2.width - _local2.scrollBar_mc._width;
_local2.scrollBar_mc._y = 0;
_local2.scrollBar_mc.setLargeScroll(_local2.numDisplayed - 1);
_local2.scrollOffset = _local2.scrollBar_mc._width;
_local2.invalidate("setSize");
}
_local2.scrollBar_mc.setScrollProperties(_local2.numDisplayed, 0, _local2.getLength() - _local2.numDisplayed);
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local3 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local3;
if (_local2.lastPosition != _local3) {
_local2.updateControl();
}
_local2.lastPosition = _local3;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local3 = this;
super.clickHandler(itmNum);
if ((_local3.dragScrolling == undefined) && (_local3.scrollBar_mc != undefined)) {
_local3.dragScrolling = setInterval(_local3, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local2 = this;
clearInterval(_local2.dragScrolling);
if (_local2.container_mc._ymouse < 0) {
_local2.setScrollPosition(_local2.getScrollPosition() - 1);
_local2.selectionHandler(0);
_local2.scrollInterval = Math.max(25, (-23.8 * (-_local2.container_mc._ymouse)) + 500);
_local2.dragScrolling = setInterval(_local2, "dragScroll", _local2.scrollInterval);
return(undefined);
}
if (_local2.container_mc._ymouse > ((_local2.itmHgt - 2) * _local2.numDisplayed)) {
_local2.setScrollPosition(_local2.getScrollPosition() + 1);
_local2.selectionHandler(_local2.numDisplayed - 1);
_local2.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local2.container_mc._ymouse - ((_local2.itmHgt - 2) * _local2.numDisplayed)) - 2)) + 500);
_local2.dragScrolling = setInterval(_local2, "dragScroll", _local2.scrollInterval);
return(undefined);
}
_local2.dragScrolling = setInterval(_local2, "dragScroll", 15);
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local3 = this;
if (_local3.focused) {
_local3.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local3.keyIncrs = new Array(1, -1, _local3.numDisplayed - 1, -(_local3.numDisplayed - 1), -_local3.getLength(), _local3.getLength());
var _local2 = 0;
while (_local2 < _local3.keyCodes.length) {
if (Key.isDown(_local3.keyCodes[_local2])) {
_local3.moveSelBy(_local3.keyIncrs[_local2]);
return(undefined);
}
_local2++;
}
_local3.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
this.findString(String.fromCharCode(_local2));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var _local4 = this.getSelectedIndex();
var _local6 = 0;
var _local2 = _local4 + 1;
while (_local2 != _local4) {
var _local3 = this.getItemAt(_local2).label.substring(0, str.length);
if ((str == _local3) || (str.toUpperCase() == _local3.toUpperCase())) {
_local6 = _local2 - _local4;
break;
}
if (_local2 >= (this.getLength() - 1)) {
_local2 = -1;
}
_local2++;
}
if (_local6 != 0) {
this.moveSelBy(_local6);
}
};
#endinitclip
Instance of Symbol 84 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 88 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "\\\"\\\"";
horizontal = false;
}
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "\"\"";
horizontal = false;
}
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 87 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 88 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 89 MovieClip [FComboBoxItemSymbol] Frame 1
#initclip 9
function FComboBoxItemClass() {
this.init();
}
FComboBoxItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FComboBoxItemSymbol", FComboBoxItemClass);
FComboBoxItemClass.prototype.setSize = function (w, h) {
var _local3 = this;
super.setSize(w, h);
_local3.highlight_mc.onRollOver = function () {
this.controller.controller.selectionHandler(this.controller.itemNum);
};
};
#endinitclip
Symbol 94 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 94 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 97 MovieClip [FComboBoxSymbol] Frame 1
#initclip 8
function FComboBoxClass() {
var _local4 = this;
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
_local4.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var _local6 = _local4.superHolder.createEmptyMovieClip("testCont", 20000);
var _local7 = _local6.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
if (_local7._name == undefined) {
_local4.superHolder.removeMovieClip();
_local4.superHolder = _local4._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
_local6.removeMovieClip();
}
if (_local4.rowCount == undefined) {
_local4.rowCount = 8;
_local4.editable = false;
}
_local4.itemSymbol = "FComboBoxItemSymbol";
_local4.init();
_local4.permaScrollBar = false;
_local4.proxyBox_mc.gotoAndStop(1);
_local4.width = _local4._width;
_local4.height = (_local4.proxyBox_mc._height * _local4._yscale) / 100;
var _local5 = 0;
while (_local5 < _local4.labels.length) {
_local4.addItem(_local4.labels[_local5], _local4.data[_local5]);
_local5++;
}
_local4.lastSelected = 0;
_local4.selectItem(0);
_local4._xscale = (_local4._yscale = 100);
_local4.opened = false;
_local4.setSize(_local4.width);
_local4.highlightTop(false);
if (_local4.changeHandler.length > 0) {
_local4.setChangeHandler(_local4.changeHandler);
}
_local4.onUnload = function () {
this.superHolder.removeMovieClip();
};
_local4.setSelectedIndex(0, false);
_local4.value = "";
_local4.focusEnabled = true;
_local4.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
var _local3 = this;
super.modelChanged(eventObj);
var _local4 = eventObj.event;
if ((_local4 == "addRows") || (_local4 == "deleteRows")) {
var _local9 = (eventObj.lastRow - eventObj.firstRow) + 1;
var _local8 = ((_local4 == "addRows") ? 1 : -1);
var _local5 = _local3.getLength();
var _local7 = _local5 - (_local8 * _local9);
if ((_local3.rowCount > _local7) || (_local3.rowCount > _local5)) {
_local3.invalidate("setSize");
}
if (_local3.getSelectedIndex() == undefined) {
_local3.setSelectedIndex(0, false);
}
return(undefined);
}
if (_local4 == "updateAll") {
_local3.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
var _local3 = this;
if (!_local3.enable) {
return(undefined);
}
super.removeAll();
if (_local3.editable) {
_local3.value = "";
}
_local3.invalidate("setSize");
};
FComboBoxClass.prototype.setSize = function (w) {
var _local3 = this;
var _local4 = w;
if ((((_local4 == undefined) || (typeof(_local4) != "number")) || (_local4 <= 0)) || (!_local3.enable)) {
return(undefined);
}
_local3.proxyBox_mc._width = _local4;
_local3.container_mc.removeMovieClip();
_local3.measureItmHgt();
_local3.container_mc = _local3.superHolder.createEmptyMovieClip("container", 3);
_local3.container_mc.tabChildren = false;
_local3.setPopUpLocation(_local3.container_mc);
_local3.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
_local3.boundingBox_mc = _local3.container_mc.boundingBox_mc;
_local3.boundingBox_mc.component = _local3;
_local3.registerSkinElement(_local3.boundingBox_mc.boundingBox, "background");
_local3.proxyBox_mc._height = _local3.itmHgt;
_local3.numDisplayed = Math.min(_local3.rowCount, _local3.getLength());
if (_local3.numDisplayed < 3) {
_local3.numDisplayed = Math.min(3, _local3.getLength());
}
_local3.height = (_local3.numDisplayed * (_local3.itmHgt - 2)) + 2;
super.setSize(_local4, _local3.height);
_local3.attachMovie("DownArrow", "downArrow", 10);
_local3.downArrow._y = 0;
_local3.downArrow._width = _local3.itmHgt;
_local3.downArrow._height = _local3.itmHgt;
_local3.downArrow._x = _local3.proxyBox_mc._width - _local3.downArrow._width;
_local3.setEditable(_local3.editable);
_local3.container_mc._visible = _local3.opened;
_local3.highlightTop(false);
_local3.fader = _local3.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
_local3.registerSkinElement(_local3.fader.boundingBox, "background");
_local3.fader._width = _local3.width;
_local3.fader._height = _local3.height;
_local3.fader._visible = false;
};
FComboBoxClass.prototype.setDataProvider = function (dp) {
super.setDataProvider(dp);
this.invalidate("setSize");
this.setSelectedIndex(0);
};
FComboBoxClass.prototype.getValue = function () {
if (this.editable) {
return(this.fLabel_mc.getLabel());
}
return(super.getValue());
};
FComboBoxClass.prototype.getRowCount = function () {
return(this.rowCount);
};
FComboBoxClass.prototype.setRowCount = function (count) {
var _local2 = this;
var _local4 = count;
_local2.rowCount = ((_local2.getLength() > _local4) ? (Math.max(_local4, 3)) : (_local4));
_local2.setSize(_local2.width);
var _local3 = _local2.getLength();
if ((_local3 - _local2.getScrollPosition()) < _local2.rowCount) {
_local2.setScrollPosition(_local3 - Math.min(_local2.rowCount, _local3));
_local2.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
var _local2 = this;
if (!_local2.enable) {
return(undefined);
}
_local2.editable = editableFlag;
if (!_local2.editable) {
_local2.onPress = _local2.pressHandler;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:_local2, itemNum:-1});
_local2.fLabel_mc.onRollOver = undefined;
_local2.fLabel_mc.setSize((_local2.width - _local2.itmHgt) + 1, _local2.itmHgt);
_local2.topLabel = _local2.getSelectedItem();
_local2.fLabel_mc.drawItem(_local2.topLabel, false);
_local2.highlightTop(false);
return(undefined);
}
_local2.attachMovie("FLabelSymbol", "fLabel_mc", 5);
_local2.fLabel_txt = _local2.fLabel_mc.labelField;
_local2.fLabel_txt.type = "input";
_local2.fLabel_txt._x = 4;
_local2.fLabel_txt.onSetFocus = _local2.onLabelFocus;
_local2.fLabel_mc.setSize((_local2.width - _local2.itmHgt) - 3);
delete _local2.onPress;
_local2.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
_local2.fLabel_mc.setLabel(_local2.value);
_local2.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
_local2.downArrow.onPress = _local2.buttonPressHandler;
_local2.downArrow.useHandCursor = false;
_local2.downArrow.trackAsMenu = true;
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this;
var _local4 = enabledFlag;
_local4 = (((_local4 == undefined) || (typeof(_local4) != "boolean")) ? true : (_local4));
super.setEnabled(_local4);
_local3.registerSkinElement(_local3.boundingBox_mc.boundingBox, "background");
_local3.proxyBox_mc.gotoAndStop((_local3.enable ? "enabled" : "disabled"));
_local3.downArrow.gotoAndStop((_local3.enable ? 1 : 3));
if (_local3.editable) {
_local3.fLabel_txt.type = (_local4 ? "input" : "dynamic");
_local3.fLabel_txt.selectable = _local4;
} else if (_local4) {
_local3.fLabel_mc.drawItem(_local3.topLabel, false);
_local3.setSelectedIndex(_local3.getSelectedIndex(), false);
}
_local3.fLabel_mc.setEnabled(_local3.enable);
_local3.fLabel_txt.onSetFocus = (_local4 ? (_local3.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
var _local3 = this;
super.setSelectedIndex(index, flag);
if (!_local3.editable) {
_local3.topLabel = _local3.getSelectedItem();
_local3.fLabel_mc.drawItem(_local3.topLabel, false);
} else {
_local3.value = ((flag != undefined) ? "" : (_local3.getSelectedItem().label));
_local3.fLabel_mc.setLabel(_local3.value);
}
_local3.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
var _local2 = this;
if (_local2.editable) {
_local2.fLabel_mc.setLabel(value);
_local2.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
var _local2 = this;
_local2.focusRect.removeMovieClip();
if (_local2.enable) {
if (!_local2.opened) {
_local2.onMouseUp = _local2.releaseHandler;
} else {
_local2.onMouseUp = undefined;
}
_local2.changeFlag = false;
if (!_local2.focused) {
_local2.pressFocus();
_local2.clickFilter = (_local2.editable ? false : true);
}
if (!_local2.clickFilter) {
_local2.openOrClose(!_local2.opened);
return(undefined);
}
_local2.clickFilter = false;
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
var _local3 = this;
if (!_local3.focused) {
if (_local3.editable) {
_local3.fLabel_txt.onKillFocus = undefined;
}
_local3.pressFocus();
}
super.clickHandler(itmNum);
_local3.selectionHandler(itmNum);
_local3.onMouseUp = _local3.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
var _local2 = this;
if (!_local2.editable) {
_local2.fLabel_mc.drawItem(_local2.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
var _local2 = this;
_local2.drawRect(-2, -2, _local2.width + 4, _local2._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
var _local3 = this;
if (Selection.getFocus().indexOf("labelField") != -1) {
return(undefined);
}
super.myOnKillFocus();
delete _local3.fLabel_txt.onKeyDown;
_local3.openOrClose(false);
_local3.highlightTop(false);
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
var _local2 = this;
var _local3 = mcRef;
_local3._x = _local2._x;
var _local4 = {x:_local2._x, y:_local2._y + _local2.proxyBox_mc._height};
_local2._parent.localToGlobal(_local4);
_local3._parent.globalToLocal(_local4);
_local3._x = _local4.x;
_local3._y = _local4.y;
if ((_local2.height + _local3._y) >= Stage.height) {
_local2.upward = true;
_local3._y = (_local4.y - _local2.height) - _local2.proxyBox_mc._height;
return(undefined);
}
_local2.upward = false;
};
FComboBoxClass.prototype.openOrClose = function (flag) {
var _local3 = this;
var _local5 = flag;
if (_local3.getLength() == 0) {
return(undefined);
}
_local3.setPopUpLocation(_local3.container_mc);
if ((_local3.lastSelected != -1) && ((_local3.lastSelected < _local3.topDisplayed) || (_local3.lastSelected > (_local3.topDisplayed + _local3.numDisplayed)))) {
super.moveSelBy(_local3.lastSelected - _local3.getSelectedIndex());
}
if (!_local5) {
(_local3.downArrow.gotoAndStop(1));// not popped
} else {
(_local3.downArrow.gotoAndStop(2));// not popped
}
if (_local5 == _local3.opened) {
return(undefined);
}
_local3.highlightTop(!_local5);
_local3.fadeRate = _local3.styleTable.popUpFade.value;
if (((!_local5) || (_local3.fadeRate == undefined)) || (_local3.fadeRate == 0)) {
_local3.opened = (_local3.container_mc._visible = _local5);
return(undefined);
}
_local3.setPopUpLocation(_local3.fader);
_local3.time = 0;
_local3.const = 85 / Math.sqrt(_local3.fadeRate);
_local3.fader._alpha = 85;
_local3.container_mc._visible = (_local3.fader._visible = true);
_local3.onEnterFrame = function () {
var _local2 = this;
_local2.fader._alpha = 100 - ((_local2.const * Math.sqrt(++_local2.time)) + 15);
if (_local2.time >= _local2.fadeRate) {
_local2.fader._visible = false;
delete _local2.onEnterFrame;
_local2.opened = true;
}
};
};
FComboBoxClass.prototype.fireChange = function () {
var _local2 = this;
_local2.lastSelected = _local2.getSelectedIndex();
if (!_local2.editable) {
_local2.topLabel = _local2.getSelectedItem();
_local2.fLabel_mc.drawItem(_local2.topLabel, true);
} else {
_local2.value = _local2.getSelectedItem().label;
_local2.fLabel_mc.setLabel(_local2.value);
}
_local2.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var _local3 = this;
var _local4 = _root;
var _local5 = _local3.boundingBox_mc.hitTest(_local4._xmouse, _local4._ymouse);
if (_local3.changeFlag) {
if (_local5) {
_local3.fireChange();
}
_local3.openOrClose(!_local3.opened);
} else if (_local5) {
_local3.openOrClose(false);
} else {
_local3.onMouseDown = function () {
var _local3 = this;
var _local4 = _root;
if ((!_local3.boundingBox_mc.hitTest(_local4._xmouse, _local4._ymouse)) && (!_local3.hitTest(_local4._xmouse, _local4._ymouse))) {
_local3.onMouseDown = undefined;
_local3.openOrClose(false);
}
};
}
_local3.changeFlag = false;
_local3.onMouseUp = undefined;
clearInterval(_local3.dragScrolling);
_local3.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
var _local3 = this;
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (_local3.editable) {
_local3.setValue(_local3.getSelectedItem().label);
}
if (!_local3.opened) {
if (_local3.changeFlag && (!_local3.isSelected(_local3.lastSelected))) {
_local3.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
var _local3 = this;
if (!_local3.focused) {
return(undefined);
}
if (_local3.editable && (Key.isDown(13))) {
_local3.setValue(_local3.fLabel_mc.getLabel());
_local3.executeCallback();
_local3.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!_local3.editable))) && (_local3.opened)) {
if (_local3.getSelectedIndex() != _local3.lastSelected) {
_local3.fireChange();
}
_local3.openOrClose(false);
_local3.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
var _local2 = this;
_local2._parent._parent.tabFocused = false;
_local2._parent._parent.focused = true;
_local2.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(_local2);
};
FComboBoxClass.prototype.buttonPressHandler = function () {
this._parent.pressHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 88 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 97 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 104 MovieClip Frame 36
gotoAndPlay (1);
Symbol 112 Button
on (release, keyPress "<Enter>") {
processInput(inputField.text);
inputField.text = "";
}