Frame 1
function FunctionQueue() {
function initFunctionQueue() {
with (this) {
timer = _root.createEmptyMovieClip("_FunctionQueue805_", 7382);
timer.scope = this;
}
}
function addCall(scope, functionName) {
with (this) {
trace(((("FunctionQueue.addCall(" + scope) + ",") + functionName) + ")");
var callObj = new Object();
callObj.scope = scope;
callObj.functionName = functionName;
arguments.shift();
arguments.shift();
callObj.args = arguments;
callQueue.push(callObj);
trace("addCall");
if (timer.onEnterFrame == undefined) {
timer.onEnterFrame = checkQueue;
}
}
}
function checkQueue() {
with (this) {
var scope = this.scope;
trace("checking queue : " + scope.callQueue.length);
if (scope.callQueue.length < 1) {
scope.timer.onEnterFrame = undefined;
return(undefined);
}
var o = scope.callQueue.shift();
var f = o.scope[o.functionName];
if (o.functionName == "fscommand") {
fscommand (o.args[0], o.args[1]);
} else {
f.apply(o.scope, o.args);
}
}
}
function getQueueCount(Void) {
with (this) {
return(callQueue.length);
}
}
this.timer = null;
this.callQueue = new Array();
this.getQueueCount = getQueueCount;
this.initFunctionQueue = initFunctionQueue;
this.addCall = addCall;
this.checkQueue = checkQueue;
this.initFunctionQueue();
}
function passToJavascript(sEvent, sArgs) {
var _local2 = sArgs;
trace(((("callJavascript(" + sEvent) + ",") + _local2) + ")");
var _local1 = FunctionQueue.getInstance();
if (getPlayerType() == "IE") {
_local1.addCall(_root, "fscommand", sEvent, _local2);
} else {
setMovieIndex();
var _local3 = ((((("javascript: auto_orange_DoFSCommand('" + sEvent) + "','") + _local2) + "',") + MovieIndex) + ");";
_local1.addCall(_root, "getURL", _local3);
}
}
function callFscommand(sEvent, sParam) {
fscommand (sEvent, sParam);
}
function callGetURL(sEvent, sParam, nMovieIndex) {
getURL (((((("javascript: auto_orange_DoFSCommand('" + sEvent) + "','") + sParam) + "',") + nMovieIndex) + ");");
}
function getPlayerType() {
if (System.capabilities.playerType == "ActiveX") {
return("IE");
}
return("nonIE");
}
function callJavascriptDirectly(sEvent, sParamString) {
if (getPlayerType() == "IE") {
callFscommand(sEvent, sParamString);
} else {
setMovieIndex();
callGetURL(sEvent, sParamString, MovieIndex);
}
}
function setMovieIndex() {
if (MovieIndex == undefined) {
MovieIndex = 0;
}
}
function SendMessageToJavascript(sEvent, sArgs) {
passToJavascript(sEvent, sArgs);
}
function InitializeStreamingVideo() {
function countProp(obj) {
var _local3 = obj;
var _local1 = 0;
for (var _local2 in _local3) {
_local1++;
}
return(_local1);
}
function getAllObjectsOfType(typeToFind, obj, lev, doSort) {
getAllObjectsOfType.lev++;
var _local3 = [];
var pCount = 0;
var txt = "";
for (var p in obj) {
pCount++;
var _local1 = obj[p];
var _local2 = typeof(_local1);
if (_local2 == "object") {
if (((_local1 != null) && (p != "class")) && (countProp(_local1) > 0)) {
_local3.concat(getAllObjectsOfType(_local1));
}
} else if (_local2 == typeToFind) {
_local3.push(_local1);
}
}
if (doSort == true) {
_local3.sort();
}
getAllObjectsOfType.lev--;
return(_local3);
}
function compareToAtlasPaths(evalText) {
var matchingVars = [];
var i = 1;
while (eval ("movie" + i) != null) {
if (evalText.lastIndexOf(eval ("movie" + i)) != null) {
matchingVars.push(i);
}
i++;
}
return(matchingVars);
}
function swapMovieVars(movieNum, movieTarget) {
if ((eval ("atlasm" + movieNum).lastIndexOf(eval ("movie" + movieNum)) != -1) && (eval ("atlasm" + movieNum) != eval ("movie" + movieNum))) {
_level0["movie" + movieNum] = eval ("atlasm" + movieNum);
if (movieTarget != null) {
movieTarget.setMedia(eval ("atlasm" + movieNum));
}
}
}
function replaceMovieNPaths() {
var i = 1;
var MAX_MOVIE_VARS = 15;
while (i <= MAX_MOVIE_VARS) {
if (eval ("atlasm" + i) != null) {
_level0["movie" + i] = eval ("atlasm" + i);
ASSetPropFlags(_level0, ["movie" + i], 6, true);
}
i++;
}
}
function replaceObjPaths() {
var contentPathObjs = getAllObjectsOfType("movieclip", _level0, 0, true);
var _local2 = 0;
while (_local2 < contentPathObjs.length) {
if (contentPathObjs[_local2].contentPath != null) {
var _local3 = compareToAtlasPaths(contentPathObjs[_local2].contentPath);
var _local1 = 0;
while (_local1 < _local3.length) {
swapMovieVars(_local3[_local1], contentPathObjs[_local2]);
_local1++;
}
}
_local2++;
}
}
function replacePaths() {
replaceMovieNPaths();
replaceObjPaths();
}
this.replacePaths = replacePaths;
}
function MovieCallQueue() {
function queueMovieCall(movieNum) {
var _local2 = movieNum;
var _local1 = true;
for (var _local3 in queueArray) {
if (queueArray[_local3] == _local2) {
_local1 = false;
}
}
if (_local1) {
queueArray.push(_local2);
}
if (intervalId < 0) {
intervalId = setInterval(this.executeMovieCallQueue, 1000);
}
}
function executeMovieCallQueue() {
var _local2 = _root;
if (html_loaded == "true") {
ASSetPropFlags(_level0, ["html_loaded"], 6, true);
clearInterval(intervalId);
for (var _local1 in queueArray) {
_local2.conduit.movie(queueArray[_local1]);
}
}
}
this.queueMovieCall = queueMovieCall;
this.executeMovieCallQueue = executeMovieCallQueue;
}
function checkMouseFlag() {
if ((isMouseOver == false) || (isMouseOver == "false")) {
isMouseOver = null;
if (typeof(mouseRolledOff) == "function") {
trace("Calling mouseRolledOff");
mouseRolledOff();
}
}
}
System.security.allowDomain(destdom, _root.destdom, ds_path, _root.ds_path, atlasm1, atlasm2, atlasm3, atlasm4, atlasm5, atlasm6, atlasm7, atlasm8, atlasm9, atlasm10, atlasm11, atlasm12, atlasm13, atlasm14, atlasm15);
var AdvertiserDSPath = ds_path;
var cp = "http://";
streaming_url = su;
external_streaming_url = xsu;
ASSetPropFlags(_level0, ["streaming_url"], 6, true);
ASSetPropFlags(_level0, ["external_streaming_url"], 6, true);
var html_loaded = false;
var mouseButtonDown = false;
var queue = new MovieCallQueue();
var initVideo = new InitializeStreamingVideo();
var init = true;
var conduit_loaded = true;
var isMouseOver = null;
var conduit = new Object();
var isAtlasLocal = false;
if ((AdvertiserDSPath == undefined) || (AdvertiserDSPath == "undefined")) {
html_loaded = true;
isAtlasLocal = true;
}
Set("FunctionQueue._instance:FunctionQueue", undefined);
FunctionQueue.getInstance = function () {
if (FunctionQueue._instance == undefined) {
FunctionQueue._instance = new FunctionQueue();
}
return(FunctionQueue._instance);
};
conduit.exit = function (exitNum) {
var targetFrame = "_blank";
var tempTargetFrame = "";
var defaultURL = "";
tempTargetFrame = String(eval (("_level0.exit" + exitNum) + "window"));
if ((tempTargetFrame != "undefined") && (tempTargetFrame != undefined)) {
targetFrame = tempTargetFrame;
} else {
targetFrame = "_blank";
}
defaultURL = String(eval ("_level0.exit" + exitNum));
var windowOpenblocked = "";
if (_root.mouseButtonDown) {
windowOpenblocked = "AtlasBlocked";
}
var paramsString = (((((("mainValue=" + exitNum) + "&additionalInfo=") + targetFrame) + windowOpenblocked) + "&default=") + defaultURL);
trace(((("exit" + exitNum) + " was called and ") + defaultURL) + " will be opened");
callJavascriptDirectly("exit", paramsString);
};
var intervalId = -1;
var queueArray = new Array();
conduit.movie = function (movieNum) {
var _local1 = movieNum;
if (html_loaded == false) {
queue.queueMovieCall(_local1);
} else {
ASSetPropFlags(_level0, ["html_loaded"], 6, true);
var _local2 = "";
var _local3 = "mainValue=" + _local1;
if ((_level0["atlasm" + _local1] != undefined) || (isAtlasLocal)) {
if (movie["loaded" + _local1] != undefined) {
return(false);
}
movie["loaded" + _local1] = true;
if (isAtlasLocal) {
_local2 = String(_level0["movie" + _local1]);
} else {
_local2 = String(_level0["atlasm" + _local1]);
}
if ((_level0[("movie" + _local1) + "target"] != undefined) && (_level0[("movie" + _local1) + "target"] != "")) {
loadMovie (_local2, _level0[("movie" + _local1) + "target"]);
} else {
loadMovie (_local2, _level0[("movie" + _local1) + "_mc"]);
}
}
_local3 = (_local3 + "&additionalInfo=") + _local2;
trace(("movie" + _local1) + " was loaded");
SendMessageToJavascript("loadmovie", _local3);
}
return(undefined);
};
conduit.event = function (eventNum) {
var eventDesc = "";
var tempEventDesc = "";
tempEventDesc = String(eval (("_level0.event" + eventNum) + "desc"));
if ((tempEventDesc != "undefined") && (tempEventDesc != undefined)) {
eventDesc = tempEventDesc;
} else {
eventDesc = "";
}
var paramsString = ((("mainValue=" + eventNum) + "&additionalInfo=") + eventDesc);
SendMessageToJavascript("event", paramsString);
};
conduit.close = function () {
trace("Closing Ad");
SendMessageToJavascript("FrameLabel", "closead");
};
conduit.closeSelfFloat = function () {
_root.conduit.close();
};
conduit.getFilename = function (filename) {
};
conduit.stopTimer = function (timerID) {
};
conduit.startTimer = function (timerID) {
};
conduit.movieUnload = function (movieID) {
};
_root.onMouseDown = function () {
_root.mouseButtonDown = true;
};
_root.onMouseUp = function () {
_root.mouseButtonDown = false;
};
var tempIntervalId = setInterval(checkMouseFlag, 300);
initVideo.replacePaths();
conduit.collapse = function () {
trace("collapse");
SendMessageToJavascript("FrameLabel", "banner");
};
conduit.banner = function () {
trace("banner");
SendMessageToJavascript("FrameLabel", "banner");
};
conduit.expand = function () {
trace("expand");
SendMessageToJavascript("FrameLabel", "expand");
};
conduit.teaser = function () {
trace("teaser");
SendMessageToJavascript("FrameLabel", "teaser");
};
conduit.reminder = function () {
trace("reminder");
SendMessageToJavascript("FrameLabel", "reminder");
};
conduit.main = function () {
trace("main");
SendMessageToJavascript("FrameLabel", "main");
};
SendMessageToJavascript("Initialization", "flash_loaded");
_root.SendMessageToJavascript("FrameLabel", "banner");
movie1 = "";
movie2 = "";
movie3 = "";
movie4 = "";
exit1 = "http://www.geeksquad.com";
exit1window = "_blank";
exit2 = "http://www.geeksquad.com/apps/chatwindows.html";
exit2window = "_blank";
event1desc = "Yes";
event2desc = "No";
event3desc = "Maybe";
event4desc = "Profanity";
event5desc = "NoEntry";
if (init != true) {
attachMovie("conduit_mc", "conduit", 0);
init = true;
}
function giveAnswer(input1, input2) {
input2 = input2.toUpperCase();
trace((input1 + " and ") + input2);
outputResult = "No";
whichItem = null;
var _local2 = 0;
while (_local2 < yesList.length) {
if (input1 == yesList[_local2][0][0]) {
whichItem = yesList[_local2];
break;
}
_local2++;
}
_local2 = 0;
while (_local2 < whichItem[1].length) {
var _local1 = 0;
while (_local1 < whichItem[1][_local2].length) {
if (input2 == whichItem[1][_local2][_local1]) {
outputResult = "Yes";
_local2 = whichItem[1].length;
break;
}
_local1++;
}
_local2++;
}
if (outputResult == "No") {
whichItem = null;
_local2 = 0;
while (_local2 < yesMaybeList.length) {
if (input1 == yesMaybeList[_local2][0][0]) {
whichItem = yesMaybeList[_local2];
break;
}
_local2++;
}
_local2 = 0;
while (_local2 < whichItem[1].length) {
var _local1 = 0;
while (_local1 < whichItem[1][_local2].length) {
if (input2 == whichItem[1][_local2][_local1]) {
outputResult = "YesMaybe";
_local2 = whichItem[1].length;
break;
}
_local1++;
}
_local2++;
}
}
if (outputResult == "No") {
whichItem = null;
_local2 = 0;
while (_local2 < maybeList.length) {
if (input1 == maybeList[_local2][0][0]) {
whichItem = maybeList[_local2];
break;
}
_local2++;
}
_local2 = 0;
while (_local2 < whichItem[1].length) {
var _local1 = 0;
while (_local1 < whichItem[1][_local2].length) {
if (input2 == whichItem[1][_local2][_local1]) {
outputResult = "Maybe";
_local2 = whichItem[1].length;
break;
}
_local1++;
}
_local2++;
}
}
if (outputResult == "No") {
profanityCheck = checkProfanity(input2);
if (profanityCheck == 1) {
outputResult = "Profanity";
}
}
if (input2.length == 0) {
outputResult = "NoEntry";
}
trace(outputResult);
if (outputResult == "Yes") {
whichAnswer = "Yes" + (random(3) + 1);
} else if (outputResult == "YesMaybe") {
whichAnswer = "YesMaybe";
} else if (outputResult == "Maybe") {
whichAnswer = "Maybe" + (random(3) + 1);
} else if (outputResult == "No") {
whichAnswer = "No" + (random(3) + 1);
} else if (outputResult == "Profanity") {
whichAnswer = "Profane" + (random(2) + 1);
} else if (outputResult == "NoEntry") {
whichAnswer = "NoEntry";
}
Result.Man.whichAnswer = whichAnswer;
Result.Man.gotoAndPlay("Trans1-2");
}
function resetResult() {
if (Result.Man.Animation == "Answer") {
Result.Man.gotoAndPlay("TransAnswer-1");
Result.MainCopy.gotoAndPlay("Intro");
}
}
function checkProfanity(inputWord) {
profanityList = ["BUTT", "SEX", "ASS", "FUCK", "DICK", "PENIS", "PUSSY", "VAGINA", "SHIT", "POOP", "GOD DAMN", "DAMN", "ASSHOLE", "BEEF CURTAINS", "WHORE", "F U C K", "FART", "SPOOGE", "ANAL", "KUNT", "CUNT", "DONG", "FUR BURGER", "FUDGEPACKER", "RECTUM", "BONER", "TWAT", "PUBE", "GOLDEN SHOWER", "HONKY", "NIGGER", "FAGSTAG", "BLUEBALLS", "BLOWJOB", "SMEGMA", "DOUCHE", "CIRCLE JERK", "CUMMING", "PUBIC", "WEENIE", "GOB THE KNOB", "TURD", "BEEFFLAPS", "SHAGGING", "RIM JOB", "PRICK", "CORN HOLE", "KNOB ARTISTS", "FAG STAG", "BITCH", "SLUT", "MONKEYMEAT", "CHOAD", "CAMEL TOE", "TOSS MY SALAD", "BOLONEY PONY", "COCK", "SCHLONG", "MEAT DIVER", "MUFF", "CLIT", "SUCK IT", "BUSHBOOGIE", "DOGGY STYLE", "HAND SHANDY", "CHOWBOX", "CUMDUMPSTER", "SAUSAGEJOCKEY", "TESTICLE", "QUEEF", "CLITORIS", "PEARL NECKLACE", "STEAMING PILE", "CARPET LICKER", "CLEVELAND STEAMER", "PECKER", "MEATPUPPET", "BEASTIALITY", "DIRTY SANCHEZ", "BUNGHOLE", "BUM-BANDIT", "CAMEL JOCKEY", "SUCK MY", "COOCHIE", "TWIG AND BERRIES", "FLESH NUGGETS", "SAUSAGE JOCKEY", "SCALLYWAG", "HERPES", "SKIN FLUTE", "CIRCLEJERK", "PISSFLAPPERS", "BEANFLICKER", "CARPETLICKER", "POOTER", "MUSTACHERIDE", "DONKA DONK", "TURD BURGLAR", "GLORY HOLE", "FLANGE", "SEAMEN"];
detectedProfanity = 0;
var _local3 = 0;
while (_local3 < profanityList.length) {
var _local2 = 0;
while (_local2 < inputWord.length) {
var _local1 = 0;
while (_local1 < profanityList[_local3].length) {
if (inputWord.slice(_local2 + _local1, (_local2 + _local1) + 1) == profanityList[_local3].slice(_local1, _local1 + 1)) {
detectedProfanity = 1;
} else {
detectedProfanity = 0;
break;
}
_local1++;
}
if (detectedProfanity == 1) {
return(detectedProfanity);
}
_local2++;
}
_local3++;
}
}
inputText = "";
inputField.html = 0;
itemA = "LAPTOP";
itemB = "";
this.onEnterFrame = function () {
inputText = inputText.toUpperCase();
};
var keyboardListen = new Object();
keyboardListen.onKeyDown = function () {
if (Key.getCode() == 13) {
itemB = inputText;
giveAnswer(itemA, itemB);
}
};
Key.addListener(keyboardListen);
if (checkProfanity("") == 1) {
trace("profanity");
}
aliasComputer = ["COMPUTER", "PC", "LAPTOP", "DESKTOP", "MAC", "LAP TOP", "MAC", "APPLE", "IMAC", "IBOOK", "POWERBOOK", "POWER BOOK", "ALIENWARE", "DELL", "HP", "COMPAQ", "MACBOOK"];
aliasLaptop = ["LAPTOP", "PC", "COMPUTER", "DESKTOP", "MAC", "LAP TOP", "MAC", "APPLE", "IMAC", "IBOOK", "POWERBOOK", "POWER BOOK", "ALIENWARE"];
aliasCellPhone = ["CELL PHONE", "MOBILE PHONE", "TWO WAY", "CELL", "CELLY", "CELLULAR", "MOBILE", "NOKIA", "NOKIE", "MOTOROLA", "Chocolate"];
aliasDigitalCamera = ["DIGITAL CAMERA", "CAMERA", "DIGI CAM", "DIGI CAMERA", "CYBERSHOT"];
aliasDVDPlayer = ["DVD PLAYER", "DIVX PLAYER", "DVD"];
aliasDVR = ["DVR", "TIVO", "DIRECT TV", "DIRECTTV"];
aliasGameConsole = ["GAME CONSOLE", "GAMING SYSTEM", "PLAYSTATION", "NINTENDO", "PS2", "GAMECUBE", "GAME CUBE"];
aliasXbox = ["XBOX"];
aliasNewConsole = ["XBOX 360", "XBOX360", "PS3", "PLAYSTATION 3", "WII", "PSP"];
aliasMP3Player = ["MP3 PLAYER", "IPOD", "ZUNE", "WALKMAN", "IRIVER"];
aliasPDA = ["PDA", "BLACKBERRY", "PAGER", "TRIO", "SIDEKICK", "PEARL"];
aliasRouter = ["ROUTER", "LINKSYS", "NETGEAR"];
aliasSatRadio = ["SATELLITE RADIO", "XM", "SIRIUS"];
aliasStereo = ["STEREO", "RECIEVER", "HOME THEATER", "AMP", "AMPLIFIER"];
aliasTelevision = ["TELEVISION", "TV", "TUBE", "PLASMA", "LCD", "TV SET"];
aliasVideoCamera = ["VIDEO CAMERA", "HANDICAM", "VID CAM", "VIDEO", "DV", "CAMCORDER", "CAM CORDER", "MINI DV"];
aliasProjector = ["PROJECTOR"];
aliasHeartMonitor = ["HEART MONITOR", "HEARTRATE MONITOR", "HEART RATE MONITOR"];
aliasKeyboard = ["KEYBOARD", "WIRELESS KEYBOARD"];
aliasNavigation = ["NAVIGATION SYSTEM", "GPS", "NAV SYSTEM", "NAV", "CAR NAV", "GARMIN"];
aliasPrinter = ["PRINTER", "PRINTER SERVER", "WIRELESS PRINTER", "PRINT SERVER"];
aliasSpeakers = ["SPEAKERS", "WOOFER", "WIRELESS SPEAKERS", "HEADPHONES", "HEADSET", "OUTDOOR SPEAKERS", "COMPUTER SPEAKERS"];
aliasStereoComponent = ["STEREO COMPONENT", "CD CHANGER", "DISK CHANGER", "TURNTABLE", "TAPE DECK", "TAPE PLAYER", "DAT", "DAT PLAYER"];
aliasVideoChat = ["VIDEO CHAT", "WEBCAM"];
aliasModem = ["MODEM", "CABLE MODEM", "DSL", "DSL MODEM"];
aliasScanner = ["SCANNER"];
aliasMouse = ["MOUSE", "WIRELESS MOUSE"];
aliasBluetooth = ["BLUETOOTH", "HANDS-FREE CELL PHONE ACCESSORY", "HANDS FREE", "BLUE TOOTH"];
aliasCarAudio = ["CAR AUDIO", "CAR STEREO", "IN DASH PLAYER"];
aliasSatelliteTV = ["SATELLITE TV"];
aliasSurveillance = ["SURVEILLANCE"];
aliasRadio = ["RADIO"];
aliasAudio = ["AUDIO"];
aliasHDD = ["EXTERNAL HARD DRIVE"];
aliasDSLite = ["DS LIGHT"];
aliasPhone = ["PHONE"];
aliasiPhone = ["IPHONE"];
aliasWut = ["HP PHOTOSMART"];
aliasCD = ["CD PLAYER"];
yesComputer = [aliasComputer, [aliasComputer, aliasLaptop, aliasRouter, aliasModem, aliasScanner, aliasMouse, aliasKeyboard, aliasBluetooth, aliasDSLite, aliasWut, aliasiPhone, aliasSpeakers]];
yesLaptop = [aliasLaptop, [aliasComputer, aliasLaptop, aliasRouter, aliasModem, aliasScanner, aliasMouse, aliasKeyboard, aliasBluetooth, aliasDSLite, aliasWut, aliasiPhone, aliasSpeakers]];
yesRouter = [aliasRouter, [aliasComputer, aliasLaptop, aliasPDA]];
yesPDA = [aliasPDA, [aliasRouter]];
yesTV = [aliasTelevision, [aliasSpeakers, aliasAudio]];
yesStereo = [aliasStereo, [aliasTelevision]];
yesRouter = [aliasRouter, [aliasModem, aliasNewConsole, aliasComputer, aliasLaptop, aliasPDA]];
yesSatRad = [aliasSatRadio, [aliasComputer]];
yesList = [yesComputer, yesLaptop, yesRouter, yesTV, yesStereo, yesRouter, yesPDA];
yesMaybeComputer = [aliasComputer, [aliasStereo, aliasPDA, aliasMP3Player, aliasTelevision, aliasPrinter, aliasSatelliteTV, aliasRadio, aliasDVDPlayer, aliasHDD, aliasPhone, aliasSatelliteTV, aliasDVR]];
yesMaybeLaptop = [aliasLaptop, [aliasStereo, aliasPDA, aliasMP3Player, aliasTelevision, aliasPrinter, aliasSatelliteTV, aliasRadio, aliasDVDPlayer, aliasHDD, aliasPhone, aliasSatelliteTV, aliasDVR]];
yesMaybePDA = [aliasPDA, [aliasNavigation, aliasCarAudio, aliasComputer, aliasLaptop]];
yesMaybeTV = [aliasTelevision, [aliasDVDPlayer, aliasVideoCamera, aliasComputer, aliasLaptop, aliasRouter]];
yesMaybeDVDPlayer = [aliasDVDPlayer, [aliasTelevision, aliasComputer, aliasLaptop, aliasRouter]];
yesMaybeDVR = [aliasDVR, [aliasComputer, aliasLaptop]];
yesMaybeMP3 = [aliasMP3Player, [aliasComputer, aliasLaptop, aliasStereo]];
yesMaybeStereo = [aliasStereo, [aliasComputer, aliasLaptop, aliasMP3Player]];
yesMaybeRouter = [aliasRouter, [aliasGameConsole, aliasProjector, aliasPrinter, aliasPhone, aliasSatelliteTV, aliasDVDPlayer, aliasRadio, aliasScanner, aliasiPhone]];
yesMaybeSatTV = [aliasSatelliteTV, [aliasRouter]];
yesMaybeVideoCam = [aliasVideoCamera, [aliasTelevision]];
yesMaybeGameConsole = [aliasGameConsole, [aliasRouter]];
yesMaybeProjector = [aliasProjector, [aliasRouter]];
yesMaybeList = [yesMaybeComputer, yesMaybeLaptop, yesMaybePDA, yesMaybeTV, yesMaybeDVDPlayer, yesMaybeDVR, yesMaybeMP3, yesMaybeStereo, yesMaybeRouter, yesMaybeSatTV, yesMaybeVideoCam, yesMaybeGameConsole, yesMaybeProjector];
maybeComputer = [aliasComputer, [aliasGameConsole, aliasNewConsole, aliasProjector, aliasVideoChat, aliasDigitalCamera, aliasVideoCamera, aliasVideoCamera, aliasHeartMonitor, aliasCellPhone, aliasSatRadio, aliasXbox]];
maybeLaptop = [aliasLaptop, [aliasGameConsole, aliasNewConsole, aliasProjector, aliasVideoChat, aliasDigitalCamera, aliasVideoCamera, aliasVideoCamera, aliasHeartMonitor, aliasCellPhone, aliasSatRadio, aliasXbox]];
maybeDVD = [aliasDVDPlayer, [aliasProjector, aliasStereo]];
maybeDVR = [aliasDVR, [aliasTelevision, aliasProjector]];
maybeGame = [aliasGameConsole, [aliasGameConsole, aliasTelevision, aliasComputer, aliasLaptop]];
maybeGame2 = [aliasNewConsole, [aliasNewConsole, aliasTelevision, aliasComputer, aliasLaptop]];
maybeProjector = [aliasProjector, [aliasStereo, aliasTelevision, aliasComputer, aliasLaptop, aliasDVDPlayer, aliasVideoCamera, aliasDVR]];
maybeSatRadio = [aliasSatRadio, [aliasTelevision, aliasSatelliteTV, aliasRouter, aliasComputer]];
maybeStereo = [aliasStereo, [aliasDVDPlayer, aliasSpeakers, aliasSpeakers, aliasStereoComponent, aliasComputer, aliasLaptop, aliasMP3Player, aliasRouter, aliasCD]];
maybeTV = [aliasTelevision, [aliasSurveillance, aliasDigitalCamera, aliasDVR, aliasGameConsole, aliasNewConsole, aliasProjector, aliasSatRadio, aliasSatelliteTV]];
maybeRouter = [aliasRouter, [aliasVideoCamera, aliasVideoChat, aliasDigitalCamera, aliasMP3Player, aliasStereo, aliasCellPhone, aliasSatRadio, aliasHDD, aliasHeartMonitor, aliasTelevision]];
maybeVideoCam = [aliasVideoCamera, [aliasComputer, aliasRouter]];
maybeDigitalCamera = [aliasDigitalCamera, [aliasComputer, aliasLaptop, aliasRouter, aliasTelevision]];
maybeMP3 = [aliasMP3Player, [aliasRouter]];
maybeList = [maybeComputer, maybeLaptop, maybeDVD, maybeDVR, maybeGame, maybeGame2, maybeProjector, maybeSatRadio, maybeStereo, maybeTV, maybeDigitalCamera, maybeRouter, maybeVideoCam, maybeMP3];
Symbol 2 Button
on (rollOver) {
gotoAndStop ("Highlight");
}
on (rollOut) {
gotoAndStop ("Item");
}
on (release) {
_parent.selectItem(Name);
}
Symbol 6 MovieClip [MenuSelect] Frame 1
stop();
Symbol 6 MovieClip [MenuSelect] Frame 2
stop();
Symbol 7 MovieClip [conduit_mc] Frame 1
loadMovie (_root.cp + "conduit.swf", "_parent.conduit");
stop();
Symbol 17 Button
on (release) {
_root.conduit.exit(1);
}
Symbol 26 Button
on (release) {
itemB = inputText;
giveAnswer(itemA, itemB);
}
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 7
_root.conduit.event(1);
stop();
Symbol 48 MovieClip Frame 12
_root.conduit.event(1);
stop();
Symbol 48 MovieClip Frame 17
_root.conduit.event(1);
stop();
Symbol 48 MovieClip Frame 25
_root.conduit.event(2);
stop();
Symbol 48 MovieClip Frame 30
_root.conduit.event(2);
stop();
Symbol 48 MovieClip Frame 35
_root.conduit.event(2);
stop();
Symbol 48 MovieClip Frame 41
_root.conduit.event(3);
stop();
Symbol 48 MovieClip Frame 46
_root.conduit.event(3);
stop();
Symbol 48 MovieClip Frame 51
_root.conduit.event(3);
stop();
Symbol 48 MovieClip Frame 59
_root.conduit.event(4);
stop();
Symbol 48 MovieClip Frame 64
_root.conduit.event(4);
stop();
Symbol 48 MovieClip Frame 69
_root.conduit.event(5);
stop();
Symbol 49 MovieClip Frame 1
Animation = "Think";
Symbol 49 MovieClip Frame 7
stop();
Symbol 49 MovieClip Frame 8
Animation = "Answer";
Symbol 49 MovieClip Frame 30
if (whichAnswer == "Maybe1") {
_parent.MainCopy.gotoAndPlay("Maybe1");
} else if (whichAnswer == "Maybe2") {
_parent.MainCopy.gotoAndPlay("Maybe2");
} else if (whichAnswer == "Maybe3") {
_parent.MainCopy.gotoAndPlay("Maybe3");
} else if (whichAnswer == "YesMaybe") {
_parent.MainCopy.gotoAndPlay("YesMaybe");
whichAnswer = "Yes" + (random(3) + 1);
} else {
_parent.MainCopy.gotoAndPlay("Result");
}
Answers.gotoAndPlay(whichAnswer);
thisInput = _parent._parent.inputText;
this.onEnterFrame = function () {
if (_parent._parent.inputText != thisInput) {
gotoAndPlay ("TransAnswer-1");
_parent.MainCopy.gotoAndPlay("Intro");
}
};
Symbol 49 MovieClip Frame 52
stop();
Symbol 49 MovieClip Frame 53
this.onEnterFrame = function () {
};
Symbol 58 Button
on (release) {
_root.conduit.exit(1);
}
Symbol 61 Button
on (release) {
_root.conduit.exit(2);
}
Symbol 64 Button
on (release) {
_root.conduit.exit(2);
}
Symbol 65 MovieClip Frame 51
stop();
Symbol 70 MovieClip Frame 6
stop();
Symbol 70 MovieClip Frame 13
stop();
Symbol 70 MovieClip Frame 21
stop();
Symbol 70 MovieClip Frame 29
stop();
Symbol 70 MovieClip Frame 37
stop();
Symbol 70 MovieClip Frame 46
stop();
Symbol 74 Button
on (press) {
_parent.resetResult();
this.gotoAndPlay("Menu");
}
Symbol 76 Button
on (rollOut, dragOut) {
selectItem(_parent.itemA);
gotoAndPlay ("Button");
}
Symbol 77 MovieClip Frame 1
function selectItem(whichItem) {
_parent.itemA = whichItem;
var _local2 = 0;
while (_local2 < selectList.length) {
selectList[_local2].removeMovieClip();
_local2++;
}
selectList = [];
gotoAndPlay ("Button");
menuName = null;
if (whichItem == "LAPTOP") {
menuName = "LAPTOP";
} else if (whichItem == "COMPUTER") {
menuName = "COMPU...";
} else if (whichItem == "GAME CONSOLE") {
menuName = "GAME...";
} else if (whichItem == "ROUTER") {
menuName = "ROUTER";
} else if (whichItem == "DVR") {
menuName = "DVR";
} else if (whichItem == "MP3 PLAYER") {
menuName = "MP3 ...";
} else if (whichItem == "DIGITAL CAMERA") {
menuName = "DIGITA...";
} else if (whichItem == "DVD PLAYER") {
menuName = "DVD ...";
} else if (whichItem == "VIDEO CAMERA") {
menuName = "VIDEO...";
} else if (whichItem == "STEREO") {
menuName = "STEREO";
} else if (whichItem == "PDA") {
menuName = "PDA";
} else if (whichItem == "SATELLITE RADIO") {
menuName = "SATEL...";
} else if (whichItem == "PROJECTOR") {
menuName = "PROJE...";
} else if (whichItem == "TELEVISION") {
menuName = "TV";
}
}
selectList = [];
stop();
Symbol 77 MovieClip Frame 16
selectList = [];
menuList = ["LAPTOP", "COMPUTER", "GAME CONSOLE", "ROUTER", "DVR", "MP3 PLAYER", "DIGITAL CAMERA", "DVD PLAYER", "VIDEO CAMERA", "STEREO", "PDA", "SATELLITE RADIO", "PROJECTOR", "TELEVISION"];
var i = 0;
while (i < menuList.length) {
newSelect = this.attachMovie("MenuSelect", menuList[i], i, {_x:6.5, _y:2.6 + (i * 12.8), Name:menuList[i]});
selectList.push(newSelect);
i++;
}
stop();