Frame 1
_global.masterdomain = "media.areyouadigitalgenius.com";
_global.masterurl = "http://" + _global.masterdomain;
_global.assetsurl = _global.masterurl + "/games/";
_global.scoreurl = "http://areyouadigitalgenius.com";
backendUrl = "http://highscores.areyouadigitalgenius.com/";
System.security.allowDomain(_global.assetsurl, _global.masterurl);
_global.mcClick = 868;
_global.dev = true;
_global.master = this;
_global.root = this;
_global.gameMode = "online";
_global.basePath = (_global.root.basePath ? (_global.root.basePath) : "");
if (!kv_v) {
kv_v = {c:586, a:0, da:["distralytics.com", "5.n.distralytics.com", "distralytics.co.uk"]};
kv_v.i = 0;
while (kv_v.i < kv_v.da.length) {
System.security.allowDomain(kv_v.da[kv_v.i], (kv_v.c + ".c.") + kv_v.da[kv_v.i], "*." + kv_v.da[kv_v.i]);
kv_v.i++;
}
kv_v.lc = function () {
var _local1 = ((("http://" + kv_v.c) + ".c.") + kv_v.da[kv_v.a % kv_v.da.length]) + kv_v.lurl;
System.security.allowDomain(_local1);
kv_v.l_mcl.loadClip(_local1, kv_v.t_mc);
};
kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_v.lurl = "/control/tracking/tracker.swf?r=" + Math.floor(Math.random() * 10000);
kv_v.t_mc = createEmptyMovieClip("kv_tracker", -16734);
kv_v.l_mcl = new MovieClipLoader();
kv_v.mcl_l = {onLoadError:function () {
kv_v.a++;
kv_v.lc();
}, onLoadStart:function (m) {
System.security.allowDomain(m._url);
}};
kv_v.l_mcl.addListener(kv_v.mcl_l);
kv_v.lc();
}
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
_global.isMaster = _root._url.indexOf(_global.masterdomain) >= 0;
_global.domain = ((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]));
_global.playerVersion = Number(getVersion().substr(getVersion().indexOf(" ") + 1).split(",")[0]);
_global.movieVersion = (_root.getSWFVersion ? (_root.getSWFVersion()) : 8);
_global.ori_dom = (_root.ori_dom ? (_root.ori_dom) : (domain));
System.security.allowDomain(_global.masterdomain);
var game_version = 1;
if (!testMode) {
stop();
if (playerVersion < 8) {
loadMovie (_global.assetsurl + "error.swf", _root);
} else if (isMaster) {
play();
} else {
var vc_lv = new LoadVars();
vc_lv.onLoad = function (success) {
clearInterval(tOIntId);
delete tOIntId;
if (success) {
if (Number(vc_lv.v) > game_version) {
loadMovie ((_global.assetsurl + "game.swf?ori_dom=") + ori_dom, _root);
} else {
play();
}
} else {
play();
}
delete vc_lv;
};
tOIntId = setInterval(timeout, 2000);
vc_lv.load("http://www.memecounter.com/comms/v.php?v=1&cId=586");
}
}
kvEvent_mc.onMouseDown = function () {
if (this.hitTest(_global.root._xmouse, _global.root._ymouse)) {
_global.root.kvClick(972);
}
};
sponsor_btn.onMouseDown = function () {
if (this.hitTest(_global.root._xmouse, _global.root._ymouse)) {
_global.root.kvClick(971);
}
};
Frame 2
tabIndex = 1;
stop();
Frame 4
goodCol = new RGB(0, 166, 0);
neutralCol = new RGB(0, 0, 0);
badCol = new RGB(255, 0, 0);
_global.root.plays = 0;
_global.sndMan = new SoundManager(this.createEmptyMovieClip("snd_cont", this.getNextHighestDepth()));
Frame 5
_global.lang = {eng:{}};
lang.eng.conn_err = "Unable to connect to server - retrying: ";
lang.eng.conn_fail = "Unable to connect to server - max. retries";
lang.eng.load_err = "Unable to connect to server - retrying:";
lang.eng.load_failed = "Unable to connect to server - max. retries";
lang.eng.memberNotFound = "Member not found";
_global.TinyTrials = {};
TinyTrials.GAME = "game";
TinyTrials.END = "game";
TinyTrials.CURSOR = "cursor";
TinyTrials.KEYBOARD = "keyboard";
TinyTrials.MOUSE = "mouse";
TinyTrials.BOTH = "both";
TinyTrials.TIME_UP = "timeUp";
TinyTrials.WIN = "win";
TinyTrials.WELL_DONE = "wellDone";
TinyTrials.ROUND_OVER = "roundOver";
TinyTrials.CONN_PREFIX = "_TT";
TinyTrials.MASTER = "_master";
TinyTrials.PLAY_CONTROL_ANIM = "playControlAnim";
TinyTrials.END_GAME = "endGame";
TinyTrials.PLAY_SOUND = "playSound";
TinyTrials.MUTE_MUSIC = "muteMusic";
games = [];
games[games.length] = {name:"Controllers", type:"d", path:"controllers.swf", gid:1, best:0, variant:4, score:0};
games[games.length] = {name:"All the Same", type:"d", path:"all_the_same.swf", gid:2, best:0, variant:5, score:0};
games[games.length] = {name:"Bezier Golf", type:"d", path:"bezier_golf.swf", gid:3, best:0, variant:5, score:0};
games[games.length] = {name:"Weights", type:"d", path:"weights.swf", gid:4, best:0, variant:12, score:0};
games[games.length] = {name:"Error Codes", type:"d", path:"error_codes.swf", gid:5, best:0, variant:6, score:0};
games[games.length] = {name:"Bounce to the Exit", type:"a", path:"bounce_to_the_exit.swf", gid:6, best:0, variant:6, score:0};
games[games.length] = {name:"Which Logo", type:"d", path:"which_logo.swf", gid:7, best:0, variant:3, score:0};
games[games.length] = {name:"Algebra", type:"d", path:"algebra.swf", gid:8, best:0, variant:3, score:0};
games[games.length] = {name:"Dragon Drop", type:"d", path:"dragon_drop.swf", gid:9, best:0, variant:3, score:0};
games[games.length] = {name:"Consoles", type:"d", path:"consoles.swf", gid:10, best:0, variant:5, score:0};
games[games.length] = {name:"Missing Operators", type:"d", path:"missing_operators.swf", gid:11, best:0, variant:3, score:0};
games[games.length] = {name:"Multiple Choice", type:"c", path:"multiple_choice.swf", gid:12, best:0, variant:6, score:0};
games[games.length] = {name:"Spam Filter", type:"d", path:"spam_filter.swf", gid:13, best:0, variant:1, score:0};
games[games.length] = {name:"Spot the Website", type:"d", path:"spot_the_website.swf", gid:14, best:0, variant:3, score:0};
games[games.length] = {name:"Robot Builder", type:"d", path:"robot_builder.swf", gid:15, best:0, variant:3, score:0};
games[games.length] = {name:"Meme Dating", type:"d", path:"meme_dating.swf", gid:16, best:0, variant:5, score:0};
games[games.length] = {name:"Match HTML", type:"d", path:"match_html.swf", gid:17, best:0, variant:1, score:0};
games[games.length] = {name:"Maths-teroids", type:"d", path:"mathsteroids.swf", gid:18, best:0, variant:1, score:0};
roundsPerGame = games.length;
gameParTime = 900;
gameTimeLimit = gameParTime * 1000;
skipTimePenalty = 30000;
if (!variantsPlayed) {
variantsPlayed = [];
}
master_lc = new LocalConnection();
master_lc.allowDomain = function (sendingDomain) {
return(true);
};
masterId = 0;
while (!((connRes = master_lc.connect(TinyTrials.MASTER + masterId)))) {
masterId++;
}
traceToConsole((("master connected: " + masterId) + ", ") + connRes);
master_lc.traceToConsole = function (vars) {
traceToConsole(vars);
};
master_lc.initMinigame = function (initedGameNum, endPauseTime, hasMusic, inputType) {
traceToConsole("initing minigame: " + arguments);
games[initedGameNum].endPauseTime = between(endPauseTime, 3, 6, 3);
games[initedGameNum].hasMusic = Boolean(hasMusic);
if (((inputType == TinyTrials.CURSOR) || (inputType == TinyTrials.KEYBOARD)) || (inputType == TinyTrials.MOUSE)) {
games[initedGameNum].inputType = inputType;
} else {
games[initedGameNum].inputType = TinyTrials.BOTH;
}
};
master_lc.playSound = function (snd, loops) {
playSound(snd, loops);
};
master_lc.endGame = function (score, reason) {
if (roundActive) {
switch (reason) {
case TinyTrials.TIME_UP :
case TinyTrials.WIN :
case TinyTrials.WELL_DONE :
break;
default :
reason = TinyTrials.ROUND_OVER;
}
finishedGameScore = between(score, 1, 100, 1);
traceToConsole((("Master: endGame: " + finishedGameScore) + ", ") + reason);
delete roundActive;
gui_mc.endGameDisplay.showMsg(reason);
gui_mc.skipGame.gotoAndPlay("off");
}
};
master_lc.bannerClicked = function () {
};
master_lc.muteMusic = function () {
fadeMusic(-2, 0);
};
function beginGame() {
gui_mc.loader._visible = false;
gamesPlayed++;
game._x = 0;
game._y = 0;
yesSnd = Rand.value("yes1", "yes2", "yes3");
gui_mc.screenGui_mc.bgTint.gotoAndStop("off");
var _local2 = getGameVariant(roundNumber);
var _local3 = master_lc.send(getCurGameConnName(), "startGame", _local2);
playSound("music", 9999999);
traceToConsole((("beginGame: " + roundNumber) + ", ") + _local3);
roundActive = true;
showGiveUp();
if ((roundNumber % 3) == 0) {
_root.kvEvent(2062 + Math.floor(roundNumber / 3));
}
}
function getGameVariant(n) {
if (games[roundNumber].variant > 1) {
var _local1;
var _local3 = games[roundNumber].variant;
var _local2;
if (!variantsPlayed[n]) {
_local2 = (variantsPlayed[n] = []);
_local1 = 1;
while (_local1 <= _local3) {
_local2[_local1] = 0;
_local1++;
}
} else {
_local2 = variantsPlayed[n];
}
var _local4 = Number.MAX_VALUE;
_local1 = 1;
while (_local1 <= _local3) {
if (_local2[_local1] < _local4) {
_local4 = _local2[_local1];
}
_local1++;
}
var _local5 = [];
_local1 = 1;
while (_local1 <= _local3) {
if (_local2[_local1] == _local4) {
_local5.push(_local1);
}
_local1++;
}
Rand.shuffle(_local5);
_local2[_local5[0]]++;
return(_local5[0]);
}
return(1);
}
function showGiveUp() {
gui_mc.skipGame.play();
}
function giveUpGame() {
if (roundActive) {
elapsedTime = elapsedTime + skipTimePenalty;
master_lc.endGame(1, TinyTrials.ROUND_OVER);
_root.kvEvent(2046);
}
}
function getCurGameConnName() {
return(((TinyTrials.CONN_PREFIX + roundNumber) + "_") + masterId);
}
function saveScoreToServer(gid, variant, group, score) {
var _local2 = new LoadVars();
_local2.action = "submit_score";
_local2.gid = gid;
_local2.variant = variant;
_local2.group = group;
_local2.score = score;
_local2.rand = Math.random();
if (gid > 0) {
_global.root.isScoresLoaded = false;
_local2.sendAndLoad(_global.scoreurl + "/comms/", _local2, "POST");
_local2.onLoad = onSaveScoreToServer;
} else {
_global.root.savedTimes = false;
_local2.sendAndLoad(_global.scoreurl + "/comms/", _local2, "POST");
_local2.onLoad = onSaveTimeToServer;
}
}
function onSaveTimeToServer(success) {
if (success) {
_global.root.groupTimes = json_decode(this.r);
_global.root.groupTimes[5] = _global.root.finalTime;
_global.root.finalScores = getFinalScores();
_global.root.finalScore = _global.root.finalScores[5];
if (_global.root.pId) {
updateScore();
} else {
createUser();
}
_global.root.savedTimes = true;
}
}
function onSaveScoreToServer(success) {
if (success) {
var _local5 = json_decode(this.r);
var _local4 = roundNumber - 1;
allScores[_local4] = [];
_local5[5] = _global.root.roundScores[_local4];
var _local3 = 1;
while (_local3 <= 5) {
if (_local5[_local3]) {
allScores[_local4][_local3] = _local5[_local3];
} else {
allScores[_local4][_local3] = 1;
}
_local3++;
}
gui_mc.graph.update(_local4);
_global.root.isScoresLoaded = true;
}
}
function goToEndPage() {
traceToConsole("Master: goToEndPage");
master_lc.send(getCurGameConnName(), "goToEndPage");
var _local4 = Math.floor(finishedGameScore);
games[roundNumber].score = Math.max(_local4, games[roundNumber].score);
roundScores.push(_local4);
var _local3 = 0;
var _local2 = 0;
while (_local2 < roundScores.length) {
_local3 = _local3 + roundScores[_local2];
_local2++;
}
_local3 = _local3 / roundScores.length;
gui_mc.score_txt.text = Math.round(_local3) + "%";
if (_global.gameMode == "online") {
tries = 0;
saveScoreToServer(games[roundNumber].gid, games[roundNumber].variant, playerAgeGroup, _local4);
} else {
isScoresLoaded = true;
}
endedGame = game;
starsEndTime = getTimer() + (games[roundNumber].endPauseTime * 1000);
scoreFrame = "star" + Math.ceil(_local4 / 20);
gui_mc.screenGui_mc.gotoAndStop("gameEnd");
gui_mc.screenGui_mc.stars_mc.gotoAndStop(scoreFrame);
gui_mc.screenGui_mc.finalScore_s_txt.text = (gui_mc.screenGui_mc.finalScore_txt.text = ("+" + _local4) + "%");
gui_mc.screenGui_mc.bgTint.gotoAndStop("on");
roundNumber++;
if (roundNumber < roundsPerGame) {
game = loading;
if (loaded == true) {
loading = loadGame((roundNumber + 1) % games.length);
}
}
}
function finishedGame() {
load_mcl.unloadClip(endedGame);
if (roundNumber < roundsPerGame) {
countdown();
} else {
gameOver();
}
}
function between(n, min, max, def) {
return((isNaN(n) ? (def) : (Math.max(min, Math.min(n, max)))));
}
function each(obj) {
var _local2 = "";
for (var _local3 in obj) {
_local2 = _local2 + (((_local3 + ": ") + obj[_local3]) + ",\n");
}
return(_local2);
}
function goToComp() {
getURL ("http://highscores.killerviral.com/enter/digital-genius/", "_blank");
_root.kvClick(970);
}
function goToListen2U() {
getURL ("http://cli.gs/mmQNbQ", "_blank");
_root.kvClick(971);
}
function goToTM() {
getURL ("http://tinymania.com", "_blank");
_root.kvClick(972);
}
_global.t = function () {
traceToConsole(arguments);
};
_global.json_encode = function (v) {
var _local1 = new JSON();
return(_local1.stringify(v));
};
_global.json_decode = function (str) {
var _local1 = new JSON();
return(_local1.parse(str));
};
function createUser() {
var _local2 = new LoadVars();
_local2.lId = 1;
_local2.name = _global.root.playerName;
_local2.age = _global.root.playerAgeGroup;
_local2.sex = _global.root.playerGender;
_local2.fanOf = 0;
_local2.score = _global.root.finalScore;
_local2.r = Math.random();
submitAndShowThrobber(_local2);
}
function updateScore() {
var _local2 = new LoadVars();
_local2.lId = 1;
_local2.pId = _global.root.pId;
_local2.score = _global.root.submitScore;
_local2.r = Math.random();
submitAndShowThrobber(_local2);
}
function submitAndShowThrobber(lv) {
lv.onLoad = scoreSubmitted;
lv.sendAndLoad(_global.root.backendUrl + "comms/submitscore.comms.php", lv, "GET");
}
function scoreSubmitted(success) {
if (success) {
if (this.result == "success") {
if (!_global.root.pId) {
_global.root.pId = Number(this.pId);
}
}
}
}
function startGames() {
ghost_played = false;
gamesPlayed = 0;
lastTime = getTimer();
elapsedTime = 0;
roundNumber = 0;
roundScores = [];
allScores = [];
game = (loading = loadGame(0));
gui_mc.icon.gotoAndStop(_global.root.playerAgeGroup + 1);
onEnterFrame = gameLoop;
}
function gameOver() {
_global.root.finalTime = Math.round(elapsedTime / 1000);
startPage.changePage("post game");
}
function getFinalScores() {
var _local4 = [];
var _local3;
var _local2;
_local2 = 1;
while (_local2 <= 5) {
_local4[_local2] = 0;
_local3 = 0;
while (_local3 <= roundsPerGame) {
_local4[_local2] = _local4[_local2] + (isNaN(Number(allScores[_local3][_local2])) ? 1 : (Number(allScores[_local3][_local2])));
_local3++;
}
_local4[_local2] = _local4[_local2] / (roundsPerGame + 1);
_local4[_local2] = Math.min(100, _local4[_local2]);
if (_local2 == 5) {
_global.root.displayOverallGameScore = _local4[_local2];
}
var _local5 = getTimeBonus(_global.root.groupTimes[_local2]);
if (_local2 == 5) {
_global.root.displayPlayerTimeBonus = _local5;
}
_local4[_local2] = _local4[_local2] + _local5;
_local4[_local2] = Math.round(_local4[_local2]);
_local2++;
}
return(_local4);
}
function getTimeBonus(t) {
t = (isNaN(t) ? 0 : (t));
var _local2 = (gameParTime - t) / 6;
return(Math.min(100, Math.max(_local2, 0)));
}
function gameLoop() {
var _local2 = getTimer();
var _local4 = _local2 - lastTime;
lastTime = _local2;
elapsedTime = elapsedTime + _local4;
var _local1 = Math.floor((elapsedTime - gameTimeLimit) / 1000);
var _local3 = Format.zerofill(Math.abs(_local1 % 60), 2);
var _local5 = Number(String(_local1 / 60).split(".")[0]);
gui_mc.time_txt.text = (_local5 + ":") + _local3;
if (_local1 < 0) {
gui_mc.time_txt.textColor = RGB.interpolate(neutralCol, goodCol, Math.min(1, Math.abs(_local1) / gameParTime))._rgb;
} else {
gui_mc.time_txt.textColor = RGB.interpolate(badCol, neutralCol, Math.min(1, Math.abs(gameParTime - _local1) / gameParTime))._rgb;
}
}
function loadGame(roundNumber) {
if (roundNumber >= games.length) {
return(undefined);
}
traceToConsole((("loading: " + roundNumber) + " : ") + games[roundNumber].path);
gui_mc.loader._visible = false;
var _local3 = gui_mc.game_cont.createEmptyMovieClip("game" + roundNumber, roundNumber);
_local3._x = 0;
_local3._y = 320;
load_tries = 0;
loadingNum = roundNumber;
load_mcl.loadClip((((((_global.assetsurl + games[roundNumber].path) + "?connId=") + roundNumber) + "&masterId=") + masterId) + (_global.dev ? ("&r=" + Math.random()) : ""), _local3);
loaded = false;
return(_local3);
}
function countdown() {
traceToConsole("countdown");
gui_mc.loader._visible = false;
nextLevel = false;
gui_mc.screenGui_mc.gotoAndStop("gameStart");
if ((games[roundNumber].inputType != undefined) && (games[roundNumber].inputType != TinyTrials.BOTH)) {
traceToConsole((("cue controls anim : " + games[roundNumber].initAnim) + " for game : ") + games[roundNumber]);
_global.root.gui_mc.screenGui_mc[games[roundNumber].inputType.toLowerCase()].gotoAndPlay("play");
} else {
traceToConsole((("cue countdown : " + games[roundNumber].initAnim) + " for game : ") + games[roundNumber]);
_global.root.gui_mc.screenGui_mc.countdown.gotoAndPlay("on");
}
}
function playSound(snd, loops) {
loops = (isNaN(loops) ? 0 : (loops));
_global.sndMan.playAndRemove(snd, 0, loops);
}
function fader() {
var _local3 = _global.root.music_snd.getVolume();
var _local4 = _local3 + this.f;
if (_local4 < 0) {
_local4 = 0;
}
music_snd.setVolume(_local4);
if (this.f < 0) {
if (_local3 <= this.volTarget) {
this.f = 0;
} else if (_local3 <= 0) {
_global.root.music_snd.remove();
}
} else if (_local3 >= this.volTarget) {
this.f = 0;
} else if (_local3 >= 100) {
this.f = 0;
}
}
function fadeMusic(f, volTarget) {
if (!f) {
f = -1;
}
if (!volTarget) {
volTarget = 0;
}
if (!musicFader) {
mc = createEmptyMovieClip("musicFader", this.getNextHighestDepth());
mc.onEnterFrame = fader;
} else {
mc = musicFader;
}
mc.f = f;
mc.volTarget = volTarget;
}
function continueLoop(targ, keepLooping) {
var _local2 = _global.root.isGameLoaded(_global.root.game);
if ((((getTimer() > starsEndTime) && (_global.root.isScoresLoaded)) && (_local2)) && (!keepLooping)) {
finishedGame();
return(undefined);
}
if ((((getTimer() > starsEndTime) && (_global.root.isScoresLoaded)) && (!keepLooping)) && (!_local2)) {
gui_mc.loader._visible = true;
} else {
gui_mc.loader._visible = false;
}
targ.gotoAndPlay("loop");
}
function restart() {
_global.root.gotoAndStop("start");
}
var load_mcl = new MovieClipLoader();
load_mcl.addListener(this);
var loading;
var game;
var roundNumber = 0;
function onLoadComplete(loadedGame) {
if (new LocalConnection().domain() == "localhost") {
loadedGame.connId = loadingNum;
loadedGame.masterId = masterId;
}
}
function onLoadInit(loadedGame) {
traceToConsole("loaded game: " + loadedGame);
loaded = true;
if (load_tries > 0) {
gui_mc.error_mc.gotoAndPlay("close");
}
if (loadedGame == game) {
countdown();
loading = loadGame(roundNumber + 1);
}
}
function onLoadProgress(t, bytesLoaded, bytesTotal) {
if (t == game) {
gui_mc.loader.onProgress(bytesLoaded, bytesTotal);
}
}
function onLoadError() {
if (load_tries == 0) {
gui_mc.error_mc.gotoAndPlay("open");
} else if ((load_tries++) < 3) {
gui_mc.error_mc.mc.error_txt.text = _global.lang.eng.load_err + load_tries;
load_mcl.loadClip(((_global.assetsurl + "/games/") + games[loadingNum].path) + (_global.dev ? ("?r=" + Math.random()) : ""), loading);
} else {
gui_mc.error_mc.mc.error_txt.text = _global.lang.eng.load_fail;
}
}
function isGameLoaded(g) {
var _local1 = load_mcl.getProgress(g);
if (_local1.bytesLoaded == _local1.bytesTotal) {
return(true);
}
return(false);
}
stop();
Frame 10
traceToConsole("starting");
startGames();
stop();
Symbol 17 MovieClip Frame 1
function onEnterFrame() {
var _local2 = _parent.getBytesLoaded() / _parent.getBytesTotal();
if (_local2 == 1) {
_parent.play();
} else {
mask._y = bottom._y + (_local2 * (top._y - bottom._y));
}
}
Symbol 21 MovieClip Frame 1
this._visible = false;
if (_root.identURL) {
_root.stop();
identHolder = _root.createEmptyMovieClip("identHolder", 0);
identHolder._x = identHolder._x + 10000;
ident_mcl = new MovieClipLoader();
ident_l = {};
ident_l.onLoadStart = function () {
clearTimeout(tId);
tId = setTimeout(cancelLoad, 1000, "load slow");
};
ident_l.onLoadInit = function () {
clearTimeout(tId);
delete tId;
identHolder._x = Math.round((Stage.width - identHolder._width) / 2);
identHolder._y = Math.round((Stage.height - identHolder._height) / 2) - 20;
identHolder._alpha = 0;
f = 0;
onEnterFrame = function () {
f++;
if (f < 50) {
identHolder._alpha = identHolder._alpha + 5;
} else if (f < 100) {
identHolder._alpha = identHolder._alpha - 5;
} else {
delete onEnterFrame;
identHolder.removeMovieClip();
_root.play();
}
};
};
ident_l.onLoadError = function () {
clearTimeout(tId);
delete tId;
_root.play();
};
ident_mcl.addListener(ident_l);
tId = setTimeout(cancelLoad, 1000, "load start slow");
ident_mcl.loadClip(_root.identURL, _root.identHolder);
}
Symbol 596 MovieClip [__Packages.RGB] Frame 0
class RGB
{
function RGB (R, G, B) {
r = (isNaN(R) ? 0 : (((R > 255) ? 255 : (((R < 0) ? 0 : (R))))));
g = (isNaN(G) ? 0 : (((G > 255) ? 255 : (((G < 0) ? 0 : (G))))));
b = (isNaN(B) ? 0 : (((B > 255) ? 255 : (((B < 0) ? 0 : (B))))));
}
function toString(d) {
var _local3 = ((((r > 255) ? 255 : (r)) << 16) | (((g > 255) ? 255 : (g)) << 8)) | ((b > 255) ? 255 : (b));
d = (isNaN(d) ? 16 : (d));
return("0x" + _local3.toString(d));
}
function valueOf() {
return(((((r > 255) ? 255 : (r)) << 16) | (((g > 255) ? 255 : (g)) << 8)) | ((b > 255) ? 255 : (b)));
}
function tint(mc) {
var _local2 = new flash.geom.ColorTransform();
_local2.redMultiplier = 1;
_local2.greenMultiplier = 1;
_local2.blueMultiplier = 1;
_local2.alphaMultiplier = 1;
_local2.redOffset = r;
_local2.greenOffset = g;
_local2.blueOffset = b;
_local2.alphaOffset = 0;
mc.transform.colorTransform = _local2;
}
function get _rgb() {
return(((((r > 255) ? 255 : (r)) << 16) | (((g > 255) ? 255 : (g)) << 8)) | ((b > 255) ? 255 : (b)));
}
function set _rgb(c) {
r = c >> 16;
g = (c >> 8) & 255;
b = c & 255;
//return(_rgb);
}
static function makeRGB(r, g, b) {
return(((((r > 255) ? 255 : (r)) << 16) | (((g > 255) ? 255 : (g)) << 8)) | ((b > 255) ? 255 : (b)));
}
static function fromRGB(c) {
return(new RGB(c >> 16, (c >> 8) & 255, c & 255));
}
static function interpolate(c1, c2, f) {
var _local1 = 1 - f;
return(new RGB((c1.r * _local1) + (c2.r * f), (c1.g * _local1) + (c2.g * f), (c1.b * _local1) + (c2.b * f)));
}
var r = 0;
var g = 0;
var b = 0;
}
Symbol 597 MovieClip [__Packages.Snd] Frame 0
class Snd extends Sound
{
var target, manager, _volume, position, start, duration, onFadeComplete, fId, setPan, onSoundComplete;
function Snd (targ, sndman) {
super(targ);
target = (targ ? (targ) : _root);
manager = sndman;
_volume = super.getVolume();
}
function switchSound(id, loops) {
var _local3 = position;
super.stop();
super.attachSound(id);
start((_local3 % duration) / 1000, loops);
}
function fade(dVol, tVol, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
fId = setInterval(this, "changeVolTowards", FADE_RATE, dVol * (FADE_RATE / 1000), tVol, true);
}
function fadeBy(dVol, t, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
if (t > 0) {
fId = setInterval(this, "changeVolTowards", FADE_RATE, dVol * (FADE_RATE / 1000), dVol * t, true);
}
}
function fadeTo(tVol, t, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
if (t > 0) {
var _local3 = (tVol - getVolume()) / t;
fId = setInterval(this, "changeVolTowards", FADE_RATE, _local3 * (FADE_RATE / 1000), tVol, true);
} else {
setVolume(tVol);
}
}
function changeVolTowards(dVol, tVol, fading) {
var _local2 = getVolume();
if (Math.abs(dVol) < Math.abs(tVol - _local2)) {
changeVolume(dVol);
} else {
setVolume(tVol);
if (fading) {
stopFade();
}
}
}
function stopFade() {
if (fId) {
clearInterval(fId);
delete fId;
onFadeComplete();
delete onFadeComplete;
}
}
function positionSound(a, d, f, t) {
if (d < f) {
t = (isNaN(t) ? 100 : (((t < 0) ? 0 : (t))));
d = ((d < 1) ? 1 : (d));
var _local4 = 1 / ((d / f) * 100);
setVolume(Math.ceil(_local4 * t));
setPan((-Math.sin(a)) * 100);
} else {
setVolume(0);
}
}
function positionSoundLinear(a, d, f, t) {
if (d < f) {
t = (isNaN(t) ? 100 : (((t < 0) ? 0 : (t))));
setVolume(((f - d) / f) * t);
setPan((-Math.sin(a)) * 100);
} else {
setVolume(0);
}
}
function setVolume(n) {
_volume = n;
super.setVolume(n);
}
function getVolume() {
return(_volume);
}
function changeVolume(n) {
setVolume(getVolume() + n);
}
function remove() {
super.stop();
delete onSoundComplete;
stopFade();
delete manager.sounds[target.getDepth()];
target.removeMovieClip();
}
function toString() {
return(("(target=" + target) + ")");
}
function get volume() {
return(getVolume());
}
function set volume(n) {
setVolume(n);
//return(volume);
}
static var FADE_RATE = 100;
}
Symbol 598 MovieClip [__Packages.SoundManager] Frame 0
class SoundManager extends Snd
{
var sounds, mc_holder, getVolume;
function SoundManager (hld_mc) {
super();
sounds = new Object();
mc_holder = (hld_mc ? (hld_mc) : _root);
}
function playAndRemove(snd_id, offset, loops) {
offset = (isNaN(offset) ? 0 : (offset));
loops = (isNaN(loops) ? 0 : (loops));
var _local2 = newSound(snd_id);
_local2.start(offset, loops);
_local2.onSoundComplete = _local2.remove;
return(_local2);
}
function clearAllSounds() {
for (var _local2 in sounds) {
sounds[_local2].remove();
}
}
function newSound() {
var _local5 = mc_holder.getNextHighestDepth();
var _local6 = mc_holder.createEmptyMovieClip("sh_mc" + _local5, _local5);
var _local4 = new Snd(_local6, this);
var _local3 = 0;
while (_local3 < arguments.length) {
if (arguments[_local3] != undefined) {
_local4.attachSound(arguments[_local3]);
}
_local3++;
}
sounds[_local5] = _local4;
return(_local4);
}
function deleteSound(snd) {
snd.remove();
}
function setVolume(vol) {
if (muted) {
curVol = vol;
} else {
super.setVolume(vol);
}
}
function get mute() {
return(muted);
}
function set mute(b) {
muted = b;
if (b) {
curVol = getVolume();
super.setVolume(0);
} else {
super.setVolume(curVol);
}
//return(mute);
}
var muted = false;
var curVol = 100;
}
Symbol 599 MovieClip [__Packages.Rand] Frame 0
class Rand
{
function Rand () {
}
static function midBias(min, max, i, p) {
min = (isNaN(min) ? 0 : (min));
max = (isNaN(max) ? 1 : (max));
i = (isNaN(i) ? 2 : (i + 1));
var _local3 = 0;
var _local1 = 0;
while (_local1 < i) {
_local3 = _local3 + ((v() * (max - min)) + min);
_local1++;
}
_local3 = _local3 / i;
if (p != undefined) {
p = 1 / Math.pow(10, p);
var _local7 = _local3 % p;
if (_local7 <= (p / 2)) {
_local3 = _local3 - _local7;
} else {
_local3 = _local3 + (p - _local7);
}
}
return(_local3);
}
static function minBias(min, max, i, p) {
min = (isNaN(min) ? 0 : (min));
max = (isNaN(max) ? 1 : (max));
i = (isNaN(i) ? 1 : (i));
var _local1 = ((1 - Math.pow(v(), 1 / (i + 1))) * (max - min)) + min;
if (p != undefined) {
p = 1 / Math.pow(10, p);
var _local3 = _local1 % p;
if (_local3 <= (p / 2)) {
_local1 = _local1 - _local3;
} else {
_local1 = _local1 + (p - _local3);
}
}
return(_local1);
}
static function maxBias(min, max, i, p) {
min = (isNaN(min) ? 0 : (min));
max = (isNaN(max) ? 1 : (max));
i = (isNaN(i) ? 1 : (i));
var _local1 = (Math.pow(v(), 1 / (i + 1)) * (max - min)) + min;
if (p != undefined) {
p = 1 / Math.pow(10, p);
var _local3 = _local1 % p;
if (_local3 <= (p / 2)) {
_local1 = _local1 - _local3;
} else {
_local1 = _local1 + (p - _local3);
}
}
return(_local1);
}
static function value() {
if (arguments.length > 0) {
var _local2 = v() * arguments.length;
_local2 = _local2 - (_local2 % 1);
return(arguments[_local2]);
}
}
static function get number() {
return(v());
}
static function random(min, max, p) {
min = (isNaN(min) ? 0 : (min));
max = (isNaN(max) ? 1 : (max));
if (!isNaN(p)) {
p = 1 / Math.pow(10, p);
max = max + p;
} else {
}
var _local3 = (v() * (max - min)) + min;
if (p) {
_local3 = _local3 - (_local3 % p);
}
return(_local3);
}
static function shuffle(arr) {
var _local3;
var _local4;
var _local2 = 0;
while (_local2 < arr.length) {
_local3 = random(0, arr.length - 1, 0);
_local4 = arr[_local3];
arr[_local3] = arr[_local2];
arr[_local2] = _local4;
_local2++;
}
return(arr);
}
static var v = Math.random;
}
Symbol 600 MovieClip [__Packages.JSON] Frame 0
class JSON
{
var text;
function JSON () {
}
function stringify(arg) {
var _local4;
var _local3;
var _local7;
var _local2 = "";
var _local5;
switch (typeof(arg)) {
case "object" :
if (arg) {
if (arg instanceof Array) {
_local3 = 0;
while (_local3 < arg.length) {
_local5 = stringify(arg[_local3]);
if (_local2) {
_local2 = _local2 + ",";
}
_local2 = _local2 + _local5;
_local3++;
}
return(("[" + _local2) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local3 in arg) {
_local5 = arg[_local3];
if ((typeof(_local5) != "undefined") && (typeof(_local5) != "function")) {
_local5 = stringify(_local5);
if (_local2) {
_local2 = _local2 + ",";
}
_local2 = _local2 + ((stringify(_local3) + ":") + _local5);
}
}
return(("{" + _local2) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local7 = arg.length;
_local2 = "\"";
_local3 = 0;
while (_local3 < _local7) {
_local4 = arg.charAt(_local3);
if (_local4 >= " ") {
if ((_local4 == "\\") || (_local4 == "\"")) {
_local2 = _local2 + "\\";
}
_local2 = _local2 + _local4;
} else {
switch (_local4) {
case "\b" :
_local2 = _local2 + "\\b";
break;
case "\f" :
_local2 = _local2 + "\\f";
break;
case newline :
_local2 = _local2 + "\\n";
break;
case "\r" :
_local2 = _local2 + "\\r";
break;
case "\t" :
_local2 = _local2 + "\\t";
break;
default :
_local4 = _local4.charCodeAt();
_local2 = _local2 + (("\\u00" + Math.floor(_local4 / 16).toString(16)) + (_local4 % 16).toString(16));
}
}
_local3 = _local3 + 1;
}
return(_local2 + "\"");
case "boolean" :
return(String(arg));
}
return("null");
}
function white() {
while (ch) {
if (ch <= " ") {
next();
} else if (ch == "/") {
switch (next()) {
case "/" :
while ((next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
next();
for(;;){
if (ch) {
if (ch == "*") {
if (next() == "/") {
next();
// unexpected jump
}
} else {
next();
}
} else {
error("Unterminated comment");
}
};
break;
default :
error("Syntax error");
}
} else {
break;
}
}
}
function error(m) {
throw {name:"JSONError", message:m, at:at - 1, text:text};
}
function next() {
ch = text.charAt(at);
at = at + 1;
return(ch);
}
function str() {
var _local5;
var _local2 = "";
var _local4;
var _local3;
var _local6 = false;
if (ch == "\"") {
while (next()) {
if (ch == "\"") {
next();
return(_local2);
}
if (ch == "\\") {
switch (next()) {
case "b" :
_local2 = _local2 + "\b";
break;
case "f" :
_local2 = _local2 + "\f";
break;
case "n" :
_local2 = _local2 + newline;
break;
case "r" :
_local2 = _local2 + "\r";
break;
case "t" :
_local2 = _local2 + "\t";
break;
case "u" :
_local3 = 0;
_local5 = 0;
while (_local5 < 4) {
_local4 = parseInt(next(), 16);
if (!isFinite(_local4)) {
_local6 = true;
break;
}
_local3 = (_local3 * 16) + _local4;
_local5 = _local5 + 1;
}
if (_local6) {
_local6 = false;
break;
}
_local2 = _local2 + String.fromCharCode(_local3);
break;
default :
_local2 = _local2 + ch;
}
} else {
_local2 = _local2 + ch;
}
}
}
error("Bad string");
}
function arr() {
var _local2 = [];
if (ch == "[") {
next();
white();
if (ch == "]") {
next();
return(_local2);
}
while (ch) {
_local2.push(value());
white();
if (ch == "]") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad array");
}
function obj() {
var _local3;
var _local2 = {};
if (ch == "{") {
next();
white();
if (ch == "}") {
next();
return(_local2);
}
while (ch) {
_local3 = str();
white();
if (ch != ":") {
break;
}
next();
_local2[_local3] = value();
white();
if (ch == "}") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad object");
}
function num() {
var _local2 = "";
var _local3;
if (ch == "-") {
_local2 = "-";
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
if (ch == ".") {
_local2 = _local2 + ".";
next();
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
if ((ch == "e") || (ch == "E")) {
_local2 = _local2 + ch;
next();
if ((ch == "-") || (ch == "+")) {
_local2 = _local2 + ch;
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
_local3 = Number(_local2);
if (!isFinite(_local3)) {
error("Bad number");
}
return(_local3);
}
function word() {
switch (ch) {
case "t" :
if (((next() == "r") && (next() == "u")) && (next() == "e")) {
next();
return(true);
}
break;
case "f" :
if ((((next() == "a") && (next() == "l")) && (next() == "s")) && (next() == "e")) {
next();
return(false);
}
break;
case "n" :
if (!(((next() == "u") && (next() == "l")) && (next() == "l"))) {
break;
}
next();
return(null);
}
error("Syntax error");
}
function value() {
white();
switch (ch) {
case "{" :
return(obj());
case "[" :
return(arr());
case "\"" :
return(str());
case "-" :
return(num());
}
return((((ch >= "0") && (ch <= "9")) ? (num()) : (word())));
}
function parse(_text) {
text = _text;
at = 0;
ch = " ";
return(value());
}
var ch = "";
var at = 0;
}
Symbol 601 MovieClip [__Packages.Format] Frame 0
class Format
{
function Format () {
}
static function strReplace(f, r, s) {
var _local1 = 0;
while (_local1 = s.indexOf(f, _local1) , _local1 != -1) {
s = (s.substring(0, _local1) + r) + s.substr(_local1 + f.length);
_local1 = _local1 + r.length;
}
return(s);
}
static function numberFormat(n, decimalPlaces) {
var _local7 = n < 0;
var _local3 = Math.floor(Math.abs(n)) + "";
var _local4 = Math.abs(n % 1);
var _local6 = Math.pow(10, decimalPlaces);
var _local5 = zerofill(Math.round(_local4 * _local6), decimalPlaces);
var _local2 = "";
var _local1 = _local3.length - 1;
while (_local1 >= 0) {
if (((_local3.length - _local1) % 3) == 1) {
_local2 = " " + _local2;
}
_local2 = _local3.charAt(_local1) + _local2;
_local1--;
}
_local2 = _local2.substr(0, _local2.length - 1);
return((((_local7 ? "-" : "") + _local2) + ".") + _local5);
}
static function zerofill(n, z) {
var _local2 = String(n);
var _local1 = _local2.length;
while (_local1 < z) {
_local2 = "0" + _local2;
_local1++;
}
return(_local2);
}
static function time(t, minp, maxp) {
var _local1 = (isNaN(t) ? (new Date()) : (new Date(t)));
var _local2 = _local1.getSeconds();
var _local3 = Math.round(_local1.getMilliseconds() / 10);
var _local4 = (((_local1.getMinutes() + ":") + ((_local2 < 10) ? ("0" + _local2) : (_local2))) + ":") + ((_local3 < 10) ? ("0" + _local3) : (_local3));
return(_local4);
}
static function date(f, t) {
var _local2 = (isNaN(t) ? (new Date()) : (new Date(t)));
var _local6 = _local2.getSeconds();
_local6 = ((_local6 < 10) ? ("0" + _local6) : (_local6));
var _local10 = _local2.getMinutes();
_local10 = ((_local10 < 10) ? ("0" + _local10) : (_local10));
var _local8 = _local2.getHours() % 12;
_local8 = ((_local8 < 10) ? ("0" + _local8) : (_local8));
var _local11 = _local2.getHours();
_local11 = ((_local11 < 10) ? ("0" + _local11) : (_local11));
var _local7 = _local2.getDate();
_local7 = ((_local7 < 10) ? ("0" + _local7) : (_local7));
var _local9 = _local2.getMonth();
_local9 = ((_local9 < 10) ? ("0" + _local9) : (_local9));
var _local1 = "";
var _local5 = false;
var _local3 = 0;
while (_local3 < f.length) {
if (_local5) {
_local5 = false;
_local1 = _local1 + f[_local3];
}
switch (f[_local3]) {
case "/" :
_local5 = true;
break;
case "s" :
_local1 = _local1 + _local6;
break;
case "i" :
_local1 = _local1 + _local10;
break;
case "h" :
_local1 = _local1 + _local8;
break;
case "H" :
_local1 = _local1 + _local11;
break;
case "g" :
_local1 = _local1 + String(_local2.getHours() % 12);
break;
case "G" :
_local1 = _local1 + String(_local2.getHours());
break;
case "d" :
_local1 = _local1 + _local7;
break;
case "j" :
_local1 = _local1 + String(_local2.getDate());
break;
case "m" :
_local1 = _local1 + _local9;
break;
case "n" :
_local1 = _local1 + String(_local2.getMonth());
break;
case "y" :
_local1 = _local1 + String(_local2.getFullYear() % 100);
break;
case "Y" :
_local1 = _local1 + String(_local2.getFullYear());
break;
default :
_local1 = _local1 + f[_local3];
}
_local3++;
}
return(_local1);
}
static function number(n, d, c, l) {
d = (isNaN(d) ? undefined : (d));
c = ((c == undefined) ? "," : (c));
var _local1 = String(n).split(".");
if (!(d === undefined)) {
if (_local1[1]) {
var _local3 = String(Math.round(Number("." + _local1[1]) * Math.pow(10, d)) * Math.pow(10, -d));
_local3 = ((_local3.indexOf(".") < 0) ? (_local3) : (_local3.split(".")[1]));
} else {
var _local3 = "";
}
var _local2 = 0;
while (_local3.length < d) {
var _local3 = _local3 + "0";
_local2++;
}
_local1[1] = _local3;
}
var _local6 = false;
if (_local1[0].charAt(0) == "-") {
_local6 = true;
_local1[0] = _local1[0].substr(1);
}
var _local2 = 3;
while (_local1[0].length > _local2) {
_local1[0] = (_local1[0].substring(0, _local1[0].length - _local2) + c) + _local1[0].substring(_local1[0].length - _local2);
_local2 = _local2 + 4;
}
if (!isNaN(l)) {
_local1[0] = zerofill(_local1[0], l);
}
if (_local6) {
_local1[0] = "-" + _local1[0];
}
if ((_local1.length > 1) && (d > 0)) {
return((_local1[0] + ".") + _local1[1]);
}
return(_local1[0]);
}
static function ordinal(n) {
if (((n % 100) >= 11) && ((n % 100) <= 13)) {
return("th");
}
if ((n % 10) == 1) {
return("st");
}
if ((n % 10) == 2) {
return("nd");
}
if ((n % 10) == 3) {
return("rd");
}
return("th");
}
static function truncate(s, l, r) {
l = (isNaN(l) ? 20 : (l));
r = ((r == undefined) ? "..." : (r));
if (s.length > l) {
s = s.substr(0, l - r.length);
s = s + r;
}
return(s);
}
}
Symbol 602 MovieClip [__Packages.cust.GUI.RadioGroup] Frame 0
class cust.GUI.RadioGroup extends Array
{
var name, _instanceIndex, push, length, _selectedIndex;
function RadioGroup (n) {
super();
name = n;
_instanceIndex = {};
cust.events.EventBroadcaster.initialise(this);
}
function addBtn(btn) {
if (_instanceIndex[btn._name] === undefined) {
push(btn);
_instanceIndex[btn._name] = length - 1;
} else {
this[_instanceIndex[btn._name]] = btn;
}
this[btn._name] = btn;
btn.addEventListener(cust.GUI.UIBtn.RELEASE, this);
}
function release(obj) {
var _local2 = 0;
while (_local2 < length) {
if (this[_local2] == obj.target) {
break;
}
_local2++;
}
if (_local2 == length) {
selectedIndex = (-1);
} else if (_local2 != _selectedIndex) {
selectedIndex = (_local2);
}
}
function get value() {
return(this[_selectedIndex].value);
}
function get selectedIndex() {
return(_selectedIndex);
}
function set selectedIndex(n) {
if (n != _selectedIndex) {
var _local2 = {target:this, type:CHANGE, oldVal:_selectedIndex, newVal:n};
this[_selectedIndex].select(false);
_selectedIndex = n;
this[_selectedIndex].select(true);
dispatchEvent(_local2);
}
//return(selectedIndex);
}
static function GET_RADIO_GROUP(n) {
if (RADIO_GROUPS[n]) {
return(RADIO_GROUPS[n]);
}
return((RADIO_GROUPS[n] = new cust.GUI.RadioGroup(n)));
}
static var RADIO_GROUPS = {};
static var CHANGE = "change";
}
Symbol 603 MovieClip [__Packages.cust.events.EventBroadcaster] Frame 0
class cust.events.EventBroadcaster
{
var __events;
function EventBroadcaster () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialise(object) {
if (_fEventBroadcaster == undefined) {
_fEventBroadcaster = new cust.events.EventBroadcaster();
}
object.addEventListener = _fEventBroadcaster.addEventListener;
object.removeEventListener = _fEventBroadcaster.removeEventListener;
object.dispatchEvent = _fEventBroadcaster.dispatchEvent;
object.dispatchQueue = _fEventBroadcaster.dispatchQueue;
object.getEventListeners = _fEventBroadcaster.getEventListeners;
object.getEvents = _fEventBroadcaster.getEvents;
object.removeEventListeners = _fEventBroadcaster.removeEventListeners;
object.removeAllEventListeners = _fEventBroadcaster.removeAllEventListeners;
object.__events = new Array();
_global.ASSetPropFlags(object, "__events", 1);
}
function dispatchQueue(queueObj, eventObj) {
var _local6 = 0;
var _local8 = "__q_" + eventObj.type;
var _local5 = queueObj[_local8].concat([]);
if (_local5 != undefined) {
var _local3 = 0;
while (_local3 < _local5.length) {
var _local1 = _local5[_local3];
var _local4 = typeof(_local1);
if ((_local4 == "object") || (_local4 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
_local6++;
_local3++;
}
}
return(_local6);
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
return(eventObj.target.dispatchQueue(eventObj.target, eventObj));
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
__events.push(event);
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
return(true);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
function getEventListeners(type) {
return(this["__q_" + type]);
}
function getEvents() {
return(__events);
}
function removeEventListeners(type) {
var _local4 = "__q_" + type;
var _local2 = this[_local4];
while (_local2.length) {
_removeEventListener(_local2, type, _local2[0]);
}
}
function removeAllEventListeners() {
var _local5 = getEvents();
var _local6;
var _local2;
var _local4;
var _local3 = 0;
while (_local3 < _local5.length) {
_local4 = _local5[_local3];
_local6 = "__q_" + _local4;
_local2 = this[_local6];
while (_local2.length) {
_removeEventListener(_local2, _local4, _local2[0]);
}
_local3++;
}
}
static var _fEventBroadcaster = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 604 MovieClip [__Packages.cust.GUI.UIBtn] Frame 0
class cust.GUI.UIBtn extends MovieClip
{
var stop, _focusrect, gotoAndStop, dispatchEvent;
function UIBtn () {
super();
cust.events.EventBroadcaster.initialise(this);
stop();
_focusrect = false;
}
function update() {
if (isDown) {
gotoAndStop(DOWN);
} else if (isOver) {
gotoAndStop(OVER);
} else {
gotoAndStop(UP);
}
}
function onSetFocus() {
Key.addListener(this);
}
function onKillFocus() {
Key.removeListener(this);
}
function onKeyDown() {
if (Key.getCode() == 13) {
onPress();
}
}
function onKeyUp() {
if (Key.getCode() == 13) {
onRelease();
}
}
function onUnload() {
onKillFocus();
}
function onRollOver() {
isOver = true;
dispatchEvent({target:this, type:ROLLOVER});
update();
}
function onRollOut() {
isOver = false;
dispatchEvent({target:this, type:ROLLOUT});
update();
}
function onPress() {
isDown = true;
dispatchEvent({target:this, type:PRESS});
update();
}
function onRelease() {
isDown = false;
dispatchEvent({target:this, type:RELEASE});
update();
}
function onDragOver() {
isOver = true;
isDown = true;
dispatchEvent({target:this, type:DRAGOVER});
update();
}
function onDragOut() {
isOver = false;
isDown = false;
dispatchEvent({target:this, type:DRAGOUT});
update();
}
var isOver = false;
var isDown = false;
static var UP = "up";
static var OVER = "over";
static var DOWN = "down";
static var ROLLOVER = "rollOver";
static var ROLLOUT = "rollOut";
static var PRESS = "press";
static var RELEASE = "release";
static var DRAGOUT = "dragOut";
static var DRAGOVER = "dragOver";
}
Symbol 605 MovieClip [__Packages.cust.GUI.RadioBtn] Frame 0
class cust.GUI.RadioBtn extends cust.GUI.UIBtn
{
var _name, value, group, selected_mc;
function RadioBtn () {
super();
var _local3 = _name.split(DIVIDER);
value = _local3[1];
group = cust.GUI.RadioGroup.GET_RADIO_GROUP(_local3[0]);
group.addBtn(this);
selected_mc._visible = false;
}
function select(b) {
selected_mc._visible = b;
}
function get selected() {
return(selected_mc._visible);
}
function set selected(b) {
if (selected_mc._visible != b) {
if (b) {
group.release({target:this});
} else {
group.release({target:null});
}
}
selected_mc._visible = b;
//return(selected);
}
static var DIVIDER = "_";
}
Symbol 606 MovieClip [__Packages.Transition] Frame 0
class Transition extends MovieClip
{
var _nextPage, gotoAndPlay, _prevPage, _curPage, _parent;
function Transition () {
super();
}
function transitionTo(frame) {
_nextPage = frame;
gotoAndPlay(START);
}
function doTransition() {
_prevPage = _curPage;
_curPage = _nextPage;
_parent.gotoAndStop(_nextPage);
delete _nextPage;
}
function get curPage() {
return(curPage);
}
function get prevPage() {
return(prevPage);
}
static var START = "start";
}
Symbol 607 MovieClip [__Packages.ClickBlocker] Frame 0
class ClickBlocker extends MovieClip
{
function ClickBlocker () {
super();
}
function onPress() {
}
var useHandCursor = false;
}
Symbol 608 MovieClip [__Packages.Quart] Frame 0
class Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
}
Symbol 29 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 86
_parent.play();
Symbol 38 MovieClip Frame 1
function consoleOn() {
onEnterFrame = displayRecords;
}
function displayRecords() {
var _local1 = "";
i = record.length - 1;
while (i >= 0) {
_local1 = _local1 + (record[i] + newline);
i--;
}
displayText.text = _local1;
}
function consoleOff() {
delete onEnterFrame;
gotoAndStop ("off");
}
lookForKey = 111;
stop();
if (!record) {
record = [];
_global.console = this;
}
f = new Object();
f.onKeyDown = function () {
if (Key.getCode() == lookForKey) {
play();
}
};
Key.addListener(f);
_global.traceToConsole = function (s) {
record.push(s);
};
Symbol 38 MovieClip Frame 2
lookForKey = 106;
Symbol 38 MovieClip Frame 3
lookForKey = 109;
Symbol 38 MovieClip Frame 4
lookForKey = 111;
stop();
Symbol 38 MovieClip Frame 5
consoleOn();
stop();
Symbol 38 MovieClip Frame 6
consoleOff();
Symbol 64 MovieClip Frame 27
gotoAndPlay ("loop");
Symbol 67 Button
on (release) {
_global.root.goToComp();
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 5
stop();
Symbol 83 MovieClip [click blocker] Frame 1
#initclip 21
Object.registerClass("click blocker", ClickBlocker);
#endinitclip
Symbol 117 Button
on (release) {
_global.root.goToTM();
}
Symbol 125 MovieClip Frame 1
gotoAndPlay (2);
Symbol 125 MovieClip Frame 42
gotoAndPlay ("loop");
Symbol 127 Button
on (release) {
_global.root.goToListen2U();
}
Symbol 136 Button
on (release) {
changePage("how to play");
}
Symbol 141 Button
on (release) {
if (checkVals()) {
_parent.changePage("to game");
}
}
Symbol 162 MovieClip [maleBtn] Frame 1
#initclip 14
Object.registerClass("maleBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 171 MovieClip [femaleBtn] Frame 1
#initclip 15
Object.registerClass("femaleBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 179 MovieClip [ageChildBtn] Frame 1
#initclip 16
Object.registerClass("ageChildBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 185 MovieClip [ageAdultBtn] Frame 1
#initclip 17
Object.registerClass("ageAdultBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 191 MovieClip [ageOAPBtn] Frame 1
#initclip 18
Object.registerClass("ageOAPBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 206 MovieClip [otherBtn] Frame 1
#initclip 19
Object.registerClass("otherBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 207 MovieClip Frame 1
function checkVals() {
if (name_txt.text) {
name_so.data.username = (_global.root.playerName = name_txt.text);
name_so.data.age = (_global.root.playerAgeGroup = ((_global.root.isMensa == "true") ? 4 : (Number(age.value))));
name_so.data.gender = (_global.root.playerGender = Number(sex.value));
name_so.data.hasData = true;
name_so.flush();
return(true);
}
return(false);
}
name_so = SharedObject.getLocal("username", "/");
age = cust.GUI.RadioGroup.GET_RADIO_GROUP("age");
sex = cust.GUI.RadioGroup.GET_RADIO_GROUP("sex");
if (name_so.data.hasData) {
name_txt.text = (name_so.data.username ? (name_so.data.username) : ("Player" + Rand.random(100, 100000, 0)));
this["age_" + name_so.data.age].selected = true;
this["sex_" + name_so.data.gender].selected = true;
} else {
name_txt.text = "Player" + Rand.random(100, 100000, 0);
Rand.value(age_1, age_2, age_3).selected = true;
sex_2.selected = true;
}
if (_global.root.isMensa == "true") {
age_1._visible = (age_2._visible = (age_3._visible = false));
}
Symbol 220 Button
on (release) {
populateScores(top10);
}
Symbol 225 Button
on (release) {
populateScores(me);
}
Symbol 230 MovieClip [highscoresItem] Frame 1
stop();
Symbol 232 Button
on (release) {
_parent.changePage("to game");
}
Symbol 238 Button
on (release) {
FB_submit();
}
Symbol 248 MovieClip Frame 1
function isFacebook() {
if (_root.fb_sig_user && (_root.fb_sig_session_key)) {
return(true);
}
return(false);
}
function getScoreString() {
var _local4 = "";
var _local3 = zerofill(Rand.random(1, 100000, 0), 10) + _global.root.finalScore;
var _local2 = 0;
while (_local2 < _local3.length) {
_local4 = _local4 + (String((Number(_local3.charAt(_local2)) + Number(k.charAt(_local2 % k.length))) % 10) + String(Math.floor(Math.random() * 10)));
_local2++;
}
return(_local4);
}
function zerofill(n, l) {
var _local1 = n.toString();
while (_local1.length < l) {
_local1 = "0" + _local1;
}
return(_local1);
}
function FB_submit() {
getURL ((appURL + "?s=") + getScoreString(), "_blank");
}
function FB_autoSubmit(attempt) {
gotoAndStop ("autoSaving");
var _local3 = new LoadVars();
_local3.s = getScoreString();
for (var _local4 in _root) {
if (_local4.indexOf("fb_sig") === 0) {
_local3[_local4] = _root[_local4];
}
}
_local3.onLoad = function (success) {
if (success) {
if (this.result == "ok") {
successCallBack();
} else if (attempt > 3) {
errorCallBack();
for (var _local2 in this) {
}
} else {
FB_autoSubmit(attempt + 1);
}
} else {
errorCallBack();
}
};
_local3.sendAndLoad(callbackURL, _local3, "GET");
}
function successCallBack() {
gotoAndStop ("autoSavingDone");
}
function errorCallBack() {
gotoAndStop ("autoSavingError");
}
appURL = "http://apps.facebook.com/digital-genius/";
callbackURL = "http://fbapp.areyouadigitalgenius.com/submitscore/";
k = "3654751034589452401";
_global.root.isFacebook = isFacebook;
if (isFacebook()) {
FB_autoSubmit(0);
} else {
stop();
}
Symbol 253 Button
on (release) {
_parent.changePage("show results");
}
Symbol 256 Button
on (release) {
getScores("country");
}
Symbol 259 Button
on (release) {
getScores("sex");
}
Symbol 262 Button
on (release) {
getScores("age");
}
Symbol 265 Button
on (release) {
getScores("level");
}
Symbol 274 MovieClip Frame 40
gotoAndPlay ("start");
Symbol 275 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
function getScores(mode) {
throbber.gotoAndPlay("throb");
throbber.throb.gotoAndStop("start");
xml = new XML();
xml.ignoreWhite = true;
var _local2;
switch (mode) {
case "level" :
case "cheats" :
_local2 = (((_global.root.backendUrl + "comms/getscores.comms.php?sId=") + sId) + "&mode=") + mode;
break;
case "sex" :
case "age" :
case "fanOf" :
case "country" :
_local2 = ((_global.root.backendUrl + "cache/leagues/") + mode.toLowerCase()) + ".xml?";
}
if (_global.root.pId) {
_local2 = _local2 + ("&pId=" + _global.root.pId);
}
_local2 = _local2 + ("&r=" + Math.random());
xml.onLoad = gotScores;
xml.load(_local2);
}
function gotScores(success) {
if (success) {
var _local6 = this.firstChild;
var _local4;
best_txt.text = "";
top10 = [];
me = [];
var _local5 = 0;
while (_local5 < _local6.childNodes.length) {
_local4 = _local6.childNodes[_local5];
switch (_local4.nodeName) {
case "top10" :
top10 = nodeToArray(_local4);
break;
case "me" :
me = nodeToArray(_local4);
break;
case "best" :
var _local3 = "You are the " + _local4.attributes.rank;
if (_global.root.ageArr[_global.root.age] && (_global.root.genderArr[_global.root.gender])) {
_local3 = _local3 + (((" highest scoring " + _global.root.ageArr[_global.root.age]) + " ") + _global.root.genderArr[_global.root.gender]);
if (_global.root.bandArr[_global.root.band]) {
_local3 = _local3 + (" that supports " + _global.root.bandArr[_global.root.band]);
}
} else {
_local3 = _local3 + " player";
}
best_txt.text = _local3;
}
_local5++;
}
if (_global.root.pId && (me.length)) {
populateScores(me);
findYou_btn._visible = true;
} else {
populateScores(top10);
findYou_btn._visible = false;
}
switch (_local6.attributes.mode) {
case "level" :
break;
case "country" :
scoresFor_txt.htmlText = "Scores: <font color=\"#FF6600\">Country</font>";
break;
case "gender" :
scoresFor_txt.htmlText = "Scores: <font color=\"#FF6600\">Gender</font>";
break;
case "age" :
scoresFor_txt.htmlText = "Scores: <font color=\"#FF6600\">Age Group</font>";
break;
case "band" :
scoresFor_txt.htmlText = "Scores: <font color=\"#FF6600\">Fave Band</font>";
break;
case "cheats" :
scoresFor_txt.htmlText = "Scores: <font color=\"#FF6600\">Cheats</font>";
}
}
throbber.gotoAndPlay("throbOut");
throbber.throb.gotoAndStop("end");
}
function nodeToArray(node) {
arr = [];
i = 0;
while (i < node.childNodes.length) {
arr.push(node.childNodes[i].attributes);
i++;
}
if (node.attributes.mypos) {
arr.mypos = Number(node.attributes.mypos);
}
return(arr);
}
function populateScores(arr) {
var _local5 = 17;
var _local4 = 0;
for (var _local6 in highscores_mc) {
if (highscores_mc[_local6] instanceof MovieClip) {
highscores_mc[_local6].removeMovieClip();
}
}
var _local3;
var _local1 = 0;
while ((_local1 < arr.length) && (_local1 < 10)) {
_local3 = highscores_mc.attachMovie("highscoresItem", "hsi" + _local1, _local1);
_local3._y = _local4;
_local3.pos_txt.text = arr[_local1].pos;
_local3.name_txt.text = checkSwear(arr[_local1].name);
_local3.score_txt.text = Format.number(arr[_local1].score);
_local4 = _local4 + _local5;
if ((!(arr.mypos === undefined)) && ((arr.mypos + 1) == arr[_local1].pos)) {
_local3.gotoAndStop("you");
}
_local1++;
}
}
function selectTrack(n) {
sId = n;
getScores("level");
selectTrack_mc.gotoAndPlay("hideTracks");
}
swearArray = new Array("fuck", "shit", "cunt", "fuk", "kunt", "phuk", "phuck", "shit", "Hewlett", "Packard", "HP");
checkSwear = function (mytext, peek) {
findMe = swearArray;
peek = 1;
myTotal = 0;
myWords = 0;
while (myWords <= (findMe.length - 1)) {
look = 0;
while (look < mytext.length) {
j = 0;
fill = "";
mySmall = mytext.substr(look, findMe[myWords].length).toLowerCase();
wordSmall = findMe[myWords].toLowerCase();
if (mySmall == wordSmall) {
while (j < (findMe[myWords].length - (2 * peek))) {
fill = fill + "*";
j++;
}
mytext = (mytext.substr(0, look + peek) + fill) + mytext.substr((look - peek) + findMe[myWords].length);
myTotal++;
}
look++;
}
myWords++;
}
return(mytext);
};
sId = 0;
if (!(_global.root.selectedTrack === undefined)) {
sId = _global.root.selectedTrack + 1;
} else {
sId = 0;
}
getScores("level");
if (!_global.root.pId) {
findYou_btn._visible = false;
otherCharts._visible = false;
}
Symbol 288 Button
on (release) {
changePage("to game");
}
Symbol 290 Button
on (release) {
changePage("highscores");
}
Symbol 324 MovieClip Frame 1
function update(n) {
var _local2;
lineHolder.clear();
var _local4;
var _local3 = 1;
while (_local3 <= 5) {
_local4 = (1 - (_global.root.allScores[n][_local3] / 100)) * height;
lineHolder.lineStyle(2, lineColours[_local3]);
lineHolder.moveTo(0, _local4);
lineHolder["icon" + _local3]._x = n * (width / (_global.root.roundsPerGame - 1));
lineHolder["icon" + _local3]._y = _local4;
_local2 = 0;
while (_local2 <= n) {
_local4 = (1 - (_global.root.allScores[_local2][_local3] / 100)) * height;
lineHolder.lineTo(_local2 * (width / (_global.root.roundsPerGame - 1)), _local4);
_local2++;
}
_local3++;
}
}
width = 304.1;
height = 53.1;
lineHolder.icon1._visible = (lineHolder.icon2._visible = (lineHolder.icon3._visible = (lineHolder.icon4._visible = (lineHolder.icon5._visible = false))));
lineHolder.icon5.gotoAndStop(_global.root.playerAgeGroup);
lineColours = [null, 39423, 16776960, 52224, 16711680, 0];
Symbol 345 Button
on (release) {
changePage("post game");
}
Symbol 347 Button
on (release) {
changePage("to game");
}
Symbol 355 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 101
_parent.startGame();
stop();
Symbol 462 MovieClip Frame 1
function startGame() {
_parent.changePage("start game");
}
_parent.memoryCharacter = Math.ceil(Math.random() * chars._totalframes);
chars.gotoAndStop(_parent.memoryCharacter);
Symbol 466 MovieClip Frame 42
_parent.play();
Symbol 471 Button
on (release) {
_global.root.roundNumber = _global.root.roundsPerGame + 1;
if (btnIndex == _global.memoryGame._parent.memoryCharacter) {
answer.gotoAndStop("correct");
_global.root.memoryGameCorrect = true;
_global.root.roundScores[_global.root.roundsPerGame] = 100;
_global.root.saveScoreToServer(100, 1, _global.root.playerAgeGroup, 100);
} else {
answer.gotoAndStop("incorrect");
_global.root.memoryGameCorrect = false;
_global.root.roundScores[_global.root.roundsPerGame] = 0;
_global.root.saveScoreToServer(100, 1, _global.root.playerAgeGroup, 1);
}
_global.root.saveScoreToServer(0, 1, _global.root.playerAgeGroup, _global.root.finalTime);
_global.memoryGame.clickBlocker.gotoAndStop("on");
_global.memoryGame.onEnterFrame = _global.memoryGame.waitThenEnd;
}
Symbol 477 MovieClip Frame 14
a = (Math.PI/2);
this.onEnterFrame = function () {
this.a = this.a + 0.35;
this._rotation = Math.cos(this.a) * 10;
};
stop();
Symbol 482 MovieClip Frame 14
a = (Math.PI/2);
this.onEnterFrame = function () {
this.a = this.a + 0.35;
this._rotation = Math.cos(this.a) * 10;
};
stop();
Symbol 483 MovieClip [answer] Frame 1
stop();
Symbol 483 MovieClip [answer] Frame 5
stop();
Symbol 483 MovieClip [answer] Frame 6
stop();
Symbol 483 MovieClip [answer] Frame 8
stop();
Symbol 483 MovieClip [answer] Frame 9
stop();
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 3
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
function waitThenEnd() {
if (!endStart) {
endStart = getTimer();
endWait = 3000;
}
if (((getTimer() >= (endStart + endWait)) && (_global.root.isScoresLoaded)) && (_global.root.savedTimes)) {
endGame();
delete onEnterFrame;
_global.root.isScoresLoaded = false;
}
}
function endGame() {
_parent.changePage("show results");
}
_global.memoryGame = this;
i = 1;
while (i <= 4) {
this["tile" + i].char.gotoAndStop(i);
this["tile" + i].btnIndex = i;
i++;
}
Instance of Symbol 485 MovieClip "clickBlocker" in Symbol 486 MovieClip Frame 2
onClipEvent (load) {
onRelease = function () {
};
useHandCursor = false;
}
Symbol 486 MovieClip Frame 10
stop();
Symbol 487 MovieClip Frame 1
function changePage(p) {
page = p;
play();
}
function nextPage() {
gotoAndPlay(page);
}
Symbol 487 MovieClip Frame 2
_global.music = _global.sndMan.newSound("musicLoop");
_global.music.volume = 0;
_global.music.start(0, 999999);
_global.music.fadeTo(75, 5);
Instance of Symbol 80 MovieClip "mute" in Symbol 487 MovieClip Frame 2
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (_global.sndMan.mute) {
gotoAndStop ("on");
_global.isMuted = false;
if (_global.root.unmuteEvent) {
_root.kvEvent(_global.root.unmuteEvent);
}
_global.sndMan.mute = false;
} else {
gotoAndStop ("off");
_global.isMuted = true;
if (_global.root.muteEvent) {
_root.kvEvent(_global.root.muteEvent);
}
_global.sndMan.mute = true;
}
};
}
Symbol 487 MovieClip Frame 69
stop();
Symbol 487 MovieClip Frame 75
nextPage();
Symbol 487 MovieClip Frame 82
stop();
Symbol 487 MovieClip Frame 88
nextPage();
Symbol 487 MovieClip Frame 89
_root.kvEvent(2047);
Symbol 487 MovieClip Frame 95
stop();
Symbol 487 MovieClip Frame 102
nextPage();
Symbol 487 MovieClip Frame 103
if (_global.root.finalScores[4] < _global.root.finalScore) {
scoreDisplay.gotoAndStop("beat mensa");
} else {
scoreDisplay.gotoAndStop("normal");
}
scoreDisplay.score_txt.text = (yourScore2_txt.text = _global.root.finalScore);
breakdown.text = ((("*Total = game avg.(" + Math.round(_global.root.displayOverallGameScore)) + ") + time modifier(") + Math.round(_global.root.displayPlayerTimeBonus)) + ")";
_global.music.fadeTo(75, 5);
scoreDisplay.score_txt.text = _global.root.finalScore;
_root.kvEvent(2054 + Math.floor(_global.root.finalScore / 25));
var i = 1;
while (i <= 4) {
this[("score" + i) + "_txt"].text = String(_global.root.finalScores[i]);
this[("diff" + i) + "_txt"].text = ((_global.root.finalScores[i] < _global.root.finalScore) ? "+" : "") + String(_global.root.finalScore - _global.root.finalScores[i]);
i++;
}
Instance of Symbol 286 MovieClip "scoreDisplay" in Symbol 487 MovieClip Frame 103
onClipEvent (enterFrame) {
if (_global.FB_score_formatted) {
scoreDisplay.text = (scoreDisplayShadow.text = _global.FB_score_formatted);
} else {
scoreDisplay.text = (scoreDisplayShadow.text = _global.FB_score);
}
}
Instance of Symbol 80 MovieClip "mute" in Symbol 487 MovieClip Frame 103
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (_global.sndMan.mute) {
gotoAndStop ("on");
_global.isMuted = false;
if (_global.root.unmuteEvent) {
_root.kvEvent(_global.root.unmuteEvent);
}
_global.sndMan.mute = false;
} else {
gotoAndStop ("off");
_global.isMuted = true;
if (_global.root.muteEvent) {
_root.kvEvent(_global.root.muteEvent);
}
_global.sndMan.mute = true;
}
};
}
Instance of Symbol 304 MovieClip in Symbol 487 MovieClip Frame 103
onClipEvent (load) {
if (_global.root.isFacebook()) {
gotoAndStop ("facebook");
} else {
gotoAndStop ("non facebook");
}
}
Symbol 487 MovieClip Frame 108
stop();
Symbol 487 MovieClip Frame 115
nextPage();
Symbol 487 MovieClip Frame 116
_parent.gotoAndStop("game");
Symbol 487 MovieClip Frame 121
stop();
Symbol 487 MovieClip Frame 127
_parent.gotoAndStop("start");
nextPage();
Instance of Symbol 286 MovieClip "scoreDisplay" in Symbol 487 MovieClip Frame 127
onClipEvent (enterFrame) {
if (_global.FB_score_formatted) {
scoreDisplay.text = (scoreDisplayShadow.text = _global.FB_score_formatted);
} else {
scoreDisplay.text = (scoreDisplayShadow.text = _global.FB_score);
}
}
Instance of Symbol 80 MovieClip "mute" in Symbol 487 MovieClip Frame 127
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (_global.sndMan.mute) {
gotoAndStop ("on");
_global.isMuted = false;
if (_global.root.unmuteEvent) {
_root.kvEvent(_global.root.unmuteEvent);
}
_global.sndMan.mute = false;
} else {
gotoAndStop ("off");
_global.isMuted = true;
if (_global.root.muteEvent) {
_root.kvEvent(_global.root.muteEvent);
}
_global.sndMan.mute = true;
}
};
}
Symbol 487 MovieClip Frame 128
scoreDisplay.score_txt.text = _global.root.finalScore;
graph.update(_global.root.roundsPerGame - 1);
var i = 1;
while (i <= 4) {
this[("score" + i) + "_txt"].text = String(_global.root.finalScores[i]);
this[("diff" + i) + "_txt"].text = ((_global.root.finalScores[i] < _global.root.finalScore) ? "+" : "") + String(_global.root.finalScore - _global.root.finalScores[i]);
i++;
}
if (_global.root.finalScores[4] < _global.root.finalScore) {
mensa_txt.text = "Wow! You beat Mensa - you really are a Digital Genius!";
}
Symbol 487 MovieClip Frame 133
stop();
Symbol 487 MovieClip Frame 138
nextPage();
Symbol 487 MovieClip Frame 140
_global.music.fadeTo(20, 2);
if (_global.root.plays < 5) {
_root.kvEvent(2048 + _global.root.plays);
_global.root.plays++;
} else {
_root.kvEvent(2053);
}
Symbol 487 MovieClip Frame 146
stop();
Symbol 487 MovieClip Frame 151
nextPage();
Symbol 487 MovieClip Frame 159
stop();
Symbol 487 MovieClip Frame 164
nextPage();
Symbol 498 MovieClip Frame 9
gotoAndPlay (1);
Symbol 499 MovieClip Frame 16
gotoAndPlay (1);
Symbol 500 MovieClip [transition] Frame 1
#initclip 20
Object.registerClass("transition", Transition);
#endinitclip
stop();
Symbol 500 MovieClip [transition] Frame 9
doTransition();
Symbol 507 MovieClip Frame 7
stop();
Symbol 508 Button
on (release) {
_global.root.giveUpGame();
}
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 12
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 2
play();
_global.root.fadeMusic(-5);
Symbol 522 MovieClip Frame 41
_parent.countdown.gotoAndPlay("on");
gotoAndStop (1);
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
play();
_global.root.fadeMusic(-5);
Symbol 527 MovieClip Frame 41
_parent.countdown.gotoAndPlay("on");
gotoAndStop (1);
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 21
_global.root.playSound("beep");
play();
Symbol 539 MovieClip Frame 37
_global.root.playSound("beep");
Symbol 539 MovieClip Frame 53
_global.root.playSound("beep");
Symbol 539 MovieClip Frame 69
_global.root.music_snd.remove();
_global.root.beginGame();
Symbol 546 MovieClip Frame 1
function onEnterFrame() {
var _local5;
var _local4;
var _local3 = 1;
while (_local3 <= 5) {
_local5 = this["icon" + _local3];
_local4 = this["bar" + _local3];
_local5._y = (_local4._y - _local4._height) - (_local5._height / 2);
_local3++;
}
if ((_currentframe == 1) && (_global.root.isScoresLoaded)) {
play();
}
}
function grow(b) {
stop();
_global.sndMan.playAndRemove("noiseUp");
b.i = 0;
b.onEnterFrame = growToScore;
var _local3 = (_global.root.roundNumber - 1) % _global.root.roundsPerGame;
var _local4 = b._name.charAt(3);
b.score = Math.max(1, _global.root.allScores[_local3][_local4]);
}
function growToScore() {
this._yscale = Quart.easeOut(++this.i, 0, this.score, frames);
if (this.i == Math.floor(frames / 2)) {
play();
}
if (this.i >= frames) {
delete this.onEnterFrame;
}
}
bar5._yscale = (bar1._yscale = (bar2._yscale = (bar3._yscale = (bar4._yscale = 0))));
icon5.gotoAndStop(_global.root.playerAgeGroup);
stop();
frames = 15;
Symbol 546 MovieClip Frame 4
grow(bar4);
Symbol 546 MovieClip Frame 5
grow(bar1);
Symbol 546 MovieClip Frame 6
grow(bar2);
Symbol 546 MovieClip Frame 7
grow(bar3);
Symbol 546 MovieClip Frame 8
grow(bar5);
Symbol 546 MovieClip Frame 60
_global.root.continueLoop(this);
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 11
home_btn.onRelease = function () {
_global.root.music_snd.remove();
_global.root.restart();
};
_global.root.music_snd.remove();
_global.root.playSound("startMusic", 1);
_global.root.music_snd.setVolume(1);
_global.root.fadeMusic(3, 40);
stop();
Symbol 549 MovieClip Frame 21
stop();
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 8
stop();
Symbol 561 MovieClip Frame 1
function showMsg(m) {
endGameMessage.gotoAndStop(m);
gotoAndPlay ("start");
}
endGameBlackOut = this;
stop();
Symbol 561 MovieClip Frame 37
_parent._parent.goToEndPage();
Symbol 561 MovieClip Frame 46
gotoAndStop (1);
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 2
play();
Symbol 570 MovieClip Frame 11
stop();
Symbol 570 MovieClip Frame 12
play();
Symbol 587 MovieClip Frame 1
stop();
Symbol 594 Button
on (release) {
_global.root.goToListen2U();
}
Symbol 595 MovieClip Frame 1
loader._visible = false;
_global.root.updateNewsBox();
Instance of Symbol 80 MovieClip "mute" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (_global.sndMan.mute) {
gotoAndStop ("on");
_global.isMuted = false;
if (_global.root.unmuteEvent) {
_global.root.kvEvent(_global.root.unmuteEvent);
}
_global.sndMan.mute = false;
} else {
gotoAndStop ("off");
_global.isMuted = true;
if (_global.root.muteEvent) {
_global.root.kvEvent(_global.root.muteEvent);
}
_global.sndMan.mute = true;
}
};
}