Frame 1
link_wifi = "http://www.nintendowifi.com/";
link_ac = "http://www.animal-crossing.com/wildworld";
characters = 14;
totalQuestions = 14;
a1 = "RESETTI";
a2 = "REDD";
a3 = "SAHARAH";
a4 = "LYLE";
a5 = "K.K. SLIDER";
a6 = "TOM NOOK";
a7 = "BLATHERS";
a8 = "CELESTE";
a9 = "HARRIET";
a10 = "DR. SHRUNK";
a11 = "GRACIE";
a12 = "PASCAL";
a13 = "JOAN";
a14 = "BREWSTER";
q1 = "Which one will give you a hard time for turning off your game without saving?";
q2 = "Psst. Buddy. You'll need a password to check out this shady salesman's wares.";
q3 = "This wandering rug-peddler's got a thing for turbans.";
q4 = "Who do you need to see for all your insurance needs?";
q5 = "Who strums tunes down at The Roost on Saturday nights?";
q6 = "Who's the clever salesman with ambitious plans for expansion?";
q7 = "Who's the chatterbox running the town museum?";
q8 = "Who do you see for a little star-gazing in the observatory?";
q9 = "Who clips your locks in the town's barber shop?";
q10 = "Uptight? Can't express your feelings? Then check in with --";
q11 = "Oh, honeybunch! Who's the fashion diva with the fancy car?";
q12 = "Which wacky philosopher strolls the beach?";
q13 = "Who's the wandering turnip peddler?";
q14 = "Who pours the coffee at The Roost?";
response1 = "Ugh!";
response2 = "Hmph.";
response3 = "Fair.";
response4 = "Good!";
response5 = "Brilliant!";
Frame 3
loaded = Math.round(getBytesLoaded());
total = Math.round(getBytesTotal());
percent = loaded / total;
loading.status.txt = ("Loading " add Math.round(percent * 100)) + "%";
if (loaded == total) {
gotoAndPlay ("start");
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Symbol 8 MovieClip Frame 1
stop();
Symbol 8 MovieClip Frame 40
gotoAndPlay (1);
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 120
gotoAndPlay (1);
Symbol 18 MovieClip Frame 20
stop();
Symbol 24 MovieClip Frame 1
Symbol 24 MovieClip Frame 500
gotoAndPlay (1);
Symbol 30 Button
on (release) {
getURL (_parent._parent.link_wifi, "_blank");
}
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 10
stop();
Symbol 31 MovieClip Frame 20
stop();
Symbol 37 Button
on (press) {
_parent._parent.gotoAndPlay("main");
}
Symbol 39 MovieClip Frame 30
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 15
_parent.rounds.push("incorrect");
_parent.current++;
_parent.gotoAndPlay("start");
gotoAndStop (1);
Symbol 61 MovieClip Frame 30
_parent.rounds.push("correct");
_parent.current++;
_parent.gotoAndPlay("start");
gotoAndStop (1);
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
stop();
Symbol 74 Button
on (press) {
_parent._parent.answer.gotoAndPlay(_parent.answers);
gotoAndStop (2);
}
on (rollOver) {
_parent.character.gotoAndStop(2);
_parent.cnames.gotoAndPlay("in");
}
on (rollOut) {
_parent.character.gotoAndStop(1);
_parent.cnames.gotoAndPlay("out");
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 1
txt = _parent.nameVal;
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 10
stop();
Symbol 80 MovieClip Frame 20
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 3
stop();
Symbol 146 MovieClip Frame 4
stop();
Symbol 146 MovieClip Frame 5
stop();
Symbol 146 MovieClip Frame 6
stop();
Symbol 146 MovieClip Frame 7
stop();
Symbol 146 MovieClip Frame 8
stop();
Symbol 146 MovieClip Frame 9
stop();
Symbol 146 MovieClip Frame 10
stop();
Symbol 146 MovieClip Frame 11
stop();
Symbol 146 MovieClip Frame 12
stop();
Symbol 146 MovieClip Frame 13
stop();
Symbol 146 MovieClip Frame 14
stop();
Symbol 147 MovieClip Frame 1
function generateFillers() {
filler = new Array();
filler[0] = fillerArrays(0);
filler[1] = fillerArrays(4);
filler[2] = fillerArrays(8);
filler[3] = fillerArrays(12);
filler[4] = fillerArrays2(0);
filler[5] = fillerArrays2(4);
filler[6] = fillerArrays2(8);
filler[7] = fillerArrays2(12);
return(filler);
}
function fillerArrays(num) {
j = 1;
while (j <= 4) {
c = num;
fillers = new Array();
fillers.push(rand_arr[num]);
if (rand_arr[num + 1] != null) {
fillers.push(rand_arr[num + 1]);
} else {
fillers.push(rand_arr[0]);
}
if (rand_arr[num + 2] != null) {
fillers.push(rand_arr[num + 2]);
} else {
fillers.push(rand_arr[1]);
}
if (rand_arr[num + 3] != null) {
fillers.push(rand_arr[num + 3]);
} else {
fillers.push(rand_arr[2]);
}
j++;
}
return(fillers);
}
function fillerArrays2(num) {
j = 1;
while (j <= 4) {
c = num;
fillers2 = [];
fillers2.push(rand_arr2[num]);
if (rand_arr2[num + 1] != null) {
fillers2.push(rand_arr2[num + 1]);
} else {
fillers2.push(rand_arr2[0]);
}
if (rand_arr2[num + 2] != null) {
fillers2.push(rand_arr2[num + 2]);
} else {
fillers2.push(rand_arr2[1]);
}
if (rand_arr2[num + 3] != null) {
fillers2.push(rand_arr2[num + 3]);
} else {
fillers2.push(rand_arr2[2]);
}
j++;
}
return(fillers2);
}
function generateHints() {
hints = [];
k = 0;
while (k <= total) {
rand2 = randomNumber();
hints[k] = filler[k][rand2];
k++;
}
return(hints);
}
function numCount() {
if (number == 3) {
number = 0;
} else {
number++;
}
return(number);
}
function buildAnswers() {
i = 1;
while (i <= _parent.totalQuestions) {
string_arr = chars_arr.splice(random(chars_arr.length), 1);
answers.push(string_arr);
i++;
}
return(answers);
}
function buildQuestions() {
question = new Array();
j = 0;
while (j < _parent.totalQuestions) {
question[j] = buildArrays2(answers[j]);
findMatches(question[j], answers[j]);
j++;
}
}
function setMax(b) {
maxVal = _parent.chars - b;
return(maxVal);
}
function buildArrays2(a) {
questions_arr = new Array();
questions_arr2 = new Array();
position = randomNumber();
i = 0;
while (i < filler.length) {
if (searchArray(filler[i], a) != null) {
pos = i;
pos2 = searchArray(filler[i], a);
}
i++;
}
questions_arr = filler[pos];
questions_arr.splice(pos2, 1, a);
questions_arr2 = questions_arr.shuffle();
return(questions_arr2);
}
function searchArray(whichArray, searchElement) {
g = 0;
while (g < whichArray.length) {
if (searchElement eq whichArray[g]) {
return(g);
}
g++;
}
return(null);
}
function checkRand(num1, num2) {
if (num1 == num2) {
return(true);
}
return(false);
}
function randomNumber() {
randNum = Math.floor(random(4));
return(randNum);
}
function randomValue(minVal, maxVal) {
val = Math.floor(Math.random() * Number(_parent.chars));
return(val);
}
function findMatches(testVar, answer) {
var _local3 = 0;
var _local4 = 0;
var _local6 = 0;
keepChecking = true;
while (keepChecking) {
_local3 = 0;
compare = new Array();
i = 0;
while (i < testVar.length) {
match = testVar[i];
if ((match != answer) and (match == testVar[i - 1])) {
testVar[i - 1] = randomValue(1, Number(_parent.chars));
}
y = 0;
while (y < testVar.length) {
if ((i != y) and (match == testVar[y])) {
_local3 = _local3 + 1;
if (_local3 > 1) {
compare.push(match);
}
}
_local4++;
y++;
}
_local4 = 0;
i++;
}
_local3 = 0;
k = 0;
while (k < testVar.length) {
if ((compare[0] != answer) and (compare[0] == testVar[k])) {
testVar[k] = randomValue(1, Number(_parent.chars));
}
k++;
}
_local6++;
_local6 = 10;
if (_local6) {
keepChecking = false;
} else {
keepChecking = true;
}
}
}
current = 0;
total = _parent.totalQuestions - 1;
string_arr = new Array();
group_arr = new Array();
chars_arr = new Array();
rounds = new Array();
answers = new Array();
rand_arr = new Array();
rand_arr2 = new Array();
i = 1;
while (i <= _parent.characters) {
chars_arr.push(i);
i++;
}
Array.prototype.shuffle = function () {
var _local2 = 0;
arrayOut = [];
while (_local2 < this.length) {
index = random(this.length);
while (arrayOut[index] != undefined) {
((index == (this.length - 1)) ? ((index = 0)) : (index++));
}
arrayOut[index] = this[_local2];
_local2++;
}
return(arrayOut);
};
rand_arr = chars_arr.shuffle();
rand_arr2 = chars_arr.shuffle();
generateFillers();
number = 0;
generateHints();
buildAnswers();
buildQuestions();
Symbol 147 MovieClip Frame 13
count.txt1 = ((current + 1) add " Of ") add _parent.totalQuestions;
count.txt2 = ((current + 1) add " Of ") add _parent.totalQuestions;
Symbol 147 MovieClip Frame 17
questions_txt.txt = eval ("_parent.q" add answers[current]);
Symbol 147 MovieClip Frame 25
questions_txt.txt = eval ("_parent.q" add answers[current]);
count.txt1 = ((current + 1) add " Of ") add _parent.totalQuestions;
count.txt2 = ((current + 1) add " Of ") add _parent.totalQuestions;
if (current < _parent.totalQuestions) {
play();
} else {
_parent.rounds = rounds;
_parent.gotoAndPlay("end");
}
Symbol 147 MovieClip Frame 26
character1.gotoAndStop("a" add question[current][0]);
character1.cnames.nameVal = eval ("_parent.a" add question[current][0]);
if (answers[current] == question[current][0]) {
character1.answers = "correct";
} else {
character1.answers = "incorrect";
}
Symbol 147 MovieClip Frame 28
character2.gotoAndStop("a" add question[current][1]);
character2.cnames.nameVal = eval ("_parent.a" add question[current][1]);
if (answers[current] == question[current][1]) {
character2.answers = "correct";
} else {
character2.answers = "incorrect";
}
Symbol 147 MovieClip Frame 30
character3.gotoAndStop("a" add question[current][2]);
character3.cnames.nameVal = eval ("_parent.a" add question[current][2]);
if (answers[current] == question[current][2]) {
character3.answers = "correct";
} else {
character3.answers = "incorrect";
}
Symbol 147 MovieClip Frame 32
character4.gotoAndStop("a" add question[current][3]);
character4.cnames.nameVal = eval ("_parent.a" add question[current][3]);
if (answers[current] == question[current][3]) {
character4.answers = "correct";
} else {
character4.answers = "incorrect";
}
Symbol 147 MovieClip Frame 40
stop();
Symbol 150 Button
on (release) {
getURL (_parent._parent.link_ac, "_blank");
}
Symbol 155 MovieClip Frame 1
correct = 0;
incorrect = 0;
i = 0;
while (i <= _parent.rounds.length) {
if (_parent.rounds[i] == "correct") {
correct++;
} else if (_parent.rounds[i] == "correct") {
incorrect++;
}
i++;
}
if (correct <= 1) {
output = _parent.response1;
} else if ((correct >= 2) and (correct <= 6)) {
output = _parent.response2;
} else if ((correct >= 7) and (correct <= 9)) {
output = _parent.response3;
} else if ((correct >= 10) and (correct <= 12)) {
output = _parent.response4;
} else if ((correct >= 13) and (correct <= 14)) {
output = _parent.response5;
}
Symbol 155 MovieClip Frame 10
scores.txt = (((output add " ") add correct) add " Out of ") add _parent.totalQuestions;
Symbol 155 MovieClip Frame 30
stop();