Frame 1
function wait(delay, callBack) {
function _wait() {
trace("here");
clearInterval(_interval);
callBack();
}
var _local1 = getTimer();
_interval = setInterval(_wait, delay);
}
stop();
var rootMenu = new ContextMenu();
rootMenu.hideBuiltInItems();
totalWidth = percentbar_mc._width;
percentbar_mc._width = 0;
var _interval;
preloader_mc.onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
if (_local3 != -1) {
var _local6 = Math.round(_local4 / 1024);
var _local5 = Math.round(_local3 / 1024);
percent = Math.round((_local6 / _local5) * 100);
if (isNaN(percent)) {
kPercent.text = "0%";
} else {
kPercent.text = percent + "%";
percentbar_mc._width = totalWidth * (percent / 100);
}
if ((_local4 == _local3) && (_local3 > 0)) {
delete this.onEnterFrame;
wait(5000, function () {
_root.gotoAndPlay("home");
});
this._visible = false;
} else if (_local4 == -1) {
failureReport_txt.text = "The file is not currently available. Please try again later. If you continue to receive this message, please contact the system administrator.";
}
}
};
Instance of Symbol 39 MovieClip "preloader_mc" in Frame 1
/* no clip actions */
Frame 8
stop();
btnPlay.onRelease = function () {
gotoAndPlay ("game");
};
btnMore.onRelease = function () {
getURL ("http://www.dailyfreegames.com", "_blank");
};
btnScores.onRelease = function () {
getURL ("http://www.markfennell.com/flash/twister/showscores.php", "_blank");
};
Frame 16
function init() {
gameover._visible = false;
timer = new com.Timer(gameTime);
var _local2 = 0;
gameArray = [];
selectedArray = [];
score = 0;
i = 0;
while (i < mcArray.length) {
_local2 = _local2 % 4;
_local2++;
var _local1 = mcArray[i];
_local1.bg = _local2;
_local1._id = i;
_local1._letter = displayArray[i].toUpperCase();
_local1.expanded = false;
_local1.letter.text = _local1._letter;
_local1.base.gotoAndPlay(_local2);
_local1.border.gotoAndStop("hide");
gameArray.push(_local1);
i++;
}
hud.score.text = com.Util.padScore(score, 6);
hud.timer.text = "01:00:00";
to._visible = false;
from._visible = false;
arrow._visible = false;
Begin();
}
function popArray(array, id) {
i = 0;
while (i < array.length) {
if (array[i]._id == id) {
var _local3 = array.splice(i, 1);
return(id);
}
i++;
}
}
function setLetter() {
letterPulse++;
letterPulse = letterPulse % letterPulseMax;
if (letterPulse == 0) {
trace("Ended");
pulsing = false;
clearInterval(_global.interval);
if (selectedArray.length < fingers) {
var _local2 = gameArray[from.id];
_local2.border.gotoAndPlay("reveal");
selectedArray.push(_local2);
popArray(gameArray, from.id);
} else {
var _local5 = popArray(selectedArray, from.id);
popArray(gameArray, to.id);
var _local3 = mcArray[from.id];
com.Fx.bounce(_local3, 0, 1, 100, 100);
gameArray.push(_local3);
_local3.border.gotoAndStop("hide");
var _local4 = mcArray[to.id];
_local4.border.gotoAndPlay("reveal");
selectedArray.push(_local4);
}
} else if (selectedArray.length < fingers) {
from._visible = true;
randomNum = com.Util.rand(gameArray.length - 1);
var _local2 = gameArray[randomNum];
from.id = randomNum;
from.letter.text = _local2._letter;
from.base.gotoAndStop(_local2.bg);
} else {
from._visible = true;
to._visible = true;
arrow._visible = true;
randomFrom = com.Util.rand(selectedArray.length);
randomTo = com.Util.rand(gameArray.length);
trace((((((("from: " + randomFrom) + " / ") + selectedArray.length) + " to: ") + randomTo) + " / ") + gameArray.length);
from_mc = selectedArray[randomFrom];
to_mc = gameArray[randomTo];
from.id = from_mc._id;
from.letter.text = from_mc._letter;
from.base.gotoAndStop(from_mc.bg);
to.id = to_mc._id;
to.letter.text = to_mc._letter;
to.base.gotoAndStop(to_mc.bg);
}
currentTime = getTimer();
}
function updateTimer() {
hud.timer.text = timer.displayTime();
if (timer.getMili() <= 0) {
gameOver();
}
checkKeys();
}
function checkKeys() {
var _local3;
var _local5;
var _local4;
var _local2;
i = 0;
while (i < selectedArray.length) {
_local2 = selectedArray[i];
_local5 = selectedArray[i]._letter.charCodeAt(0);
_local4 = Key.isDown(_local5);
if (_local4) {
_local2.border.gotoAndStop("hide");
com.Fx.bounce(_local2, 0, 1, 100, 120);
if ((_local4 && ((_local3 == true) || (_local3 == undefined))) && (isMouseDown)) {
_local3 = true;
timer.stop();
}
} else {
com.Fx.bounce(_local2, 0, 1, 100, 100);
_local2.border.play();
_local3 = false;
timer.start();
}
i++;
}
if (_local3 && (!pulsing)) {
updateScore();
pulsing = true;
_global.interval = setInterval(setLetter, 20);
}
}
function updateScore() {
var _local1 = getTimer();
var _local2 = _local1 - currentTime;
score = score + Math.floor((gameTime - _local2) / scoreDivider);
hud.score.text = com.Util.padScore(score, 6);
letterPulseMax = Math.max(letterPulseMin, letterPulseMax - 1);
}
function gameOver() {
trace("Game over!");
clearInterval(_timerInterval);
hud.timer.text = "00:00:00";
com.Fx.bounceIn(gameover, 0, 1, 0, 100);
gameover.btnRestart.onRelease = function () {
gotoAndPlay ("home");
};
gameover.btnSubmit.onRelease = function () {
_root.x1025 = score;
gotoAndPlay ("submit");
};
gameover.btnMore.onRelease = function () {
getURL ("http://www.dailyfreegames.com", "_blank");
};
}
function Begin() {
started = false;
flasher.onEnterFrame = function () {
this.gotoAndPlay("reveal");
delete this.onEnterFrame;
};
com.Fx.bounceIn(mouseAlert, 0, 1, 0, 100);
Mouse.removeListener(mouseListener);
mouseListener.onMouseDown = function () {
flasher.gotoAndStop("hide");
isMouseDown = true;
if (!started) {
started = true;
_global.interval = setInterval(setLetter, 20);
_timerInterval = setInterval(updateTimer, 20);
currentTime = getTimer();
mouseAlert._visible = false;
}
};
mouseListener.onMouseUp = function () {
isMouseDown = false;
flasher.gotoAndPlay("reveal");
timer.start();
};
Mouse.addListener(mouseListener);
}
var mcArray = [q, w, e, r, t, y, u, i, o, p, a, s, d, f, g, h, j, k, l, z, x, c, v, b, n, m];
var displayArray = ["q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m"];
var gameArray = [];
var selectedArray = [];
var started = false;
var isMouseDown = false;
var fingers = 3;
var score = 0;
_global.interval = 0;
var _timerInterval;
var letterPulse = 0;
var letterPulseMax = 30;
var letterPulseMin = 5;
var pulsing = false;
var gameTime = 60000;
var scoreDivider = 800;
var timer = (new com.Timer(gameTime));
var currentTime = getTimer();
var mouseListener = new Object();
init();
stop();
Frame 24
stop();
btnRestart.onRelease = function () {
gotoAndPlay ("home");
};
btnMore.onRelease = function () {
getURL ("http://www.dailyfreegames.com", "_blank");
};
Frame 25
stop();
btnPlay.onRelease = function () {
getURL ("http://www.markfennell.com/flash/twister", "_top");
};
Symbol 32 Button
on (release) {
getURL ("http://www.markfennell.com/flash", "_blank");
}
Symbol 48 MovieClip Frame 35
stop();
Symbol 50 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 177 MovieClip [__Packages.com.Util] Frame 0
class com.Util
{
function Util () {
}
static function rand(num) {
if (arguments.length == 1) {
return(Math.floor(Math.random() * num));
}
return(Math.floor(Math.random() * (Math.abs(arguments[1] - num) + 1)) + Math.min(num, arguments[1]));
}
static function getPos(clip) {
var _local1 = {x:0, y:0};
clip.localToGlobal(_local1);
return(_local1);
}
static function padScore(i, len) {
var _local2 = "000000000000000000000";
var _local1 = i.toString();
if (_local1.length < len) {
_local1 = _local2.substring(0, len - _local1.length) + _local1;
}
return(_local1);
}
function shuffle(tempArray) {
var _local2 = 0;
while (_local2 < tempArray.length) {
var _local4 = tempArray[_local2];
var _local3 = random(tempArray.length);
tempArray[_local2] = tempArray[_local3];
tempArray[_local3] = _local4;
_local2++;
}
return(tempArray);
}
}
Symbol 178 MovieClip [__Packages.com.Fx] Frame 0
class com.Fx
{
function Fx () {
}
static function zoomIn(mc, delay, duration, startX, startY, finishX, finishY, blur, callBack) {
function _animate() {
mc._visible = true;
mc.filters = [blur];
clearInterval(_interval);
var _local1 = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, startX, finishX, duration, true);
var _local2 = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, startY, finishY, duration, true);
_local1.onMotionFinished = function () {
mc.filters = [1];
callBack();
};
}
mc._visible = false;
var _local7 = getTimer();
var _interval;
var _local1 = Math.atan2(finishY - startY, finishX - startX);
var _local3 = Math.abs(Math.floor(Math.cos(_local1) * blur));
var _local2 = Math.abs(Math.floor(Math.sin(_local1) * blur));
var _local6 = 1000 * delay;
mc._x = startX;
mc._y = startY;
var blur = (new flash.filters.BlurFilter(_local3, _local2, 1));
_interval = setInterval(_animate, delay);
}
static function rollIn(mc, delay, duration, startX, startY, finishX, finishY, rotation, callBack) {
function _rollInAnimate() {
mc._visible = true;
clearInterval(_interval);
var _local1 = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, startX, finishX, duration, true);
var _local2 = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, startY, finishY, duration, true);
var _local3 = new mx.transitions.Tween(mc, "_rotation", mx.transitions.easing.Regular.easeOut, mc._rotation, _endRotation, duration, true);
_local1.onMotionFinished = function () {
callBack();
};
}
var _local4 = getTimer();
var _interval;
var _endRotation = mc._rotation;
var _local3 = 1000 * delay;
mc._visible = false;
mc._x = startX;
mc._y = startY;
mc._rotation = mc._rotation + rotation;
_interval = setInterval(_rollInAnimate, delay);
}
static function FadeIn(mc, delay, duration) {
function _fade() {
mc._visible = true;
clearInterval(_interval);
var _local1 = new mx.transitions.Tween(mc, "_alpha", mx.transitions.easing.Regular.easeOut, mc._alpha, 100, duration, true);
}
mc._alpha = 0;
var _local4 = getTimer();
var _interval;
var _local3 = 1000 * delay;
_interval = setInterval(_fade, delay);
}
static function FadeOut(mc, delay, duration) {
function _fade() {
mc._visible = true;
clearInterval(_interval);
var _local1 = new mx.transitions.Tween(mc, "_alpha", mx.transitions.easing.Regular.easeOut, mc._alpha, 0, duration, true);
}
var _local4 = getTimer();
var _interval;
var _local3 = 1000 * delay;
mc._visible = false;
_interval = setInterval(_fade, delay);
}
static function grow(mc, delay, duration, scale) {
function _grow() {
clearInterval(_interval);
var _local2 = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Regular.easeOut, mc._xscale, scale, duration, true);
var _local1 = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Regular.easeOut, mc._yscale, scale, duration, true);
}
var _local5 = getTimer();
var _interval;
var _local2 = 1000 * delay;
_interval = setInterval(_grow, delay);
}
static function slide(mc, delay, duration, startX, startY, finishX, finishY, callBack) {
function _slide() {
mc._visible = true;
clearInterval(_interval);
var _local1 = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, startX, finishX, duration, true);
var _local2 = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, startY, finishY, duration, true);
_local1.onMotionFinished = function () {
callBack();
};
}
var _local4 = getTimer();
var _interval;
var _local3 = 1000 * delay;
mc._visible = false;
mc._x = startX;
mc._y = startY;
_interval = setInterval(_slide, delay);
}
static function wait(delay, callBack) {
function _wait() {
clearInterval(_interval);
callBack();
}
var _local1 = getTimer();
var _interval;
_interval = setInterval(_wait, delay);
}
static function bounce(mc, delay, duration, start, end, callBack) {
function _bounce() {
clearInterval(_interval);
var _local1 = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Elastic.easeOut, mc._xscale, end, duration, true);
var _local2 = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Elastic.easeOut, mc._yscale, end, duration, true);
_local1.onMotionFinished = function () {
callBack();
};
}
var _local5 = getTimer();
var _interval;
var _local4 = 1000 * delay;
_interval = setInterval(_bounce, delay);
}
static function bounceIn(mc, delay, duration, start, end, callBack) {
function _bounce() {
mc._visible = true;
clearInterval(_interval);
var _local1 = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Elastic.easeOut, mc._xscale, end, duration, true);
var _local2 = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Elastic.easeOut, mc._yscale, end, duration, true);
_local1.onMotionFinished = function () {
callBack();
};
}
var _local5 = getTimer();
var _interval;
var _local4 = 1000 * delay;
mc._xscale = (mc._yscale = start);
mc._visible = false;
_interval = setInterval(_bounce, delay);
}
}
Symbol 179 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 180 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 181 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 182 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 183 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 184 MovieClip [__Packages.com.Timer] Frame 0
class com.Timer
{
function Timer (ms) {
if (ms != undefined) {
isCountdown = true;
countdownTime = ms;
}
reset();
}
function two(x) {
return(((x > 9) ? "" : "0") + x);
}
function three(x) {
return((((x > 99) ? "" : "0") + ((x > 9) ? "" : "0")) + x);
}
function displayMili() {
var _local2 = getMili();
_local2 = _local2 % 1000;
return(_local2);
}
function displaySec() {
var _local3 = getMili();
var _local2 = Math.floor(_local3 / 1000);
_local2 = _local2 % 60;
return(_local2);
}
function displayMin() {
var _local3 = getMili();
var _local4 = Math.floor(_local3 / 1000);
var _local2 = Math.floor(_local4 / 60);
_local2 = _local2 % 60;
return(_local2);
}
function displayHour() {
var _local2 = getMili();
var _local3 = Math.floor(_local2 / 1000);
var _local5 = Math.floor(_local3 / 60);
var _local4 = Math.floor(_local5 / 60);
return(_local4);
}
function displayTime() {
var _local2 = three(displayMili());
_local2 = _local2.substring(0, 2);
var _local3 = (((displayMin() + ":") + two(displaySec())) + ":") + _local2;
return(_local3);
}
function reset() {
oldTime = 0;
pause = true;
totalTime = 0;
}
function stop() {
if (!pause) {
pause = true;
totalTime = totalTime + (getTimer() - oldTime);
}
}
function start() {
if (pause) {
pause = false;
oldTime = getTimer();
}
}
function getMili() {
var _local2 = totalTime;
if (!pause) {
_local2 = _local2 + (getTimer() - oldTime);
}
return(getTime(_local2));
}
function getSecs() {
var _local2 = totalTime / 1000;
if (!pause) {
_local2 = _local2 + ((getTimer() - oldTime) / 1000);
}
return(Math.round(getTime(_local2)));
}
function getMins() {
var _local2 = totalTime / 1000;
if (!pause) {
_local2 = _local2 + (((getTimer() - oldTime) / 1000) / 60);
}
return(Math.round(getTime(_local2)));
}
function addMili(ms) {
totalTime = Math.max(0, totalTime + ms);
}
function getTime(time) {
if (isCountdown) {
return(countdownTime - time);
}
return(time);
}
var oldTime = 0;
var pause = false;
var totalTime = 0;
var isCountdown = false;
var countdownTime = 0;
}
Symbol 185 MovieClip [__Packages.com.meychi.ascrypt.RC4] Frame 0
class com.meychi.ascrypt.RC4
{
function RC4 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function decrypt(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var _local4 = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % _local4];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var _local9 = new Array();
var _local7;
var _local5;
var _local6;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
_local5 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local5;
var _local4 = (sbox[_local1] + sbox[_local2]) % 256;
_local7 = sbox[_local4];
_local6 = plaintxt[_local3] ^ _local7;
_local9.push(_local6);
_local3++;
}
return(_local9);
}
static function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
static function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 3
stop();
Symbol 77 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 19
gotoAndPlay ("reveal");
Symbol 93 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 15
gotoAndPlay ("reveal");
Symbol 110 MovieClip Frame 8
stop();
Symbol 111 MovieClip Frame 26
stop();
Symbol 139 MovieClip [GWBaseClass] Frame 1
#initclip 10
_global.GWBaseClass = function () {
this.init();
};
GWBaseClass.prototype = new MovieClip();
GWBaseClass.prototype.init = function (c) {
this.classHolder._visible = 0;
if (this._targetInstanceName.length) {
var _local2 = this._parent[this._targetInstanceName];
for (var _local3 in this) {
_local2[_local3] = this[_local3];
}
this.inherit(c, _local2);
_local2.init();
this.snapToPixels(_local2);
} else {
this.snapToPixels(this);
}
};
GWBaseClass.prototype.inherit = function (c, o) {
if (o == undefined) {
o = this;
}
for (var _local4 in c.prototype) {
o[_local4] = c.prototype[_local4];
}
};
GWBaseClass.prototype.snapToPixels = function (t) {
t.classHolder._visible = 0;
while (t._parent) {
t._x = Math.round(t._x);
t._y = Math.round(t._y);
t = t._parent;
}
};
GWBaseClass.prototype.drawBox = function (n, d, x, y, w, h, c, a, o) {
if (a == undefined) {
a = 100;
}
if (o == undefined) {
o = this;
}
o.createEmptyMovieClip(n, d);
o[n].beginFill(c, a);
o[n].moveTo(x, y);
o[n].lineTo(x + w, y);
o[n].lineTo(x + w, y + h);
o[n].lineTo(x, y + h);
o[n].lineTo(x, y);
o[n].endFill();
};
GWBaseClass.prototype.sizeMe = function (w, h, o) {
w = Math.round(w);
h = Math.round(h);
if (o.setSize) {
o.setSize(w, h);
} else if (o.TL) {
o._xscale = (o._yscale = 100);
o.T._width = (w - o.TL._width) - o.TR._width;
o.B._width = (w - o.BL._width) - o.BR._width;
o.L._height = (h - o.TL._height) - o.BL._height;
o.R._height = (h - o.TR._height) - o.BR._height;
o.BL._y = h - o.BL._height;
o.BR._y = h - o.BR._height;
o.B._y = h - o.B._height;
o.TR._x = w - o.TR._width;
o.BR._x = w - o.BR._width;
o.R._x = w - o.R._width;
o.C._width = o.T._width;
o.C._height = o.L._height;
o.width = w;
o.height = h;
} else if ((o._width != w) || (o._height != h)) {
o.width = (o._width = w);
o.height = (o._height = h);
}
};
GWBaseClass.prototype.drag = function (o, lock, left, top, right, bottom) {
if (lock == -1) {
delete o.onMouseMove;
o.onDrop();
return(undefined);
}
var _local3 = function () {
var _local2 = arguments.callee;
var _local4 = _local2.t._parent._xmouse + _local2.xd;
var _local3 = _local2.t._parent._ymouse + _local2.yd;
if ((_local4 < _local2.left) && (_local2.left != null)) {
_local4 = _local2.left;
}
if ((_local4 > _local2.right) && (_local2.right != null)) {
_local4 = _local2.right;
}
if ((_local3 < _local2.top) && (_local2.top != null)) {
_local3 = _local2.top;
}
if ((_local3 > _local2.bottom) && (_local2.bottom != null)) {
_local3 = _local2.bottom;
}
_local2.t._x = _local4;
_local2.t._y = _local3;
_local2.t.onDrag();
updateAfterEvent();
};
_local3.t = o;
if ((lock == false) or (lock == undefined)) {
_local3.xd = o._x - o._parent._xmouse;
_local3.yd = o._y - o._parent._ymouse;
}
if (left != undefined) {
_local3.left = left;
} else {
_local3.left = null;
}
if (right != undefined) {
_local3.right = right;
} else {
_local3.right = null;
}
if (top != undefined) {
_local3.top = top;
} else {
_local3.top = null;
}
if (bottom != undefined) {
_local3.bottom = bottom;
} else {
_local3.bottom = null;
}
o.onMouseMove = _local3;
};
ASSetPropFlags(GWBaseClass.prototype, "drag", 1);
ASSetPropFlags(GWBaseClass.prototype, "sizeMe", 1);
ASSetPropFlags(GWBaseClass.prototype, "drawBox", 1);
ASSetPropFlags(GWBaseClass.prototype, "snapToPixels", 1);
ASSetPropFlags(GWBaseClass.prototype, "inherit", 1);
#endinitclip
Symbol 140 MovieClip [GWListBoxClass] Frame 1
#initclip 15
_global.GWListBoxClass = function () {
this.rowHeight = 18;
this.face = 16777215 /* 0xFFFFFF */;
this.highlight = 4210752 /* 0x404040 */;
this.highlight3D = 8421504 /* 0x808080 */;
this.shadow = 13947080 /* 0xD4D0C8 */;
this.darkshadow = 16777215 /* 0xFFFFFF */;
this.itemcolor_on = 664682 /* 0x0A246A */;
this.itemcolor_off = 16777215 /* 0xFFFFFF */;
this.itemcolor_out = 16777215 /* 0xFFFFFF */;
this.fontcolor_on = 16777215 /* 0xFFFFFF */;
this.fontcolor_off = 0;
this.fontcolor_out = 0;
super.init(GWListBoxClass);
};
GWListBoxClass.prototype = new GWBaseClass();
Object.registerClass("GWListBoxClass", GWListBoxClass);
GWListBoxClass.prototype.init = function () {
if (this.width == undefined) {
this.width = this._width;
}
if (this.height == undefined) {
this.height = this._height;
}
this._xscale = (this._yscale = 100);
this.createEmptyMovieClip("list_mc", 1);
this.list_mc.createEmptyMovieClip("content_mc", 1);
this.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
this.list_mc.content_mc._x = (this.list_mc.content_mc._y = this.pad);
this.list_mc.content_mc.root = this;
this.drawBox("mask_mc", 2, 0, 0, 1, 1, 0, 100, this.list_mc.content_mc);
this.list_mc.content_mc.setMask(this.list_mc.content_mc.mask_mc);
this.sbprops.height = this.height - (this.pad * 2);
this.list_mc.attachMovie(this.sbSymbol, "vscroll_mc", 3, this.sbprops);
this.barwidth = this.list_mc.vscroll_mc._width;
delete this.sb_props;
this.list_mc.vscroll_mc._y = this.pad;
this.list_mc.vscroll_mc.setScrollTarget(this.list_mc.content_mc);
this.list_mc.content_mc.addListener(this);
this.width = Math.round(Math.max(this.barwidth * 3, this.width));
this.height = Math.round(Math.max(this.barwidth * 3, this.height));
this.frame_mc.colorObj = {face:this.face, highlight:this.highlight, highlight3D:this.highlight3D, shadow:this.shadow, darkshadow:this.darkshadow};
this.list_mc.frame_mc = this.frame_mc;
this.setFrameColor({face:this.face, highlight:this.highlight, highlight3D:this.highlight3D, shadow:this.shadow, darkshadow:this.darkshadow});
this.list = this.list_mc.content_mc.holder_mc;
this.setSmallScroll(this.rowHeight);
this.setLargeScroll(this.rowHeight * 2);
this.item_mc.unloadMovie();
this.items = [];
var _local4 = this.labels.length;
var _local3 = 0;
while (_local3 < _local4) {
this.items.push({label:this.labels[_local3], data:this.data[_local3], icon:this.icons[_local3]});
_local3++;
}
this.rowCount = this.rowCount || (Math.ceil(this.height / this.rowHeight));
if (this.items.length) {
this.setDataProvider(this.items);
} else {
this.refreshPane();
}
if (this.checkFocus) {
this.onMouseDown = function () {
var _local4 = this.items.length;
if (this.list_mc.frame_mc.hitTest(_root._xmouse, _root._ymouse, 1)) {
var _local3 = 0;
while (_local3 < _local4) {
if (this.items[_local3].selected) {
this.list["item" + _local3].setLabelColor(this.list["item" + _local3].fontcolor_on);
this.list["item" + _local3].setBaseColor(this.itemcolor_on);
}
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < _local4) {
if (this.items[_local3].selected) {
this.list["item" + _local3].setLabelColor(this.list["item" + _local3].fontcolor_out);
this.list["item" + _local3].setBaseColor(this.itemcolor_out);
}
_local3++;
}
}
};
}
};
GWListBoxClass.prototype.getLength = function () {
return(this.items.length);
};
GWListBoxClass.prototype.setDataProvider = function (d) {
this.items = [];
this.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
if (!(d[0] instanceof Object)) {
this.items = [];
var _local6 = d.length;
var _local2 = 0;
while (_local2 < _local6) {
this.items.push({data:d[_local2], label:d[_local2]});
_local2++;
}
} else {
this.items = d;
}
this.drawBox("height_mc", -1, 0, (this.items.length - 1) * this.rowHeight, 1, 1, 0, 0, this.list);
if (this.items.length) {
this.rowCount = this.rowCount || (Math.ceil(this.height / this.rowHeight));
var _local2 = 0;
while (_local2 < this.rowCount) {
this._buildItem(_local2);
_local2++;
}
}
this.refreshPane();
return(this.items);
};
GWListBoxClass.prototype.deSelect = function (i) {
if (!this.items[i].isHeader) {
this.items[i].selected = 0;
this.list["item" + i].setLabelColor(this.list["item" + i].fontcolor_off);
this.list["item" + i].setBaseColor(this.itemcolor_off);
}
};
GWListBoxClass.prototype.deSelectAll = function () {
var _local3 = this.items.length;
var _local2 = 0;
while (_local2 < _local3) {
this.deSelect(_local2);
_local2++;
}
};
GWListBoxClass.prototype.selectAll = function () {
if (this.selectMultiple) {
var _local3 = this.items.length;
var _local2 = 0;
while (_local2 < _local3) {
this.select(_local2);
_local2++;
}
}
};
GWListBoxClass.prototype.setFrameColor = function (c) {
for (var _local3 in c) {
this.list_mc.frame_mc[_local3] = c[_local3];
}
this.list_mc.frame_mc.setColor(c);
};
GWListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
GWListBoxClass.prototype.setSelectMultiple = function (f) {
this.selectMultiple = f;
if (!f) {
this.deSelectAll();
this.select(this.lastIdx);
}
};
GWListBoxClass.prototype.select = function (i) {
if ((!this.selectMultiple) && (this.getSelectedIndices().length)) {
return(undefined);
}
if (!this.items[i].isHeader) {
this.items[i].selected = 1;
this.list["item" + i].setLabelColor(this.list["item" + i].fontcolor_on);
this.list["item" + i].setBaseColor(this.itemcolor_on);
}
};
GWListBoxClass.prototype.setSelectedIndex = function (i) {
this.lastIdx = i;
this.select(i);
if ((i >= (this.getScrollPosition() + this.getRowCount())) || (i <= this.getScrollPosition())) {
this.setScrollPosition(i - 1);
}
this.onSelect(i);
};
GWListBoxClass.prototype.setSelectedIndices = function (a) {
this.deSelectAll();
for (var _local3 in a) {
this.select(a[_local3]);
}
};
GWListBoxClass.prototype.getValue = function () {
return(this.getSelectedItem().data);
};
GWListBoxClass.prototype.getSelectedItem = function () {
if (this.items[this.lastIdx].selected) {
return({data:((this.items[this.lastIdx].data == undefined) ? (this.items[this.lastIdx].label) : (this.items[this.lastIdx].data)), label:this.items[this.lastIdx].label, icon:this.items[this.lastIdx].icon});
}
return(null);
};
GWListBoxClass.prototype.getSelectedIndices = function () {
var _local3 = [];
var _local4 = this.items.length;
var _local2 = 0;
while (_local2 < _local4) {
if (this.items[_local2].selected) {
_local3.push(_local2);
}
_local2++;
}
return(_local3);
};
GWListBoxClass.prototype.getSelectedItems = function () {
var _local5 = [];
var _local6 = this.items.length;
var _local2 = 0;
while (_local2 < _local6) {
if (this.items[_local2].selected) {
_local5.push({data:((this.items[_local2].data == undefined) ? (this.items[_local2].label) : (this.items[_local2].data)), label:this.items[_local2].label});
}
_local2++;
}
return(_local5);
};
GWListBoxClass.prototype.getRowCount = function () {
this.rowCount = Math.ceil((this.list_mc.content_mc.mask_mc._height - (this.pad * 2)) / this.rowHeight);
return(this.rowCount);
};
GWListBoxClass.prototype.setRowCount = function (n) {
if (n) {
this.rowCount = n;
if (this.items.length > 1) {
if ((n * this.rowHeight) < (this.barwidth * 2)) {
this.setRowHeight((this.barwidth * 2) / n);
}
}
this.setSize(this.width, this.rowHeight * n);
}
};
GWListBoxClass.prototype.getRowHeight = function () {
return(this.rowHeight);
};
GWListBoxClass.prototype.setRowHeight = function (n) {
this.rowHeight = n;
this.setSmallScroll(n);
this.setLargeScroll(n * 2);
this.setDataProvider(this.items);
this.setSize(this.width, Math.max(this.getRowCount() * n, this.height));
};
GWListBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWListBoxClass.prototype.setEnabled = function (f) {
this.enabled = f;
this.list_mc.vscroll_mc.setEnabled(f);
};
GWListBoxClass.prototype.removeAll = function () {
this.items = [];
this.list_mc.content_mc.createEmptyMovieClip("holder_mc", 1);
this.setSize(this.width, this.height, 1);
};
GWListBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWListBoxClass.prototype.setSize = function (w, h) {
if (((arguments.length > 2) || (this.width != w)) || (this.height != h)) {
var _local4 = this.pad * 2;
w = (this.width = Math.round(Math.max((this.barwidth * 2) + _local4, w)));
h = (this.height = Math.round(Math.max(this.barwidth * 2, Math.floor(h / this.rowHeight) * this.rowHeight) + _local4));
this.list_mc.content_mc.bottomScroll = (this.list_mc.content_mc.mask_mc._height = h - _local4);
this.list_mc.vscroll_mc.setSize(this.barwidth, h - _local4);
this.list_mc.vscroll_mc._x = (w - this.barwidth) - this.pad;
this.list_mc.content_mc.onChanged();
this.list_mc.content_mc.mask_mc._width = w - _local4;
this.sizeMe(this.width, this.height, this.list_mc.frame_mc);
for (var _local5 in this.list) {
this.list[_local5].setSize(w, this.rowHeight);
}
this.setVScroll();
this.list_mc.content_mc.maxscroll = Math.max(0, Math.ceil((this.list_mc.content_mc.holder_mc._height - this.list_mc.content_mc.mask_mc._height) / this.rowHeight) * this.rowHeight);
this.setScrollPosition(this.getScrollPosition());
}
};
GWListBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWListBoxClass.prototype.setEnabled = function (f) {
this.list_mc.vscroll_mc.setEnabled(f);
this.enabled = f;
};
GWListBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWListBoxClass.prototype.getScrollPosition = function () {
return(this.list_mc.vscroll_mc.getScrollPosition() / this.rowHeight);
};
GWListBoxClass.prototype.setScrollPosition = function (pos) {
if (this.getEnabled()) {
this.list_mc.vscroll_mc.setScrollPosition(Math.max(0, Math.min(pos * this.rowHeight, this.list_mc.content_mc.maxscroll)));
}
};
GWListBoxClass.prototype.setSmallScroll = function (n) {
this.smallScroll = n;
this.list_mc.vscroll_mc.setSmallScroll(n);
};
GWListBoxClass.prototype.setLargeScroll = function (n) {
this.largeScroll = n;
this.list_mc.vscroll_mc.setLargeScroll(n);
};
GWListBoxClass.prototype.setVScroll = function () {
this.list_mc.vscroll_mc._visible = ((this.items.length > this.getRowCount()) ? 1 : 0);
};
GWListBoxClass.prototype.setScrollBarColor = function (c) {
for (var _local3 in c) {
this.list_mc.vscroll_mc[_local3] = c[_local3];
}
this.list_mc.vscroll_mc.setColor(c);
};
GWListBoxClass.prototype.refreshPane = function () {
clearInterval(this.initID);
this.list_mc.content_mc.watch("scrollpos", this._updateScroll);
this.setSize(this.width, this.height, 1);
this.setEnabled(this.enabled);
};
GWListBoxClass.prototype._buildItem = function (i) {
if (this.items[i] == undefined) {
return(undefined);
}
this.list.attachMovie("GWListItemClass", "item" + i, i, {_y:i * this.rowHeight, idx:i, width:this.width, height:this.rowHeight, font:this.font, fontsize:this.fontsize, useEmbedFonts:this.useEmbedFonts, fontcolor:((this.items[i].fontcolor == undefined) ? (this.fontcolor_off) : (this.items[i].fontcolor)), fontcolor_off:((this.items[i].fontcolor_off == undefined) ? (this.fontcolor_off) : (this.items[i].fontcolor_off)), fontcolor_on:((this.items[i].fontcolor_on == undefined) ? (this.fontcolor_on) : (this.items[i].fontcolor_on)), fontcolor_out:((this.items[i].fontcolor_out == undefined) ? (this.fontcolor_out) : (this.items[i].fontcolor_out)), basecolor_off:this.itemcolor_off, data:((this.items[i].data == undefined) ? (this.items[i].label) : (this.items[i].data)), icon:this.items[i].icon, label:this.items[i].label, root:this});
if (!this.items[i].isHeader) {
if (this.items[i].selected) {
this.list["item" + i].setLabelColor(this.list["item" + i].fontcolor_on);
this.list["item" + i].setBaseColor(this.itemcolor_on);
}
this.list["item" + i].trackAsMenu = true;
this.list["item" + i].onDragOver = function () {
this.root.select(this.idx);
if ((this.root.lastDragIdx != this.root.lastIdx) && (((this.idx > this.root.lastDragIdx) && (this.root.lastDragIdx < this.root.lastIdx)) || ((this.idx < this.root.lastDragIdx) && (this.root.lastDragIdx > this.root.lastIdx)))) {
this.root.deSelect(this.root.lastDragIdx);
}
if (!this.root.selectMultiple) {
this.root.lastIdx = this.idx;
}
this.root.lastDragIdx = this.idx;
};
this.list["item" + i].onDragOut = function () {
if (!this.root.selectMultiple) {
this.root.deSelect(this.idx);
}
};
this.list["item" + i].onReleaseOutside = (this.list["item" + i].onRelease = function () {
clearInterval(this.root.isScrolling);
delete this.root.onMouseMove;
if ((this.idx == this.lastIdx) && ((getTimer() - this.lastHit) < 250)) {
clearInterval(this.root.clickID);
this.root.onDSelect(this.idx);
} else if (this.root.onDSelect == undefined) {
this.root.onSelect(this.idx);
} else {
this.root._onSelect = function (idx) {
clearInterval(this.clickID);
this.onSelect(idx);
};
this.root.clickID = setInterval(this.root, "_onSelect", 250, this.idx);
}
this.lastHit = getTimer();
this.lastIdx = this.idx;
});
this.list["item" + i].onPress = function () {
if (this.root.getEnabled()) {
if ((!Key.isDown(17)) || (!this.root.selectMultiple)) {
this.root.deSelectAll();
}
if (Key.isDown(16) && (this.root.selectMultiple)) {
if (this.root.lastIdx <= this.idx) {
var _local2 = this.root.lastIdx;
while (_local2 <= this.idx) {
this.root.select(_local2);
_local2++;
}
} else {
var _local2 = this.root.lastIdx;
while (_local2 >= this.idx) {
this.root.select(_local2);
_local2--;
}
}
return(undefined);
}
this.root._startSelect(this.idx);
}
};
}
this.onBuildItem(i);
};
GWListBoxClass.prototype._updateScroll = function () {
this.holder_mc._y = (-Math.round(Math.min(arguments[2], Math.min(this.maxscroll, Math.max(0, this.holder_mc._height - this.mask_mc._height))) / this.root.rowHeight)) * this.root.rowHeight;
var _local3 = (-this.holder_mc._y) / this.root.rowHeight;
var _local4 = _local3 + this.root.rowCount;
do {
if (!this.root.list["item" + _local3]) {
this.root._buildItem(_local3);
}
_local3++;
} while (_local3 <= _local4);
};
GWListBoxClass.prototype._startSelect = function (i) {
this.onMouseMove = function () {
clearInterval(this.isScrolling);
if (this._parent._ymouse >= (this._y + this.height)) {
this.isScrolling = setInterval(this, "_startScroll", 100, 1);
} else if (this._parent._ymouse <= this._y) {
this.isScrolling = setInterval(this, "_startScroll", 100, -1);
}
};
if (this.items[i].selected) {
this.deSelect(i);
} else {
this.select(i);
this.lastIdx = i;
}
};
GWListBoxClass.prototype._startScroll = function (d) {
this.setScrollPosition(this.getScrollPosition() + d);
if (this.selectMultiple) {
this.select(((d > 0) ? ((this.getScrollPosition() + this.getRowCount()) - 1) : (this.getScrollPosition())));
}
};
#endinitclip
Instance of Symbol 139 MovieClip [GWBaseClass] "baseclass" in Symbol 140 MovieClip [GWListBoxClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 141 MovieClip [GWComboBoxClass] Frame 1
#initclip 11
_global.GWComboBoxClass = function () {
this.cbDepth = 17000;
this.rowHeight = 18;
this.listPos = "bottom";
this.face = 16777215 /* 0xFFFFFF */;
this.highlight = 4210752 /* 0x404040 */;
this.highlight3D = 8421504 /* 0x808080 */;
this.shadow = 13947080 /* 0xD4D0C8 */;
this.darkshadow = 16777215 /* 0xFFFFFF */;
this.fontcolor_on = 16777215 /* 0xFFFFFF */;
this.fontcolor_off = 0;
this.itemcolor_on = 664682 /* 0x0A246A */;
this.itemcolor_off = 16777215 /* 0xFFFFFF */;
super.init(GWComboBoxClass);
};
GWComboBoxClass.prototype = new GWBaseClass();
Object.registerClass("GWComboBoxClass", GWComboBoxClass);
GWComboBoxClass.prototype.init = function () {
this.width = Math.round(this._width);
this.height = Math.round(this._height);
this._xscale = (this._yscale = 100);
var _local7 = this.getDepth();
if (this._parent._GWTopComboBoxDepth == undefined) {
this._parent._GWTopComboBoxDepth = _local7;
} else if (_local7 > this._parent._GWTopComboBoxDepth) {
this._parent._GWTopComboBoxDepth = _local7;
}
this.items = [];
var _local5 = this.labels.length;
var _local6 = 0;
while (_local6 < _local5) {
this.items.push({label:this.labels[_local6], data:this.data[_local6], icon:this.icons[_local6]});
_local6++;
}
if (this.listprops == undefined) {
this.listprops = {};
}
this.listprops.face = (this.listprops.highlight = (this.listprops.shadow = (this.listprops.itemcolor_off = this.itemcolor_off)));
this.listprops.highlight3D = (this.listprops.darkshadow = this.listborder || 4210752);
this.listprops.vScroll = "auto";
this.listprops.pad = this.listpad || 1;
this.listprops.width = this.width;
this.listprops.rowHeight = this.rowHeight;
this.listprops.rowCount = this.rowCount || (this.items.length);
this.listprops.useEmbedFonts = this.useEmbedFonts;
this.box_mc.colorObj = {face:this.face, highlight:this.highlight, highlight3D:this.highlight3D, shadow:this.shadow, darkshadow:this.darkshadow};
this.box_mc.useHandCursor = false;
this.box_mc.onPress = function () {
if (this._parent.list_mc._visible) {
this._parent.hideList();
} else {
this._parent.showList();
}
};
this.attachMovie("GWListItemClass", "item_mc", 2, {_x:this.pad, _y:this.pad, font:this.font, fontsize:this.fontsize, fontcolor:this.fontcolor, label:"", useEmbedFonts:this.useEmbedFonts, width:this.width - (this.pad * 2), height:Math.max(this.rowHeight + (this.pad * 2), this.height) - (this.pad * 2)});
this.setSize(this.width, this.height);
this.arrow_mc.useHandCursor = false;
this.arrow_mc.onPress = function () {
this._parent.box_mc.onPress();
if (this._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.down_mc._visible = 1;
}
};
this.arrow_mc.onRelease = (this.arrow_mc.onReleaseOutside = function () {
if (this._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.up_mc._visible = 1;
}
});
this.arrow_mc.swapDepths(3);
this.onMouseDown();
if (this.items.length) {
if ((this.idx != undefined) && (this.idx != "")) {
this.select(parseInt(this.idx));
}
} else {
this.setEnabled(false);
}
if (this.spawnAtRoot && (!_root.__GWcombobox)) {
_root.createEmptyMovieClip("__GWcombobox", this.cbDepth);
_root.__GWcombobox.count = 1;
}
this.depth = _root.__GWcombobox.count++;
};
GWComboBoxClass.prototype.onMouseDown = function () {
if (!((this.list_mc._visible && (this.list_mc.hitTest(_root._xmouse, _root._ymouse, 1))) || (this.box_mc.hitTest(_root._xmouse, _root._ymouse, 1)))) {
this.hideList();
this.item_mc.setLabelEnabled(this.getEnabled());
this.item_mc.setBaseColor(this.box_mc.colorObj.face);
}
};
GWComboBoxClass.prototype.select = function (i) {
if (i == -1) {
this.item_mc.icon_mc.removeMovieClip();
this.item_mc.setLabel("");
delete this.item_mc.idx;
} else if (this.items[i]) {
this.item_mc.icon_mc.removeMovieClip();
this.item_mc.setIcon(this.items[i].icon);
this.item_mc.setLabel(this.items[i].label);
this.item_mc.idx = i;
this.list_mc.select(i);
this.hideList();
this.onSelect(i);
}
};
GWComboBoxClass.prototype.setSelectedIndex = function (i) {
this.select(i);
};
GWComboBoxClass.prototype.getEnabled = function () {
return(this.enabled);
};
GWComboBoxClass.prototype.setEnabled = function (f) {
for (var _local2 in this.arrow_mc) {
this.arrow_mc[_local2]._visible = 0;
}
if (!f) {
this.arrow_mc.off_mc._visible = 1;
this.enabled = false;
this.item_mc.setLabelEnabled(false);
} else {
this.arrow_mc.up_mc._visible = 1;
this.enabled = true;
this.item_mc.setLabelEnabled(true);
}
};
GWComboBoxClass.prototype.getSize = function () {
return({width:this.width, height:this.height});
};
GWComboBoxClass.prototype.setSize = function (w, h) {
w = (this.width = Math.round(w));
h = (this.height = Math.round(h));
var _local2 = this.pad * 2;
this.sizeMe(w, Math.max(this.rowHeight + _local2, h), this.box_mc);
this.listprops.width = this.width;
this.item_mc.setSize(w - _local2, Math.max(this.rowHeight + _local2, h) - _local2);
this.select(this.getSelectedIndex());
var _local6 = this.arrow_mc.down_mc.arrow_mc._y - this.arrow_mc.up_mc.arrow_mc._y;
for (var _local3 in this.arrow_mc) {
this.sizeMe(this.arrow_mc._width, this.item_mc.height, this.arrow_mc[_local3].base_mc);
this.arrow_mc[_local3].arrow_mc._y = (this.arrow_mc[_local3].shadow_mc._y = Math.round((this.item_mc.height - this.arrow_mc[_local3].arrow_mc._height) / 2));
}
this.arrow_mc.down_mc.arrow_mc._y = this.arrow_mc.down_mc.arrow_mc._y + _local6;
this.arrow_mc._x = (w - this.arrow_mc._width) - this.pad;
this.arrow_mc._y = this.pad;
this.initList = false;
};
GWComboBoxClass.prototype.getSelectedIndex = function () {
return(this.item_mc.idx);
};
GWComboBoxClass.prototype.getSelectedItem = function () {
return(this.items[this.item_mc.idx]);
};
GWComboBoxClass.prototype.getValue = function () {
return(this.items[this.item_mc.idx].data);
};
GWComboBoxClass.prototype.setValue = function (v) {
var _local3 = this.items.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this.items[_local2].data == v) {
this.list_mc.deSelectAll();
this.select(_local2);
return(undefined);
}
_local2++;
}
return(false);
};
GWComboBoxClass.prototype.setBoxColor = function (c) {
this.box_mc.setColor(c);
this.item_mc.setLabelColor(this.fontcolor);
this.item_mc.setBaseColor(this.box_mc.colorObj.face);
};
GWComboBoxClass.prototype.setListPlacement = function (p) {
this.listPos = p;
var _local5 = this._x;
var _local4 = this._y;
var _local3 = this;
do {
_local3 = _local3._parent;
pt = {x:_local3._x, y:_local3._y};
_local5 = _local5 + pt.x;
_local4 = _local4 + pt.y;
} while (_local3 != _root);
this.y = _local4;
if (!this.spawnAtRoot) {
_local5 = 0;
_local4 = 0;
}
this.list_mc._x = _local5;
if (p == "top") {
this.list_mc._y = _local4 - this.list_mc.height;
} else if (p == "bottom") {
this.list_mc._y = _local4 + this.box_mc.height;
} else {
this.list_mc._y = _local4 - Math.floor((this.list_mc.height - this.box_mc.height) / 2);
}
};
GWComboBoxClass.prototype.setRowCount = function (n) {
this.rowCount = n;
this.initList = false;
};
GWComboBoxClass.prototype.setRowHeight = function (n) {
this.rowHeight = n;
this.initList = false;
};
GWComboBoxClass.prototype.setDataProvider = function (d) {
if ((this.spawnAtRoot && (!_root.__GWcombobox["cb" + this.depth])) || (!this.list_mc)) {
if (this.spawnAtRoot) {
_root.__GWcombobox.attachMovie(this.listSymbol, "cb" + this.depth, this.depth, this.listprops);
this.list_mc = _root.__GWcombobox["cb" + this.depth];
} else {
this.attachMovie(this.listSymbol, "list_mc", 4, this.listprops);
}
this.list_mc.parent = this;
this.list_mc.data = this.data;
this.list_mc.icons = this.icons;
this.list_mc.labels = this.labels;
this.list_mc.font = this.font;
this.list_mc.fontsize = this.fontsize;
this.list_mc.itemcolor_on = this.itemcolor_on;
this.list_mc.face = (this.list_mc.highlight = (this.list_mc.shadow = (this.list_mc.itemcolor_off = this.itemcolor_off)));
this.list_mc.fontcolor_on = this.fontcolor_on;
this.list_mc.fontcolor_off = this.fontcolor_off;
this.list_mc.rowCount = this.rowCount || (this.items.length);
this.list_mc.onSelect = function (i) {
this.parent.select(i);
this.parent.item_mc.setLabelColor(this.parent.fontcolor_on);
this.parent.item_mc.setBaseColor(this.parent.itemcolor_on);
};
this.list_mc._startSelect = function (i) {
this.select(i);
};
this.list_mc.onBuildItem = function (i) {
this.list["item" + i].trackAsMenu = true;
this.list["item" + i].onDragOver = (this.list["item" + i].onRollOver = function () {
for (var _local2 in this._parent) {
this._parent[_local2].setLabelColor(this.root.fontcolor_off);
this._parent[_local2].setBaseColor(this.root.itemcolor_off);
}
this.setLabelColor(this.root.fontcolor_on);
this.setBaseColor(this.root.itemcolor_on);
});
};
}
this.items = this.list_mc.setDataProvider(d);
this.list_mc.setSize(this.width, this.list_mc.height);
this.initList = false;
this.setEnabled(this.items.length);
this.onMouseDown();
};
GWComboBoxClass.prototype.showList = function () {
if (this.spawnAtRoot) {
_root.__GWcombobox.swapDepths(this.cbDepth);
_root.__GWcombobox.active.hideList();
} else {
this.swapDepths(this._parent._GWTopComboBoxDepth);
}
if (this.getEnabled() && (this.items.length)) {
if (!this.initList) {
this.listprops.rowHeight = this.rowHeight;
this.setDataProvider(this.items);
this.list_mc.setRowCount(this.rowCount || (this.items.length));
this.initList = true;
}
this.setListPlacement(this.listPos);
this.list_mc._visible = 1;
this.list_mc.select(this.item_mc.idx);
if ((this.item_mc.idx >= (this.list_mc.getScrollPosition() + this.list_mc.getRowCount())) || (this.item_mc.idx <= this.list_mc.getScrollPosition())) {
this.list_mc.setScrollPosition(this.item_mc.idx - 1);
}
if ((this.useEdgeScroll && (this.rowCount)) && (this.items.length > this.rowCount)) {
this.onMouseMove = function () {
clearInterval(this.isScrolling);
if (_root._ymouse < Math.min(this.y, (this.spawnAtRoot ? 0 : (this.y)) + this.list_mc._y)) {
this.isScrolling = setInterval(this.list_mc, "_startScroll", 100, -1);
} else if (_root._ymouse > Math.max(this.y + this.box_mc.height, ((this.spawnAtRoot ? 0 : (this.y)) + this.list_mc._y) + this.list_mc.height)) {
this.isScrolling = setInterval(this.list_mc, "_startScroll", 100, 1);
}
};
}
_root.__GWcombobox.active = this;
}
};
GWComboBoxClass.prototype.hideList = function () {
this.list_mc._visible = 0;
this.list_mc.deSelectAll();
this.onMouseMove = null;
clearInterval(this.isScrolling);
};
#endinitclip
Instance of Symbol 139 MovieClip [GWBaseClass] "baseclass" in Symbol 141 MovieClip [GWComboBoxClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 145 MovieClip [GWPanel] Frame 1
#initclip 12
_global.GWPanel = function () {
if (this.colorObj != undefined) {
for (var _local3 in this.colorObj) {
this[_local3] = this.colorObj[_local3];
}
}
super.init(GWPanel);
this.init();
};
GWPanel.prototype = new GWBaseClass();
Object.registerClass("GWPanel", GWPanel);
GWPanel.prototype.init = function () {
this.face = ((this.face == undefined) ? 13947080 : (this.face));
this.highlight = ((this.highlight == undefined) ? 13947080 : (this.highlight));
this.highlight3D = ((this.highlight3D == undefined) ? 16777215 : (this.highlight3D));
this.shadow = ((this.shadow == undefined) ? 8421504 : (this.shadow));
this.darkshadow = ((this.darkshadow == undefined) ? 4210752 : (this.darkshadow));
this.width = Math.round(this.width || (this._width));
this.height = Math.round(this.height || (this._height));
this._xscale = (this._yscale = 100);
this.classHolder._width = this.width;
this.classHolder._height = this.height;
this.setSize();
};
GWPanel.prototype.setSize = function (w, h) {
this.snapToPixels(this);
if (!arguments.length) {
w = (this.width = this.width || (this._width));
h = (this.height = this.height || (this._height));
this._xscale = (this._yscale = 100);
} else {
w = Math.round(w);
this.width = w;
h = Math.round(h);
this.height = h;
}
this.drawPanel(w, h);
};
GWPanel.prototype.getSize = function () {
return({width:this._width, height:this._height});
};
GWPanel.prototype.setColor = function (c) {
c = ((c != undefined) ? (c) : (this.colorObj));
for (var _local4 in c) {
this[_local4] = c[_local4];
}
this.colorObj = c;
var _local2 = new Color(this.iMC);
_local2.setRGB(this.face);
_local2 = new Color(this.eMC);
_local2.setRGB(this.highlight);
_local2 = new Color(this.fMC);
_local2.setRGB(this.highlight);
_local2 = new Color(this.aMC);
_local2.setRGB(this.highlight3D);
_local2 = new Color(this.bMC);
_local2.setRGB(this.highlight3D);
_local2 = new Color(this.gMC);
_local2.setRGB(this.shadow);
_local2 = new Color(this.hMC);
_local2.setRGB(this.shadow);
_local2 = new Color(this.cMC);
_local2.setRGB(this.darkshadow);
_local2 = new Color(this.dMC);
_local2.setRGB(this.darkshadow);
};
GWPanel.prototype.drawPanel = function (w, h) {
if ((this._width != w) || (this._height != h)) {
w = (this.width = Math.max(4, w || (this.width)));
h = (this.height = Math.max(4, h || (this.height)));
this.aMC._width = w - 1;
this.bMC._height = h - 2;
this.cMC._width = w;
this.dMC._height = h - 1;
this.eMC._width = w - 3;
this.fMC._height = h - 4;
this.gMC._width = w - 2;
this.hMC._height = h - 3;
this.iMC._width = w - 4;
this.iMC._height = h - 4;
this.cMC._y = h - 1;
this.dMC._x = w - 1;
this.gMC._y = h - 2;
this.hMC._x = w - 2;
}
this.setColor();
};
#endinitclip
Instance of Symbol 139 MovieClip [GWBaseClass] "baseclass" in Symbol 145 MovieClip [GWPanel] Frame 1
//component parameters
onClipEvent (construct) {
}
Instance of Symbol 145 MovieClip [GWPanel] "base_mc" in Symbol 146 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 145 MovieClip [GWPanel] "base_mc" in Symbol 149 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 13947080 /* 0xD4D0C8 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 8421504 /* 0x808080 */;
}
Instance of Symbol 145 MovieClip [GWPanel] "base_mc" in Symbol 150 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 145 MovieClip [GWPanel] "base_mc" in Symbol 151 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 145 MovieClip [GWPanel] "base_mc" in Symbol 155 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 13947080 /* 0xD4D0C8 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 8421504 /* 0x808080 */;
}
Instance of Symbol 145 MovieClip [GWPanel] "base_mc" in Symbol 156 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Instance of Symbol 145 MovieClip [GWPanel] "base_mc" in Symbol 157 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
}
Symbol 160 MovieClip [GWScrollerClass] Frame 1
#initclip 13
_global.GWScrollerClass = function () {
super.init(GWScrollerClass);
};
GWScrollerClass.prototype = new GWBaseClass();
Object.registerClass("GWScrollerClass", GWScrollerClass);
GWScrollerClass.prototype.init = function () {
if (this.horizontal && (this._rotation == 90)) {
this.isHorizontal = true;
}
this.snapToPixels(this);
this.largeScroll = (this.horizontal ? 30 : 5);
this.smallScroll = (this.horizontal ? 5 : 1);
for (var _local2 in this.scrollbar_mc) {
this.scrollbar_mc[_local2].useHandCursor = false;
}
var _local5 = this.width || ((this.horizontal ? (this._height) : (this._width)));
var _local4 = this.height || ((this.horizontal ? (this._width) : (this._height)));
this._xscale = (this._yscale = 100);
this.thumbMinSize = this.scrollbar_mc.thumb_mc._height;
this.setSize(_local5, _local4);
for (var _local2 in this.scrollbar_mc.bot_mc) {
if (_local2 == "over_mc") {
this.scrollbar_mc.bot_mc.onRollOver = (this.scrollbar_mc.top_mc.onRollOver = function () {
if (this._parent._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.over_mc._visible = 1;
}
});
} else if (_local2 == "down_mc") {
this.scrollbar_mc.bot_mc.onPress = (this.scrollbar_mc.top_mc.onPress = function () {
if (this._parent._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.down_mc._visible = 1;
var _local3 = ((this._name == "bot_mc") ? 1 : -1) * this._parent._parent.smallScroll;
this._parent._parent.isScrolling = setInterval(this._parent._parent, "_doScroll", 100, _local3);
}
});
} else if (_local2 == "up_mc") {
this.scrollbar_mc.bot_mc.onRelease = (this.scrollbar_mc.bot_mc.onReleaseOutside = (this.scrollbar_mc.top_mc.onRelease = (this.scrollbar_mc.top_mc.onReleaseOutside = function () {
if (this._parent._parent.enabled) {
for (var _local2 in this) {
this[_local2]._visible = 0;
}
this.up_mc._visible = 1;
clearInterval(this._parent._parent.isScrolling);
delete this._parent._parent.isScrolling;
var _local3 = ((this._name == "bot_mc") ? 1 : -1) * this._parent._parent.smallScroll;
this._parent._parent._doScroll(_local3, this._parent._parent);
}
})));
}
}
this.scrollbar_mc.thumb_mc.onPress = function () {
this._parent._parent.drag(this, false, 0, this._parent.track_mc._y, 0, (this._parent.track_mc._y + this._parent.track_mc._height) - this.height);
this.onDrag = this._parent._parent._onThumbDrag;
this._parent._parent.isDragging = true;
};
this.scrollbar_mc.thumb_mc.onRelease = (this.scrollbar_mc.thumb_mc.onReleaseOutside = function () {
this._parent._parent.drag(this, -1);
this._parent._parent.isDragging = false;
this._parent._parent.scrollTarget.onChanged();
});
this.scrollbar_mc.track_mc.onPress = function () {
if (this._parent._parent.enabled) {
var _local2 = this._parent._parent.largeScroll * ((this._parent._ymouse > this._parent.thumb_mc._y) ? 1 : -1);
this._parent._parent.isScrolling = setInterval(this._parent._parent, "_doScroll", 50, _local2, this._parent._ymouse);
this._parent._parent._doScroll(_local2);
}
};
this.scrollbar_mc.track_mc.onDragOut = (this.scrollbar_mc.track_mc.onRelease = (this.scrollbar_mc.track_mc.onReleaseOutside = function () {
clearInterval(this._parent._parent.isScrolling);
delete this._parent._parent.isScrolling;
}));
this.setScrollTarget(((this.scrollTarget.length > 0) ? (this.scrollTarget) : (this._targetInstanceName)));
this.scrollTarget.onChanged();
};
GWScrollerClass.prototype.setHorizontal = function (f) {
this.horizontal = f;
this.setSize(this.width, this.height, 1);
};
GWScrollerClass.prototype.getSize = function () {
return({width:this._width, height:this._height});
};
GWScrollerClass.prototype.setSize = function (w, h) {
if (((arguments.length > 2) || (this.width != w)) || (this.height != h)) {
w = (this.width = Math.round(w));
h = (this.height = Math.round(h));
var _local3 = this.scrollbar_mc;
this._rotation = 0;
var _local7 = _local3.bot_mc.down_mc.arrow_mc._x - _local3.bot_mc.up_mc.arrow_mc._x;
for (var _local5 in _local3.bot_mc) {
_local3.bot_mc[_local5]._x = (_local3.bot_mc[_local5]._y = 0);
_local3.top_mc[_local5]._x = (_local3.top_mc[_local5]._y = 0);
_local3.bot_mc[_local5]._visible = (_local3.top_mc[_local5]._visible = 0);
this.sizeMe(w, _local3.bot_mc[_local5]._height, _local3.bot_mc[_local5].base_mc);
this.sizeMe(w, _local3.top_mc[_local5]._height, _local3.top_mc[_local5].base_mc);
_local3.bot_mc[_local5].arrow_mc._x = (_local3.top_mc[_local5].arrow_mc._x = Math.floor((w - _local3.bot_mc.up_mc.arrow_mc._width) / 2));
_local3.bot_mc[_local5].shadow_mc._x = (_local3.top_mc[_local5].shadow_mc._x = Math.floor((w - _local3.top_mc[_local5].shadow_mc._width) / 2));
}
_local3.bot_mc.down_mc.arrow_mc._x = (_local3.top_mc.down_mc.arrow_mc._x = Math.floor((w - _local3.bot_mc.down_mc.arrow_mc._width) / 2) + _local7);
_local3.bot_mc.up_mc._visible = (_local3.top_mc.up_mc._visible = 1);
this.sizeMe(w, (h - _local3.top_mc._height) - _local3.bot_mc._height, _local3.track_mc);
this.sizeMe(w, _local3.thumb_mc._height, _local3.thumb_mc.base_mc);
_local3.track_mc._y = _local3.top_mc._height;
_local3.bot_mc._y = h - _local3.bot_mc._height;
if (this.horizontal) {
this._rotation = 90;
if (!this.isHorizontal) {
this._yscale = -Math.abs(this._yscale);
}
}
this._updateThumb();
}
};
GWScrollerClass.prototype.getScrollPosition = function () {
return(this.scrollpos);
};
GWScrollerClass.prototype.setScrollPosition = function (p) {
if (this.horizontal) {
this.scrollTarget.hscroll = p;
} else {
this.scrollTarget.scroll = p;
}
this.scrollTarget.onChanged();
};
GWScrollerClass.prototype.setSmallScroll = function (n) {
this.smallScroll = n;
};
GWScrollerClass.prototype.setLargeScroll = function (n) {
this.largeScroll = n;
};
GWScrollerClass.prototype.setEnabled = function (f) {
var _local2 = this.scrollbar_mc;
for (var _local3 in _local2.bot_mc) {
_local2.bot_mc[_local3]._visible = 0;
_local2.top_mc[_local3]._visible = 0;
}
if (!f) {
_local2.bot_mc.off_mc._visible = (_local2.top_mc.off_mc._visible = 1);
_local2.thumb_mc._visible = 0;
this.enabled = false;
} else {
_local2.bot_mc.up_mc._visible = (_local2.top_mc.up_mc._visible = 1);
this._updateThumb();
this.enabled = true;
}
};
GWScrollerClass.prototype.setScrollTarget = function (t) {
if (t != undefined) {
t = (((t instanceof TextField) || (t instanceof MovieClip)) ? (t) : (this._parent[t]));
if ((t instanceof TextField) || (t instanceof MovieClip)) {
this.scrollTarget = t;
if (!this.scrollTarget.scroller) {
this.scrollTarget.scroller = [this];
} else {
this.scrollTarget.scroller.push(this);
}
this.scrollTarget.addListener(this);
this.scrollTarget.onScroller = (this.scrollTarget.onChanged = function () {
for (var _local2 in this.scroller) {
this.scroller[_local2]._onChanged(this);
}
});
} else {
delete this.scrollTarget;
return(undefined);
}
}
};
GWScrollerClass.prototype._doScroll = function (d, t) {
this.scrollpos = this.scrollpos || 0;
this.scrollpos = this.scrollpos + d;
this.scrollpos = ((d > 0) ? (Math.min(this.scrollpos, this.maxscroll)) : (Math.max(this.scrollpos, (this.horizontal ? 0 : (((this.scrollTarget instanceof TextField) ? 1 : 0))))));
this._updateThumb();
if (t) {
if (((d > 0) && ((this.scrollbar_mc.thumb_mc._y + this.scrollbar_mc.thumb_mc.height) > t)) || ((d < 0) && (this.scrollbar_mc.thumb_mc._y < t))) {
this.scrollbar_mc.track_mc.onRelease();
}
}
};
GWScrollerClass.prototype._onChanged = function (t) {
if (this.isDragging) {
return(undefined);
}
this.scrollpos = (this.horizontal ? (t.hscroll) : (t.scroll)) || 0;
this.maxscroll = (this.horizontal ? (t.maxhscroll) : (t.maxscroll));
this.pageSize = ((t instanceof TextField) ? ((this.horizontal ? (this.largeScroll) : (t.bottomScroll - t.scroll))) : (t.bottomScroll - (t.scrollpos || 0)));
if (!this.isScrolling) {
if (this.maxscroll > 1) {
this.setEnabled(true);
this._updateThumb();
} else {
this.setEnabled(false);
}
}
};
GWScrollerClass.prototype._onThumbDrag = function () {
var _local2 = this._parent._parent.scrollTarget;
var _local3 = this._parent.track_mc._height - this.height;
if (this._parent._parent.horizontal) {
var _local4 = _local3 / _local2.maxhscroll;
_local2.hscroll = (_local2.hscrollpos = Math.round((this._y - this._parent.track_mc._y) / _local4));
} else {
var _local4 = _local3 / _local2.maxscroll;
_local2.scroll = (_local2.scrollpos = Math.round((this._y - this._parent.track_mc._y) / _local4) + ((_local2 instanceof TextField) ? 1 : 0));
}
};
GWScrollerClass.prototype._updateThumb = function () {
var _local2 = this.scrollbar_mc;
var _local4 = Math.max(this.thumbMinSize, Math.round((this.pageSize / (this.maxscroll + this.pageSize)) * _local2.track_mc._height)) || (this.thumbMinSize);
if (this.scrollTarget) {
this.sizeMe(this.width, _local4, _local2.thumb_mc.base_mc);
_local2.thumb_mc.height = _local4;
}
_local2.thumb_mc.mid_mc._x = Math.floor(((_local2.thumb_mc.width || (_local2.thumb_mc._width)) - _local2.thumb_mc.mid_mc._width) / 2);
_local2.thumb_mc.mid_mc._y = Math.floor(((_local2.thumb_mc.height || (_local2.thumb_mc._height)) - _local2.thumb_mc.mid_mc._height) / 2);
var _local3 = _local2.track_mc._height - _local4;
var _local5 = _local3 / (this.maxscroll - 1);
_local2.thumb_mc._visible = _local3 > 0;
_local2.thumb_mc._y = _local2.track_mc._y + Math.max(0, Math.round(Math.min(_local3, (this.scrollpos - 1) * _local5)));
if (this.horizontal) {
this.scrollTarget.hscroll = (this.scrollTarget.hscrollpos = this.scrollpos);
} else {
this.scrollTarget.scroll = (this.scrollTarget.scrollpos = this.scrollpos);
}
};
#endinitclip
Instance of Symbol 139 MovieClip [GWBaseClass] "baseclass" in Symbol 160 MovieClip [GWScrollerClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 161 MovieClip [GWScrollBar] Frame 1
#initclip 19
_global.GWScrollBar = function () {
super.init();
this.init();
};
GWScrollBar.prototype = new GWScrollerClass();
Object.registerClass("GWScrollBar", GWScrollBar);
GWScrollBar.prototype.init = function () {
this.face = ((this.face == undefined) ? 13947080 : (this.face));
this.highlight = ((this.highlight == undefined) ? 16777215 : (this.highlight));
this.highlight3D = ((this.highlight3D == undefined) ? 13947080 : (this.highlight3D));
this.shadow = ((this.shadow == undefined) ? 8421504 : (this.shadow));
this.darkshadow = ((this.darkshadow == undefined) ? 4210752 : (this.darkshadow));
this.face_down = ((this.face_down == undefined) ? 13947080 : (this.face_down));
this.highlight_down = ((this.highlight_down == undefined) ? 13947080 : (this.highlight_down));
this.highlight3D_down = ((this.highlight3D_down == undefined) ? 8421504 : (this.highlight3D_down));
this.shadow_down = ((this.shadow_down == undefined) ? 13947080 : (this.shadow_down));
this.darkshadow_down = ((this.darkshadow_down == undefined) ? 8421504 : (this.darkshadow_down));
this.face_off = ((this.face_off == undefined) ? 13947080 : (this.face_off));
this.highlight_off = ((this.highlight_off == undefined) ? 16777215 : (this.highlight_off));
this.highlight3D_off = ((this.highlight3D_off == undefined) ? 13947080 : (this.highlight3D_off));
this.shadow_off = ((this.shadow_off == undefined) ? 8421504 : (this.shadow_off));
this.darkshadow_off = ((this.darkshadow_off == undefined) ? 4210752 : (this.darkshadow_off));
this.arrow_off = ((this.arrow_off == undefined) ? 8421504 : (this.arrow_off));
this.scrollbar_mc.thumb_mc.base_mc.face = this.face;
this.scrollbar_mc.thumb_mc.base_mc.highlight = this.highlight;
this.scrollbar_mc.thumb_mc.base_mc.highlight3D = this.highlight3D;
this.scrollbar_mc.thumb_mc.base_mc.shadow = this.shadow;
this.scrollbar_mc.thumb_mc.base_mc.darkshadow = this.darkshadow;
this.scrollbar_mc.bot_mc.up_mc.base_mc.face = this.face;
this.scrollbar_mc.bot_mc.up_mc.base_mc.highlight = this.highlight;
this.scrollbar_mc.bot_mc.up_mc.base_mc.highlight3D = this.highlight3D;
this.scrollbar_mc.bot_mc.up_mc.base_mc.shadow = this.shadow;
this.scrollbar_mc.bot_mc.up_mc.base_mc.darkshadow = this.darkshadow;
this.scrollbar_mc.top_mc.up_mc.base_mc.face = this.face;
this.scrollbar_mc.top_mc.up_mc.base_mc.highlight = this.highlight;
this.scrollbar_mc.top_mc.up_mc.base_mc.highlight3D = this.highlight3D;
this.scrollbar_mc.top_mc.up_mc.base_mc.shadow = this.shadow;
this.scrollbar_mc.top_mc.up_mc.base_mc.darkshadow = this.darkshadow;
this.scrollbar_mc.bot_mc.down_mc.base_mc.face = this.face_down;
this.scrollbar_mc.bot_mc.down_mc.base_mc.highlight = this.highlight_down;
this.scrollbar_mc.bot_mc.down_mc.base_mc.highlight3D = this.highlight3D_down;
this.scrollbar_mc.bot_mc.down_mc.base_mc.shadow = this.shadow_down;
this.scrollbar_mc.bot_mc.down_mc.base_mc.darkshadow = this.darkshadow_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.face = this.face_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.highlight = this.highlight_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.highlight3D = this.highlight3D_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.shadow = this.shadow_down;
this.scrollbar_mc.top_mc.down_mc.base_mc.darkshadow = this.darkshadow_down;
this.scrollbar_mc.bot_mc.off_mc.base_mc.face = this.face_off;
this.scrollbar_mc.bot_mc.off_mc.base_mc.highlight = this.highlight_off;
this.scrollbar_mc.bot_mc.off_mc.base_mc.highlight3D = this.highlight3D_off;
this.scrollbar_mc.bot_mc.off_mc.base_mc.shadow = this.shadow_off;
this.scrollbar_mc.bot_mc.off_mc.base_mc.darkshadow = this.darkshadow_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.face = this.face_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.highlight = this.highlight_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.highlight3D = this.highlight3D_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.shadow = this.shadow_off;
this.scrollbar_mc.top_mc.off_mc.base_mc.darkshadow = this.darkshadow_off;
this.setColor();
};
GWScrollBar.prototype.setColor = function (o) {
this.face = ((o.face == undefined) ? (this.face) : (o.face));
this.highlight = ((o.highlight == undefined) ? (this.highlight) : (o.highlight));
this.highlight3D = ((o.highlight3D == undefined) ? (this.highlight3D) : (o.highlight3D));
this.shadow = ((o.shadow == undefined) ? (this.shadow) : (o.shadow));
this.darkshadow = ((o.darkshadow == undefined) ? (this.darkshadow) : (o.darkshadow));
this.arrow = ((o.arrow == undefined) ? (this.arrow) : (o.arrow));
this.track = ((o.track == undefined) ? (this.track) : (o.track));
this.face_down = ((o.face_down == undefined) ? (this.face_down) : (o.face_down));
this.highlight_down = ((o.highlight_down == undefined) ? (this.highlight_down) : (o.highlight_down));
this.highlight3D_down = ((o.highlight3D_down == undefined) ? (this.highlight3D_down) : (o.highlight3D_down));
this.shadow_down = ((o.shadow_down == undefined) ? (this.shadow_down) : (o.shadow_down));
this.darkshadow_down = ((o.darkshadow_down == undefined) ? (this.darkshadow_down) : (o.darkshadow_down));
this.arrow_down = ((o.arrow_down == undefined) ? (this.arrow_down) : (o.arrow_down));
this.face_off = ((o.face_off == undefined) ? (this.face_off) : (o.face_off));
this.highlight_off = ((o.highlight_off == undefined) ? (this.highlight_off) : (o.highlight_off));
this.highlight3D_off = ((o.highlight3D_off == undefined) ? (this.highlight3D_off) : (o.highlight3D_off));
this.shadow_off = ((o.shadow_off == undefined) ? (this.shadow_off) : (o.shadow_off));
this.darkshadow_off = ((o.darkshadow_off == undefined) ? (this.darkshadow_off) : (o.darkshadow_off));
this.arrow_off = ((o.arrow_off == undefined) ? (this.arrow_off) : (o.arrow_off));
this.scrollbar_mc.thumb_mc.base_mc.colorObj = (this.scrollbar_mc.bot_mc.up_mc.base_mc.colorObj = (this.scrollbar_mc.top_mc.up_mc.base_mc.colorObj = {face:this.face, highlight:this.highlight, highlight3D:this.highlight3D, shadow:this.shadow, darkshadow:this.darkshadow}));
this.scrollbar_mc.top_mc.down_mc.base_mc.colorObj = (this.scrollbar_mc.bot_mc.down_mc.base_mc.colorObj = {face:this.face_down, highlight:this.highlight_down, highlight3D:this.highlight3D_down, shadow:this.shadow_down, darkshadow:this.darkshadow_down});
this.scrollbar_mc.bot_mc.off_mc.base_mc.colorObj = (this.scrollbar_mc.top_mc.off_mc.base_mc.colorObj = {face:this.face_off, highlight:this.highlight_off, highlight3D:this.highlight3D_off, shadow:this.shadow_off, darkshadow:this.darkshadow_off});
this.scrollbar_mc.thumb_mc.base_mc.setColor();
this.scrollbar_mc.bot_mc.up_mc.base_mc.setColor();
this.scrollbar_mc.top_mc.up_mc.base_mc.setColor();
this.scrollbar_mc.bot_mc.down_mc.base_mc.setColor();
this.scrollbar_mc.top_mc.down_mc.base_mc.setColor();
this.scrollbar_mc.top_mc.off_mc.base_mc.setColor();
this.scrollbar_mc.bot_mc.off_mc.base_mc.setColor();
this.setClipColor(this.scrollbar_mc.bot_mc.up_mc.arrow_mc, this.arrow);
this.setClipColor(this.scrollbar_mc.top_mc.up_mc.arrow_mc, this.arrow);
this.setClipColor(this.scrollbar_mc.bot_mc.down_mc.arrow_mc, this.arrow_down);
this.setClipColor(this.scrollbar_mc.top_mc.down_mc.arrow_mc, this.arrow_down);
this.setClipColor(this.scrollbar_mc.bot_mc.off_mc.arrow_mc, this.arrow_off);
this.setClipColor(this.scrollbar_mc.top_mc.off_mc.arrow_mc, this.arrow_off);
if (this.track != undefined) {
this.setClipColor(this.scrollbar_mc.track_mc, this.track);
}
};
GWScrollBar.prototype.setClipColor = function (m, n) {
var _local1 = new Color(m);
_local1.setRGB(n);
};
#endinitclip
Instance of Symbol 160 MovieClip [GWScrollerClass] in Symbol 161 MovieClip [GWScrollBar] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Symbol 162 MovieClip Frame 1
stop();
Instance of Symbol 161 MovieClip [GWScrollBar] in Symbol 162 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
face = 13947080 /* 0xD4D0C8 */;
highlight = 16777215 /* 0xFFFFFF */;
highlight3D = 13947080 /* 0xD4D0C8 */;
shadow = 8421504 /* 0x808080 */;
darkshadow = 4210752 /* 0x404040 */;
face_down = 13947080 /* 0xD4D0C8 */;
highlight_down = 13947080 /* 0xD4D0C8 */;
highlight3D_down = 8421504 /* 0x808080 */;
shadow_down = 13947080 /* 0xD4D0C8 */;
darkshadow_down = 8421504 /* 0x808080 */;
face_off = 13947080 /* 0xD4D0C8 */;
highlight_off = 16777215 /* 0xFFFFFF */;
highlight3D_off = 13947080 /* 0xD4D0C8 */;
shadow_off = 8421504 /* 0x808080 */;
darkshadow_off = 4210752 /* 0x404040 */;
arrow = 0;
arrow_down = 0;
arrow_off = 8421504 /* 0x808080 */;
track = 15527148 /* 0xECECEC */;
}
Symbol 163 MovieClip [GWLabelClass] Frame 1
#initclip 14
function GWLabelClass() {
this.fontcolor_off = 8421504 /* 0x808080 */;
this.fontcolor_shadow = 16777215 /* 0xFFFFFF */;
super.init(GWLabelClass);
}
GWLabelClass.prototype = new GWBaseClass();
Object.registerClass("GWLabelClass", GWLabelClass);
GWLabelClass.prototype.init = function () {
this.padx = this.padx || 0;
this.pady = this.pady || 0;
this.buffer = this.buffer || 2;
};
GWLabelClass.prototype.alignLabel = function (a) {
if (a == "right") {
this.label_mc._x = (this.mask_mc._width - this.label_mc._width) - this.padx;
} else if (a == "center") {
this.label_mc._x = Math.max(0, Math.round((this.width - this.label_mc._width) / 2));
} else {
this.label_mc._x = this.padx;
}
this.label_mc._y = Math.max(0, Math.round((this.height - this.label_mc._height) / 2));
this.label_mc.x = this.label_mc._x;
this.label_mc.y = this.label_mc._y;
};
GWLabelClass.prototype.gethtmlLabel = function () {
return(this.label_mc.label_txt.htmlText);
};
GWLabelClass.prototype.getLabel = function () {
return(this.label_mc.label_txt.text);
};
GWLabelClass.prototype.setLabelFormat = function (f) {
this.myFormat = f;
this.setLabel(this.gethtmlLabel());
};
GWLabelClass.prototype.setLabel = function (t) {
this.width = this.width || (this._width);
this.height = this.height || (this._height);
if (!this.label_mc) {
this.createEmptyMovieClip("label_mc", 500);
this.drawBox("mask_mc", 501, 0, 0, this.width - this.padx, this.height - this.pady, 0, 0);
}
if (!this.myFormat) {
this.myFormat = new TextFormat();
}
this.label_mc.createTextField("label_txt", 2, 0, 0, this.width, this.height);
if (this.useEmbedFonts) {
this.label_mc.label_txt.embedFonts = true;
}
this.label_mc.label_txt.selectable = false;
this.label_mc.label_txt.multiline = true;
this.label_mc.label_txt.html = true;
this.label_mc.label_txt.autoSize = "left";
this.label_mc.label_txt.htmlText = t;
this.myFormat.font = ((this.font == undefined) ? "Tahoma" : (this.font));
this.myFormat.size = this.fontsize || 11;
this.myFormat.color = this.fontcolor;
this.label_mc.label_txt.setTextFormat(this.myFormat);
if (this.fitLabel) {
this.mask_mc._width = (this.width = Math.max(this.width, ((((this.labelpos == "left") || (this.labelpos == "right")) ? (this.icon_mc._width) : 0) + this.label_mc._width) + (this.padx * 2)));
this.mask_mc._height = (this.height = Math.max(this.height, ((((this.labelpos == "top") || (this.labelpos == "bottom")) ? (this.icon_mc._height) : 0) + this.label_mc._height) + (this.pady * 2)));
this.setSize(this.width, this.height);
}
this.alignLabel(this.align);
if (this.labelpos != undefined) {
this.setLabelPlacement(this.labelpos);
}
this.setMask(this.mask_mc);
};
GWLabelClass.prototype.setLabelEnabled = function (f) {
if (f) {
this.setLabelColor(this.fontcolor);
this.label_mc.shadow_txt.text = "";
} else {
this.setLabelColor(this.fontcolor_off);
if (this.fontcolor_shadow != undefined) {
this.label_mc.createTextField("shadow_txt", 1, 1, 1, this.width, this.height);
this.label_mc.shadow_txt.autoSize = "left";
this.label_mc.shadow_txt.selectable = false;
this.label_mc.shadow_txt.html = true;
this.label_mc.shadow_txt.htmlText = this.getLabel();
this.myFormat.color = this.fontcolor_shadow;
this.label_mc.shadow_txt.setTextFormat(this.myFormat);
}
}
};
GWLabelClass.prototype.setLabelColor = function (c) {
this.myFormat.color = c || 0;
this.label_mc.label_txt.setTextFormat(this.myFormat);
};
GWLabelClass.prototype.setLabelPlacement = function (pos) {
this.labelpos = pos;
this.valign = "center";
this.align = "center";
if (pos == "left") {
this.align = "right";
this.width = Math.max(this.width, (this.label_mc._width + this.icon_mc._width) + this.buffer);
if (this.fitLabel) {
this.setSize(this.width, this.height);
}
this.label_mc._x = (this.icon_mc._x - this.label_mc._width) - this.buffer;
this.icon_mc._y = Math.round((this.height - this.icon_mc._height) / 2);
} else if (pos == "right") {
this.align = "left";
this.width = Math.max(this.width, (this.label_mc._width + this.icon_mc._width) + this.buffer);
if (this.fitLabel) {
this.setSize(this.width, this.height);
}
this.label_mc._x = (this.icon_mc._x + this.icon_mc._width) + this.buffer;
this.icon_mc._y = Math.round((this.height - this.icon_mc._height) / 2);
} else if (pos == "top") {
this.valign = "bottom";
this.width = Math.max(this.width, this._width);
this.height = Math.max(this.height, (this.label_mc._height + this.icon_mc._height) + this.buffer);
if (this.fitLabel) {
this.setSize(this.width, this.height);
}
this.label_mc._x = Math.max(0, Math.round((this.width - this.label_mc._width) / 2));
this.label_mc._y = (this.icon_mc._y - this.label_mc._height) - this.buffer;
} else if (pos == "bottom") {
this.valign = "top";
this.width = Math.max(this.width, this._width);
this.height = Math.max(this.height, (this.label_mc._height + this.icon_mc._height) + this.buffer);
if (this.fitLabel) {
this.setSize(this.width, this.height);
}
this.label_mc._x = Math.max(0, Math.round((this.width - this.label_mc._width) / 2));
this.label_mc._y = (this.icon_mc._y + this.icon_mc._height) + this.buffer;
}
};
#endinitclip
Instance of Symbol 139 MovieClip [GWBaseClass] "base" in Symbol 163 MovieClip [GWLabelClass] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 164 MovieClip [GWListItemClass] Frame 1
#initclip 16
_global.GWListItemClass = function (o) {
super.init();
this.init();
};
GWListItemClass.prototype = new GWLabelClass();
Object.registerClass("GWListItemClass", GWListItemClass);
GWListItemClass.prototype.init = function () {
this.basecolor_on = ((this.basecolor_on == undefined) ? 664682 : (this.basecolor_on));
this.basecolor_off = ((this.basecolor_off == undefined) ? 16777215 : (this.basecolor_off));
this.basecolor_over = ((this.basecolor_over == undefined) ? 16777215 : (this.basecolor_over));
this.fontcolor_on = ((this.fontcolor_on == undefined) ? 16777215 : (this.fontcolor_on));
this.fontcolor_off = ((this.fontcolor_off == undefined) ? 0 : (this.fontcolor_off));
this.fontcolor_over = ((this.fontcolor_over == undefined) ? 0 : (this.fontcolor_over));
this.width = Math.round(this.width || (this._width));
this.height = Math.round(this.height || (this._height));
this._xscale = (this._yscale = 100);
this.drawBox("base_mc", 2, 0, 0, 1, 1, this.basecolor_off, 100);
this.base_mc._alpha = ((this.alpha == undefined) ? 100 : (this.alpha));
this.setSize(this.width, this.height);
this.setLabel(this.label);
this.setIcon(this.icon);
this.pady = 0;
this.useHandCursor = false;
};
GWListItemClass.prototype.setData = function (d) {
this.data = d;
};
GWListItemClass.prototype.getData = function () {
return(this.data);
};
GWListItemClass.prototype.setIcon = function (i) {
if (i.length) {
this.attachMovie(i, "icon_mc", 3, {_x:4});
if (this.icon_mc._height > this.height) {
this.sizeMe(this.icon_mc._width * (this.height / this.icon_mc._height), this.height, this.icon_mc);
}
this.setLabelPlacement("right");
}
};
GWListItemClass.prototype.setSize = function (w, h) {
if (!this.label_mc) {
this.createEmptyMovieClip("label_mc", 500);
this.drawBox("mask_mc", 501, 0, 0, this.width - this.padx, this.height - this.pady, 0, 0);
}
this.width = (this.base_mc._width = w);
this.height = (this.base_mc._height = h);
this.mask_mc._width = w - (this.padx * 3);
this.mask_mc._height = h - (this.pady * 2);
if (this.labelAlign == "center") {
this.label_mc._x = Math.round((this.width - this.label_mc._width) / 2);
}
};
GWListItemClass.prototype.setBaseColor = function (c) {
var _local2 = new Color(this.base_mc);
_local2.setRGB(c);
};
#endinitclip
Instance of Symbol 163 MovieClip [GWLabelClass] in Symbol 164 MovieClip [GWListItemClass] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Symbol 165 MovieClip [GWListBox] Frame 1
#initclip 17
_global.GWListBox = function () {
this.pad = this.pad || 2;
this.sbSymbol = "GWScrollBar";
this.sbprops = {};
for (var _local3 in this) {
if (_local3.indexOf("sb_") != -1) {
this.sbprops[_local3.substr(3)] = this[_local3];
}
}
super.init();
};
GWListBox.prototype = new GWListBoxClass();
Object.registerClass("GWListBox", GWListBox);
#endinitclip
Instance of Symbol 140 MovieClip [GWListBoxClass] in Symbol 165 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Instance of Symbol 164 MovieClip [GWListItemClass] "item_mc" in Symbol 165 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (construct) {
}
Instance of Symbol 145 MovieClip [GWPanel] "frame_mc" in Symbol 165 MovieClip [GWListBox] Frame 1
//component parameters
onClipEvent (construct) {
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
}
Symbol 166 MovieClip Frame 1
stop();
Instance of Symbol 165 MovieClip [GWListBox] in Symbol 166 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
selectMultiple = false;
font = "Tahoma";
fontsize = 11;
rowHeight = 18;
checkFocus = false;
fontcolor_on = 16777215 /* 0xFFFFFF */;
fontcolor_off = 0;
fontcolor_out = 0;
itemcolor_on = 664682 /* 0x0A246A */;
itemcolor_off = 16777215 /* 0xFFFFFF */;
itemcolor_out = 14078926 /* 0xD6D3CE */;
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
sb_face = 13947080 /* 0xD4D0C8 */;
sb_highlight = 16777215 /* 0xFFFFFF */;
sb_highlight3D = 13947080 /* 0xD4D0C8 */;
sb_shadow = 8421504 /* 0x808080 */;
sb_darkshadow = 4210752 /* 0x404040 */;
sb_face_down = 13947080 /* 0xD4D0C8 */;
sb_highlight_down = 13947080 /* 0xD4D0C8 */;
sb_highlight3D_down = 8421504 /* 0x808080 */;
sb_shadow_down = 13947080 /* 0xD4D0C8 */;
sb_darkshadow_down = 8421504 /* 0x808080 */;
sb_face_off = 13947080 /* 0xD4D0C8 */;
sb_highlight_off = 16777215 /* 0xFFFFFF */;
sb_highlight3D_off = 13947080 /* 0xD4D0C8 */;
sb_shadow_off = 8421504 /* 0x808080 */;
sb_darkshadow_down = 4210752 /* 0x404040 */;
sb_arrow = 0;
sb_arrow_down = 0;
sb_arrow_off = 8421504 /* 0x808080 */;
sb_track = 15527148 /* 0xECECEC */;
pad = 2;
useEmbedFonts = false;
}
Symbol 167 MovieClip [GWComboBox] Frame 1
#initclip 18
_global.GWComboBox = function () {
var _local3 = {sb_face:13947080, sb_highlight:16777215, sb_highlight3D:13947080, sb_shadow:8421504, sb_darkshadow:4210752, sb_face_down:13947080, sb_highlight_down:13947080, sb_highlight3D_down:8421504, sb_shadow_down:13947080, sb_darkshadow_down:8421504, sb_face_off:13947080, sb_highlight_off:16777215, sb_highlight3D_off:13947080, sb_shadow_off:8421504, sb_darkshadow_off:4210752, sb_arrow_off:8421504};
for (var _local5 in _local3) {
if (this[_local5] == undefined) {
this[_local5] = _local3[_local5];
}
}
this.blank_mc._visible = 0;
this.pad = this.pad || 2;
this.listprops = {};
for (var _local5 in this) {
if (_local5.indexOf("sb_") != -1) {
this.listprops[_local5] = this[_local5];
}
}
this.listSymbol = "GWListBox";
super.init();
this.arrow_mc.up_mc.base_mc.colorObj = {face:this.sb_face, highlight:this.sb_highlight, highlight3D:this.sb_highlight3D, shadow:this.sb_shadow, darkshadow:this.sb_darkshadow};
this.arrow_mc.down_mc.base_mc.colorObj = {face:this.sb_face_down, highlight:this.sb_highlight_down, highlight3D:this.sb_highlight3D_down, shadow:this.sb_shadow_down, darkshadow:this.sb_darkshadow_down};
this.arrow_mc.off_mc.base_mc.colorObj = {face:this.sb_face_off, highlight:this.sb_highlight_off, highlight3D:this.sb_highlight3D_off, shadow:this.sb_shadow_off, darkshadow:this.sb_darkshadow_off};
var _local4 = new Color(this.arrow_mc.up_mc.arrow_mc);
_local4.setRGB(this.sb_arrow);
_local4 = new Color(this.arrow_mc.down_mc.arrow_mc);
_local4.setRGB(this.sb_arrow_down);
_local4 = new Color(this.arrow_mc.off_mc.arrow_mc);
_local4.setRGB(this.sb_arrow_off);
};
GWComboBox.prototype = new GWComboBoxClass();
Object.registerClass("GWComboBox", GWComboBox);
#endinitclip
Instance of Symbol 140 MovieClip [GWListBoxClass] in Symbol 167 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Instance of Symbol 141 MovieClip [GWComboBoxClass] in Symbol 167 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
}
Instance of Symbol 145 MovieClip [GWPanel] "box_mc" in Symbol 167 MovieClip [GWComboBox] Frame 1
//component parameters
onClipEvent (construct) {
face = 16777215 /* 0xFFFFFF */;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 13947080 /* 0xD4D0C8 */;
darkshadow = 16777215 /* 0xFFFFFF */;
}
Symbol 168 MovieClip Frame 1
stop();
Instance of Symbol 167 MovieClip [GWComboBox] "my_cb" in Symbol 168 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
idx = "";
font = "Tahoma";
fontsize = 11;
rowHeight = 18;
rowCount = 8;
useEdgeScroll = true;
listPos = "bottom";
listborder = 6710886 /* 0x666666 */;
face = 0;
highlight = 4210752 /* 0x404040 */;
highlight3D = 8421504 /* 0x808080 */;
shadow = 4210752 /* 0x404040 */;
darkshadow = 8421504 /* 0x808080 */;
fontcolor = 16777215 /* 0xFFFFFF */;
fontcolor_on = 16761856 /* 0xFFC400 */;
fontcolor_off = 16777215 /* 0xFFFFFF */;
itemcolor_on = 3355443 /* 0x333333 */;
itemcolor_off = 0;
sb_face = 6710886 /* 0x666666 */;
sb_highlight = 6710886 /* 0x666666 */;
sb_highlight3D = 6710886 /* 0x666666 */;
sb_shadow = 10066329 /* 0x999999 */;
sb_darkshadow = 6710886 /* 0x666666 */;
sb_face_down = 6710886 /* 0x666666 */;
sb_highlight_down = 10066329 /* 0x999999 */;
sb_highlight3D_down = 6710886 /* 0x666666 */;
sb_shadow_down = 6710886 /* 0x666666 */;
sb_darkshadow_down = 8421504 /* 0x808080 */;
sb_face_off = 8421504 /* 0x808080 */;
sb_highlight_off = 8421504 /* 0x808080 */;
sb_highlight3D_off = 8421504 /* 0x808080 */;
sb_shadow_off = 8421504 /* 0x808080 */;
sb_darkshadow_off = 8421504 /* 0x808080 */;
sb_arrow = 16777215 /* 0xFFFFFF */;
sb_arrow_down = 16777215 /* 0xFFFFFF */;
sb_arrow_off = 16777215 /* 0xFFFFFF */;
sb_track = 3355443 /* 0x333333 */;
useEmbedFonts = false;
pad = 2;
listpad = 1;
cbDepth = 17000;
spawnAtRoot = false;
}
Symbol 171 MovieClip Frame 1
txt_info = "YOUR SCORE " + _root.x1025;
Symbol 171 MovieClip Frame 26
function is_Empty(string) {
if (((string == "") || (string == undefined)) || (string == null)) {
return(true);
}
return(false);
}
function makeCountries() {
i = 0;
while (i < countries.length) {
countriesArray.push({data:countries[i][0], label:countries[i][1]});
i++;
}
form.my_cb.setDataProvider(countriesArray);
form.my_cb.select(0);
form.my_cb.onSelect = function (index) {
if (index != 0) {
country = countriesArray[index].data;
}
};
}
function is_null(string) {
if (((string == null) || (string == undefined)) || (string == "")) {
return("null");
}
return(string);
}
function submit(user, email) {
trace("submitting");
trace(_root.x1025);
score = _root.x1025;
score2 = is_null(_root.x1026);
img = country;
user = user.replace("|", "");
user = user.replace(",", "");
rc4_text = email + "|";
rc4_text = rc4_text + (user + "|");
rc4_text = rc4_text + (((score + "|") + score.toString(10).checksum()) + "|");
rc4_text = rc4_text + (((score2 + "|") + score2.toString(10).checksum()) + "|");
rc4_text = rc4_text + (((img + "|") + img.toString(10).checksum()) + "|");
rc4_text = rc4_text + email.checksum();
rc4_key = "topgun";
_root.rc4_hash = com.meychi.ascrypt.RC4.encrypt(rc4_text, rc4_key);
local_data.data.user_name = user;
local_data.data.user_email = email;
local_data.flush();
}
String.prototype.replace = function (pattern, replacement) {
return(this.split(pattern).join(replacement));
};
String.prototype.isEmail = function () {
var _local6 = "Invalid email address";
var _local3 = this;
var _local2 = new Array("@", ".");
var _local4 = new Array();
i = 0;
while (i < 200) {
if (((((((i >= 33) && (i <= 45)) || (i == 47)) || ((i >= 58) && (i <= 63))) || ((i > 91) && (i <= 96))) || ((i >= 123) && (i <= 126))) || ((i >= 161) && (i <= 199))) {
var _local5 = String.fromCharCode(i);
_local4.push(_local5);
}
i++;
}
i = 0;
while (i < _local4.length) {
if (_local3.indexOf(_local4[i]) != -1) {
var _local5 = _local4[i];
return(false);
}
i++;
}
i = 0;
while (i < _local2.length) {
if (_local3.indexOf(_local2[i]) != -1) {
index = _local3.indexOf(_local2[i]);
if ((_local3.indexOf(_local2[i], index + 1) != -1) && (_local2[i] != ".")) {
return(false);
}
} else {
return(false);
}
i++;
}
return(true);
};
String.prototype.checksum = function () {
sum = 0;
i = 0;
while (i < this.length) {
sum = sum + this.charCodeAt(i);
i++;
}
return(sum);
};
_global.countries = [[null, "Select Your Country"], ["AF", "Afghanistan"], ["AL", "Albania"], ["DZ", "Algeria"], ["AS", "American Samoa"], ["AG", "Antigua Barbuda"], ["AR", "Argentina"], ["AU", "Australia"], ["AT", "Austria"], ["AZ", "Azerbaijan"], ["BH", "Bahrain"], ["BD", "Bangladesh"], ["BB", "Barbados"], ["BY", "Belarus"], ["BE", "Belgium"], ["BZ", "Belize"], ["BJ", "Benin"], ["BM", "Bermuda"], ["BT", "Bhutan"], ["BO", "Bolivia"], ["BA", "Bosnia Herzegovina"], ["BW", "Botswana"], ["BR", "Brazil"], ["BN", "Brunei"], ["BG", "Bulgaria"], ["BF", "Burkina Faso"], ["BI", "Burundi"], ["KH", "Cambodia"], ["CM", "Cameroon"], ["CA", "Canada"], ["CV", "Cape Verde"], ["KY", "Cayman Islands"], ["CF", "Cent African Rep"], ["TD", "Chad"], ["JI", "Channel Islands"], ["CL", "Chile"], ["CN", "China"], ["CO", "Columbia"], ["KM", "Comoros"], ["CG", "Congo"], ["CK", "Cook Islands"], ["CR", "Costa Rica"], ["HR", "Croatia"], ["CU", "Cuba"], ["CY", "Cyprus"], ["CZ", "Czech Republic"], ["DK", "Denmark"], ["DM", "Dominica"], ["DO", "Dominican Republic"], ["TL", "East Timor"], ["EC", "Ecuador"], ["EG", "Egypt"], ["SV", "El Salvador"], ["GQ", "Equatorial Guinea"], ["ER", "Eritrea"], ["EE", "Estonia"], ["ET", "Ethiopia"], ["FJ", "Fiji"], ["FI", "Finland"], ["FR", "France"], ["GF", "French Guiana"], ["PF", "French Polynesia"], ["GM", "Gambia"], ["GE", "Georgia"], ["DE", "Germany"], ["GH", "Ghana"], ["GI", "Gibraltar"], ["GR", "Greece"], ["GL", "Greenland"], ["GD", "Grenada"], ["GP", "Guadeloupe"], ["GU", "Guam"], ["GT", "Guatemala"], ["GW", "Guinea Bissau"], ["GY", "Guyana"], ["HT", "Haiti"], ["HW", "Hawaii"], ["HN", "Honduras"], ["HK", "Hong Kong"], ["HU", "Hungary"], ["IS", "Iceland"], ["IN", "India"], ["ID", "Indonesia"], ["IR", "Iran"], ["IQ", "Iraq"], ["IE", "Ireland"], ["IM", "Isle of Man"], ["IL", "Israel"], ["IT", "Italy"], ["CI", "Ivory Coast"], ["JM", "Jamaica"], ["JP", "Japan"], ["JO", "Jordan"], ["KZ", "Kazakhstan"], ["KE", "Kenya"], ["KS", "Korea South"], ["KW", "Kuwait"], ["KG", "Kyrgyzstan"], ["LA", "Laos"], ["LV", "Latvia"], ["LB", "Lebanon"], ["LS", "Lesotho"], ["LR", "Liberia"], ["LY", "Libya"], ["LI", "Liechtenstein"], ["LT", "Lithuania"], ["LU", "Luxembourg"], ["MO", "Macau"], ["MK", "Macedonia"], ["MG", "Madagascar"], ["MW", "Malawi"], ["MY", "Malaysia"], ["MV", "Maldives"], ["ML", "Mali"], ["MT", "Malta"], ["MQ", "Martinique"], ["MU", "Mauritius"], ["YT", "Mayotte"], ["MX", "Mexico"], ["MD", "Moldova"], ["MC", "Monaco"], ["MN", "Mongolia"], ["MS", "Montserrat"], ["MA", "Morocco"], ["MZ", "Mozambique"], ["MM", "Myanmar"], ["NA", "Namibia"], ["NR", "Nauru"], ["NP", "Nepal"], ["NL", "Netherlands"], ["NC", "New Caledonia"], ["NZ", "New Zealand"], ["NI", "Nicaragua"], ["NE", "Niger"], ["NG", "Nigeria"], ["NO", "Norway"], ["OM", "Oman"], ["PK", "Pakistan"], ["PA", "Panama"], ["PG", "Papua New Guinea"], ["PY", "Paraguay"], ["PE", "Peru"], ["PH", "Philippines"], ["PN", "Pitcairn Island"], ["PL", "Poland"], ["PT", "Portugal"], ["PR", "Puerto Rico"], ["QA", "Qatar"], ["RE", "Reunion"], ["RO", "Romania"], ["RU", "Russia"], ["RW", "Rwanda"], ["SM", "San Marino"], ["ST", "Sao Tome Principe"], ["SA", "Saudi Arabia"], ["SN", "Senegal"], ["CS", "Serbia Montenegro"], ["SL", "Sierra Leone"], ["SG", "Singapore"], ["SK", "Slovakia"], ["SI", "Slovenia"], ["SB", "Solomon Islands"], ["SO", "Somalia"], ["ZA", "South Africa"], ["ES", "Spain"], ["LK", "Sri Lanka"], ["SH", "St Helena"], ["KN", "St Kitts-Nevis"], ["LC", "St Lucia"], ["MB", "St Maarten"], ["PM", "St Pierre Miquelon"], ["VC", "St Vincent Grenadines"], ["SD", "Sudan"], ["SR", "Suriname"], ["SZ", "Swaziland"], ["SE", "Sweden"], ["CH", "Switzerland"], ["SY", "Syria"], ["TA", "Tahiti"], ["TW", "Taiwan"], ["TJ", "Tajikistan"], ["TZ", "Tanzania"], ["TH", "Thailand"], ["TG", "Togo"], ["TT", "Trinidad Tobago"], ["TN", "Tunisia"], ["TR", "Turkey"], ["TM", "Turkmenistan"], ["UA", "Ukraine"], ["AE", "UAE"], ["GB", "United Kingdom"], ["US", "USA"], ["UY", "Uruguay"], ["UZ", "Uzbekistan"], ["VU", "Vanuatu"], ["VE", "Venezuela"], ["VN", "Vietnam"], ["VI", "Virgin Islands"], ["EH", "Western Sahara"], ["ZM", "Zambia"], ["ZW", "Zimbabwe"]];
var countriesArray = [];
var country = null;
var defaultTextName = "Enter your name";
var defaultTextEmail = "Enter email (optional)";
form.txtName.text = defaultTextName;
form.txtEmail.text = defaultTextEmail;
trace(form.txtName);
form.txtName.onSetFocus = function () {
if (this.text == defaultTextName) {
this.text = "";
}
};
form.txtEmail.onSetFocus = function () {
if (this.text == defaultTextEmail) {
this.text = "";
}
};
makeCountries();
local_data = SharedObject.getLocal("user_data");
stored_user_name = local_data.data.user_name;
stored_user_email = local_data.data.user_email;
if (!is_Empty(stored_user_name)) {
form.txtName.text = stored_user_name;
}
if (!is_Empty(stored_user_email)) {
form.txtEmail.text = stored_user_email;
}
txt_info = "YOUR SCORE " + _root.x1025;
form.btnSubmit.onRelease = function () {
trace("validating");
trace(form.txtName.text);
if ((form.txtName.text.length > 0) && (form.txtName.text != defaultTextName)) {
if ((form.txtEmail.text.isEmail() || (form.txtEmail.text == defaultTextEmail)) || (form.txtEmail.text.length == 0)) {
if (form.txtEmail.text == defaultTextEmail) {
submitMail = "";
} else {
submitMail = form.txtEmail.text;
}
if (country != null) {
submit(form.txtName.text, submitMail);
gotoAndPlay ("submitdata");
} else {
form.txtWarning.text = "Please select a country";
}
} else {
form.txtWarning.text = "Please enter a valid email";
}
} else {
form.txtWarning.text = "Please enter your name";
}
};
stop();
Symbol 171 MovieClip Frame 27
this.createEmptyMovieClip("xj22", 1);
xj22.xj25 = _root.rc4_hash;
xj22.loadVariables("http://www.markfennell.com/flash/twister/submit.php", "POST");
xj22.onEnterFrame = function () {
if (this.Loaded == "done") {
if (this.msg != undefined) {
txt_info = this.msg;
}
accessing._visible = false;
delete this.onEnterFrame;
}
};
stop();
Symbol 173 Button
on (release) {
getURL ("http://www.markfennell.com/flash", "_top");
}