Frame 1
var bkSnd = new Sound(soundloop);
bkSnd.attachSound("loopsound");
var capturePicSnd = new Sound(soundeffects);
capturePicSnd.attachSound("capture");
var cameraShutterSnd = new Sound(soundeffects);
cameraShutterSnd.attachSound("shutter");
var cameraSelectSnd = new Sound(soundeffects);
cameraSelectSnd.attachSound("select");
var winSnd = new Sound(soundeffects);
winSnd.attachSound("youwin");
var loseSnd = new Sound(soundeffects);
loseSnd.attachSound("youlose");
_global.level = this;
MB_start = 0;
MB_end = 100;
Equip_Spacer = 9;
capture = false;
zoomcontainerYPos = 54.5;
gameOver = false;
captureAttempt = 0;
counter = 0;
newCount = 0;
spyCaught = new Array();
scoringShots = new Array();
StageWidth = Stage.width;
StageHeight = Stage.height;
var equipInit = new EquipBelt(level);
var evidenceInit = new VR(level);
var SpyCreation = new Spy(level);
var clock = new Time(level);
var pointsO = new Points(level);
var Mem = new MemUsage(level);
var objImageTray = new ImageTray();
equipInit.CreateDevice("PRO CAMERA", "equip1", 80, 3, 12.5, 15, 19, 15);
equipInit.CreateDevice("VIEWER", "equip2", 0, 0, 0, 0, 0, 0);
_global.objEvid = evidenceInit.setEvidArray(bkground.evidence1, "evid1", bkground._x + bkground.evidence1._x, bkground._y + bkground.evidence1._y);
_global.objDevices = equipInit.DupeMC(spyEquip, Equip_Spacer);
equip_Stats._visible = false;
zoom._visible = false;
Mem.Initialize(MB_start, _MBReadout, MBMeter.gradient);
objImageTray.imageTray[0] = level.imTray.imageStorage.image01;
objImageTray.imageTray[0]._visible = false;
MovieClip.prototype.useHandCursor = false;
VR_Area._alpha = 75;
_timer._alpha = 20;
_timerbk._alpha = 20;
stop();
Frame 2
function countDown() {
time = 240000 /* 0x03A980 */;
getCurrentTime = -((getTimer() - clock.globalInitTime) - time);
getMin = Math.floor((getCurrentTime / 1000) / 60);
getSec = (getCurrentTime / 1000) - (getMin * 60);
if (getSec < 10) {
extraDigit = "0";
} else {
extraDigit = "";
}
timer = ((Math.floor(getMin) + ":") + extraDigit) + getSec;
timerbk = ((Math.floor(getMin) + ":") + extraDigit) + getSec;
}
function finishChecker() {
if ((MBReadout >= 100) || (getCurrentTime <= 1000)) {
gameOver = true;
i = 0;
while (i < level.SpyCreation.SpyList.length) {
tempSpyMC = eval ("level.bkground." + level.SpyCreation.SpyList[i]._spyName);
tempSpyMC.stop();
i++;
}
Mouse.show();
clock.setStopTime();
finalScore = pointsO.calcShotPts();
if (finalScore > 100) {
finalScore = 100;
}
stopAllSounds();
winSnd.setVolume(40);
winSnd.start(0, 1);
play();
}
}
function statusDisplay(memo) {
display._statusReadout.text = memo;
}
function topTracker() {
VRDifference = bkground._width - StageWidth;
VRDivisions = 360 / VRDifference;
_degreeReadout.text = Math.abs(Math.floor(bkground._x * VRDivisions));
MapDivisions = (mapLine._width - youAreHere._width) / VRDifference;
currentLoc = bkground._x * MapDivisions;
youAreHere._x = mapLine._x - currentLoc;
}
function SpyGenerator() {
SpyCharacteristics = ["DickTracy", "Cap", "Glasses", "Round", "Moustache", "Bouncer", "Beard", "EyeBrow", "Hair", "Eye", "Face", "Jacket", "posLean", "posSit", "posFaceYou", "posBack"];
_global.SpyTraits = SpyCharacteristics;
gender = ["male", "male"];
eyeColor = ["0x000000", "0x7D692D", "0x1E6675", "0x5B552F", "0x000080", "no tint"];
hair = ["yes", "no"];
facialHair = ["Beard", "Moustache", "Bouncer", "Round", "no"];
facialHairColor = ["0xB8A51F", "0x000000", "0x544B0E", "0x742410", "no tint"];
glasses = ["no", "white", "dark"];
hat = ["no", "Cap", "DickTracy"];
jacket = ["no", "yes"];
farPos = [[1270, 140], [1190, 170], [1350, 160], [2930, 125], [3850, 100]];
midPos = [[850, 120], [4800, 120], [3150, 110], [3600, 110], [4500, 90]];
closePos = [[1000, 120], [1600, 120], [2500, 110], [2700, 110], [4050, 90]];
sitPos = [[3900, 90]];
SpySpecs = [gender, eyeColor, hair, facialHair, facialHairColor, glasses, hat, jacket];
i = 0;
while (i < SpyCreation.SpyList.length) {
bkground.attachMovie("spy", "spy" + (i + 1), i);
SpyProp = new Array();
k = 0;
while (k < SpySpecs.length) {
tempProp = SpySpecs[k][Math.floor(Math.random() * SpySpecs[k].length)];
SpyProp.push(tempProp);
k++;
}
SpyCreation.SpyList[i][0] = SpyProp;
if (SpyCreation.SpyList[i]._distanceRef == "far") {
rdm = Math.floor(Math.random() * farPos.length);
SpyCreation.SpyList[i]._xPos = farPos[rdm][0];
SpyCreation.SpyList[i]._yPos = farPos[rdm][1];
farPos.splice(rdm, 1);
}
if (SpyCreation.SpyList[i]._distanceRef == "mid") {
rdm = Math.floor(Math.random() * midPos.length);
SpyCreation.SpyList[i]._xPos = midPos[rdm][0];
SpyCreation.SpyList[i]._yPos = midPos[rdm][1];
midPos.splice(rdm, 1);
}
if (SpyCreation.SpyList[i]._distanceRef == "close") {
rdm = Math.floor(Math.random() * closePos.length);
SpyCreation.SpyList[i]._xPos = closePos[rdm][0];
SpyCreation.SpyList[i]._yPos = closePos[rdm][1];
closePos.splice(rdm, 1);
}
if (SpyCreation.SpyList[i]._distanceRef == "sit") {
rdm = Math.floor(Math.random() * sitPos.length);
SpyCreation.SpyList[i]._xPos = sitPos[rdm][0];
SpyCreation.SpyList[i]._yPos = sitPos[rdm][1];
sitPos.splice(rdm, 1);
}
tempSpyMC = eval ("bkground." + SpyCreation.SpyList[i]._spyName);
tempSpyMC._x = SpyCreation.SpyList[i]._xPos;
tempSpyMC._y = SpyCreation.SpyList[i]._yPos;
tempSpyMC._xscale = SpyCreation.SpyList[i]._flip;
m = 0;
while (m < SpyCharacteristics.length) {
tempChar = eval ("tempSpyMC." + SpyCharacteristics[m]);
tempChar._visible = false;
m++;
}
if (SpyCreation.SpyList[i]._stance == "front") {
tempSpyMC.posFaceYou._visible = true;
}
if (SpyCreation.SpyList[i]._stance == "back") {
tempSpyMC.posBack._visible = true;
}
if (SpyCreation.SpyList[i]._stance == "lean") {
tempSpyMC.posLean._visible = true;
}
if (SpyCreation.SpyList[i]._stance == "sit") {
tempSpyMC.posSit._visible = true;
}
p = 0;
while (p < SpyCreation.SpyList[i][0].length) {
switch (p) {
case 0 :
if (SpyCreation.SpyList[i][0][p] == "male") {
tempSpyMC.Face._visible = true;
tempSpyMC.Hair._visible = true;
tempSpyMC.EyeBrow._visible = true;
}
break;
case 1 :
tempSpyMC.Eye._visible = true;
if (SpyCreation.SpyList[i][0][p] != "no tint") {
tempCond = eval ("tempSpyMC." + SpyCreation.SpyList[i][0][p]);
tempClr = new Color(tempSpyMC.Eye);
tempClr.setRGB(SpyCreation.SpyList[i][0][p]);
}
break;
case 2 :
if (SpyCreation.SpyList[i][0][p] == "yes") {
tempSpyMC.Hair._visible = true;
}
break;
case 3 :
if (SpyCreation.SpyList[i][0][p] != "no") {
tempCondH = eval ("tempSpyMC." + SpyCreation.SpyList[i][0][p]);
tempCondH._visible = true;
}
break;
case 4 :
if (SpyCreation.SpyList[i][0][p] != "no tint") {
tempCond = eval ("tempSpyMC." + SpyCreation.SpyList[i][0][p]);
tempClr = new Color(tempSpyMC.EyeBrow);
tempClr.setRGB(SpyCreation.SpyList[i][0][p]);
tempClr = new Color(tempSpyMC.Hair);
tempClr.setRGB(SpyCreation.SpyList[i][0][p]);
tempClr = new Color(tempCondH);
tempClr.setRGB(SpyCreation.SpyList[i][0][p]);
}
break;
case 5 :
if (SpyCreation.SpyList[i][0][p] != "no") {
tempCond = eval (tempSpyMC + ".Glasses");
tempCond._visible = true;
}
break;
case 6 :
if (SpyCreation.SpyList[i][0][p] != "no") {
tempCond = eval ("tempSpyMC." + SpyCreation.SpyList[i][0][p]);
tempCond._visible = true;
}
break;
case 7 :
if (SpyCreation.SpyList[i]._stance != "lean") {
break;
}
if (SpyCreation.SpyList[i][0][p] == "no") {
break;
}
tempSpyMC.Jacket._visible = true;
}
p++;
}
switch (SpyCreation.SpyList[i]._distanceRef) {
case "far" :
tempSpyMC._width = tempSpyMC._width / 4;
tempSpyMC._height = tempSpyMC._height / 4;
break;
case "mid" :
tempSpyMC._width = tempSpyMC._width / 2;
tempSpyMC._height = tempSpyMC._height / 2;
break;
case "near" :
tempSpyMC._width = tempSpyMC._width;
tempSpyMC._height = tempSpyMC._height;
}
i++;
}
}
function placeSpies(whichclip) {
i = 0;
while (i < SpyCreation.SpyList.length) {
whichclip.attachMovie("spy", "spy" + (i + 1), i);
tempSpyMC = eval ((whichclip + ".") + SpyCreation.SpyList[i]._spyName);
tempSpyMC._x = SpyCreation.SpyList[i]._xPos;
tempSpyMC._y = SpyCreation.SpyList[i]._yPos;
tempSpyMC._xscale = SpyCreation.SpyList[i]._flip;
m = 0;
while (m < SpyCharacteristics.length) {
tempChar = eval ("tempSpyMC." + SpyCharacteristics[m]);
tempChar._visible = false;
m++;
}
if (SpyCreation.SpyList[i]._stance == "front") {
tempSpyMC.posFaceYou._visible = true;
rdm2 = Math.floor(Math.random() * 2);
if (rdm2 == 1) {
tempSpyMC.posFaceYou.jacket._visible = false;
} else {
tempSpyMC.posFaceYou.jacket._visible = true;
}
}
if (SpyCreation.SpyList[i]._stance == "back") {
tempSpyMC.posBack._visible = true;
}
if (SpyCreation.SpyList[i]._stance == "lean") {
tempSpyMC.posLean._visible = true;
}
if (SpyCreation.SpyList[i]._stance == "sit") {
tempSpyMC.posSit._visible = true;
}
p = 0;
while (p < SpyCreation.SpyList[i][0].length) {
switch (p) {
case 0 :
if (SpyCreation.SpyList[i][0][p] == "male") {
tempSpyMC.Face._visible = true;
tempSpyMC.Hair._visible = true;
tempSpyMC.EyeBrow._visible = true;
}
break;
case 1 :
tempSpyMC.Eye._visible = true;
if (SpyCreation.SpyList[i][0][p] != "no tint") {
tempCond = eval ("tempSpyMC." + SpyCreation.SpyList[i][0][p]);
tempClr = new Color(tempSpyMC.Eye);
tempClr.setRGB(SpyCreation.SpyList[i][0][p]);
}
break;
case 2 :
if (SpyCreation.SpyList[i][0][p] == "yes") {
tempSpyMC.Hair._visible = true;
}
break;
case 3 :
if (SpyCreation.SpyList[i][0][p] != "no") {
tempCondH = eval ("tempSpyMC." + SpyCreation.SpyList[i][0][p]);
tempCondH._visible = true;
}
break;
case 4 :
if (SpyCreation.SpyList[i][0][p] != "no tint") {
tempCond = eval ("tempSpyMC." + SpyCreation.SpyList[i][0][p]);
tempClr = new Color(tempSpyMC.EyeBrow);
tempClr.setRGB(SpyCreation.SpyList[i][0][p]);
tempClr = new Color(tempSpyMC.Hair);
tempClr.setRGB(SpyCreation.SpyList[i][0][p]);
tempClr = new Color(tempCondH);
tempClr.setRGB(SpyCreation.SpyList[i][0][p]);
}
break;
case 5 :
if (SpyCreation.SpyList[i][0][p] != "no") {
tempCond = eval (tempSpyMC + ".Glasses");
tempCond._visible = true;
}
break;
case 6 :
if (SpyCreation.SpyList[i][0][p] != "no") {
tempCond = eval ("tempSpyMC." + SpyCreation.SpyList[i][0][p]);
tempCond._visible = true;
}
break;
case 7 :
if (SpyCreation.SpyList[i]._stance != "lean") {
break;
}
if (SpyCreation.SpyList[i][0][p] == "no") {
break;
}
tempSpyMC.Jacket._visible = true;
}
p++;
}
switch (SpyCreation.SpyList[i]._distanceRef) {
case "far" :
tempSpyMC._width = tempSpyMC._width / 4;
tempSpyMC._height = tempSpyMC._height / 4;
break;
case "mid" :
tempSpyMC._width = tempSpyMC._width / 2;
tempSpyMC._height = tempSpyMC._height / 2;
break;
case "near" :
tempSpyMC._width = tempSpyMC._width;
tempSpyMC._height = tempSpyMC._height;
}
i++;
}
}
statusDisplay("LET'S FIND SOME SPIES!");
bkSnd.setVolume(40);
bkSnd.start(0, 1000);
VR_Area._alpha = 0;
clock.startGlobalTimer();
_timer._alpha = 100;
_timerbk._alpha = 100;
SpyCreation.CreateSpies("spy1", "far", "lean", -100);
SpyCreation.CreateSpies("spy2", "mid", "front", 100);
SpyCreation.CreateSpies("spy3", "mid", "lean", 100);
SpyCreation.CreateSpies("spy4", "far", "front", -100);
SpyCreation.CreateSpies("spy5", "close", "lean", 100);
SpyCreation.CreateSpies("spy6", "close", "front", -100);
SpyGenerator();
crosshair.onRelease = function () {
if (((gameOver != true) && (outofBounds == "false")) && (capture == false)) {
spyState = new Array();
capture = true;
statusDisplay("LET'S SEE WHAT WE GOT");
capturePicSnd.setVolume(80);
capturePicSnd.start();
i = 0;
while (i < SpyCreation.SpyList.length) {
tempSpyMC = eval ("bkground." + SpyCreation.SpyList[i]._spyName);
spyState.push(tempSpyMC.state);
i++;
}
_global.nowMouseXpos = _xmouse;
_global.nowMouseYpos = _ymouse;
VR_Area._alpha = 60;
zoom._visible = true;
zoom.gotoAndPlay("expandZoom");
i = 0;
while (i < SpyCreation.SpyList.length) {
tempSpyMC = eval ("bkground." + SpyCreation.SpyList[i]._spyName);
tempSpyMC.stop();
i++;
}
}
};
_global.MouseFollow = function (what, viewFinderStatus) {
if (viewFinderStatus == true) {
viewFinderStatus = false;
Mouse.show();
crosshair._x = nowMouseXpos;
crosshair._y = nowMouseYpos;
zoom.capture.zoomContainer._y = zoomcontainerYPos;
zoom.capture.zoomContainer.container._y = -(crosshair._height / 2);
} else {
what._x = _root._xmouse;
what._y = _root._ymouse;
if (what.hitTest(VR_Area)) {
Mouse.hide();
motionRange = 400;
sideOffset = 0;
speed = 0.3;
leftPanArea_MIN = 0 + sideOffset;
leftPanArea_MAX = motionRange;
rightPanArea_MIN = StageWidth - motionRange;
rightPanArea_MAX = StageWidth - sideOffset;
if ((((_xmouse < StageWidth) && (_xmouse > 0)) && (_ymouse < StageHeight)) && (_ymouse > 0)) {
if ((what._x + (what._width / 2)) < leftPanArea_MAX) {
if ((what._x - (what._width / 2)) > leftPanArea_MIN) {
xPos = what._x - leftPanArea_MIN;
} else {
xPos = 5;
}
xRange = leftPanArea_MAX - leftPanArea_MIN;
xRatio = xPos / xRange;
if (Bkground._x >= 0) {
Bkground._x = Bkground._x - (Bkground._width - Bkground.bkright._width);
} else {
Bkground._x = Bkground._x + (speed / xRatio);
}
}
if (what._x > rightPanArea_MIN) {
if (what._x < rightPanArea_MAX) {
xPos = rightPanArea_MAX - what._x;
LEFTOVER_Length = StageWidth - Bkground._width;
} else {
xPos = 5;
}
xRange = rightPanArea_MAX - rightPanArea_MIN;
xRatio = xPos / xRange;
if (Bkground._x <= LEFTOVER_Length) {
Bkground._x = 0;
} else {
Bkground._x = Bkground._x - (speed / xRatio);
}
}
if (((((crosshair._y - (crosshair._height / 2)) - 15) < bkground.bkleft._y) || ((crosshair._y + (crosshair._height / 2)) > (bkground.bkleft._y + bkground.bkleft._height))) || (_global.selectedDevice == equipInit.equipList.length)) {
if ((crosshair._y < bkground.bkleft._y) || (crosshair._y > (bkground.bkleft._y + bkground.bkleft._height))) {
Mouse.show();
} else {
Mouse.hide();
equip_Stats._visible = false;
}
outofBounds = "true";
} else {
outofBounds = "false";
}
}
}
}
};
i = 0;
while (i < equipInit.equipList.length) {
equipInit.equipList[i]._instanceName.onRelease = function () {
thisDevice = String(this).substr(String(this).length - 1, String(this).length);
if ((equipInit.equipList[thisDevice]._shotsLeft != 0) || (thisDevice == equipInit.equipList.length)) {
if (gameOver != true) {
if (capture == false) {
cameraSelectSnd.setVolume(80);
cameraSelectSnd.start();
j = 0;
while (j < objDevices.length) {
equipInit.equipList[thisDevice]._instanceName.equipHighlight._visible = false;
j++;
}
this.equipHighlight._visible = true;
currentSelect.removeMovieClip();
_global.selectedDevice = thisDevice;
tempLink = eval (crosshair);
tempLink.attachMovie("viewfind" + thisDevice, "viewfinder" + thisDevice, thisDevice);
currentSelect = eval ("crosshair.viewfinder" + thisDevice);
equipInit.equipList[i]._instanceName.equipHighlight._visible = true;
}
}
}
};
i++;
}
onEnterFrame = function () {
if (gameOver != true) {
MouseFollow(crosshair, capture);
equipInit.EquipTracker(_xmouse, _ymouse, spyEquip, spyEquip.tracker, equip_Stats, spyEquip.hitZone);
topTracker();
countDown();
finishChecker();
}
};
stop();
Frame 3
if (MBReadout >= 100) {
finalScreen._status.text = "MEMORY FULL";
} else if (getCurrentTime <= 1000) {
finalScreen._status.text = "TIME'S UP!";
}
finalScreen.overall = finalScore;
finalScreen.overallBar._width = finalScore * 2;
if (finalScore > 95) {
finalScreen.ranking = 6;
finalScreen._rank.text = "SUPER SPY";
} else if (finalScore > 80) {
finalScreen.ranking = 5;
finalScreen._rank.text = "ELITE AGENT";
} else if (finalScore > 60) {
finalScreen.ranking = 4;
finalScreen._rank.text = "SEASONED VET";
} else if (finalScore > 40) {
finalScreen.ranking = 3;
finalScreen._rank.text = "PROMISING PATRIOT";
} else if (finalScore > 20) {
finalScreen.ranking = 2;
finalScreen._rank.text = "SOPHOMORE SLEUTH";
} else if (finalScore < 20) {
finalScreen.ranking = 1;
finalScreen._rank.text = "ROOKIE IN TRAINING";
}
finalScreen.rankIcon.gotoAndPlay("grow");
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 39 MovieClip Frame 3
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 3
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 50 MovieClip Frame 3
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 3
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
stop();
Symbol 59 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 3
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 3
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 3
stop();
Symbol 95 MovieClip [spy] Frame 1
function timeDelayW() {
startTime = getTimer();
timedelayWin = 3000;
tempTDW = Math.floor(Math.random() * timedelayWin);
return(tempTDW);
}
function choices() {
state = 2;
randomWin = 100;
tempRW = Math.floor(Math.random() * randomWin);
tempS = Math.floor(Math.random() * state);
if (tempRW > 90) {
gotoAndPlay ("front");
} else if (tempS == 1) {
gotoAndPlay ("side");
} else {
gotoAndPlay ("back");
}
}
Symbol 95 MovieClip [spy] Frame 2
timedelay = 5000;
tempTD = Math.floor(Math.random() * timedelay);
startTime = getTimer();
q = 0;
while (q < SpyTraits.length) {
temp = eval (SpyTraits[q]);
temp.gotoAndStop(1);
q++;
}
state = "s";
Symbol 95 MovieClip [spy] Frame 3
currentTime = getTimer();
if ((currentTime - startTime) > tempTD) {
choices();
}
Symbol 95 MovieClip [spy] Frame 4
gotoAndPlay ("siderepeat");
Symbol 95 MovieClip [spy] Frame 10
timedelay = 5000;
tempTD = Math.floor(Math.random() * timedelay);
startTime = getTimer();
q = 0;
while (q < SpyTraits.length) {
temp = eval (SpyTraits[q]);
temp.gotoAndStop(2);
q++;
}
state = "b";
Symbol 95 MovieClip [spy] Frame 11
currentTime = getTimer();
if ((currentTime - startTime) > tempTD) {
choices();
}
Symbol 95 MovieClip [spy] Frame 12
gotoAndPlay ("backrepeat");
Symbol 95 MovieClip [spy] Frame 19
timedelay = 2000;
tempTD = Math.floor(Math.random() * timedelay);
startTime = getTimer();
q = 0;
while (q < SpyTraits.length) {
temp = eval (SpyTraits[q]);
temp.gotoAndStop(3);
q++;
}
state = "f";
Symbol 95 MovieClip [spy] Frame 20
currentTime = getTimer();
if ((currentTime - startTime) > tempTD) {
choices();
}
Symbol 95 MovieClip [spy] Frame 21
gotoAndPlay ("frontrepeat");
Symbol 99 MovieClip Frame 1
function hrdelay() {
timedelay = 2400;
level.sounds.heartRate("stop", HRFactor);
HRFactor = ((level.HRReadout - level.HR_start) / (level.HR_end - level.HR_start)) * 100;
if ((loudest - HRFactor) <= 0) {
loopFactor = 0;
} else if ((loudest - HRFactor) >= loudest) {
loopFactor = loudest;
} else {
loopFactor = loudest - HRFactor;
}
level.sounds.bkSound(loopFactor);
timedelay = timedelay - (HRFactor * 20);
gotoAndPlay ("again");
clearInterval(timer);
}
timedelay = 0;
loudest = 50;
loopFactor = 50;
Symbol 99 MovieClip Frame 3
timer = setInterval(hrdelay, timedelay);
stop();
Symbol 106 MovieClip Frame 1
i = 1;
while (i <= 10) {
temp = eval ("box" + i);
temp._alpha = 20;
i++;
}
blur._alpha = 0;
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 31
gotoAndStop (1);
Instance of Symbol 126 MovieClip "hiddenSweep" in Symbol 128 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 1;
while (i <= 3) {
temp = eval ("_parent.t" + i);
if (_parent.hiddenSweep.hitTest(temp)) {
temp.play();
}
i++;
}
}
Symbol 136 MovieClip Frame 21
if (times < 1) {
times++;
gotoAndPlay ("start");
} else {
_parent.play();
stop();
}
Symbol 139 MovieClip Frame 1
function delay() {
level.introText.play();
clearInterval(timer);
}
timedelay = 600;
stop();
Symbol 139 MovieClip Frame 2
timer = setInterval(delay, timedelay);
stop();
Symbol 139 MovieClip Frame 15
timer = setInterval(delay, timedelay);
stop();
Symbol 139 MovieClip Frame 29
timer = setInterval(delay, timedelay);
stop();
Symbol 139 MovieClip Frame 43
s1.gotoAndPlay("start");
stop();
Symbol 139 MovieClip Frame 57
s2.gotoAndPlay("start");
stop();
Symbol 139 MovieClip Frame 58
_parent.play();
Symbol 143 MovieClip Frame 1
var outlineBuffer = 6;
shutterBox._visible = 0;
shotMask._width = _parent._parent._parent.crosshair._width;
shotMask._height = _parent._parent._parent.crosshair._height;
shotMask._x = shotMask._x - (shotMask._width / 2);
shotMask._y = shotMask._y - (shotMask._height / 2);
outline._width = _parent._parent._parent.crosshair._width + outlineBuffer;
outline._height = _parent._parent._parent.crosshair._height + outlineBuffer;
outline._x = outline._x - (outline._width / 2);
outline._y = outline._y - (outline._height / 2);
shutterBox._width = _parent._parent._parent.crosshair._width;
shutterBox._height = _parent._parent._parent.crosshair._height;
shutterBox._x = shutterBox._x - (shotMask._width / 2);
shutterBox._y = shutterBox._y - (shotMask._height / 2);
container._x = shotMask._x;
container._y = shotMask._y;
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
LengthTime = 5000;
startTimeNow = getTimer();
timebar._width = 100;
Symbol 145 MovieClip Frame 3
nowTime = getTimer();
if ((nowTime - startTimeNow) > LengthTime) {
_parent.resetStage();
_parent.gotoAndStop(1);
gotoAndStop (1);
} else {
timebar._width = 100 - (((nowTime - startTimeNow) / LengthTime) * 100);
}
Symbol 145 MovieClip Frame 4
gotoAndPlay ("timeLeft");
Symbol 149 Button
on (release) {
level.cameraShutterSnd.setVolume(60);
level.cameraShutterSnd.start();
gotoAndPlay ("gotit");
SpyCapture();
captureAmount = level.HRReadout;
}
Symbol 153 Button
on (release) {
level.statusDisplay("KEEP LOOKING FOR'EM");
capTimer.gotoAndStop(1);
capTimer.timebar._width = 100;
level.cameraSelectSnd.setVolume(60);
level.cameraSelectSnd.start();
resetStage();
gotoAndStop (1);
}
Symbol 158 MovieClip Frame 1
function resetStage() {
level.zoom._visible = false;
level.capture = false;
level.VR_Area._alpha = 0;
level.crosshair._visible = true;
i = 0;
while (i < level.SpyCreation.SpyList.length) {
tempSpyMC = eval ("level.bkground." + level.SpyCreation.SpyList[i]._spyName);
tempSpyMC.play();
i++;
}
}
function SpyCapture() {
spyHit = new Array();
i = 0;
while (i < level.SpyCreation.SpyList.length) {
tempSpyMC = eval ("zoomContainer.container.bkscene." + level.SpyCreation.SpyList[i]._spyName);
level.spyState.push(tempSpyMC.state);
i++;
}
i = 0;
while (i < level.SpyCreation.SpyList.length) {
tempSpy = eval ("zoomContainer.container.bkscene." + level.SpyCreation.SpyList[i]._spyName);
if (tempSpy._faceShot.hitTest(zoomContainer.shotMask)) {
b = 0;
while (b < level.SpyCreation.SpyList.length) {
if (level.SpyCreation.SpyList[i]._spyName == level.spyCaught[b]) {
spyOnList = true;
break;
}
b++;
}
if (spyOnList != true) {
level.scoringShots.push(tempSpy.state);
spyHit.push(tempSpy);
spyHit.push(level.SpyCreation.SpyList[i]._distanceRef);
level.spyCaught.push(level.SpyCreation.SpyList[i]._spyName);
} else {
spyOnList = false;
level.statusDisplay("YOU GOT THIS ONE ALREADY!");
}
}
i++;
}
i = 0;
while (i < level.SpyCreation.SpyList.length) {
tempSpy = eval ("zoomContainer.container.bkscene." + level.SpyCreation.SpyList[i]._spyName);
if (tempSpy._faceShot.hitTest(zoomContainer.shotMask)) {
spyInView = true;
break;
}
spyInView = false;
i++;
}
if (spyInView == false) {
level.scoringShots.push("scenery");
}
level.spyImage = level.spyCaught;
}
function btnControl(onOroff, alpha) {
btn_Cap.enabled = onOroff;
btn_Cap._alpha = alpha;
btn_close.enabled = onOroff;
btn_close._alpha = alpha;
}
function delay() {
resetStage();
memLeft = level.Mem.MBLeft(level.MBMeter.gradient, objDevices[selectedDevice - 1]._memUsage);
level._MBReadout.text = memLeft;
level.statusDisplay(("MEMORY CAPACITY LEFT " + (100 - memLeft)) + "%");
level.objImageTray.storeImage(level.captureImages.imageScroll.tmp_mc.lengthReader);
currentTray = level.objImageTray.imageTray.length - 1;
trayLink = level.objImageTray.imageTray[currentTray - 1];
trayLink.Xmark._visible = false;
trayLink.container.attachMovie("scenery", "bkscene", 1);
level.placeSpies(trayLink.container.bkscene);
i = 0;
while (i < level.SpyCreation.SpyList.length) {
tempSpyMC = eval ("trayLink.container.bkscene." + level.SpyCreation.SpyList[i]._spyName);
if (level.spyState[i] == "f") {
tempSpyMC.gotoAndStop("front");
} else if (level.spyState[i] == "b") {
tempSpyMC.gotoAndStop("back");
} else if (level.spyState[i] == "s") {
tempSpyMC.gotoAndStop("side");
}
i++;
}
i = 0;
while (i < level.SpyCreation.SpyList.length) {
tempSpyMC = eval ("trayLink.container.bkscene." + level.SpyCreation.SpyList[i]._spyName);
tempSpyMC.stop();
i++;
}
origWidth = zoomContainer.container.bkscene._width;
origHeight = zoomContainer.container.bkscene._height;
trayLink.container.bkscene._width = (trayLink.containMask._width / zoomContainer.shotMask._width) * zoomContainer.container.bkscene._width;
trayLink.container.bkscene._height = (trayLink.containMask._height / zoomContainer.shotMask._height) * zoomContainer.container.bkscene._height;
afterWidth = trayLink.container.bkscene._width;
afterHeight = trayLink.container.bkscene._height;
trayLink.container.bkscene._x = zoomContainer.container.bkscene._x * (afterWidth / origWidth);
trayLink.container.bkscene._y = zoomContainer.container.bkscene._y * (afterHeight / origHeight);
fuzziness(trayLink);
f = 0;
while (f < objDevices.length) {
if (objDevices[f]._shotsLeft == 0) {
level.counter++;
}
f++;
}
clearInterval(timer);
gotoAndStop (1);
}
timedelay = 1000;
stop();
Symbol 158 MovieClip Frame 2
btnControl(true, 100);
zoomContainer.container.attachMovie("scenery", "bkscene", 1);
level.placeSpies(zoomContainer.container.bkscene);
i = 0;
while (i < level.SpyCreation.SpyList.length) {
tempSpyMC = eval ("zoomContainer.container.bkscene." + level.SpyCreation.SpyList[i]._spyName);
if (level.spyState[i] == "f") {
tempSpyMC.gotoAndPlay("front");
} else if (level.spyState[i] == "b") {
tempSpyMC.gotoAndPlay("back");
} else if (level.spyState[i] == "s") {
tempSpyMC.gotoAndPlay("side");
}
i++;
}
zoomContainer.container.bkscene._width = level.bkground._width;
zoomContainer.container.bkscene._height = level.bkground._height;
xAdjust = (Math.abs(level.bkground._x) + nowMouseXpos) - (level.crosshair._width / 2);
yAdjust = (Math.abs(level.bkground._y) + nowMouseYpos) - (level.crosshair._height / 2);
zoomContainer.container.bkscene._x = zoomContainer.container.bkscene._x - xAdjust;
zoomContainer.container.bkscene._y = zoomContainer.container.bkscene._y - yAdjust;
Symbol 158 MovieClip Frame 11
if (_parent.capTime == true) {
_parent.capTime = false;
capTimer.gotoAndPlay(2);
}
stop();
Symbol 158 MovieClip Frame 15
btnControl(false, 60);
zoomContainer.shutterBox._visible = true;
progressbar._width = 1;
Symbol 158 MovieClip Frame 21
zoomContainer.shutterBox._visible = false;
Symbol 158 MovieClip Frame 24
finalAmount = 100;
increments = 0;
divisions = finalAmount / (objDevices[selectedDevice - 1]._processTime * 3);
_progressTxt.text = "RECORDING IN PROGRESS...";
Symbol 158 MovieClip Frame 26
if (progressbar._width <= 100) {
increments = increments + divisions;
progressbar._width = increments;
_percent.text = Math.floor(progressbar._width) + "%";
} else {
_percent.text = "100%";
progressbar._width = 100;
_progressTxt.text = "RECORDING COMPLETE!";
timer = setInterval(delay, timedelay);
stop();
}
Symbol 158 MovieClip Frame 27
gotoAndPlay ("repeat");
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 13
capture.gotoAndPlay("reveal");
capTime = true;
stop();
Symbol 202 MovieClip Frame 1
equipHighlight._visible = 0;
Symbol 202 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 5
stop();
Symbol 206 MovieClip Frame 1
equipHighlight._visible = 0;
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 5
stop();
Instance of Symbol 208 MovieClip "tracker" in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(100);
}
Symbol 225 MovieClip Frame 1
this.onRollOver = function () {
this.gotoAndStop("over");
};
this.onRollOut = (this.onReleaseOutside = (this.onDragOut = function () {
this.gotoAndStop("off");
}));
this.onPress = function () {
this.gotoAndStop("down");
};
this.onRelease = function () {
this.gotoAndStop("over");
_root.introText.gotoAndPlay("startnow");
_root.instructions.unloadMovie();
};
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 3
stop();
Symbol 277 MovieClip [__Packages.Spy] Frame 0
class Spy
{
var gameRoot;
function Spy (rootRef) {
gameRoot;
}
function CreateSpies(spyName, distanceRef, stance, flip) {
var _local2 = new Object();
_local2._spyName = spyName;
_local2._distanceRef = distanceRef;
_local2._stance = stance;
_local2._flip = flip;
SpyList.push(_local2);
}
var SpyList = new Array();
}
Symbol 278 MovieClip [__Packages.Points] Frame 0
class Points
{
var gameRoot, overall, k;
function Points (rootRef) {
gameRoot = rootRef;
overall = 0;
}
function calcShotPts() {
var _local2 = gameRoot.scoringShots;
k = 0;
while (k < _local2.length) {
if (_local2[k] == "scenery") {
incOverall(1);
} else if (_local2[k] == "b") {
incOverall(5);
} else if (_local2[k] == "s") {
incOverall(10);
} else if (_local2[k] == "f") {
incOverall(17);
}
k++;
}
return(overall);
}
function incOverall(inc) {
overall = overall + inc;
}
}
Symbol 279 MovieClip [__Packages.VR] Frame 0
class VR
{
var gameRoot, final;
function VR (rootRef) {
gameRoot = rootRef;
}
function setEvidArray(evidName, evidLink, xPos, yPos) {
var _local2 = new Object();
_local2._evidName = evidName;
_local2._evidLink = evidLink;
_local2._xPos = xPos;
_local2._yPos = yPos;
evidenceArray.push(_local2);
return(evidenceArray);
}
function Iquality(capturedHR, spyGear, Zoom) {
var _local2;
var _local6;
var _local8 = 0;
var _local3 = 0;
var _local10 = 0;
var _local9 = 0;
var _local7 = new Array();
var _local11 = new Array();
var _local12 = new Array();
_local7 = [20, 30, 40, 10];
_local11 = [2, 8, 9.5, 10];
var _local13 = spyGear.length / 2;
_local2 = 0;
while (_local2 < spyGear.length) {
if (spyGear[_local2].state == "f") {
_local8 = _local8 + 8;
} else if (spyGear[_local2].state == "s") {
_local8 = _local8 + 5;
} else if (spyGear[_local2].state == "b") {
_local8 = _local8 + 2;
}
_local2++;
}
var _local14 = (1 - ((capturedHR - gameRoot.HR_start) / (gameRoot.HR_end - gameRoot.HR_start))) * 10;
_local2 = 0;
while (_local2 < spyGear.length) {
_local6 = 0;
while (_local6 < gameRoot.objDevices.length) {
if (gameRoot.objDevices[_local6]._picLink == "equip1") {
if (spyGear[_local2 + 1] == "far") {
if (Zoom == 1) {
_local3 = _local3 + 2;
} else if (Zoom == 2) {
_local3 = _local3 + 5;
} else if (Zoom == 3) {
_local3 = _local3 + 10;
}
}
}
if (spyGear[_local2 + 1] == "mid") {
if (Zoom == 1) {
_local3 = _local3 + 3;
} else if (Zoom == 2) {
_local3 = _local3 + 5;
} else if (Zoom == 3) {
_local3 = _local3 + 7;
}
}
if (spyGear[_local2 + 1] == "near") {
if (Zoom == 1) {
_local3 = _local3 + 1;
} else if (Zoom == 2) {
_local3 = _local3 + 3;
} else if (Zoom == 3) {
_local3 = _local3 + 5;
}
}
_local6++;
}
if (gameRoot.objDevices[_local6]._picLink == "equip2") {
if (spyGear[_local2 + 1] == "far") {
if (Zoom == 1) {
_local3 = _local3 + 3;
} else if (Zoom == 2) {
_local3 = _local3 + 8;
}
}
if (spyGear[_local2 + 1] == "mid") {
if (Zoom == 1) {
_local3 = _local3 + 5;
} else if (Zoom == 2) {
_local3 = _local3 + 10;
}
}
if (spyGear[_local2 + 1] == "near") {
if (Zoom == 1) {
_local3 = _local3 + 2;
} else if (Zoom == 2) {
_local3 = _local3 + 6;
}
}
}
if (gameRoot.objDevices[_local6]._picLink == "equip3") {
if (spyGear[_local2 + 1] == "far") {
if (Zoom == 1) {
_local3 = _local3 + 1;
}
}
if (spyGear[_local2 + 1] == "mid") {
if (Zoom == 1) {
_local3 = _local3 + 4;
}
}
if (spyGear[_local2 + 1] == "near") {
if (Zoom == 1) {
_local3 = _local3 + 10;
}
}
}
_local2++;
}
_local12 = [_local13, _local8, _local14, _local3];
if ((_local13 == 0) || (capturedHR > 150)) {
final = 0;
} else {
_local2 = 0;
while (_local2 < _local7.length) {
_local10 = _local10 + (_local7[_local2] * _local11[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < _local7.length) {
_local9 = _local9 + (_local7[_local2] * _local12[_local2]);
_local2++;
}
final = (_local9 / _local10) * 100;
}
if (final > 100) {
final = 100;
}
return(final);
}
var evidenceArray = new Array();
}
Symbol 280 MovieClip [__Packages.MemUsage] Frame 0
class MemUsage
{
var gameRoot, MBStartValue, MBText, MB_startDistance, increments, amountUsed, currentPos, textPos, Sleft;
function MemUsage (rootRef) {
gameRoot = rootRef;
}
function Initialize(init, textField, MBGradient) {
MBStartValue = init;
MBText = textField;
textField.text = init;
MB_startDistance = MBGradient._y;
}
function MBLeft(MBGradientPos, thisDeviceUsage) {
var _local2;
var _local4;
var _local8;
var _local7;
_local4 = 100;
increments = MB_startDistance / _local4;
amountUsed = thisDeviceUsage * increments;
currentPos = MBGradientPos._y - amountUsed;
MBGradientPos._y = currentPos;
var _local6 = new Color(MBGradientPos);
var _local5 = new Object();
_local8 = 100 / MB_startDistance;
_local7 = 100 - ((MB_startDistance - MBGradientPos._y) * _local8);
_local5 = {ra:"0", rb:"51", ga:"0", gb:"160", ba:"0", bb:"44", aa:_local7, ab:"0"};
_local6.setTransform(_local5);
textPos = textPos + ((amountUsed / MB_startDistance) * _local4);
_local2 = 0;
while (_local2 < gameRoot.equipInit.equipList.length) {
if (gameRoot.equipInit.equipList[_local2]._memUsage <= (100 - textPos)) {
Sleft = (100 - textPos) / gameRoot.equipInit.equipList[_local2]._memUsage;
gameRoot.equipInit.equipList[_local2]._shotsLeft = Sleft;
} else {
gameRoot.equipInit.equipList[_local2]._shotsLeft = 0;
}
_local2++;
}
return(textPos);
}
}
Symbol 281 MovieClip [__Packages.EquipBelt] Frame 0
class EquipBelt extends MovieClip
{
var gameRoot;
function EquipBelt (rootRef) {
super();
gameRoot = rootRef;
}
function CreateDevice(devName, picLink, viewfinder, zoom, memUsage, processTime, manuevre, stealth) {
var _local3;
var _local2 = new Object();
_local2._devName = devName;
_local2._picLink = picLink;
_local2._viewfinder = viewfinder;
_local2._zoom = zoom;
_local2._memUsage = memUsage;
_local2._processTime = processTime;
_local2._manuevre = manuevre;
_local2._stealth = stealth;
_local2._HRRate = _local2._stealth / 1000;
_local2._shotsLeft = Math.floor(100 / _local2._memUsage);
equipList.push(_local2);
}
function DupeMC(what, interval) {
var _local2;
var _local5;
var _local7;
var _local6;
var _local4 = new Object();
_local2 = 1;
while (_local2 <= equipList.length) {
if (_local2 == 1) {
what.selection1.gfxContainer.attachMovie(equipList[_local2 - 1]._picLink, "equipphoto" + _local2, _local2 + 10);
equipList[_local2 - 1]._instanceName = what.selection1;
what.selection1._equipTitle.text = equipList[_local2 - 1]._devName;
} else {
equipList[_local2 - 1]._instanceName = what.viewer2;
what.viewer2._equipTitle.text = equipList[_local2 - 1]._devName;
}
_local2++;
}
return(equipList);
}
function EquipTracker(mouseX, mouseY, zone, tracker, stats, fadeZone) {
var _local2;
var _local10;
var _local11;
var _local9;
var _local8;
var _local13;
if (fadeZone.hitTest(mouseX, mouseY, true)) {
if (tracker._alpha < 95) {
_local8 = 100;
_local10 = tracker._alpha;
_local11 = _local8 - _local10;
_local9 = _local11 / 10;
tracker._alpha = tracker._alpha + _local9;
}
} else if (tracker._alpha != 0) {
_local8 = 0;
_local10 = tracker._alpha;
_local11 = _local10 - _local8;
_local9 = _local11 / 10;
tracker._alpha = tracker._alpha - _local9;
}
_local2 = 0;
while (_local2 < equipList.length) {
var _local4 = new TextFormat();
if (equipList[_local2]._shotsLeft != 0) {
if (equipList[_local2]._instanceName.hitTest(mouseX, mouseY, true)) {
Mouse.show();
equipList[_local2]._instanceName.gotoAndStop("over");
if (_local2 != (equipList.length - 1)) {
tracker._x = tracker._x + ((equipList[_local2]._instanceName._x - tracker._x) * 0.25);
}
equipList[_local2]._instanceName._remainingShots.text = equipList[_local2]._shotsLeft;
if (equipList[_local2]._instanceName.infoCover.hitTest(mouseX, mouseY, true)) {
equipList[_local2]._instanceName.infoOver._visible = true;
_local4.color = 16777215 /* 0xFFFFFF */;
equipList[_local2]._instanceName._info.setTextFormat(_local4);
stats._infoTitle.text = equipList[_local2]._devName;
stats.bar_VF._width = equipList[_local2]._viewfinder;
stats.bar_Z._width = equipList[_local2]._zoom * 33;
stats.bar_MU._width = equipList[_local2]._memUsage * 3;
stats.bar_PT._width = equipList[_local2]._processTime * 4;
stats.bar_M._width = equipList[_local2]._manuevre;
stats.bar_S._width = equipList[_local2]._stealth;
stats._visible = true;
} else {
_local4.color = 11776947 /* 0xB3B3B3 */;
equipList[_local2]._instanceName._info.setTextFormat(_local4);
equipList[_local2]._instanceName.infoOver._visible = false;
stats._visible = false;
}
} else {
equipList[_local2]._instanceName.infoOver._visible = false;
equipList[_local2]._instanceName.gotoAndStop("off");
}
} else {
equipList[_local2]._instanceName._alpha = 30;
equipList[_local2]._overwith = true;
}
_local2++;
}
}
var equipList = new Array();
}
Symbol 282 MovieClip [__Packages.Time] Frame 0
class Time
{
var gameRoot, stopTime, globalInitTime, sp, il, it, st, th, codeString;
function Time (rootRef) {
gameRoot = rootRef;
}
function setStopTime() {
stopTime = getTimer();
}
function startGlobalTimer() {
globalInitTime = getTimer();
}
function getGameStopTime() {
return(stopTime - globalInitTime);
}
function getGlobalTime() {
return(getTimePassed(globalInitTime));
}
function getTimePassed(initTime) {
return(getTimer() - initTime);
}
function getVRInfo(sp, il, it, st, th) {
this.sp = sp;
this.il = il;
this.it = it;
this.st = st;
this.th = th;
}
function TestConnection(r, b) {
win = b;
reason = r;
stopAllSounds();
((win == true) ? (gameRoot.winSnd.start()) : (gameRoot.loseSnd.start()));
if (win == true) {
var _local2 = ((((((((("\"" + sp) + ",") + il) + ",") + it) + ",") + st) + ",") + th) + "\"";
codeString = ("javascript:document.getElementById('__ConnParamArray').value=" + _local2) + ";document.forms[0].submit();";
}
sendScores();
}
function sendScores() {
var _local2 = gameRoot.pointsO;
return("javascript:submitScores(pO.technology,pO.intuition,pO.intelligence,pO.speed,pO.stealth);");
}
var win = false;
var reason = "";
}
Symbol 283 MovieClip [__Packages.ImageTray] Frame 0
class ImageTray
{
var interval, subNum;
function ImageTray () {
}
function storeImage(what) {
var _local2;
var _local3;
var _local5;
var _local4;
_local2 = imageTray[imageTray.length - 1];
_local2._visible = true;
interval = 5;
if (imageTray.length > 9) {
_local4 = "";
subNum = 2;
} else {
_local4 = "0";
subNum = 1;
}
_local3 = _local2.duplicateMovieClip((_local2.substr(0, _local2.length - 2) + Number(_local4)) + imageTray.length, imageTray.length);
imageTray[imageTray.length] = _local3;
_local3._picNumber.text = imageTray.length;
_local3._visible = false;
if (imageTray.length % 2) {
_local3._x = _local3._x + (_local2._width + interval);
_local3._y = _local3._y - (_local2._height + interval);
what._width = what._width + (_local2._width + interval);
} else {
_local3._y = _local3._y + (_local2._height + interval);
}
}
var imageTray = new Array();
}
Symbol 238 MovieClip Frame 1
this.onRollOver = function () {
this.gotoAndStop("over");
};
this.onRollOut = (this.onReleaseOutside = (this.onDragOut = function () {
this.gotoAndStop("off");
}));
this.onPress = function () {
this.gotoAndStop("down");
};
this.onRelease = function () {
getURL ("javascript:reload();");
};
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 238 MovieClip Frame 3
stop();
Symbol 242 MovieClip Frame 1
this.onRollOver = function () {
this.gotoAndStop("over");
};
this.onRollOut = (this.onReleaseOutside = (this.onDragOut = function () {
this.gotoAndStop("off");
}));
this.onPress = function () {
this.gotoAndStop("down");
};
this.onRelease = function () {
getURL ("javascript:window.close();");
};
stop();
Symbol 242 MovieClip Frame 2
stop();
Symbol 242 MovieClip Frame 3
stop();
Symbol 272 MovieClip Frame 1
i = 0;
while (i <= 6) {
ranktemp = eval ("ranks.r" + i);
ranktemp._visible = false;
i++;
}
stop();
Symbol 272 MovieClip Frame 2
ranktemp = eval ("ranks.r" + _parent.ranking);
ranktemp._visible = true;
play();
Symbol 272 MovieClip Frame 11
stop();
Symbol 276 MovieClip Frame 1
stop();