Frame 1
function goingGame() {
gotoAndPlay ("start_game");
}
function goingScores() {
gotoAndPlay ("hi_score");
}
UtilityLib = function () {
};
UtilityLib.getAttribute = function (xmlObject, sNodeName, iOccurrence, sAttributeName) {
var _local2;
var _local1;
_local1 = UtilityLib.getNode(xmlObject, sNodeName, iOccurrence);
if (_local1 != null) {
_local2 = _local1.attributes[sAttributeName];
if (_local2 != undefined) {
return(_local2);
}
}
return("");
};
UtilityLib.getNode = function (xmlObject, sNodeName, iOccurrence) {
var _local3 = iOccurrence;
var _local2;
var _local1;
_local2 = xmlObject.childNodes;
_local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1].nodeType == 1) && (_local2[_local1].nodeName == sNodeName)) {
if (_local3 > 0) {
_local3--;
} else {
return(_local2[_local1]);
}
}
_local1++;
}
return(null);
};
UtilityLib.isWhitespace = function (sString) {
var _local1 = sString.charCodeAt(0);
return((((_local1 == 9) || (_local1 == 10)) || (_local1 == 13)) || (_local1 == 32));
};
UtilityLib.parseAttribute = function (xmlObject, sNodeName, iOccurrence, sAttributeName) {
return(UtilityLib.getAttribute(xmlObject, sNodeName, iOccurrence, sAttributeName));
};
UtilityLib.parseNode = function (xmlObject, sNodeName, iOccurrence) {
var _local1;
var _local3;
var _local2;
_local2 = UtilityLib.getNode(xmlObject, sNodeName, iOccurrence);
if (_local2 != null) {
_local3 = "";
_local1 = 0;
while (_local1 < _local2.childNodes.length) {
if (_local2.childNodes[_local1].nodeType == 3) {
_local3 = _local3 + _local2.childNodes[_local1].nodeValue;
} else {
_local3 = _local3 + _local2.childNodes[_local1].toString();
}
_local1++;
}
} else {
_local3 = "";
}
return(_local3);
};
Stage.showMenu = false;
_quality = "HIGH";
ins_play_game.hitArea = play_game_hit;
ins_hi_score.hitArea = hi_score_hit;
ins_play_game.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
ins_play_game.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
ins_hi_score.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
ins_hi_score.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
ins_play_game.onRelease = function () {
_root.goingGame();
};
ins_hi_score.onPress = function () {
_root.goingScores();
};
stop();
Frame 2
function startSound(channel, sname, vol, loop) {
var _local1 = channel;
var _local2 = this;
_local2.createEmptyMovieClip("s_" + _local1, 1000 + _local1);
_local2["sound_" + _local1] = new Sound("s_" + _local1);
_local2["sound_" + _local1].attachSound(sname);
_local2["sound_" + _local1].setVolume(vol);
_local2["sound_" + _local1].start(0, loop);
}
function win() {
stopAllSounds();
cameraWhirOn = false;
startOfPlay = false;
gotoAndPlay ("lose");
}
function lose() {
stopAllSounds();
cameraWhirOn = false;
startOfPlay = false;
gotoAndPlay ("lose");
}
function XandYconverter(my_mc) {
point = new Object();
point.x = 0;
point.y = 0;
my_mc.localToGlobal(point);
updateAfterEvent();
return(point);
}
function randomTarget(randomXpoint, randomYpoint) {
var _local1 = randomYpoint;
var _local2 = randomXpoint;
myRandomPoint = new Object();
sweepTimer++;
if (sweepTimer == 5) {
lastDistanceToMove = distanceToMove;
distanceToMove = 300;
sweepTimer = 0;
} else if (distanceToMove > 299) {
distanceToMove = lastDistanceToMove;
}
_local2 = _local2 - (-Math.round((-1 + random(3)) * distanceToMove));
_local1 = _local1 - (-Math.round((-1 + random(3)) * distanceToMove));
if (evilDaveActor == false) {
minX = myframeLeftBorder + scene_bg.hero._width;
maxX = (sceneWidth - myframeRightBorder) - (scene_bg.hero._width / 2);
minY = myframeTopBorder + (scene_bg.hero._height / 2);
maxY = (sceneHeight - myframeBottomBorder) - (scene_bg.hero._height / 2);
} else {
minX = myframeLeftBorder + ((scene_bg.evilDave._width / 2) + scene_bg.hero._width);
maxX = (sceneWidth - myframeRightBorder) - ((scene_bg.evilDave._width / 2) + (scene_bg.hero._width / 2));
minY = myframeTopBorder + ((scene_bg.evilDave._height / 2) + (scene_bg.hero._width / 2));
maxY = (sceneHeight - myframeBottomBorder) - ((scene_bg.evilDave._height / 2) + (scene_bg.hero._width / 2));
}
_local2 = Math.round(Math.min(maxX, Math.max(minX, _local2)));
myRandomPoint.x = _local2;
_local1 = Math.round(Math.min(maxY, Math.max(minY, _local1)));
myRandomPoint.y = _local1;
return(myRandomPoint);
}
function startZoom() {
frameXmid = (topleft.x + (topright.x + frame.viewfinder_topright._width)) / 2;
frameYmid = (topleft.y + (bottomleft.y + frame.viewfinder_bottomleft._height)) / 2;
oldXScale = scene_bg._xscale;
oldYScale = scene_bg._yscale;
scene_bg._xscale = curScale;
scene_bg._yscale = curScale;
difX = scene_bg._xscale / oldXScale;
difY = scene_bg._yscale / oldYScale;
targetx = -((((-targetx) + frameXmid) * difX) - frameXmid);
targety = -((((-targety) + frameYmid) * difY) - frameYmid);
scene_bg._x = scene_bg._x - ((-(targetx - scene_bg._x)) / 1);
scene_bg._y = scene_bg._y - ((-(targety - scene_bg._y)) / 1);
}
function justHero() {
if ((((((((theHero.x > topleft.x) && (theHero.y > topleft.y)) && (theHero.x < topright.x)) && (theHero.y > topright.y)) && (theHero.x > bottomleft.x)) && (theHero.y < bottomleft.y)) && (theHero.x < bottomright.x)) && (theHero.y < bottomright.y)) {
if (scene_bg._xscale > minScale) {
frame.viewfinder_topleft.gotoAndStop(3);
frame.viewfinder_bottomleft.gotoAndStop(3);
frame.viewfinder_topright.gotoAndStop(3);
frame.viewfinder_bottomright.gotoAndStop(3);
if ((scene_bg._xscale / 100) >= 1) {
currentScore = currentScore + Math.round((scene_bg._xscale / 100) * 2);
} else {
currentScore++;
}
}
score.current_score = currentScore;
goodShot = true;
} else {
goodShot = false;
}
}
function heroAndEvilDave() {
evil = XandYconverter(scene_bg.evilDave);
if ((((((((((((((((evil.x > topleft.x) && ((evil.y + (scene_bg.evilDave._height / 2)) > topleft.y)) && ((evil.x - (scene_bg.evilDave._width / 2)) < topright.x)) && (evil.y > topright.y)) && ((evil.x + (scene_bg.evilDave._width / 2)) > bottomleft.x)) && ((evil.y - (scene_bg.evilDave._height / 2)) < bottomleft.y)) && ((evil.x - (scene_bg.evilDave._width / 2)) < bottomright.x)) && ((evil.y - (scene_bg.evilDave._height / 2)) < bottomright.y)) && (theHero.x > topleft.x)) && (theHero.y > topleft.y)) && (theHero.x < topright.x)) && (theHero.y > topright.y)) && (theHero.x > bottomleft.x)) && (theHero.y < bottomleft.y)) && (theHero.x < bottomright.x)) && (theHero.y < bottomright.y)) {
if (scene_bg._xscale != 21) {
frame.viewfinder_topleft.gotoAndStop(3);
frame.viewfinder_bottomleft.gotoAndStop(3);
frame.viewfinder_topright.gotoAndStop(3);
frame.viewfinder_bottomright.gotoAndStop(3);
if ((scene_bg._xscale / 100) >= 1) {
currentScore = currentScore + Math.round((scene_bg._xscale / 100) * 2);
} else {
currentScore++;
}
}
score.current_score = currentScore;
goodShot = true;
} else {
goodShot = false;
}
}
function mykeyCheck() {
var _local1 = this;
if (startofPlay) {
scene_movement = 20;
frameXmid = (topleft.x + (topright.x + frame.viewfinder_topright._width)) / 2;
frameYmid = (topleft.y + (bottomleft.y + frame.viewfinder_bottomleft._height)) / 2;
scene_bg.onEnterFrame = function () {
var _local1 = this;
scene_scale = scene_bg._xscale / 100;
zooming = false;
if (Key.isDown(65)) {
if (curScale < maxScale) {
zoom_indicator._y = zoom_scale._y + ((zoom_scale._height - zoom_indicator._height) - (((curScale - minScale) / (maxScale - minScale)) * (zoom_scale._height - zoom_indicator._height)));
oldScale = curScale;
curScale = curScale * 1.03;
if (curScale > maxScale) {
curScale = maxScale;
zoomMax = true;
}
scene_bg._xscale = curScale;
scene_bg._yscale = curScale;
dif = curScale / oldScale;
targetx = -((((-targetx) + frameXmid) * dif) - frameXmid);
targety = -((((-targety) + frameYmid) * dif) - frameYmid);
if (!cameraWhirOn) {
_root.startSound(5, "camera_zoom", 30, 100);
cameraWhirOn = true;
}
} else {
zoomMax = true;
}
trailDivide = 1;
zooming = true;
}
if (Key.isDown(90)) {
if (curScale > minScale) {
zoom_indicator._y = zoom_scale._y + ((zoom_scale._height - zoom_indicator._height) - (((curScale - minScale) / (maxScale - minScale)) * (zoom_scale._height - zoom_indicator._height)));
oldScale = curScale;
curScale = curScale * 0.97;
if (curScale < minScale) {
curScale = minScale;
}
scene_bg._xscale = curScale;
scene_bg._yscale = curScale;
dif = curScale / oldScale;
targetx = -((((-targetx) + frameXmid) * dif) - frameXmid);
targety = -((((-targety) + frameYmid) * dif) - frameYmid);
if (!cameraWhirOn) {
_root.startSound(5, "camera_zoom", 30, 100);
cameraWhirOn = true;
}
trailDivide = 1;
zoomMax = false;
zooming = true;
}
}
if (Key.isDown(37) && (!zooming)) {
targetx = targetx - ((-scene_movement) * scene_scale);
trailDivide = 6;
}
if (Key.isDown(39) && (!zooming)) {
targetx = targetx - (scene_movement * scene_scale);
trailDivide = 6;
}
if (Key.isDown(38) && (!zooming)) {
targety = targety - ((-scene_movement) * scene_scale);
trailDivide = 6;
}
if (Key.isDown(40) && (!zooming)) {
targety = targety - (scene_movement * scene_scale);
trailDivide = 6;
}
if ((targetx + (sceneWidth * scene_scale)) < (myframeRightEdge - 80)) {
targetx = (myframeRightEdge - 80) - (sceneWidth * scene_scale);
}
if ((targety + (sceneHeight * scene_scale)) < (myframeBottomEdge - 80)) {
targety = (myframeBottomEdge - 80) - (sceneHeight * scene_scale);
}
if (targetx > myframeLeftEdge) {
targetx = myframeLeftEdge;
}
if (targety > myframeTopEdge) {
targety = myframeTopEdge;
}
_local1._x = _local1._x - ((-(targetx - _local1._x)) / trailDivide);
_local1._y = _local1._y - ((-(targety - _local1._y)) / trailDivide);
};
}
}
function addEvilDave() {
var _local1 = this;
scene_bg.createEmptyMovieClip("evilDave", 3);
scene_bg.evilDave.attachMovie("evilD", "evilDave", 3);
scene_bg.evilDave._x = 450;
scene_bg.evilDave._y = -scene_bg.evilDave._height;
chaseHero = true;
scene_bg.evilDave.onEnterFrame = function () {
var _local1 = this;
if (chaseHero == true) {
if (heroDirection == "right") {
_local1._xscale = -Math.abs(_local1._xscale);
evilmyDistance = -((scene_bg.hero._width / 2) + 10);
evilDirection = "right";
} else {
_local1._xscale = Math.abs(_local1._xscale);
evilmyDistance = (scene_bg.hero._width / 2) + 10;
evilDirection = "left";
}
eviltargetX = Math.round(scene_bg.hero._x + evilmyDistance);
eviltargetY = Math.round(scene_bg.hero._y - (_local1._height / 2));
_local1._x = _local1._x - (-(((scene_bg.hero._x + evilmyDistance) - _local1._x) / 8));
_local1._y = _local1._y - (-(((scene_bg.hero._y - (_local1._height / 2)) - _local1._y) / 8));
evilDavepuppetString();
} else {
eviltargetX = theEvilDavePos.x;
eviltargetY = theEvilDavePos.y;
eviltx = theEvilDavePos.x;
evilty = theEvilDavePos.y;
evilax = (eviltx - _local1._x) * k;
evilay = (evilty - _local1._y) * k;
evilvx = evilvx - (-evilax);
evilvy = evilvy - (-evilay);
evilvx = evilvx * damp;
evilvy = evilvy * damp;
_local1._x = _local1._x - (-evilvx);
_local1._y = _local1._y - ((-(evilty - _local1._y)) / 8);
evilDavepuppetString();
}
if (Math.round(_local1._x) == eviltargetX) {
if (Math.round(_local1._y) == eviltargetY) {
if (chaseHero == true) {
theEvilDavePos = randomTarget(eviltargetX, eviltargetY);
if (_local1._x > theEvilDavePos.x) {
if (evilDirection != "left") {
_local1._xscale = Math.abs(_local1._xscale);
evilDirection = "left";
}
} else if (evilDirection != "right") {
_local1._xscale = -Math.abs(_local1._xscale);
evilDirection = "right";
}
chaseHero = false;
} else {
chaseHero = true;
}
}
}
};
}
function heropuppetString() {
scene_bg.createEmptyMovieClip("string", 0);
if (heroDirection == "right") {
mydirection = 1;
} else {
mydirection = -1;
}
stringTop = XandYconverter(scene_bg.string);
with (scene_bg.string) {
lineStyle(2, 0, 100);
moveTo(theHeroPos.x - (-(mydirection * 30)), -1500);
curveTo(scene_bg.hero._x, scene_bg.hero._y / 2, scene_bg.hero._x, scene_bg.hero._y);
}
}
function evilDavepuppetString() {
scene_bg.createEmptyMovieClip("evilstring", 1);
if (evilDirection == "left") {
var evilmydirection = 1;
} else {
var evilmydirection = -1;
}
with (scene_bg.evilstring) {
lineStyle(2, 0, 100);
evilstringTop = XandYconverter(scene_bg.evilstring);
moveTo(theHeroPos.x - (-(mydirection * 30)), -1500);
curveTo(scene_bg.evilDave._x + ((scene_bg.evilDave._width / 2) * evilmydirection), scene_bg.evilDave._y / 2, scene_bg.evilDave._x - ((-(scene_bg.evilDave._width / 2)) * evilmydirection), scene_bg.evilDave._y - -4);
}
}
function rotateTowards(clip, targetX, targetY) {
var _local2 = clip;
var _local1 = {x:_local2._x, y:_local2._y};
var deltaX = (targetX - _local1.x);
var deltaY = (targetY - _local1.y);
var _local3 = Math.atan2(deltaY, deltaX);
var rotationAngle = radiansToDegrees(_local3);
_local2._rotation = _local2._rotation - ((-(rotationAngle - this._rotation)) / 5);
}
function radiansToDegrees(radians) {
return((radians / Math.PI) * 180);
}
startOfPlay = false;
startTimer = 0;
counter = 0;
minutes = 1;
seconds = 30;
incrementor = 0;
currentScore = 0;
score.current_score = currentScore;
atime = 6000;
evilDaveActor = false;
myMessage = "";
director_message.current_message = "";
director_message.lowlight_current_message = "";
scene_bg.chopper.swapDepths(5);
scene_bg.hero.swapDepths(2);
movieMusic = false;
_root.startSound(1, "camera_whir", 20, 9999);
cameraWhirOn = false;
k = 0.015;
damp = 0.97;
targetx = scene_bg._x;
targety = scene_bg._y;
zoomMax = false;
heroDirection = "right";
myframeLeftBorder = 58;
myframeTopBorder = 24;
myframeRightBorder = 28;
myframeBottomBorder = 24;
sceneWidth = 1766;
sceneHeight = 1099;
distanceToMove = 95;
sweepTimer = 0;
myframeHeight = this.frame._height;
myframeWidth = this.frame._width;
myframeLeftEdge = this.frame._x;
myframeLeftEdge = 75;
myframeRightEdge = myframeLeftEdge + myframeWidth;
myframeTopEdge = this.frame._y;
myframeTopEdge = 75;
myframeBottomEdge = myframeTopEdge + myframeHeight;
halfframeheight = myframeHeight / 2;
halfframewidth = myframeWidth / 2;
topleftDirectionIndicator = false;
toprightDirectionIndicator = false;
bottomrightDirectionIndicator = false;
bottomleftDirectionIndicator = false;
goodShot = false;
maxScale = 150;
minScale = 20;
curScale = minScale;
theHeroPos = randomTarget(scene_bg.hero._x, scene_bg.hero._y);
if (scene_bg.hero._x > theHeroPos.x) {
if (heroDirection != "left") {
scene_bg.hero.gotoAndPlay("turn_left");
heroDirection = "left";
_root.startSound(3, "swish", 30, 1);
}
} else {
if (heroDirection != "right") {
scene_bg.hero.gotoAndPlay("turn_right");
heroDirection = "right";
_root.startSound(3, "swish", 30, 1);
}
rotateTowards(scene_bg.hero, theHeroPos.x, theHeroPos.y);
}
topleft = XandYconverter(frame.viewfinder_topleft);
bottomleft = XandYconverter(frame.viewfinder_bottomleft);
topright = XandYconverter(frame.viewfinder_topright);
bottomright = XandYconverter(frame.viewfinder_bottomright);
startZoom();
frame.onEnterFrame = function () {
theHero = XandYconverter(scene_bg.hero);
if (((theHero.x < topLeft.x) && (theHero.y < halfframeheight)) || ((theHero.y < topLeft.y) && (theHero.x < halfframewidth))) {
frame.viewfinder_topleft.gotoAndStop(2);
topleftDirectionIndicator = true;
} else {
frame.viewfinder_topleft.gotoAndStop(1);
topleftDirectionIndicator = false;
}
if (((theHero.x < bottomleft.x) && (theHero.y > halfframeheight)) || ((theHero.y > bottomleft.y) && (theHero.x < halfframewidth))) {
frame.viewfinder_bottomleft.gotoAndStop(2);
bottomleftDirectionIndicator = true;
} else {
frame.viewfinder_bottomleft.gotoAndStop(1);
bottomleftDirectionIndicator = false;
}
if (((theHero.x > (topright.x + frame.viewfinder_topright._width)) && (theHero.y < halfframeheight)) || ((theHero.y < topright.y) && (theHero.x > halfframewidth))) {
frame.viewfinder_topright.gotoAndStop(2);
toprightDirectionIndicator = true;
} else {
frame.viewfinder_topright.gotoAndStop(1);
toprightDirectionIndicator = false;
}
if (((theHero.x > (bottomright.x + frame.viewfinder_bottomright._width)) && (theHero.y > halfframeheight)) || ((theHero.y > bottomright.y) && (theHero.x > halfframewidth))) {
frame.viewfinder_bottomright.gotoAndStop(2);
bottomrightDirectionIndicator = true;
} else {
frame.viewfinder_bottomright.gotoAndStop(1);
bottomrightDirectionIndicator = false;
}
if (evilDaveActor == false) {
justHero();
} else {
heroAndEvilDave();
}
};
var mykeyListener = new Object();
mykeyListener.onKeyDown = mykeyCheck;
mykeyListener.onKeyUp = function () {
if (startOfPlay) {
_root.sound_5.stop("camera_zoom");
cameraWhirOn = false;
zoom_indicator.onEnterFrame = function () {
zoom_indicator._y = zoom_indicator._y;
};
}
};
Key.addListener(mykeyListener);
time_controlled_actions.onEnterFrame = function () {
var _local1 = _root;
if (startOfPlay != true) {
startTimer++;
}
if (startTimer == 34) {
director.gotoAndPlay("arm_ani");
myMessage = "LIGHTS!";
speedTest = getTimer();
}
if (startTimer == 68) {
director.gotoAndPlay("arm_ani");
myMessage = "CAMERA!";
}
if (startTimer == 102) {
director.gotoAndPlay("arm_ani");
myMessage = "ACTION!";
}
if (startTimer == 136) {
startOfPlay = true;
if (movieMusic == false) {
_local1.startSound(2, "music", 30, 20);
movieMusic = true;
}
startTimer = 0;
timeTaken = getTimer() - speedTest;
if (timeTaken > atime) {
_quality = "MEDIUM";
}
}
if (startOfPlay != false) {
counter++;
}
if (seconds < 10) {
time.time_elapsed = (("TIME " + minutes) + ":0") + seconds;
} else {
time.time_elapsed = (("TIME " + minutes) + ":") + seconds;
}
if (counter == 34) {
seconds--;
incrementor++;
if (incrementor == 10) {
if (goodShot == true) {
director.gotoAndPlay("arm_ani");
if (zoomMax == false) {
myMessage = "GOOD SHOT ZOOM IN!";
} else {
myMessage = "GOOD SHOT!";
}
}
if (topleftDirectionIndicator == true) {
director.gotoAndPlay("arm_ani");
if (theHero.y > topleft.y) {
myMessage = "PAN LEFT!";
} else {
myMessage = "PAN UP!";
}
}
if (toprightDirectionIndicator == true) {
director.gotoAndPlay("arm_ani");
if (theHero.y > topright.y) {
myMessage = "PAN RIGHT!";
} else {
myMessage = "PAN UP!";
}
}
if (bottomleftDirectionIndicator == true) {
director.gotoAndPlay("arm_ani");
if (theHero.y > bottomleft.y) {
myMessage = "PAN DOWN!";
} else {
myMessage = "PAN LEFT!";
}
}
if (bottomrightDirectionIndicator == true) {
director.gotoAndPlay("arm_ani");
if (theHero.y > bottomright.y) {
myMessage = "PAN DOWN!";
} else {
myMessage = "PAN RIGHT!";
}
}
incrementor = 0;
}
counter = 0;
}
if ((minutes == 1) && (seconds == 0)) {
seconds = 59;
minutes--;
}
if (((minutes == 0) && (seconds == 48)) && (evilDaveActor == false)) {
director.gotoAndPlay("arm_ani");
myMessage = "CUE EVIL DAVE!";
}
if (((minutes == 0) && (seconds == 45)) && (evilDaveActor == false)) {
addEvilDave();
_local1.startSound(4, "cackle", 30, 1);
evilDaveActor = true;
}
if ((minutes == 0) && (seconds == 2)) {
director.gotoAndPlay("arm_ani");
myMessage = "CUT!";
}
if ((minutes == 0) && (seconds == 0)) {
the_current_score = score.current_score;
_local1.lose();
}
};
scene_bg.hero.onEnterFrame = function () {
var _local1 = this;
tx = theHeroPos.x;
ty = theHeroPos.y;
ax = (tx - _local1._x) * k;
ay = (ty - _local1._y) * k;
vx = vx - (-ax);
vy = vy - (-ay);
vx = vx * damp;
vy = vy * damp;
_local1._x = _local1._x - (-vx);
_local1._y = _local1._y - ((-(ty - _local1._y)) / 8);
_local1._rotation = _local1._rotation - ((-(-_local1._rotation)) / 8);
heropuppetString();
moveCounter++;
if (moveCounter > 20) {
theHeroPos = randomTarget(theHeroPos.x, theHeroPos.y);
moveCounter = 0;
distFromTarget = Math.abs(_local1._x - theHeroPos.x);
if (_local1._x > theHeroPos.x) {
if ((heroDirection != "left") && (distFromTarget > 15)) {
_local1.gotoAndPlay("turn_left");
heroDirection = "left";
_root.startSound(3, "swish", 30, 1);
}
} else if ((heroDirection != "right") && (distFromTarget > 15)) {
_local1.gotoAndPlay("turn_right");
heroDirection = "right";
_root.startSound(3, "swish", 30, 1);
}
}
};
stop();
Frame 3
function goingGame() {
gotoAndPlay ("start_game");
}
function goingScores() {
gotoAndPlay ("hi_score");
}
function goingInstructions() {
gotoAndPlay ("instructions");
}
_quality = "HIGH";
win_play_again.hitArea = win_play_again_hit;
win_hi_score.hitArea = win_hi_score_hit;
win_instructions.hitArea = win_ins_hit;
your_score = the_current_score;
win_play_again.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
win_play_again.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
win_hi_score.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
win_hi_score.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
win_instructions.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
win_instructions.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
win_play_again.onPress = function () {
_root.goingGame();
};
win_hi_score.onPress = function () {
_root.goingScores();
};
win_instructions.onPress = function () {
_root.goingInstructions();
};
Frame 4
function goingGame() {
gotoAndPlay ("start_game");
}
function goingScores() {
gotoAndPlay ("hi_score");
}
function goingInstructions() {
gotoAndPlay ("instructions");
}
_quality = "HIGH";
lose_play_again.hitArea = lose_play_again_hit;
lose_hi_score.hitArea = lose_hi_score_hit;
lose_instructions.hitArea = lose_ins_hit;
your_score = the_current_score;
lose_play_again.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
lose_play_again.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
lose_hi_score.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
lose_hi_score.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
lose_instructions.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
lose_instructions.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
lose_play_again.onPress = function () {
_root.goingGame();
};
lose_hi_score.onPress = function () {
_root.goingScores();
};
lose_instructions.onPress = function () {
_root.goingInstructions();
};
szURL = ("../../php/pushScoreRequest.php?iScore=" + your_score) + "&sGameType=K_MOVIE";
var xmlSubmit = new XML();
xmlSubmit.ignoreWhite = true;
xmlSubmit.onLoad = function (success) {
var _local2 = _root;
if (success) {
var _local1 = UtilityLib.getNode(this, "xmlRoot", 0);
xmlRanking = this.firstChild.childNodes;
if (UtilityLib.parseNode(_local1, "sError", 0).toLowerCase == "true") {
_local2.your_Narr = "Sorry, there has been a problem adding your score.\nPlease try later.";
} else {
iRank = Number(UtilityLib.parseNode(_local1, "iPosition", 0));
iTotal = Number(UtilityLib.parseNode(_local1, "iTableLength", 0));
}
if (iRank >= 0) {
if (iRank < 21) {
_local2.your_Narr = "<font color='#ffff00' size='20'>Congratulations!</font><font color='#FFFFFF' size='16'>\n\nYou made it onto the Leaderboard\n\n</font>";
} else {
_local2.your_Narr = "<font color='#ffff00' size='20'>Sorry!</font><font color='#FFFFFF' size='16'>\nYou did not make the Leaderboard this time.\n\n</font>";
}
_local2.your_Narr = _local2.your_Narr + ((("You are ranked " + (iRank + 1)) + " out of ") + iTotal);
}
}
};
xmlSubmit.load(szURL);
stop();
Frame 6
function goingGame() {
gotoAndPlay ("start_game");
}
function goingInstructions() {
gotoAndPlay ("instructions");
}
_quality = "HIGH";
hi_score_play_again.hitArea = hi_score_play_game_hit;
hi_score_instructions.hitArea = hi_score_ins_hit;
hi_score_play_again.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
hi_score_play_again.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
hi_score_instructions.onRollOver = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"0", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
hi_score_instructions.onRollOut = function () {
my_color = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"0", rb:"255", ga:"0", gb:"255", ba:"0", bb:"255", aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
};
hi_score_play_again.onPress = function () {
_root.goingGame();
};
hi_score_instructions.onPress = function () {
_root.goingInstructions();
};
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 239 MovieClip [avatarThumbMC] Frame 1
#initclip 3
AvatarThumb = function () {
};
AvatarThumb.K_MALE = 0;
AvatarThumb.K_FEMALE = 1;
AvatarThumb.prototype = new MovieClip();
AvatarThumb.prototype.paint = function (piSex, piHead) {
var _local1 = this;
_local1.insMaleHead._visible = false;
_local1.insFemaleHead._visible = false;
switch (piSex) {
case AvatarThumb.K_MALE :
_local1.insMaleHead._visible = true;
_local1.insFemaleHead._visible = false;
_local1.insMaleHead.gotoAndStop(piHead);
return;
case AvatarThumb.K_FEMALE :
_local1.insMaleHead._visible = false;
_local1.insFemaleHead._visible = true;
_local1.insFemaleHead.gotoAndStop(piHead);
}
};
Object.registerClass("avatarThumbMC", AvatarThumb);
#endinitclip
Symbol 244 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 245 MovieClip [FScrollBarSymbol] Frame 1
#initclip 4
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 249 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 249 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 253 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 7
function FScrollPaneClass() {
var _local1 = this;
function boolToString(str) {
var _local1 = str;
if (_local1 == "false") {
return(false);
}
if (_local1 == "true") {
return(true);
}
return(_local1);
}
_local1.init();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._xscale = (_local1._yscale = 100);
_local1.contentWidth = (_local1.contentHeight = 0);
if (_local1.hScroll == undefined) {
_local1.hScroll = (_local1.vScroll = "auto");
_local1.dragContent = false;
}
_local1.offset = new Object();
_local1.vScroll = boolToString(_local1.vScroll);
_local1.hScroll = boolToString(_local1.hScroll);
_local1.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:_local1.styleTable});
_local1.hScrollBar_mc.setHorizontal(true);
_local1.hScrollBar_mc.setSmallScroll(5);
_local1.hScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:_local1.styleTable});
_local1.vScrollBar_mc.setSmallScroll(5);
_local1.vScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.setSize(_local1.width, _local1.height);
if (_local1.scrollContent != "") {
_local1.setScrollContent(_local1.scrollContent);
}
_local1.setDragContent(_local1.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local1 = this;
var _local3 = ((_local1.hScrollBar_mc == undefined) ? 0 : (_local1.hScrollBar_mc.getScrollPosition()));
var _local2 = ((_local1.vScrollBar_mc == undefined) ? 0 : (_local1.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
var _local1 = this;
var _local2 = target;
_local1.offset.x = 0;
_local1.offset.y = 0;
if (_local1.content_mc != undefined) {
if (_local2 != _local1.content_mc) {
_local1.content_mc._visible = false;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
}
}
if (typeof(_local2) == "string") {
_local1.attachMovie(_local2, "tmp_mc", 3);
_local1.content_mc = _local1.tmp_mc;
} else if (_local2 == undefined) {
_local1.content_mc.unloadMovie();
} else {
_local1.content_mc = _local2;
}
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
var _local3 = _local1.content_mc.getBounds(_local1);
_local1.offset.x = -_local3.xMin;
_local1.offset.y = -_local3.yMin;
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
_local1.contentWidth = _local1.content_mc._width;
_local1.contentHeight = _local1.content_mc._height;
_local1.content_mc.setMask(_local1.mask_mc);
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (((arguments.length < 2) || (isNaN(_local3))) || (isNaN(_local2))) {
} else {
super.setSize(_local3, _local2);
_local1.width = Math.max(_local3, 60);
_local1.height = Math.max(_local2, 60);
_local1.boundingBox_mc._xscale = 100;
_local1.boundingBox_mc._yscale = 100;
_local1.boundingBox_mc._width = _local1.width;
_local1.boundingBox_mc._height = _local1.height;
_local1.setHandV();
_local1.initScrollBars();
if (_local1.mask_mc == undefined) {
_local1.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
_local1.mask_mc._xscale = 100;
_local1.mask_mc._yscale = 100;
_local1.mask_mc._width = _local1.hWidth;
_local1.mask_mc._height = _local1.vHeight;
_local1.mask_mc._alpha = 0;
}
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
_local3 = Math.max(_local1.hScrollBar_mc.minPos, _local3);
_local3 = Math.min(_local1.hScrollBar_mc.maxPos, _local3);
_local2 = Math.max(_local1.vScrollBar_mc.minPos, _local2);
_local2 = Math.min(_local1.vScrollBar_mc.maxPos, _local2);
_local1.hScrollBar_mc.setScrollPosition(_local3);
_local1.vScrollBar_mc.setScrollPosition(_local2);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
var _local1 = this;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
_local1.content_mc._visible = 0;
_local1.loadContent.duplicateMovieClip("loadTemp", 3);
_local1.dupeFlag = true;
_local1.contentLoaded = function () {
var _local1 = this;
_local1.loadReady = false;
_local1.content_mc = _local1.loadTemp;
_local1.refreshPane();
_local1.executeCallBack();
};
_local1.setChangeHandler(handler, location);
_local1.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
var _local1 = this;
_local1.hScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
var _local1 = this;
_local1.vScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
var _local1 = this;
if (dragFlag) {
_local1.boundingBox_mc.useHandCursor = true;
_local1.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
_local1.boundingBox_mc.tabEnabled = false;
_local1.boundingBox_mc.onRelease = (_local1.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete _local1.boundingBox_mc.onPress;
_local1.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
var _local1 = this;
if ((((_local1.contentHeight - _local1.height) > 2) && (_local1.vScroll != false)) || (_local1.vScroll == true)) {
_local1.hWidth = _local1.width - _local1.vScrollBar_mc._width;
} else {
_local1.hWidth = _local1.width;
}
if ((((_local1.contentWidth - _local1.width) > 2) && (_local1.hScroll != false)) || (_local1.hScroll == true)) {
_local1.vHeight = _local1.height - _local1.hScrollBar_mc._height;
} else {
_local1.vHeight = _local1.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.myOnSetFocus();
_local1.lastX = _local1._xmouse;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = function () {
var _local1 = this;
_local1.scrollXMove = _local1.lastX - _local1._xmouse;
_local1.scrollYMove = _local1.lastY - _local1._ymouse;
_local1.scrollXMove = _local1.scrollXMove + _local1.hScrollBar_mc.getScrollPosition();
_local1.scrollYMove = _local1.scrollYMove + _local1.vScrollBar_mc.getScrollPosition();
_local1.setScrollPosition(_local1.scrollXMove, _local1.scrollYMove);
if ((_local1.scrollXMove < _local1.hScrollBar_mc.maxPos) && (_local1.scrollXMove > _local1.hScrollBar_mc.minPos)) {
_local1.lastX = _local1._xmouse;
}
if ((_local1.scrollYMove < _local1.vScrollBar_mc.maxPos) && (_local1.scrollYMove > _local1.vScrollBar_mc.minPos)) {
_local1.lastY = _local1._ymouse;
}
_local1.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
var _local1 = this;
_local1.hScrollBar_mc._y = _local1.height - _local1.hScrollBar_mc._height;
_local1.hScrollBar_mc.setSize(_local1.hWidth);
_local1.hScrollBar_mc.setScrollProperties(_local1.hWidth, 0, _local1.contentWidth - _local1.hWidth);
_local1.vScrollBar_mc._visible = ((_local1.hWidth == _local1.width) ? false : true);
_local1.vScrollBar_mc._x = _local1.width - _local1.vScrollBar_mc._width;
_local1.vScrollBar_mc.setSize(_local1.vHeight);
_local1.vScrollBar_mc.setScrollProperties(_local1.vHeight, 0, _local1.contentHeight - _local1.vHeight);
_local1.hScrollBar_mc._visible = ((_local1.vHeight == _local1.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = _local3.getScrollPosition();
var XorY = ((_local3._name == "hScrollBar_mc") ? "x" : "y");
if (_local3._name == "hScrollBar_mc") {
_local2.content_mc._x = (-_local1) + _local2.offset.x;
} else {
_local2.content_mc._y = (-_local1) + _local2.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local1 = this;
var _local3 = _local1.hScrollBar_mc.getScrollPosition();
var _local2 = _local1.vScrollBar_mc.getScrollPosition();
if (_local1.hScrollBar_mc.maxPos > _local1.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
_local1.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
_local1.setScrollPosition(_local3 + 3, _local2);
}
}
if (_local1.vScrollBar_mc.maxPos > _local1.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
_local1.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
_local1.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
_local1.setScrollPosition(_local3, _local2 + _local1.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
_local1.setScrollPosition(_local3, _local2 - _local1.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 245 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 253 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 250 MovieClip "loadContent" in Symbol 253 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 254 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 257 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 260 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 261 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 262 MovieClip [UpArrow] Frame 1
stop();
Symbol 262 MovieClip [UpArrow] Frame 2
stop();
Symbol 262 MovieClip [UpArrow] Frame 3
stop();
Symbol 264 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 266 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 268 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 269 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 270 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 271 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 272 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 273 MovieClip [DownArrow] Frame 1
stop();
Symbol 273 MovieClip [DownArrow] Frame 2
stop();
Symbol 273 MovieClip [DownArrow] Frame 3
stop();
Symbol 274 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 275 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 276 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 277 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 278 MovieClip [UpArrow] Frame 1
stop();
Symbol 278 MovieClip [UpArrow] Frame 2
stop();
Symbol 278 MovieClip [UpArrow] Frame 3
stop();
Symbol 279 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 280 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 281 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 282 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 283 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 284 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 285 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 286 MovieClip [DownArrow] Frame 1
stop();
Symbol 286 MovieClip [DownArrow] Frame 2
stop();
Symbol 286 MovieClip [DownArrow] Frame 3
stop();
Symbol 292 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 293 MovieClip [FScrollBarSymbol] Frame 1
#initclip 5
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 295 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 295 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 298 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 6
function FScrollPaneClass() {
var _local1 = this;
function boolToString(str) {
var _local1 = str;
if (_local1 == "false") {
return(false);
}
if (_local1 == "true") {
return(true);
}
return(_local1);
}
_local1.init();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._xscale = (_local1._yscale = 100);
_local1.contentWidth = (_local1.contentHeight = 0);
if (_local1.hScroll == undefined) {
_local1.hScroll = (_local1.vScroll = "auto");
_local1.dragContent = false;
}
_local1.offset = new Object();
_local1.vScroll = boolToString(_local1.vScroll);
_local1.hScroll = boolToString(_local1.hScroll);
_local1.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:_local1.styleTable});
_local1.hScrollBar_mc.setHorizontal(true);
_local1.hScrollBar_mc.setSmallScroll(5);
_local1.hScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:_local1.styleTable});
_local1.vScrollBar_mc.setSmallScroll(5);
_local1.vScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.setSize(_local1.width, _local1.height);
if (_local1.scrollContent != "") {
_local1.setScrollContent(_local1.scrollContent);
}
_local1.setDragContent(_local1.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local1 = this;
var _local3 = ((_local1.hScrollBar_mc == undefined) ? 0 : (_local1.hScrollBar_mc.getScrollPosition()));
var _local2 = ((_local1.vScrollBar_mc == undefined) ? 0 : (_local1.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
var _local1 = this;
var _local2 = target;
_local1.offset.x = 0;
_local1.offset.y = 0;
if (_local1.content_mc != undefined) {
if (_local2 != _local1.content_mc) {
_local1.content_mc._visible = false;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
}
}
if (typeof(_local2) == "string") {
_local1.attachMovie(_local2, "tmp_mc", 3);
_local1.content_mc = _local1.tmp_mc;
} else if (_local2 == undefined) {
_local1.content_mc.unloadMovie();
} else {
_local1.content_mc = _local2;
}
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
var _local3 = _local1.content_mc.getBounds(_local1);
_local1.offset.x = -_local3.xMin;
_local1.offset.y = -_local3.yMin;
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
_local1.contentWidth = _local1.content_mc._width;
_local1.contentHeight = _local1.content_mc._height;
_local1.content_mc.setMask(_local1.mask_mc);
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (((arguments.length < 2) || (isNaN(_local3))) || (isNaN(_local2))) {
} else {
super.setSize(_local3, _local2);
_local1.width = Math.max(_local3, 60);
_local1.height = Math.max(_local2, 60);
_local1.boundingBox_mc._xscale = 100;
_local1.boundingBox_mc._yscale = 100;
_local1.boundingBox_mc._width = _local1.width;
_local1.boundingBox_mc._height = _local1.height;
_local1.setHandV();
_local1.initScrollBars();
if (_local1.mask_mc == undefined) {
_local1.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
_local1.mask_mc._xscale = 100;
_local1.mask_mc._yscale = 100;
_local1.mask_mc._width = _local1.hWidth;
_local1.mask_mc._height = _local1.vHeight;
_local1.mask_mc._alpha = 0;
}
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
_local3 = Math.max(_local1.hScrollBar_mc.minPos, _local3);
_local3 = Math.min(_local1.hScrollBar_mc.maxPos, _local3);
_local2 = Math.max(_local1.vScrollBar_mc.minPos, _local2);
_local2 = Math.min(_local1.vScrollBar_mc.maxPos, _local2);
_local1.hScrollBar_mc.setScrollPosition(_local3);
_local1.vScrollBar_mc.setScrollPosition(_local2);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
var _local1 = this;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
_local1.content_mc._visible = 0;
_local1.loadContent.duplicateMovieClip("loadTemp", 3);
_local1.dupeFlag = true;
_local1.contentLoaded = function () {
var _local1 = this;
_local1.loadReady = false;
_local1.content_mc = _local1.loadTemp;
_local1.refreshPane();
_local1.executeCallBack();
};
_local1.setChangeHandler(handler, location);
_local1.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
var _local1 = this;
_local1.hScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
var _local1 = this;
_local1.vScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
var _local1 = this;
if (dragFlag) {
_local1.boundingBox_mc.useHandCursor = true;
_local1.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
_local1.boundingBox_mc.tabEnabled = false;
_local1.boundingBox_mc.onRelease = (_local1.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete _local1.boundingBox_mc.onPress;
_local1.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
var _local1 = this;
if ((((_local1.contentHeight - _local1.height) > 2) && (_local1.vScroll != false)) || (_local1.vScroll == true)) {
_local1.hWidth = _local1.width - _local1.vScrollBar_mc._width;
} else {
_local1.hWidth = _local1.width;
}
if ((((_local1.contentWidth - _local1.width) > 2) && (_local1.hScroll != false)) || (_local1.hScroll == true)) {
_local1.vHeight = _local1.height - _local1.hScrollBar_mc._height;
} else {
_local1.vHeight = _local1.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.myOnSetFocus();
_local1.lastX = _local1._xmouse;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = function () {
var _local1 = this;
_local1.scrollXMove = _local1.lastX - _local1._xmouse;
_local1.scrollYMove = _local1.lastY - _local1._ymouse;
_local1.scrollXMove = _local1.scrollXMove + _local1.hScrollBar_mc.getScrollPosition();
_local1.scrollYMove = _local1.scrollYMove + _local1.vScrollBar_mc.getScrollPosition();
_local1.setScrollPosition(_local1.scrollXMove, _local1.scrollYMove);
if ((_local1.scrollXMove < _local1.hScrollBar_mc.maxPos) && (_local1.scrollXMove > _local1.hScrollBar_mc.minPos)) {
_local1.lastX = _local1._xmouse;
}
if ((_local1.scrollYMove < _local1.vScrollBar_mc.maxPos) && (_local1.scrollYMove > _local1.vScrollBar_mc.minPos)) {
_local1.lastY = _local1._ymouse;
}
_local1.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
var _local1 = this;
_local1.hScrollBar_mc._y = _local1.height - _local1.hScrollBar_mc._height;
_local1.hScrollBar_mc.setSize(_local1.hWidth);
_local1.hScrollBar_mc.setScrollProperties(_local1.hWidth, 0, _local1.contentWidth - _local1.hWidth);
_local1.vScrollBar_mc._visible = ((_local1.hWidth == _local1.width) ? false : true);
_local1.vScrollBar_mc._x = _local1.width - _local1.vScrollBar_mc._width;
_local1.vScrollBar_mc.setSize(_local1.vHeight);
_local1.vScrollBar_mc.setScrollProperties(_local1.vHeight, 0, _local1.contentHeight - _local1.vHeight);
_local1.hScrollBar_mc._visible = ((_local1.vHeight == _local1.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = _local3.getScrollPosition();
var XorY = ((_local3._name == "hScrollBar_mc") ? "x" : "y");
if (_local3._name == "hScrollBar_mc") {
_local2.content_mc._x = (-_local1) + _local2.offset.x;
} else {
_local2.content_mc._y = (-_local1) + _local2.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local1 = this;
var _local3 = _local1.hScrollBar_mc.getScrollPosition();
var _local2 = _local1.vScrollBar_mc.getScrollPosition();
if (_local1.hScrollBar_mc.maxPos > _local1.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
_local1.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
_local1.setScrollPosition(_local3 + 3, _local2);
}
}
if (_local1.vScrollBar_mc.maxPos > _local1.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
_local1.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
_local1.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
_local1.setScrollPosition(_local3, _local2 + _local1.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
_local1.setScrollPosition(_local3, _local2 - _local1.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 293 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 298 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 296 MovieClip "loadContent" in Symbol 298 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 9
stop();
Symbol 405 MovieClip Frame 17
gotoAndPlay (1);
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
Symbol 426 MovieClip Frame 3
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
stop();
Symbol 427 MovieClip Frame 3
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 2
stop();
Symbol 428 MovieClip Frame 3
stop();
Symbol 429 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 2
stop();
Symbol 429 MovieClip Frame 3
stop();
Symbol 460 MovieClip Frame 1
stop();
_root.director_message.current_message = "";
_root.director_message.lowlight_current_message = "";
Symbol 460 MovieClip Frame 11
_root.director_message.current_message = _root.myMessage;
_root.director_message.lowlight_current_message = _root.myMessage;
Symbol 460 MovieClip Frame 48
gotoAndPlay (1);
Symbol 506 MovieClip Frame 1
stop();
lb_mc._visible = false;
szURL = "../../php/requestScores.php?sGameType=K_MOVIE&iStartRange=0&iEndRange=20";
xmlSubmit = new XML();
xmlSubmit.ignoreWhite = true;
xmlSubmit.onLoad = function (success) {
if (success) {
if (this.firstChild.nodeName == "sError") {
message_txt.text = "Sorry\nWe currently have a problem loading the Leaderboard.\nPlease try later.";
} else {
xmlScores = this.firstChild.childNodes;
var _local2 = lb_mc.getScrollContent();
var _local1 = 1;
while (_local1 <= xmlScores.length) {
_local2["rank_" + _local1] = _local1 + ".";
xmlItem = xmlScores[_local1 - 1].childNodes;
_local2["name_" + _local1] = xmlItem[0].childNodes.toString();
_local2["score_" + _local1] = xmlItem[1].childNodes.toString();
xmlAvatar = xmlItem[2].childNodes;
iSex = xmlAvatar[0].childNodes.toString();
iHead = xmlAvatar[1].childNodes.toString();
_local2[("av" + _local1) + "_mc"].paint(int(iSex), int(iHead));
_local1++;
}
lb_mc.refreshPane();
lb_mc._visible = true;
}
message_txt._visible = false;
} else {
message_txt.text = "Sorry\nWe currently have a problem loading the Leaderboard.\nPlease try later.";
}
};
xmlSubmit.load(szURL);
Instance of Symbol 298 MovieClip [FScrollPaneSymbol] "lb_mc" in Symbol 506 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "mc_leaderboardData";
hScroll = "false";
vScroll = "auto";
dragContent = false;
}