Frame 12
stop();
Instance of Symbol 503 MovieClip in Frame 12
onClipEvent (enterFrame) {
checkProceed();
}
onClipEvent (load) {
function checkProceed() {
var _local1 = _parent.getBytesTotal();
var _local2 = _parent.getBytesLoaded();
if (_local1 > 200) {
if (_local2 < _local1) {
txt = ((("Loading " + Math.round(_local1 / 1024)) + " Kb. ") + Math.round((_local2 / _local1) * 100)) + "%";
pixel._width = Math.round((_local2 / _local1) * 100);
} else {
proceed();
}
}
}
function proceed() {
trace("preload done!");
_parent.gotoAndStop("backend init");
}
txt = "";
checkProceed();
}
Instance of Symbol 509 MovieClip "backend" in Frame 19
onClipEvent (data) {
trace("DATA received...");
callBack(dataType);
}
onClipEvent (load) {
function init() {
trace("initializing backend...");
_global.backend = this;
baseUrl = "http://www.sporkle.com/clients/maconomy/viralgame/scripts/";
loaded_tracker = _level0.loaded_tracker;
gamestarted_tracker = _level0.gamestarted_tracker;
sendtofriend_tracker = _level0.sendtofriend_tracker;
loadVariables ((loaded_tracker + "&osteloebe=") + Math.random(), dataignorer);
friendName = "";
friendEmail = "";
nbScoresOnList = 100;
hiscoreListType = "A";
myName = "TommySender";
friendName = "TommyModtager";
friendEmail = "tommy@titoonic.dk";
_parent.gotoAndPlay("intro");
}
function callback(mode) {
trace("***********************callback().. mode: " + mode);
switch (mode) {
case "getscores" :
if (result == "ERROR") {
trace("BACKEND: ERROR getting scores!!! : " + description);
}
AtodayScores = new Array();
AalltimeScores = new Array();
CtodayScores = new Array();
CalltimeScores = new Array();
var s = 0;
while (s < nbScoresOnList) {
var tmpName = eval ("Aallnickname" + s);
var tmpScore = Number(eval ("Aallscore" + s));
if (tmpScore <= 0) {
tmpName = "---";
}
AalltimeScores.push(new o_score(tmpName, tmpScore));
var tmpName = eval ("Atodaynickname" + s);
var tmpScore = Number(eval ("Atodayscore" + s));
if (tmpScore <= 0) {
tmpName = "---";
}
AtodayScores.push(new o_score(tmpName, tmpScore));
var tmpName = eval ("Callnickname" + s);
var tmpScore = Number(eval ("Callscore" + s));
if (tmpScore <= 0) {
tmpName = "---";
}
CalltimeScores.push(new o_score(tmpName, tmpScore));
var tmpName = eval ("Ctodaynickname" + s);
var tmpScore = Number(eval ("Ctodayscore" + s));
if (tmpScore <= 0) {
tmpName = "---";
}
CtodayScores.push(new o_score(tmpName, tmpScore));
s++;
}
_parent.gotScores = true;
return;
case "submitscore" :
if (result == "ok") {
_parent.submitMC.gotoAndStop("success");
} else {
trace("BACKEND: ERROR submitting score!!! : " + description);
_parent.submitMC.gotoAndStop("error");
_parent.submitMC.errorTxt = description;
}
return;
case "sendToFriend" :
if (result == "ok") {
_parent.sendtofriend.gotoAndStop("success");
} else {
trace("BACKEND: ERROR submitting score!!! : " + description);
_parent.sendtofriend.gotoAndStop("error");
_parent.sendtofriend.errorTxt = description;
}
return;
case "ERROR" :
return;
default :
trace(("CBCB------- callback().. mode was not reckognized!!!:'" + mode) + "'");
}
}
function configArrived() {
}
function getScores() {
_parent.gotScores = false;
dataType = "getscores";
var _local1 = "";
_local1 = _local1 + "today=2";
_local1 = _local1 + "&st=f";
_local1 = _local1 + ("&limit=" + nbScoresOnList);
_local1 = _local1 + ("&osteloebe=" + Math.random());
trace((baseUrl + "getscores.php?") + _local1);
loadVariables ((baseUrl + "getscores.php?") + _local1, this);
}
function submitScore(daScore, daName, daTitle, company) {
dataType = "submitscore";
lastInputName = daName;
daAll = (((daName + ", ") + daTitle) + ", ") + company;
cs = Math.round(((daScore * 4) / 7.5) + 0.5);
var _local1 = "";
_local1 = _local1 + ("score=" + daScore);
_local1 = _local1 + ("&nick=" + daAll);
_local1 = _local1 + ("&gameid=" + _parent.scenarioId);
_local1 = _local1 + ("&cs=" + cs);
_local1 = _local1 + "&st=f";
_local1 = _local1 + ("&osteloebe=" + Math.random());
trace((baseUrl + "setscore.php?") + _local1);
loadVariables ((baseUrl + "setscore.php?") + _local1, this);
}
function sendToFriend(fromFirstName, fromLastName, fromEmail, toFirstName, toLastName, toMail, toMessage) {
dataType = "sendToFriend";
myName = (fromFirstName + " ") + fromLastName;
myEmail = fromEmail;
friendName = (toFirstName + " ") + toLastName;
friendEmail = toMail;
friendMessage = toMessage;
dascore = Math.round(random(1000000));
cs = Math.round(((daScore * 4) / 7.5) + 0.5);
var _local1 = "";
_local1 = _local1 + ("to_email=" + friendEmail);
_local1 = _local1 + ("&to_name=" + friendName);
_local1 = _local1 + ("&from_name=" + myName);
_local1 = _local1 + ("&from_email=" + myEmail);
_local1 = _local1 + ("&from_message=" + friendMessage);
_local1 = _local1 + ("&cs=" + cs);
_local1 = _local1 + ("&score=" + dascore);
_local1 = _local1 + ("&osteloebe=" + Math.random());
trace((baseUrl + "invite.php?") + _local1);
loadVariables ((baseUrl + "invite.php?") + _local1, this);
}
function o_score(name, score, quote) {
this.name = name;
this.score = score;
}
init();
}
Instance of Symbol 512 MovieClip "sounds" in Frame 19
onClipEvent (load) {
function external_Initialize() {
_global.soundPlayer = this;
trace("--------------------------------------------SoundModule external initialize");
addSound("ambient", "ambient", "background");
addSound("pacman", "pacman", "effect");
addSound("btn", "btn", "effect");
addSound("bing", "bing", "effect");
addSound("cheer", "cash0", "effect");
addSound("cheer", "cash1", "effect");
addSound("cheer", "cash2", "effect");
setListenerRange(300);
setListenerPos(250, 0);
setSoundstopCallbackFunction(stopCallback, this);
}
function stopCallback(idName, repeat) {
trace("Sound stopped:" + idName);
switch (idName) {
case "level_start" :
return;
case "whistle_2" :
}
}
function addSound(idName, libName, type, group) {
_addSound(idName, libName, type, group);
}
function playSound(idName, x, y, keepTrack) {
_playSound(idName, x, y, keepTrack);
}
function stopSound(idName) {
_stopSound(idName);
}
function mute() {
_muteSounds();
}
function unMute() {
_unMuteSounds();
}
function setVol(name, value) {
_setVolumeVal(name, value);
}
function soundFade(name, destinationVolume, timeToUseMS) {
_soundFade(name, destinationVolume, timeToUseMS);
}
function setListenerPos(x, y) {
_setListenerPos(x, y);
}
function setListenerRange(range) {
_setListenerRange(range);
}
function setSoundPos(name, x, y) {
_setSoundPos(name, x, y);
}
function setSoundstopCallbackFunction(func, scope) {
_setSoundstopCallbackFunction(func, scope);
}
if (typeof(_parent.soundModuleLoaded) == "undefined") {
_parent.soundModuleLoaded = true;
loadMovie ("soundmodule.swf", this);
}
}
Frame 31
this.play();
Frame 35
stop();
Instance of Symbol 723 MovieClip "sendtofriend" in Frame 39
onClipEvent (load) {
this.tabEnabled = true;
rec_firstname = "";
rec_lastname = "";
rec_email = "";
}
Frame 40
backend.getScores();
soundPlayer.stopSound("ambient");
Frame 41
stop();
Frame 49
stop();
Instance of Symbol 732 MovieClip "sendtofriend" in Frame 49
onClipEvent (load) {
this.tabEnabled = true;
rec_firstname = "";
rec_lastname = "";
rec_email = "";
}
Instance of Symbol 832 MovieClip "game" in Frame 50
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
mainLoop();
}
onClipEvent (load) {
function initWorkers() {
trace("initializing workers...");
workers = new Array();
}
function createWorker(id) {
var nextId = workers.length;
workers[nextId] = new o_worker();
arena.attachMovie("ideabox", "ideaboxMc" + nextId, nextId + 200);
var tmpMc = eval ("arena.ideaboxMc" + nextId);
tmpMc.id = nextId;
workers[nextId].ideaBoxMc = tmpMc;
tmpMc.gotoAndStop("on");
arena.attachMovie("workeranim" + id, "workerMc" + nextId, nextId + 100);
var tmpMc = eval ("arena.workerMc" + nextId);
tmpMc._xscale = 90;
tmpMc._yscale = 90;
workers[nextId].mc = tmpMc;
tmpMc.id = nextId;
tmpMc.gotoAndStop("idle");
switch (id) {
case 0 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.7;
workers[nextId].turboProbability = 0.005;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 1 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.7;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 2 :
workers[nextId].ideaSpeedRange.min = 0.3;
workers[nextId].ideaSpeedRange.max = 0.9;
workers[nextId].turboProbability = 0.002;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 3 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.7;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 4 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.7;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 5 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.4;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 6 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.7;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 7 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.7;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 8 :
workers[nextId].ideaSpeedRange.min = 0.3;
workers[nextId].ideaSpeedRange.max = 0.9;
workers[nextId].turboProbability = 0.002;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 9 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.7;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 10 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.7;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
case 11 :
workers[nextId].ideaSpeedRange.min = 0.1;
workers[nextId].ideaSpeedRange.max = 0.4;
workers[nextId].turboProbability = 0.003;
workers[nextId].timeOnTimeProbability = 0.0025;
return;
default :
trace("!!!ERROR!!! unknown worker id!!!");
}
}
function initWorkersForTheDay() {
trace("initializing workers for the day...");
var w = 0;
while (w < workers.length) {
with (workers[w]) {
ideaSpeedTimeLeft = 0;
ideaBoxMc.gotoAndStop("on");
mc.gotoAndStop("idle");
state = 1;
}
w++;
}
}
function updateWorkers() {
var w = 0;
while (w < workers.length) {
with (workers[w]) {
if ((state >= 1) && (state <= 4)) {
ideaSpeedTimeLeft--;
if (ideaSpeedTimeLeft <= 0) {
var numRange = (ideaSpeedRange.max - ideaSpeedRange.min);
numRange = Math.random() * numRange;
ideaSpeed = ideaSpeedRange.min + numRange;
ideaSpeedTimeLeft = 75 + (Math.random() * 50);
}
if (state == 3) {
var turboModifier = 2;
} else {
var turboModifier = 1;
}
ideaProgress = ideaProgress + (ideaSpeed * turboModifier);
if (timeOnTime == false) {
if (timeOnTimeTimeLeft > 0) {
timeOnTimeTimeLeft--;
if (timeOnTimeTimeLeft <= 0) {
ideaBoxMc.timeOnTimeMc.gotoAndStop("off");
}
} else if (Math.random() < timeOnTimeProbability) {
timeOnTimeTimeLeft = 75;
ideaBoxMc.timeOnTimeMc.gotoAndStop("clickable");
}
}
if (ideaProgress > 100) {
if (timeOnTime == true) {
ideaProgress = 100;
nbLevelTimeOnTimes++;
} else {
ideaProgress = 0;
}
registerWorkerIdea(w);
}
ideaBoxMc.bar._xscale = ideaProgress;
if (state == 1) {
if (Math.random() < turboProbability) {
goTurbo(w);
}
} else if (state == 3) {
if (Math.random() < turboProbability) {
goAwayFromTurbo(w);
}
}
}
var tmpPos = new o_vector(mc.char.pos._x, mc.char.pos._y);
mc.char.localToGlobal(tmpPos);
pos.x = tmpPos.x;
pos.y = tmpPos.y;
ideaBoxMc._x = Math.max(30, Math.min(pos.x, 600));
ideaBoxMc._y = Math.max(200, pos.y);
mc.swapDepths(1000 + pos.y);
ideaBoxMc.swapDepths(2000 + pos.y);
}
w++;
}
}
function ideaBoxPressed(id) {
if (gameState == 0) {
registerWorkerIdea(id);
}
}
function registerWorkerIdea(id) {
if (workers[id].lastRegistryTime == -1) {
workers[id].lastRegistryTime = startTime;
}
var now = getTimer();
var timeSpent = (now - workers[id].lastRegistryTime);
if (workers[id].ideaProgress > 100) {
workers[id].ideaProgress = 100;
}
breakEven.progress = breakEven.progress + ((timeSpent * workers[id].ideaProgress) / 100);
statusbar.breakeven.bar._xscale = 100 * (breakEven.progress / breakEven.max);
addScore(Math.round((timeSpent * workers[id].ideaProgress) / 100));
if (workers[id].ideaProgress < 100) {
var reactionLabel = "reaction neutral";
} else {
var reactionLabel = "reaction celebrate";
soundPlayer.playSound("cheer");
}
if (_parent.scenarioId == 0) {
if (workers[id].ideaProgress <= 0) {
var rnd = Math.floor(Math.random() * 8);
if (rnd == 0) {
var reactionText = "Don\u2019t expect GREAT minds to remember time!";
} else if (rnd == 1) {
var reactionText = "My work actually wins awards!?";
} else if (rnd == 2) {
var reactionText = "Register time!??!??!";
} else if (rnd == 3) {
var reactionText = "That\u2019s so yesterday";
} else if (rnd == 4) {
var reactionText = "You'll get it Monday, promise!";
} else if (rnd == 5) {
var reactionText = "I am creative, not a clerk!";
} else if (rnd == 6) {
var reactionText = "Make it work on my iPod and I\u2019ll do it";
} else if (rnd == 7) {
var reactionText = "Fetch me a latte and I\u2019ll consider it";
}
} else if (workers[id].ideaProgress < 90) {
var rnd = Math.floor(Math.random() * 5);
if (rnd == 0) {
var reactionText = "My work is art!";
} else if (rnd == 1) {
var reactionText = "Artists need freedom!";
} else if (rnd == 2) {
var reactionText = "Other agencies do call me you know!";
} else if (rnd == 3) {
var reactionText = "Stop micro-managing me!";
} else if (rnd == 4) {
var reactionText = "Did Hemingway ever register time?";
}
} else if (workers[id].ideaProgress < 100) {
var rnd = Math.floor(Math.random() * 5);
if (rnd == 0) {
var reactionText = "Good copy is more important!";
} else if (rnd == 1) {
var reactionText = "You ought to thank me!";
} else if (rnd == 2) {
var reactionText = "Can\u2019t the receptionist do it next time?";
} else if (rnd == 3) {
var reactionText = "I want an assistant!";
} else if (rnd == 4) {
var reactionText = "Did Picasso ever register time?";
}
} else {
var reactionText = "Time \u2013 on Time!";
}
} else if (workers[id].ideaProgress <= 0) {
var rnd = Math.floor(Math.random() * 7);
if (rnd == 0) {
var reactionText = "This project plan is more important";
} else if (rnd == 1) {
var reactionText = "Project on deadline or time sheet, you decide!?";
} else if (rnd == 2) {
var reactionText = "You'll get it Monday, promise";
} else if (rnd == 3) {
var reactionText = "Hey, I have a PhD in Nanoscale Science\u2026.!?";
} else if (rnd == 4) {
var reactionText = "Did Einstein ever submit time sheets..?!";
} else if (rnd == 5) {
var reactionText = "I live on caffeine and you ask me for a time sheet!?";
} else if (rnd == 6) {
var reactionText = "Can\u2019t, I\u2019m in caffeine shock!";
}
} else if (workers[id].ideaProgress < 90) {
var rnd = Math.floor(Math.random() * 7);
if (rnd == 0) {
var reactionText = "Stop micro-managing me!";
} else if (rnd == 1) {
var reactionText = "I was just about to find that BUG!";
} else if (rnd == 2) {
var reactionText = "Quit bugging me and let me find one instead\u2026";
} else if (rnd == 3) {
var reactionText = "You\u2019re insulting my intelligence";
} else if (rnd == 4) {
var reactionText = "You just ruined the entire planning of my day!!";
} else if (rnd == 5) {
var reactionText = "Hey, I don\u2019t see that in my Gantt chart";
} else if (rnd == 6) {
var reactionText = "I sweat caffeine and you ask for my time sheet!!?";
}
} else if (workers[id].ideaProgress < 100) {
var rnd = Math.floor(Math.random() * 5);
if (rnd == 0) {
var reactionText = "Can I fly Business Class then?";
} else if (rnd == 1) {
var reactionText = "Maybe now you\u2019ll let me check my stock options!?";
} else if (rnd == 2) {
var reactionText = "My MBA did not prepare me for this!";
} else if (rnd == 3) {
var reactionText = "I need an assistant!";
} else if (rnd == 4) {
var reactionText = "I think I deserve that company car now";
}
} else {
var reactionText = "Time \u2013 on Time!";
}
with (workers[id]) {
ideaBoxMc.gotoAndStop("reaction");
ideaBoxMc.txt_reaction = reactionText;
ideaBoxMc.popup.gfx.txt_popup = Math.floor(ideaProgress) + "%";
reactionState = state;
reactionFrame = mc.char._currentframe;
mc.gotoAndStop(reactionLabel);
var tmpPos = new o_vector(mc.char.pos._x, mc.char.pos._y);
mc.char.localToGlobal(tmpPos);
mc.char._x = mc.char._x + ((pos.x - tmpPos.x) * (100 / mc._xscale));
mc.char._y = mc.char._y + ((pos.y - tmpPos.y) * (100 / mc._yscale));
state = 5;
lastRegistryTime = now;
ideaProgress = 0;
timeOnTime = false;
timeOnTimeTimeLeft = 0;
ideaBoxMc.timeOnTimeMc.gotoAndStop("off");
}
}
function timeOnTimePressed(id) {
var _local1 = id;
if (gameState == 0) {
workers[_local1].timeOnTime = true;
workers[_local1].ideaBoxMc.gotoAndStop("no click");
workers[_local1].ideaBoxMc.timeOnTimeMc.gotoAndStop("on");
}
}
function goTurbo(workerId) {
workers[workerId].state = 2;
workers[workerId].mc.gotoAndStop("to turbo");
}
function workerReachedTurbo(workerId) {
workers[workerId].state = 3;
workers[workerId].mc.gotoAndStop("turbo");
}
function goAwayFromTurbo(workerId) {
workers[workerId].state = 4;
workers[workerId].mc.gotoAndStop("from turbo");
}
function workerBackFromTurbo(workerId) {
workers[workerId].state = 1;
workers[workerId].mc.gotoAndStop("idle");
}
function reactionAnimDone(workerId) {
with (workers[workerId]) {
ideaBoxMc.gotoAndStop("on");
state = reactionState;
reactionState = -1;
switch (state) {
case 1 :
mc.gotoAndStop("idle");
break;
case 2 :
mc.gotoAndStop("to turbo");
break;
case 3 :
mc.gotoAndStop("turbo");
break;
case 4 :
mc.gotoAndStop("from turbo");
break;
case 6 :
mc.gotoAndStop("gone home");
break;
default :
trace("!!!ERROR!!! unknown worker state!!!" + state);
}
mc.char.gotoAndPlay(reactionFrame);
reactionFrame = -1;
}
}
function o_worker() {
var _local1 = this;
_local1.mc = mc;
_local1.ideaBoxMc = ideaBoxMc;
_local1.ideaSpeed = 0;
_local1.ideaProgress = 0;
_local1.ideaSpeedRange = new o_range(0, 0);
_local1.ideaSpeedTimeLeft = 0;
_local1.turboProbability = 0;
_local1.timeOnTime = false;
_local1.timeOnTimeProbability = 0;
_local1.timeOnTimeTimeLeft = 0;
_local1.lastRegistryTime = -1;
_local1.extraTime = 0;
_local1.reactionState = -1;
_local1.reactionFrame = -1;
_local1.pos = new o_vector(0, 0);
_local1.state = -1;
}
function o_breakEven() {
var _local1 = this;
_local1.barWidth = barWidth;
_local1.progress = 0;
_local1.target = 0;
_local1.max = 0;
}
function o_range(min, max) {
this.min = min;
this.max = max;
}
function o_vector(x, y) {
this.x = x;
this.y = y;
}
function initGame() {
trace("initializing game...");
loadVariables ((backend.gamestarted_tracker + "&osteloebe=") + Math.random(), backend.dataignorer);
timeOnTimeBonus = 10000;
breakEven = new o_breakEven();
breakEven.barWidth = statusbar.breakeven.bar._width;
score = 0;
statusbar.txt_scoreTotal = score;
initWorkers();
initLevel(1);
}
function initLevel(lvl) {
trace("initializing level... level:" + lvl);
curLevel = lvl;
levelScore = 0;
levelBonus = 0;
nbLevelTimeOnTimes = 0;
statusbar.txt_scoreLevel = levelScore;
scenarioCharOffset = _parent.scenarioId * 6;
switch (curLevel) {
case 1 :
createWorker(scenarioCharOffset + 0);
createWorker(scenarioCharOffset + 1);
levelTime = 30000;
breakEvenPercent = 50;
break;
case 2 :
createWorker(scenarioCharOffset + 4);
levelTime = 35000;
breakEvenPercent = 70;
break;
case 3 :
createWorker(scenarioCharOffset + 3);
levelTime = 40000;
breakEvenPercent = 75;
break;
case 4 :
createWorker(scenarioCharOffset + 2);
levelTime = 45000;
breakEvenPercent = 80;
break;
case 5 :
createWorker(scenarioCharOffset + 5);
levelTime = 50000;
breakEvenPercent = 85;
break;
default :
trace("level > 5!...no new workers are added");
levelTime = levelTime + 5000;
breakEvenPercent = breakEvenPercent + 5;
if (breakEvenPercent <= 98) {
break;
}
breakEvenPercent = 98;
}
var _local2 = 0;
var _local1 = 0;
while (_local1 < workers.length) {
_local2 = _local2 + workers[_local1].extraTime;
_local1++;
}
breakEven.progress = 0;
breakEven.max = levelTime * workers.length;
var _local3 = breakEven.max * (breakEvenPercent / 100);
_local3 = Math.floor(_local3 / 5000) * 5000;
breakEven.target = _local3;
breakEven.max = breakEven.max + _local2;
statusbar.breakeven.bar._xscale = 0;
statusbar.breakeven.pointer._x = breakEven.barWidth * (breakEven.target / breakEven.max);
statusbar.breakeven.txt_amount = "$" + breakEven.target;
initWorkersForTheDay();
startTime = getTimer();
_local1 = 0;
while (_local1 < workers.length) {
workers[_local1].lastRegistryTime = startTime - workers[_local1].extraTime;
_local1++;
}
gameState = 0;
}
function mainLoop() {
switch (gameState) {
case -1 :
return;
case 0 :
updateWorkers();
levelTimeSpent = getTimer() - startTime;
if (levelTimeSpent > levelTime) {
endLevel();
}
updateClock();
return;
case 1 :
return;
case 2 :
return;
case 3 :
levelAnimTime--;
if (levelAnimTime <= 0) {
endLevelAnimDone();
}
return;
default :
trace("!!!ERROR!!! unknown gameState");
}
}
function endLevel() {
trace("LEVEL ENDED!!! BreakEven:" + ((breakEven.progress / breakEven.max) * 100));
gameState = 3;
levelAnimTime = 50;
levelTimeSpent = levelTime;
var w = 0;
while (w < workers.length) {
with (workers[w]) {
state = 6;
if (timeOnTime == true) {
ideaProgress = 100;
nbLevelTimeOnTimes++;
registerWorkerIdea(w);
extraTime = 0;
} else {
extraTime = levelTimeSpent - (lastRegistryTime - startTime);
ideaBoxMc.gotoAndStop("reaction");
if (_parent.scenarioId == 0) {
var rnd = Math.floor(Math.random() * 6);
if (rnd == 0) {
var reactionText = "I am off to the award ceremony";
} else if (rnd == 1) {
var reactionText = "Let\u2019s go to the hottest place in town";
} else if (rnd == 2) {
var reactionText = "Let\u2019s go mingle with famous people";
} else if (rnd == 3) {
var reactionText = "I know this awesome sushi place";
} else if (rnd == 4) {
var reactionText = "My Rolex says it\u2019s time to go";
} else if (rnd == 5) {
var reactionText = "My flight to Cannes is in 2 hours";
}
} else {
var rnd = Math.floor(Math.random() * 4);
if (rnd == 0) {
var reactionText = "I am gonna see if my family still remember me";
} else if (rnd == 1) {
var reactionText = "I am off to the Mensa conference";
} else if (rnd == 2) {
var reactionText = "I am going home for some hobby coding";
} else if (rnd == 3) {
var reactionText = "Hey, I have foosball at home too";
}
}
ideaBoxMc.txt_reaction = reactionText;
mc.gotoAndStop("reaction neutral");
mc.char.stop();
var tmpPos = new o_vector(mc.char.pos._x, mc.char.pos._y);
mc.char.localToGlobal(tmpPos);
mc.char._x = mc.char._x + ((pos.x - tmpPos.x) * (100 / mc._xscale));
mc.char._y = mc.char._y + ((pos.y - tmpPos.y) * (100 / mc._yscale));
}
}
w++;
}
}
function endLevelAnimDone() {
trace("endLevelAnimDone...");
var w = 0;
while (w < workers.length) {
with (workers[w]) {
mc.gotoAndStop("gone home");
}
w++;
}
if (breakEven.progress >= breakEven.target) {
gameState = 1;
levelBonus = nbLevelTimeOnTimes * timeOnTimeBonus;
addScore(levelBonus);
endLevelMc.gotoAndPlay("good");
} else {
gameState = 2;
endLevelMc.gotoAndPlay("bad");
}
}
function levelEndedContinuePressed() {
trace("levelEndedContinuePressed...");
if (gameState == 1) {
initLevel(curLevel + 1);
} else {
gameOver();
}
}
function gameOver() {
trace("GAME OVER!!!");
_parent.gameScore = score;
_parent.gotoAndStop("game over");
}
function updateClock() {
var hourUnits = (levelTime / 8);
var _local1 = levelTimeSpent / hourUnits;
var _local2 = 240 + (_local1 * 30);
var _local3 = _local1 - Math.floor(_local1);
var minutesRotation = (360 * _local3);
statusbar.clock.armSmall._rotation = _local2;
statusbar.clock.armLarge._rotation = minutesRotation;
if ((_local1 > 7) && (gameState == 0)) {
statusbar.clock.gotoAndStop("panic");
} else {
statusbar.clock.gotoAndStop("normal");
}
}
function addScore(val) {
score = score + val;
levelScore = levelScore + val;
statusbar.txt_scoreTotal = score;
statusbar.txt_scoreLevel = levelScore;
}
gameState = -1;
}
Frame 57
stop();
game.initGame();
soundPlayer.playSound("ambient");
Instance of Symbol 19 MovieClip "pos" in Symbol 25 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 29 MovieClip Frame 98
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 30 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 48 MovieClip Frame 76
onClipEvent (load) {
this._visible = false;
}
Symbol 48 MovieClip Frame 90
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 49 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 55 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 65 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 65 MovieClip Frame 98
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 66 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 77 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 77 MovieClip Frame 76
onClipEvent (load) {
this._visible = false;
}
Symbol 77 MovieClip Frame 90
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 78 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 78 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 82 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 82 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 99 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 107 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 107 MovieClip Frame 10
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 107 MovieClip Frame 33
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 107 MovieClip Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 107 MovieClip Frame 88
onClipEvent (load) {
this._visible = false;
}
Symbol 107 MovieClip Frame 98
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 111 MovieClip Frame 12
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 111 MovieClip Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 111 MovieClip Frame 68
onClipEvent (load) {
this._visible = false;
}
Symbol 111 MovieClip Frame 95
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 112 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 118 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 118 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 132 MovieClip Frame 10
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 132 MovieClip Frame 33
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 132 MovieClip Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 132 MovieClip Frame 88
onClipEvent (load) {
this._visible = false;
}
Symbol 132 MovieClip Frame 98
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 134 MovieClip Frame 12
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 134 MovieClip Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 134 MovieClip Frame 68
onClipEvent (load) {
this._visible = false;
}
Symbol 134 MovieClip Frame 95
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 135 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 135 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 137 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 168 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 168 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 168 MovieClip Frame 17
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 168 MovieClip Frame 74
onClipEvent (load) {
this._visible = false;
}
Symbol 168 MovieClip Frame 93
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 170 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 170 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 170 MovieClip Frame 17
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 170 MovieClip Frame 71
onClipEvent (load) {
this._visible = false;
}
Symbol 170 MovieClip Frame 84
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 171 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 171 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 176 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 176 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 196 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 196 MovieClip Frame 17
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 196 MovieClip Frame 74
onClipEvent (load) {
this._visible = false;
}
Symbol 196 MovieClip Frame 93
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 198 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 198 MovieClip Frame 17
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 198 MovieClip Frame 71
onClipEvent (load) {
this._visible = false;
}
Symbol 198 MovieClip Frame 84
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 199 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 203 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 213 MovieClip Frame 19
gotoAndPlay ("loop");
Instance of Symbol 19 MovieClip "pos" in Symbol 227 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 227 MovieClip Frame 14
onClipEvent (load) {
this._visible = false;
}
Symbol 227 MovieClip Frame 105
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 229 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 229 MovieClip Frame 16
Symbol 229 MovieClip Frame 22
gotoAndPlay ("loop");
Symbol 229 MovieClip Frame 26
stop();
Instance of Symbol 19 MovieClip "pos" in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 230 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Symbol 230 MovieClip Frame 100
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 231 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Symbol 242 MovieClip Frame 18
gotoAndPlay ("loop");
Instance of Symbol 19 MovieClip "pos" in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 243 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 249 MovieClip Frame 19
gotoAndPlay ("loop");
Instance of Symbol 19 MovieClip "pos" in Symbol 252 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 252 MovieClip Frame 14
onClipEvent (load) {
this._visible = false;
}
Symbol 252 MovieClip Frame 105
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 254 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 254 MovieClip Frame 22
gotoAndPlay ("loop");
Symbol 254 MovieClip Frame 26
stop();
Instance of Symbol 19 MovieClip "pos" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 255 MovieClip Frame 5
onClipEvent (load) {
this._visible = false;
}
Symbol 255 MovieClip Frame 100
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 256 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Symbol 283 MovieClip Frame 25
gotoAndPlay ("loop");
Instance of Symbol 19 MovieClip "pos" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 284 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 289 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 289 MovieClip Frame 70
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 302 MovieClip Frame 53
stop();
Instance of Symbol 19 MovieClip "pos" in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 304 MovieClip Frame 63
onClipEvent (load) {
this._visible = false;
}
Symbol 304 MovieClip Frame 75
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 305 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 309 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 315 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 319 MovieClip Frame 70
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 320 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 327 MovieClip Frame 63
onClipEvent (load) {
this._visible = false;
}
Symbol 327 MovieClip Frame 75
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 328 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 328 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 330 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 336 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 340 MovieClip Frame 95
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 346 MovieClip Frame 67
onClipEvent (load) {
this._visible = false;
}
Symbol 346 MovieClip Frame 71
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 347 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 350 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 350 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 360 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 360 MovieClip Frame 95
_parent._parent._parent.workerReachedTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 363 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 19 MovieClip "pos" in Symbol 375 MovieClip Frame 67
onClipEvent (load) {
this._visible = false;
}
Symbol 375 MovieClip Frame 71
_parent._parent._parent.workerBackFromTurbo(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 376 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Instance of Symbol 19 MovieClip "pos" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 378 MovieClip Frame 75
_parent._parent._parent.reactionAnimDone(_parent.id);
Symbol 385 Button
on (press) {
_parent._parent.ideaBoxPressed(id);
}
Symbol 393 Button
on (press) {
soundPlayer.playSound("bing");
_parent._parent._parent.timeOnTimePressed(_parent.id);
}
Symbol 394 MovieClip Frame 1
stop();
Symbol 405 MovieClip [scorepopup] Frame 62
stop();
Symbol 412 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 413 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
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 416 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 416 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 420 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 3
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 413 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 420 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 416 MovieClip [FBoundingBoxSymbol] "boundingBox_mc" in Symbol 420 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (_parent.showBg == false) {
_visible = false;
}
}
Instance of Symbol 417 MovieClip "loadContent" in Symbol 420 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 421 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 425 MovieClip Frame 1
stop();
Symbol 432 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 439 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 446 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 447 MovieClip [UpArrow] Frame 1
stop();
this.onRollOver = function () {
gotoAndStop (4);
};
this.onRollOut = function () {
gotoAndStop (1);
};
Symbol 454 MovieClip Frame 1
stop();
Symbol 455 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 465 MovieClip Frame 1
stop();
Symbol 466 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 470 MovieClip Frame 1
stop();
Symbol 473 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 474 MovieClip [ScrollThumb] Frame 1
stop();
this.onRollOver = function () {
mc_sliderTop.highlight_mc.gotoAndStop(2);
mc_sliderMid.face_mc.gotoAndStop(2);
mc_sliderBot.shadow_mc.gotoAndStop(2);
};
this.onRollOut = function () {
mc_sliderTop.highlight_mc.gotoAndStop(1);
mc_sliderMid.face_mc.gotoAndStop(1);
mc_sliderBot.shadow_mc.gotoAndStop(1);
};
this.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
mc_sliderTop.highlight_mc.gotoAndStop(3);
mc_sliderMid.face_mc.gotoAndStop(3);
mc_sliderBot.shadow_mc.gotoAndStop(3);
}
};
this.onMouseUp = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
mc_sliderTop.highlight_mc.gotoAndStop(2);
mc_sliderMid.face_mc.gotoAndStop(2);
mc_sliderBot.shadow_mc.gotoAndStop(2);
} else {
mc_sliderTop.highlight_mc.gotoAndStop(1);
mc_sliderMid.face_mc.gotoAndStop(1);
mc_sliderBot.shadow_mc.gotoAndStop(1);
}
};
Symbol 475 MovieClip Frame 1
stop();
Symbol 481 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 487 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 494 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 495 MovieClip [DownArrow] Frame 1
stop();
this.onRollOver = function () {
gotoAndStop (4);
};
this.onRollOut = function () {
gotoAndStop (1);
};
Symbol 500 MovieClip Frame 11
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 1
Instance of Symbol 507 MovieClip "dataignorer" in Symbol 509 MovieClip Frame 1
onClipEvent (data) {
trace("DATA received in dataignorer...ignoring it!");
}
Symbol 521 Button
on (release) {
_parent.gotoAndPlay("skip");
}
Symbol 581 MovieClip Frame 343
stop();
_parent.play();
Symbol 587 Button
on (release) {
soundPlayer.playSound("btn");
labeltarget = "scenario";
this.play();
}
Symbol 589 Button
on (release) {
soundPlayer.playSound("btn");
labeltarget = "help";
this.play();
}
Symbol 591 Button
on (release) {
body = "";
soundPlayer.playSound("btn");
mailto = "Enter Email Address or Adresses";
subject = "You need to see this fun game: Catch time - on time";
body = body + "They will yell at you!%0A";
body = body + "You have to be fast to catch them%0A";
body = body + "Competitors are right now playing hard to dominate the ranks%0A";
body = body + "Time is up before you know it%0A";
body = body + "But you absolutely need to catch time \u2013 on time%0A%0A";
body = body + "Go to http://ww2.maconomy.com/event/content/mgame02.html%0A%0A";
body = body + "Your friend thought you might want to play catch time \u2013 on time. But if you do not, let them know.%0A";
mailSting = (((("mailto:" + mailto) + "?subject=") + subject) + "&body=") + body;
getURL (mailSting, "_self");
loadVariables ((backend.sendtofriend_tracker + "&osteloebe=") + Math.random(), backend.dataignorer);
}
Symbol 598 Button
on (release) {
soundPlayer.playSound("btn");
_parent.scenarioId = 0;
labeltarget = "game";
_parent.hiscoresmc.gotoAndPlay("animoff");
this.play();
}
Symbol 599 Button
on (release) {
soundPlayer.playSound("btn");
_parent.scenarioId = 1;
labeltarget = "game";
_parent.hiscoresmc.gotoAndPlay("animoff");
this.play();
}
Symbol 604 Button
on (release) {
soundPlayer.playSound("btn");
labeltarget = "splash";
this.play();
}
Symbol 607 Button
on (release) {
soundPlayer.playSound("btn");
labeltarget = "splash";
this.gotoAndPlay("help_out");
}
Symbol 617 Button
on (release) {
soundPlayer.playSound("btn");
nextFrame();
}
Symbol 632 Button
on (release) {
soundPlayer.playSound("btn");
prevFrame();
}
Symbol 640 MovieClip Frame 10
stop();
labeltarget = "game";
Symbol 640 MovieClip Frame 15
if (labeltarget == "send") {
this.stop();
_parent.sendtofriend.gotoAndPlay("animon");
_parent.hiscoresmc.gotoAndPlay("animoff");
} else {
this.gotoAndPlay(labeltarget);
}
Symbol 640 MovieClip Frame 29
stop();
Symbol 640 MovieClip Frame 35
if (labeltarget == "splash") {
this.gotoAndPlay(labeltarget);
} else {
this.stop();
_parent.gotoAndPlay(labeltarget);
}
Symbol 640 MovieClip Frame 45
stop();
Symbol 640 MovieClip Frame 46
stop();
Symbol 640 MovieClip Frame 47
stop();
Symbol 640 MovieClip Frame 55
this.gotoAndPlay(labeltarget);
Symbol 646 Button
on (press) {
_parent.jumpscroll();
}
Symbol 648 Button
on (press) {
_parent.dragstart();
}
on (release, releaseOutside) {
_parent.dragend();
}
Symbol 653 Button
on (press) {
_parent.stepscroll("plus");
}
Symbol 655 Button
on (press) {
_parent.stepscroll("minus");
}
Symbol 658 MovieClip Frame 1
function ini() {
if (orientation == "vertical") {
heightwidth = "._height";
xy = "._y";
}
if (orientation == "horisontal") {
heightwidth = "._width";
xy = "._x";
}
dragging = false;
dragoffset = 0;
scrollcliptop = eval (("_parent." add scrollarea) add xy);
scrollclipbot = scrollcliptop + ((eval (("_parent." add scrollclip) add heightwidth) - eval (("_parent." add scrollarea) add heightwidth)) * -1);
slider._height = (sliderareabox._height * eval (("_parent." add scrollarea) add heightwidth)) / eval (("_parent." add scrollclip) add heightwidth);
slidermax = sliderareabox._height - slider._height;
sliderx = sliderareabox._width / 2;
if (orientation == "vertical") {
setProperty("_parent." add scrollclip, _y , scrollcliptop);
}
if (orientation == "horisontal") {
setProperty("_parent." add scrollclip, _x , scrollcliptop);
}
slider._x = sliderx;
slider._y = 0;
if (eval (("_parent." add scrollclip) add heightwidth) < eval (("_parent." add scrollarea) add heightwidth)) {
if (ifSmallClip == "transparent") {
slider._visible = false;
}
if (ifSmallClip == "invisible") {
this._visible = false;
}
} else {
slider._visible = true;
}
}
function dragstart() {
dragging = true;
dragoffset = this._ymouse - slider._y;
}
function dragit() {
var _local1 = this;
if ((0 < (_local1._yMouse - dragoffset)) && ((_local1._yMouse - dragoffset) < slidermax)) {
slider._y = _local1._yMouse - dragoffset;
}
if ((_local1._yMouse - dragoffset) < 0) {
slider._y = 0;
}
if ((_local1._yMouse - dragoffset) > slidermax) {
slider._y = slidermax;
}
if (orientation == "vertical") {
setProperty("_parent." add scrollclip, _y , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
if (orientation == "horisontal") {
setProperty("_parent." add scrollclip, _x , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
}
function jumpscroll() {
if (this._yMouse < slider._y) {
slider._y = slider._y - Math.min(slider._height, slider._y);
}
if (this._yMouse > (slider._y + slider._height)) {
slider._y = slider._y + Math.min(slider._height, slidermax - slider._y);
}
if (orientation == "vertical") {
setProperty("_parent." add scrollclip, _y , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
if (orientation == "horisontal") {
setProperty("_parent." add scrollclip, _x , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
}
function stepscroll(plusminus) {
if (plusminus == "plus") {
slider._y = Math.min(slider._y + stepscrollunits, slidermax);
}
if (plusminus == "minus") {
slider._y = Math.max(slider._y - stepscrollunits, 0);
}
if (orientation == "vertical") {
setProperty("_parent." add scrollclip, _y , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
if (orientation == "horisontal") {
setProperty("_parent." add scrollclip, _x , ((scrollclipbot - scrollcliptop) * (slider._y / slidermax)) + scrollcliptop);
}
}
function dragend() {
dragging = false;
}
Instance of Symbol 650 MovieClip "slider" in Symbol 658 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.dragging == true) {
_parent.dragit();
}
}
Symbol 658 MovieClip Frame 2
stop();
ini();
Symbol 664 MovieClip Frame 2
init();
stop();
Symbol 666 Button
on (release) {
soundPlayer.playSound("btn");
_parent.HISCORETYPE = "Aday";
_parent.gotoAndPlay("showit");
}
Symbol 669 Button
on (release) {
soundPlayer.playSound("btn");
backend.hiscoreListType = "C";
_parent.HISCORETYPE = "Calltime";
_parent.gotoAndPlay("showit");
}
Symbol 671 Button
on (release) {
soundPlayer.playSound("btn");
_parent.HISCORETYPE = "Aalltime";
_parent.gotoAndPlay("showit");
}
Symbol 673 Button
on (release) {
soundPlayer.playSound("btn");
backend.hiscoreListType = "C";
_parent.HISCORETYPE = "Cday";
_parent.gotoAndPlay("showit");
}
Symbol 675 Button
on (release) {
soundPlayer.playSound("btn");
backend.hiscoreListType = "A";
_parent.HISCORETYPE = "Aalltime";
_parent.gotoAndPlay("showit");
}
Symbol 676 Button
on (release) {
soundPlayer.playSound("btn");
_parent.HISCORETYPE = "Calltime";
_parent.gotoAndPlay("showit");
}
Symbol 677 Button
on (release) {
soundPlayer.playSound("btn");
backend.hiscoreListType = "A";
_parent.HISCORETYPE = "Aday";
_parent.gotoAndPlay("showit");
}
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 17
stop();
Symbol 679 MovieClip Frame 1
var HISCORETYPE = (backend.hiscoreListType + "day");
Symbol 679 MovieClip Frame 3
gotoAndPlay ("skip");
Symbol 679 MovieClip Frame 19
if (_parent.gotScores) {
this.gotoAndPlay("showIt");
} else {
this.gotoAndPlay("wait");
}
Symbol 679 MovieClip Frame 22
this.play();
Instance of Symbol 658 MovieClip "sc" in Symbol 679 MovieClip Frame 23
//component parameters
onClipEvent (initialize) {
scrollclip = "dataloader";
scrollarea = "scrollarea1";
orientation = "vertical";
stepscrollunits = 1;
ifSmallClip = "transparent";
}
Instance of Symbol 664 MovieClip "dataloader" in Symbol 679 MovieClip Frame 23
onClipEvent (load) {
filllist();
}
Symbol 679 MovieClip Frame 25
trace("::::: fill list :::: HISCORETYPE = " + HISCORETYPE);
row = new Array();
var t = 0;
while (t < 30) {
removeMovieClip("dataloader.row" + t);
t++;
}
posi = 2;
if (HISCORETYPE == "Aday") {
var scores = _parent.backend.AtodayScores;
toggler.gotoAndStop("Atoday");
} else if (HISCORETYPE == "Aalltime") {
var scores = _parent.backend.AalltimeScores;
toggler.gotoAndStop("Aalltime");
} else if (HISCORETYPE == "Cday") {
var scores = _parent.backend.CtodayScores;
toggler.gotoAndStop("Ctoday");
} else {
var scores = _parent.backend.CalltimeScores;
toggler.gotoAndStop("Calltime");
}
var t = 0;
while (t < scores.length) {
dataloader.attachMovie("textrow", "row" + t, t);
row[t] = eval ("dataloader.row" + t);
row[t].number = t + 1;
row[t].name = scores[t].name;
row[t].score = scores[t].score;
row[t]._y = posi;
row[t].um._visible = false;
posi = posi + 15;
t++;
}
sc.ini();
stop();
Symbol 679 MovieClip Frame 30
_parent.challengerstats.gotoAndStop("off");
this.play();
Symbol 679 MovieClip Frame 41
_parent.startNewRound();
gotoAndStop (1);
Symbol 707 Button
on (release) {
this.gotoAndPlay("animoff");
}
Symbol 709 Button
on (release) {
if (this.from_firstname == "") {
this.errortxt = "type in your first name";
} else if (this.from_lastname == "") {
this.errortxt = "type in your last name";
} else if (this.from_email == "") {
this.errortxt = "type in your email";
} else if (this.rec_firstname == "") {
this.errortxt = "type in a first name";
} else if (this.rec_lastname == "") {
this.errortxt = "type in a last name";
} else if (this.rec_email == "") {
this.errortxt = "type in a email";
} else {
rec_message = escape(this.rec_message);
trace("rec_message: " + rec_message);
backend.sendToFriend(this.from_firstname, this.from_lastname, this.from_email, this.rec_firstname, this.rec_lastname, this.rec_email, rec_message);
this.myLocalSO.data.firstname = this.from_firstname;
this.myLocalSO.data.lastname = this.from_lastname;
this.myLocalSO.data.email = this.from_email;
this.gotoAndStop("wait");
}
}
Symbol 712 Button
on (release) {
this.gotoAndPlay("animoff");
}
Symbol 714 Button
on (release) {
this.gotoAndPlay("type");
}
Symbol 716 MovieClip Frame 1
var txt = "Wait.";
Symbol 716 MovieClip Frame 2
txt = "Wait.";
Symbol 716 MovieClip Frame 3
txt = "Wait..";
Symbol 716 MovieClip Frame 4
txt = "Wait...";
Symbol 716 MovieClip Frame 5
txt = "Wait..";
Symbol 716 MovieClip Frame 6
txt = "Wait.";
Symbol 721 Button
on (release) {
this.gotoAndPlay("type");
}
Symbol 723 MovieClip Frame 1
stop();
Symbol 723 MovieClip Frame 15
errortxt = "";
stop();
Selection.setFocus("inputfield0");
inputfield0.tabIndex = 0;
inputfield1.tabIndex = 1;
inputfield2.tabIndex = 2;
inputfield3.tabIndex = 3;
inputfield4.tabIndex = 4;
inputfield5.tabIndex = 5;
inputfield6.tabIndex = 6;
myLocalSO = sharedobject.getLocal("flashcookieSend", "/");
if (myLocalSO.data.firstname == null) {
from_firstname = "";
from_lastname = "";
from_email = "";
} else {
from_firstname = myLocalSO.data.firstname;
from_lastname = myLocalSO.data.lastname;
from_email = myLocalSO.data.email;
}
Symbol 723 MovieClip Frame 21
rec_name = backend.friendName;
stop();
Symbol 723 MovieClip Frame 29
stop();
Symbol 723 MovieClip Frame 36
stop();
Symbol 723 MovieClip Frame 48
_parent.splash.gotoAndPlay("splash");
_parent.hiscoresmc.gotoAndPlay("animon");
Symbol 727 Button
on (release) {
soundPlayer.playSound("btn");
this.gotoAndPlay("animoff");
}
Symbol 732 MovieClip Frame 13
if (_parent.scenarioId == 0) {
} else {
this.gotoAndPlay("consultancy");
}
Symbol 732 MovieClip Frame 15
errortxt = "";
stop();
Selection.setFocus("inputfield0");
inputfield0.tabIndex = 0;
inputfield1.tabIndex = 1;
inputfield2.tabIndex = 2;
inputfield3.tabIndex = 3;
inputfield4.tabIndex = 4;
inputfield5.tabIndex = 5;
inputfield6.tabIndex = 6;
myLocalSO = sharedobject.getLocal("flashcookieSend", "/");
if (myLocalSO.data.firstname == null) {
from_firstname = "";
from_lastname = "";
from_email = "";
} else {
from_firstname = myLocalSO.data.firstname;
from_lastname = myLocalSO.data.lastname;
from_email = myLocalSO.data.email;
}
Symbol 732 MovieClip Frame 22
stop();
Symbol 732 MovieClip Frame 38
stop();
_parent.play();
Symbol 752 MovieClip Frame 1
stop();
Symbol 752 MovieClip Frame 9
stop();
Symbol 752 MovieClip Frame 18
gotoAndStop (1);
Instance of Symbol 566 MovieClip in Symbol 783 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1230);
}
Instance of Symbol 576 MovieClip in Symbol 783 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1160);
}
Instance of Symbol 770 MovieClip "ol" in Symbol 783 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(10000);
}
Instance of Symbol 782 MovieClip in Symbol 783 MovieClip Frame 2
onClipEvent (load) {
this.swapDepths(1140);
}
Symbol 798 MovieClip Frame 1
stop();
Symbol 818 Button
on (release) {
soundPlayer.playSound("btn");
soundPlayer.unMute("ambient");
play();
}
Symbol 825 Button
on (release) {
soundPlayer.playSound("btn");
play();
}
Symbol 828 Button
on (release) {
getURL ("http://www.timeontime.maconomy.com", "_blank");
}
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 7
txt_bonus = (((_parent.nbLevelTimeOnTimes + " x ") + _parent.timeOnTimeBonus) + " : $") + _parent.levelBonus;
Instance of Symbol 815 MovieClip "blocker" in Symbol 831 MovieClip Frame 7
onClipEvent (load) {
this.block.useHandCursor = false;
}
Symbol 831 MovieClip Frame 10
stop();
soundPlayer.mute("ambient");
Symbol 831 MovieClip Frame 11
_parent.levelEndedContinuePressed();
Symbol 831 MovieClip Frame 14
this.gotoAndStop("off");
Symbol 831 MovieClip Frame 32
soundPlayer.stopSound("ambient");
if (_parent._parent.scenarioId == 0) {
this.gotoAndStop("agency");
} else {
this.gotoAndStop("consultancy");
}
Symbol 831 MovieClip Frame 39
_parent.levelEndedContinuePressed();
this.gotoAndStop("off");
Symbol 831 MovieClip Frame 47
_parent.levelEndedContinuePressed();
this.gotoAndStop("off");
Instance of Symbol 783 MovieClip "arena" in Symbol 832 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent._parent.scenarioId + 1);
}
Symbol 834 Button
on (release) {
soundPlayer.playSound("btn");
this.gotoAndStop("splash");
}
Symbol 853 Button
on (release) {
soundPlayer.playSound("btn");
if (nickname == "") {
txt_warning = "You must type a name first!";
} else {
_parent.userSO.data.stats.numGames++;
_parent.backend.submitScore(_parent.gameScore, nickname, title, company);
myLocalSO.data.name = nickname;
myLocalSO.data.title = title;
myLocalSO.data.company = company;
gotoAndStop ("wait");
}
}
Symbol 864 MovieClip Frame 3
gotoAndPlay ("skip");
Symbol 864 MovieClip Frame 28
trace("Checking score....");
txt_warning = "";
myLocalSO = sharedobject.getLocal("flashcookieHS", "/");
if (myLocalSO.data.name == null) {
nickname = "";
title = "";
company = "";
} else {
nickname = myLocalSO.data.name;
title = myLocalSO.data.title;
company = myLocalSO.data.company;
}
stop();
Instance of Symbol 841 MovieClip in Symbol 864 MovieClip Frame 28
onClipEvent (load) {
running = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(13) && (running == true)) {
if (_parent.nickname == "") {
_parent.txt_warning = "You must type a name first!";
} else {
running = true;
_parent._parent.backend.submitScore(_parent.gameScore, nickname);
_parent.gotoAndStop("wait");
}
}
}
Instance of Symbol 849 MovieClip in Symbol 864 MovieClip Frame 28
onClipEvent (load) {
running = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(13) && (running == true)) {
running = false;
if (_parent.nickname == "") {
trace("false, ingen navn");
_parent.txt_warning = "You must type a name first!";
running = true;
} else {
trace("submitter");
_parent._parent.backend.submitScore(_parent._parent.gameScore, _parent.nickname);
_parent.gotoAndStop("wait");
}
}
}
Symbol 864 MovieClip Frame 55
stop();
trace("at 'showresults' label");
Instance of Symbol 861 MovieClip in Symbol 864 MovieClip Frame 55
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 20) {
_parent.gotoAndPlay("animoff");
}
}
Symbol 864 MovieClip Frame 83
_parent.gotoAndStop("splash");