Frame 3
stop();
Frame 4
function getDivideNumber() {
matchNumber = random(divMax) + 1;
if (matchNumber > (divMax - (divMax / 2))) {
matchNumber = random(divMax) + 1;
}
startNumber = 100;
if (NumbersAvailable <= 0) {
endGameFunction();
} else if (NumbersAvailable >= 5) {
var numbersOnlyArray = new Array();
var i = 0;
while (i < numbersLeftArray.length) {
numbersOnlyArray.push(_root[numbersLeftArray[i]].number);
i++;
}
numbersOnlyArray.Randomize();
startNumber = matchNumber;
var howManyNumbers = Math.ceil(Math.random() * 3);
var i = 0;
while (i < howManyNumbers) {
startNumber = startNumber * numbersOnlyArray[i];
i++;
}
display.Numbertext = matchNumber;
totalUser = startNumber;
numberSelectedArray = new Array();
numberArray = new Array();
display.bonusMC.startTimer();
} else if (NumbersAvailable < 5) {
if (checkIfPossible(matchNumber) == false) {
endGameFunction();
} else {
display.Numbertext = matchNumber;
totalUser = 1;
numberSelectedArray = new Array();
numberArray = new Array();
display.bonusMC.startTimer();
}
}
_root.counter = (("Division : " + startNumber) + " / ? = ") + matchNumber;
updateDivideCounter();
}
function checkDivide(myNumber, myArray) {
trace(mynumber);
var myInNumber = myNumber;
var myInArray = new Array();
myInArray.copy(myArray);
var subTotal = divMax;
var newArray = new Array();
var i = 0;
while (i < myInArray.length) {
if (myInArray[i] == myInNumber) {
return(true);
}
if (myInArray[i] < myInNumber) {
newArray.push(myInArray[i]);
subTotal = subTotal / myInArray[i];
}
i++;
}
if (subTotal == myInNumber) {
return(true);
}
if (subTotal > myInNumber) {
return(false);
}
var i = 0;
while (i < newArray.length) {
var newNum = (myInNumber - newArray[i]);
var newerArray = new Array();
newerArray = newArray.slice(i + 1);
what = checkDivide(newNum, newerArray);
if (what == true) {
return(true);
}
i++;
}
return(false);
}
function DivideMyNumber(myNumber, myName) {
var status = "none";
totalUser = totalUser / myNumber;
totalUser = roundOff2(totalUser);
if (totalUser == matchNumber) {
correctSoundObj.start();
thisScore = 0;
numberArray.push(myNumber);
numberSelectedArray.push(myName);
letterScore = numberSelectedArray.length * 5;
var i = 0;
while (i < numberSelectedArray.length) {
_root[numberSelectedArray[i]].gotoAndPlay("score");
_root[numberSelectedArray[i]].score = letterScore;
thisScore = thisScore + letterScore;
NumbersAvailable--;
var tempNum = numbersLeftArray.find(numberSelectedArray[i]);
numbersLeftArray.removeOne(tempNum);
i++;
}
runningScore = runningScore + thisScore;
_root.score = runningScore + bonusScore;
display.numberScoretext = _root.score;
status = "finish";
_root.gameMode = "wait";
} else if (totalUser < matchNumber) {
wrongSoundObj.start();
thisScore = 0;
var i = 0;
while (i < numberSelectedArray.length) {
_root[numberSelectedArray[i]].gotoAndPlay("off");
i++;
}
_root[myName].gotoAndStop("off");
totalUser = startNumber;
numberSelectedArray = new Array();
numberArray = new Array();
status = "reset";
} else {
numberSelectedArray.push(myName);
numberArray.push(myNumber);
status = "taken";
}
updateDivideCounter();
return(status);
}
function updateDivideCounter() {
if (numberArray.length > 0) {
_root.counterTracker = startNumber + " / ";
var i = 0;
while (i < (numberArray.length - 1)) {
_root.counterTracker = (_root.counterTracker + numberArray[i]) + " / ";
i++;
}
_root.counterTracker = ((_root.counterTracker + numberArray[i]) + " = ") + totalUser;
} else {
_root.counterTracker = " ";
}
}
function roundOff2(myNumber) {
myNumber = Math.floor(myNumber * 100);
return(myNumber / 100);
}
function getMultiplyNumber() {
var multNumberArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 20, 24, 27, 30, 32, 36, 40, 42);
startNumber = 1;
if (NumbersAvailable <= 0) {
endGameFunction();
} else if (NumbersAvailable >= 5) {
var numbersOnlyArray = new Array();
var i = 0;
while (i < numbersLeftArray.length) {
numbersOnlyArray.push(_root[numbersLeftArray[i]].number);
i++;
}
numbersOnlyArray.Randomize();
matchNumber = 1;
var howManyNumbers = Math.ceil(Math.random() * multMax);
var i = 0;
while (i < howManyNumbers) {
matchNumber = matchNumber * numbersOnlyArray[i];
i++;
}
display.Numbertext = matchNumber;
totalUser = 1;
numberSelectedArray = new Array();
numberArray = new Array();
display.bonusMC.startTimer();
} else if (NumbersAvailable < 5) {
matchNumber = Math.ceil(Math.random() * 20);
matchNumber = multNumberArray[matchNumber];
if (checkIfPossible(matchNumber) == false) {
endGameFunction();
} else {
display.Numbertext = matchNumber;
totalUser = 1;
numberSelectedArray = new Array();
numberArray = new Array();
display.bonusMC.startTimer();
}
}
_root.counter = "Multiplication : ? * ? = " + matchNumber;
updateMultCounter();
}
function checkMultiply(myNumber, myArray) {
var myInNumber = myNumber;
var myInArray = new Array();
myInArray.copy(myArray);
var subTotal = 1;
var newArray = new Array();
var i = 0;
while (i < myInArray.length) {
if (myInArray[i] == myInNumber) {
return(true);
}
if (myInArray[i] < myInNumber) {
newArray.push(myInArray[i]);
subTotal = subTotal * myInArray[i];
}
i++;
}
if (subTotal == myInNumber) {
return(true);
}
if (subTotal < myInNumber) {
return(false);
}
var i = 0;
while (i < newArray.length) {
var newNum = (myInNumber - newArray[i]);
var newerArray = new Array();
newerArray = newArray.slice(i + 1);
what = checkMultiply(newNum, newerArray);
if (what == true) {
return(true);
}
i++;
}
return(false);
}
function multiplyMyNumber(myNumber, myName) {
var status = "none";
totalUser = totalUser * myNumber;
if (totalUser == matchNumber) {
correctSoundObj.start();
thisScore = 0;
numberArray.push(myNumber);
numberSelectedArray.push(myName);
letterScore = numberSelectedArray.length * 5;
var i = 0;
while (i < numberSelectedArray.length) {
_root[numberSelectedArray[i]].gotoAndPlay("score");
_root[numberSelectedArray[i]].score = letterScore;
thisScore = thisScore + letterScore;
NumbersAvailable--;
var tempNum = numbersLeftArray.find(numberSelectedArray[i]);
numbersLeftArray.removeOne(tempNum);
i++;
}
runningScore = runningScore + thisScore;
_root.score = runningScore + bonusScore;
display.numberScoretext = _root.score;
status = "finish";
_root.gameMode = "wait";
} else if (totalUser > matchNumber) {
wrongSoundObj.start();
thisScore = 1;
var i = 0;
while (i < numberSelectedArray.length) {
_root[numberSelectedArray[i]].gotoAndPlay("off");
i++;
}
_root[myName].gotoAndStop("off");
totalUser = startNumber;
numberSelectedArray = new Array();
numberArray = new Array();
status = "reset";
} else {
trace("in corect place");
numberSelectedArray.push(myName);
numberArray.push(myNumber);
status = "taken";
}
updateMultCounter();
return(status);
}
function updateMultCounter() {
if (numberArray.length > 0) {
_root.counterTracker = " ";
var i = 0;
while (i < (numberArray.length - 1)) {
_root.counterTracker = (_root.counterTracker + numberArray[i]) + " * ";
i++;
}
_root.counterTracker = ((_root.counterTracker + numberArray[i]) + " = ") + totalUser;
} else {
_root.counterTracker = " ";
}
}
function getSubtractNumber() {
startNumber = subMax;
if (NumbersAvailable <= 0) {
endGameFunction();
}
matchNumber = random(subMax) + 1;
if (matchNumber > (subMax - (subMax / 4))) {
matchNumber = random(subMax) + 1;
}
display.Numbertext = matchNumber;
totalUser = subMax;
numberSelectedArray = new Array();
numberArray = new Array();
display.bonusMC.startTimer();
if (NumbersAvailable < subMax) {
if (checkIfPossible(matchNumber) == false) {
endGameFunction();
}
}
_root.counter = (("Subtraction : " + startNumber) + " - ? = ") + matchNumber;
updateSubtractCounter();
}
function checkSubtraction(myNumber, myArray) {
var myInNumber = myNumber;
var myInArray = new Array();
myInArray.copy(myArray);
var subTotal = subMax;
var newArray = new Array();
var i = 0;
while (i < myInArray.length) {
if (myInArray[i] == myInNumber) {
return(true);
}
if (myInArray[i] < myInNumber) {
newArray.push(myInArray[i]);
subTotal = subTotal - myInArray[i];
}
i++;
}
if (subTotal == myInNumber) {
return(true);
}
if (subTotal > myInNumber) {
return(false);
}
var i = 0;
while (i < newArray.length) {
var newNum = (myInNumber - newArray[i]);
var newerArray = new Array();
newerArray = newArray.slice(i + 1);
what = checkSubtraction(newNum, newerArray);
if (what == true) {
return(true);
}
i++;
}
return(false);
}
function SubtractMyNumber(myNumber, myName) {
var status = "none";
totalUser = totalUser - myNumber;
if (totalUser == matchNumber) {
correctSoundObj.start();
thisScore = 0;
numberArray.push(myNumber);
numberSelectedArray.push(myName);
letterScore = numberSelectedArray.length * 5;
var i = 0;
while (i < numberSelectedArray.length) {
_root[numberSelectedArray[i]].gotoAndPlay("score");
_root[numberSelectedArray[i]].score = letterScore;
thisScore = thisScore + letterScore;
NumbersAvailable--;
var tempNum = numbersLeftArray.find(numberSelectedArray[i]);
numbersLeftArray.removeOne(tempNum);
i++;
}
runningScore = runningScore + thisScore;
_root.score = runningScore + bonusScore;
display.numberScoretext = _root.score;
status = "finish";
_root.gameMode = "wait";
} else if (totalUser < matchNumber) {
wrongSoundObj.start();
thisScore = 0;
var i = 0;
while (i < numberSelectedArray.length) {
_root[numberSelectedArray[i]].gotoAndPlay("off");
i++;
}
_root[myName].gotoAndStop("off");
totalUser = startNumber;
numberSelectedArray = new Array();
numberArray = new Array();
status = "reset";
} else {
numberSelectedArray.push(myName);
numberArray.push(myNumber);
status = "taken";
}
updateSubtractCounter();
return(status);
}
function updateSubtractCounter() {
if (numberArray.length > 0) {
_root.counterTracker = subMax + " - ";
var i = 0;
while (i < (numberArray.length - 1)) {
_root.counterTracker = (_root.counterTracker + numberArray[i]) + " - ";
i++;
}
_root.counterTracker = ((_root.counterTracker + numberArray[i]) + " = ") + totalUser;
} else {
_root.counterTracker = " ";
}
}
function getAddNumber() {
startNumber = 0;
if (NumbersAvailable <= 0) {
endGameFunction();
}
trace(addMax);
matchNumber = random(addMax) + 1;
if (matchNumber < 4) {
matchNumber = random(addMax) + 1;
}
display.numbertext = matchNumber;
totalUser = 0;
numberSelectedArray = new Array();
numberArray = new Array();
display.bonusMC.startTimer();
if (NumbersAvailable < addMax) {
if (checkIfPossible(matchNumber) == false) {
endGameFunction();
}
}
_root.counter = "Addition : ? + ? = " + matchNumber;
updateAddCounter();
}
function checkAddition(myNumber, myArray) {
var myInNumber = myNumber;
var myInArray = new Array();
myInArray.copy(myArray);
var addTotal = 0;
var newArray = new Array();
var i = 0;
while (i < myInArray.length) {
if (myInArray[i] == myInNumber) {
return(true);
}
if (myInArray[i] < myInNumber) {
newArray.push(myInArray[i]);
addTotal = addTotal + myInArray[i];
}
i++;
}
if (addTotal == myInNumber) {
return(true);
}
if (addTotal < myInNumber) {
return(false);
}
var i = 0;
while (i < newArray.length) {
var newNum = (myInNumber - newArray[i]);
var newerArray = new Array();
newerArray = newArray.slice(i + 1);
what = checkAddition(newNum, newerArray);
if (what == true) {
return(true);
}
i++;
}
return(false);
}
function AddMyNumber(myNumber, myName) {
var status = "none";
totalUser = totalUser + myNumber;
if (totalUser == matchNumber) {
correctSoundObj.start();
thisScore = 0;
numberArray.push(myNumber);
numberSelectedArray.push(myName);
letterScore = numberSelectedArray.length * 5;
var i = 0;
while (i < numberSelectedArray.length) {
_root[numberSelectedArray[i]].gotoAndPlay("score");
_root[numberSelectedArray[i]].score = letterScore;
thisScore = thisScore + letterScore;
NumbersAvailable--;
var tempNum = numbersLeftArray.find(numberSelectedArray[i]);
numbersLeftArray.removeOne(tempNum);
i++;
}
runningScore = runningScore + thisScore;
_root.score = runningScore + bonusScore;
display.numberScoretext = _root.score;
status = "finish";
_root.gameMode = "wait";
} else if (totalUser > matchNumber) {
wrongSoundObj.start();
thisScore = 0;
var i = 0;
while (i < numberSelectedArray.length) {
_root[numberSelectedArray[i]].gotoAndPlay("off");
i++;
}
_root[myName].gotoAndStop("off");
totalUser = startNumber;
numberSelectedArray = new Array();
numberArray = new Array();
status = "reset";
} else {
numberSelectedArray.push(myName);
numberArray.push(myNumber);
status = "taken";
}
updateAddCounter();
return(status);
}
function updateAddCounter() {
if (numberArray.length > 0) {
_root.counterTracker = " ";
var i = 0;
while (i < (numberArray.length - 1)) {
_root.counterTracker = (_root.counterTracker + numberArray[i]) + " + ";
i++;
}
_root.counterTracker = ((_root.counterTracker + numberArray[i]) + " = ") + totalUser;
} else {
_root.counterTracker = " ";
}
}
function _copy(a) {
var j = 0;
while (j < a.length) {
this[j] = a[j];
j++;
}
}
function _find_in_Array(value) {
var z = 0;
while (z < this.length) {
if (this[z] == value) {
return(z);
}
z++;
}
return(-1);
}
function _Remove_element(whichOne) {
var newArray = new Array(this.length - 1);
var j = 0;
var i = 0;
while (i < this.length) {
if (i != whichOne) {
newArray[j] = this[i];
j++;
}
i++;
}
this.pop();
this.copy(newArray);
}
Array.prototype.Randomize = function () {
var newArray = new Array(this.length);
newArray.copy(this);
var i = 0;
while (i < this.length) {
var myNumber = random(newArray.length);
this[i] = newArray[myNumber];
newArray.splice(myNumber, 1);
i++;
}
};
Array.prototype.copy = _copy;
Array.prototype.Find = _find_in_Array;
Array.prototype.RemoveOne = _Remove_element;
function placeNumbers() {
NumbersAvailable = 0;
var Level = 10;
var xPos = _root.XPosition;
var ystart = _root.YPosition;
numbersLeftArray = new Array();
var i = 0;
while (i < _root.numberOfColumns) {
yPos = yStart;
var j = 0;
while (j < _root.numberOfRows) {
attachMovie("number", "number" + level, level);
_root["number" + level]._x = xPos;
_root["number" + level]._y = yPos;
_root["number" + level]._width = boxWidth;
_root["number" + level]._height = boxHeight;
_root["number" + level].number = random(9) + 1;
yPos = yPos + (boxHeight + padding);
numbersLeftArray.push("number" + level);
level++;
NumbersAvailable++;
j++;
}
xPos = xPos + (boxWidth + padding);
i++;
}
}
function checkIfPossible(checkNumber) {
var numbersOnlyArray = new Array();
var i = 0;
while (i < numbersLeftArray.length) {
numbersOnlyArray.push(_root[numbersLeftArray[i]].number);
i++;
}
if (mathType == "Add") {
return(checkAddition(checkNumber, numbersOnlyArray));
}
if (mathType == "Subtract") {
return(checkSubtraction(checkNumber, numbersOnlyArray));
}
if (mathType == "Multiply") {
return(checkMultiply(checkNumber, numbersOnlyArray));
}
return(checkDivide(checkNumber, numbersOnlyArray));
}
function removeMyNumber(mynumber, myName) {
var i = 0;
while (i < numberSelectedArray.length) {
if (numberSelectedArray[i] == myName) {
numberSelectedArray.RemoveOne(i);
}
i++;
}
var i = 0;
while (i < numberArray.length) {
if (numberArray[i] == mynumber) {
numberArray.RemoveOne(i);
}
i++;
}
if (mathType == "Add") {
totalUser = totalUser - myNumber;
updateAddCounter();
} else if (mathType == "Subtract") {
totalUser = totalUser + myNumber;
updateSubtractCounter();
} else if (mathType == "Multiply") {
totalUser = totalUser / myNumber;
updateMultCounter();
} else {
totalUser = totalUser * myNumber;
if ((startNumber - totalUser) < 1) {
totalUser = startNumber;
}
updateDivideCounter();
}
}
function endGameFunction() {
var Level = 10;
var i = 0;
while (i < _root.numberOfColumns) {
var j = 0;
while (j < _root.numberOfRows) {
_root["number" + level].gotoAndPlay("final");
level++;
j++;
}
i++;
}
gameMode = "finish";
}
function fixTrueFalse(stringValue) {
if (stringValue == "true") {
return(true);
}
if (stringValue == "false") {
return(false);
}
}
function DoMyNumber(myNumber, myName) {
if (mathType == "Add") {
return(AddMyNumber(myNumber, myName));
}
if (mathType == "Subtract") {
trace("sub");
return(SubtractMyNumber(myNumber, myName));
}
if (mathType == "Multiply") {
return(multiplyMyNumber(myNumber, myName));
}
return(DivideMyNumber(myNumber, myName));
}
function getNumber() {
if (mathType == "Add") {
getAddNumber();
} else if (mathType == "Subtract") {
getSubtractNumber();
} else if (mathType == "Multiply") {
getMultiplyNumber();
} else if (mathType == "Divide") {
getDivideNumber();
} else {
mathType = "Add";
getAddNumber();
}
}
Math.trans = 0.0174532925199433 /* Math.PI/180 */;
currentscore = 0;
score = currentscore;
checkTime = getTimer() + delay;
Instance of Symbol 106 MovieClip in Frame 4
//component parameters
onClipEvent (initialize) {
game_time_val = 120;
math_type_val = "Add";
number_rows_val = 10;
number_columns_val = 10;
placement_x_val = 70;
placement_y_val = 50;
box_width_val = 30;
box_height_val = 30;
padding_val = 0;
correct_sound_val = "correct";
wrong_sound_val = "wrong";
add_max_val = 40;
sub_max_val = 50;
mult_max_val = 2;
div_max_val = 30;
show_matched_val = false;
button_animation_val = false;
object_base_name_val = "Object";
button_base_name_val = "Button";
object_sound_base_name_val = "ObjectSound";
available_pieces_val = 20;
file_name_val = "Quiz.txt";
question_time_val = 0;
questions_per_quiz_val = 10;
waiting_sound_val = "timesound";
expired_sound_val = "timeup";
one_chance_val = true;
show_correct_val = true;
correct_time_val = 5;
show_totalQuiz_val = false;
answers_per_question_val = 3;
TextField15 = "XCH";
readTextFile = true;
TextFileName = "quiz.txt";
gameTime = 0;
questionTime = 0;
QuestionsperQuiz = 15;
numberOfAnswers = 3;
correctSound = "correct";
wrongSound = "wrong";
timeSound = "timeSound";
timeEndSound = "timeUp";
numberOfQuestions = 5;
question1 = "Which area of the brain is responsible for solving problems and planning for the future?";
answer1_1 = "frontal lobe ";
answer1_2 = "sensory cortex";
answer1_3 = "amygdala";
question2 = "Which area of the brain helps us understand the meaning of words, for example while in a conversation?";
answer2_1 = "wernicke's area ";
answer2_2 = "hippocampus";
answer2_3 = "frontal lobe";
question3 = "Which area of the brain is responsible for moving arms and legs, and other muscles?";
answer3_1 = "motor cortex ";
answer3_2 = "broca's area";
answer3_3 = "prefrontal cortex";
question4 = "Which area of the brain are very intense emotions such as fear and anger located?";
answer4_1 = "amygdala";
answer4_2 = "sensory cortex";
answer4_3 = "hippocampus";
question5 = "Which two main areas of the brain are involved in language skills?";
answer5_1 = "the Wernicke's and Broca's area ";
answer5_2 = "the Hippocampus and Amygdala";
answer5_3 = "the Sensory and Motor Cortex";
}
Frame 9
currentscore = 0;
score = currentscore;
gameMode = "play";
placeNumbers();
getNumber();
Instance of Symbol 120 MovieClip "display" in Frame 9
onClipEvent (enterFrame) {
if (_root.score != this.numberScoretext) {
numberScoretext = _root.score;
}
}
Instance of Symbol 123 MovieClip "delayer" in Frame 9
onClipEvent (load) {
startTime = 0;
delayTime = 2;
}
onClipEvent (enterFrame) {
if (_root.gameMode == "getNumber") {
if (startTime == 0) {
startTime = getTimer();
} else {
timeLeft = int(delayTime - ((getTimer() - startTime) / 1000));
if (timeLeft <= 0) {
_root.gameMode = "play";
startTime = 0;
_root.getNumber();
}
}
}
if (_root.gameMode == "finish") {
if (startTime == 0) {
startTime = getTimer();
} else {
timeLeft = int(delayTime - ((getTimer() - startTime) / 1000));
if (timeLeft <= 0) {
_root.play();
}
}
}
}
Instance of Symbol 127 MovieClip "timer" in Frame 9
onClipEvent (load) {
if (_root.gameTime > 0) {
_visible = true;
startTime = getTimer();
useTimer = true;
} else {
_visible = false;
useTimer = false;
}
}
onClipEvent (enterFrame) {
if ((_root.gameMode == "play") && (useTimer == true)) {
timeLeft = int(_root.gameTime - ((getTimer() - startTime) / 1000));
if (timeLeft <= 0) {
_root.endGameFunction();
}
}
}
Frame 14
stop();
Instance of Symbol 217 MovieClip in Frame 19
//component parameters
onClipEvent (initialize) {
scr = "_root.score";
}
Frame 48
stop();
Frame 49
timer.startTime = getTimer();
gotoAndStop (9);
Symbol 6 Button
on (release) {
var status = _root.DoMyNumber(number, _name);
if (status == "finish") {
gotoAndPlay (10);
} else if (status == "taken") {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
Symbol 12 Button
on (release) {
_root.removeMyNumber(number, _name);
gotoAndStop (1);
}
Symbol 15 MovieClip [number] Frame 1
stop();
Symbol 15 MovieClip [number] Frame 5
stop();
Symbol 15 MovieClip [number] Frame 20
if (_root.gameMode == "wait") {
_root.gameMode = "getNumber";
}
this.removeMovieClip();
stop();
Symbol 15 MovieClip [number] Frame 21
_root.score = _root.score - 15;
Symbol 15 MovieClip [number] Frame 35
this.removeMovieClip();
stop();
Symbol 20 MovieClip Frame 1
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
Stage.showMenu = false;
this.uu = _root._url;
var a = _root._url.split("/");
var i = 0;
while (i < a.length) {
if (a[i] == "files") {
_root.gid = a[i + 1];
}
i++;
}
if ((a[2] == "www.netstupidity.com") || (a[2] == "netstupidity.com")) {
_root.ligin = 1;
}
_root.__url = "http://www.netstupidity.com/games/hof/";
_root.loadVariables((_root.__url + "hof_bsc.php?id=") + _root.gid);
_root.prc = 0;
this.onEnterFrame = function () {
var ld = _root.getBytesLoaded();
var tt = _root.getBytesTotal();
var pr = ((100 * ld) / tt);
this.pasek._xscale = pr;
var b = Math.round(pr / 20);
if (pr >= 100) {
this.onEnterFrame = null;
this._parent.play();
}
};
Symbol 35 MovieClip Frame 140
stop();
Symbol 74 MovieClip Frame 1
this.t = getTimer();
this.tm = 0;
this.onEnterFrame = function () {
if (_root._framesloaded < 2) {
this.t = getTimer();
return(undefined);
}
this.tm = this.tm + (getTimer() - this.t);
var tt = Math.round(this.tm / 33);
if (tt < 1) {
this.stop();
} else {
this.t = getTimer();
if (tt >= 145) {
this.onEnterFrame = null;
this.gotoAndStop(145);
_root.play();
} else {
this.gotoAndStop(tt);
}
}
};
stop();
Symbol 77 MovieClip Frame 1
_root.stop();
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 95 Button
on (release) {
_root.play();
}
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
function execute_action() {
unloaded = true;
_parent._visible = false;
simple_script(_parent.play_action_val, _parent);
}
_root.gameTime = _parent.game_time_val;
_root.mathType = _parent.math_type_val;
_root.numberOfRows = _parent.number_rows_val;
_root.numberOfColumns = _parent.number_columns_val;
_root.XPosition = _parent.placement_x_val;
_root.YPosition = _parent.placement_y_val;
_root.boxWidth = _parent.box_width_val;
_root.boxHeight = _parent.box_height_val;
_root.padding = _parent.padding_val;
_root.addMax = _parent.add_max_val;
_root.subMax = _parent.sub_max_val;
_root.multMax = _parent.mult_max_val;
_root.divMax = _parent.div_max_val;
_root.correctSound = _parent.correct_sound_val;
_root.correctSoundObj = new Sound();
_root.correctSoundObj.attachSound(_root.correctSound);
_root.wrongSound = _parent.wrong_sound_val;
_root.wrongSoundObj = new Sound();
_root.wrongSoundObj.attachSound(_root.wrongSound);
_parent.anim.gotoAndStop(1);
simple_script(_parent.init_action_val, _parent);
var done = false;
var unloaded = false;
var ready = false;
}
onClipEvent (data) {
var changeQuestions = true;
var numberOfquestions = 1;
while (changeQuestions == true) {
if (eval ("question" + numberOfquestions).length > 0) {
_root["question" + numberOfquestions] = this["question" + numberOfquestions];
var i = 1;
while (i <= _root.availableAnswers) {
_root[(("answer" + numberOfquestions) + "_") + i] = this[(("answer" + numberOfquestions) + "_") + i];
i++;
}
numberOfquestions++;
} else {
changeQuestions = false;
}
}
_root.play();
}
onClipEvent (enterFrame) {
if (unloaded) {
return(undefined);
}
if (!ready) {
}
}
Instance of Symbol 113 MovieClip "bonusMC" in Symbol 120 MovieClip Frame 1
onClipEvent (load) {
function starttimer() {
bonusTimeLeft = BonusTime;
startTime = getTimer() / 1000;
_root.bonusScore = bonusTimeLeft;
}
BonusTime = 10;
startTimer();
}
onClipEvent (enterFrame) {
if (_root.gameMode == "play") {
var newTime = ((getTimer() / 1000) - startTime);
bonusTimeLeft = int(BonusTime - newTime);
_root.bonusScore = bonusTimeLeft;
if (bonusTimeLeft < 0) {
bonusTimeLeft = 0;
}
}
}
Symbol 123 MovieClip Frame 1
if (checkingWord == true) {
if (_root.wordscore != -1) {
_root.game.check_valid_word();
stop();
}
} else {
stop();
}
Symbol 123 MovieClip Frame 10
if (_root.testing == true) {
_root.wordScore = 10;
}
gotoAndPlay (1);
Symbol 144 Button
on (release) {
timer.startTime = getTimer();
gotoAndStop (9);
}
Symbol 158 Button
on (press) {
this.gotoAndStop("weekly");
}
Symbol 159 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 160 Button
on (press) {
this.gotoAndStop("hourly");
}
Symbol 163 Button
on (press) {
this.gotoAndStop("monthly");
}
Symbol 168 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 171 MovieClip Frame 1
this._parent.tp = 2592000 /* 0x278D00 */;
this._parent.tc = 0;
this._parent.reload();
stop();
Symbol 171 MovieClip Frame 2
this._parent.tp = 604800 /* 0x093A80 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 171 MovieClip Frame 3
this._parent.tp = 86400 /* 0x015180 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 171 MovieClip Frame 4
this._parent.tp = 3600;
this._parent.tc = 0;
this._parent.reload();
Symbol 178 Button
on (press) {
this.tc--;
this.reload();
}
Symbol 183 Button
on (press) {
this.tc = ((this.tc < 0) ? (this.tc + 1) : 0);
this.reload();
}
Symbol 186 Button
on (press) {
if (this.submitted == false) {
this.loadVariables((((this.__url + "hof_put.php?id=") + this.gid) + "&s=") + this.sc);
}
}
Symbol 190 Button
on (press) {
this._parent.l = 10;
this._parent.reload();
this.gotoAndStop(2);
}
Symbol 193 Button
on (press) {
this._parent.l = 100;
this._parent.reload();
this.gotoAndStop(1);
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 18
stop();
Symbol 211 MovieClip Frame 1
function reset() {
this.m._x = this.s._x;
this.m._y = this.s._y;
}
function scroll(p) {
this._parent.rolki.f1.scroll = (this._parent.rolki.f2.scroll = (this._parent.rolki.f3.scroll = (this._parent.rolki.f4.scroll = int((this.mx * p) / 100))));
}
this.onEnterFrame = function () {
this.s._y = ((this.m._y > 5) ? (((this.m._y < 202) ? (this.m._y) : 202)) : 5);
this.mx = this._parent.rolki.f1.maxscroll;
scroll((100 * (this.s._y - 5)) / 197);
};
Instance of Symbol 210 MovieClip "m" in Symbol 211 MovieClip Frame 1
on (press) {
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this._parent.reset();
}
Symbol 216 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 217 MovieClip Frame 1
this.submitted = false;
Symbol 217 MovieClip Frame 2
function reload() {
if (this.rolki._currentframe > 1) {
this.rolki.gotoAndPlay(18);
}
var te = ((-this.tc) * this.tp);
var tb = ((-(this.tc - 1)) * this.tp);
this.loadVariables((((((((((this.__url + "hof_get.php?id=") + this.gid) + "&n=") + this.l) + "&tb=") + tb) + "&te=") + te) + "&s=") + this.sc);
}
this.uu = _root._url;
this.gid = _root.gid;
this.__url = _root.__url;
this.l = 10;
this.sc = eval (this.scr);
if (int(this.sc) > int(_root.bsc)) {
_root.bsc = this.sc;
}
this.onData = function () {
if (this.r == 1) {
this.rolki.gotoAndPlay(2);
clearInterval(this._itr);
return(undefined);
}
if (this.r == "3") {
this.submitted = true;
reload();
}
if (this.r == "2") {
getURL ("javascript:if(confirm('To submit Your score You have to be logged into netstupidity.com site. Do You wish to log in now?')) window.open('http://www.netstupidity.com/login.php'); void(0);");
}
};
stop();
Symbol 224 MovieClip Frame 40
stop();
Symbol 232 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 2
stop();
Symbol 245 MovieClip Frame 10
stop();
Symbol 245 MovieClip Frame 24
stop();
Symbol 245 MovieClip Frame 43
stop();
Symbol 245 MovieClip Frame 56
stop();
Symbol 245 MovieClip Frame 66
stop();
Symbol 245 MovieClip Frame 77
stop();
Symbol 254 Button
on (release) {
_root.eyeland_hs_p = _parent.nameholder.name;
_root.eyeland_hs_e = _parent.emailholder.email;
_parent.gotoAndPlay("save");
}
Symbol 257 Button
on (release) {
_parent.gotoAndPlay("load");
}
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
stop();
Symbol 272 MovieClip Frame 12
stop();
Symbol 272 MovieClip Frame 22
stop();
Symbol 272 MovieClip Frame 32
stop();
Symbol 272 MovieClip Frame 42
stop();
Symbol 272 MovieClip Frame 52
stop();
Symbol 272 MovieClip Frame 62
stop();
Symbol 272 MovieClip Frame 72
stop();
Symbol 272 MovieClip Frame 82
stop();
Symbol 272 MovieClip Frame 92
stop();
Symbol 272 MovieClip Frame 102
stop();
Symbol 272 MovieClip Frame 113
stop();
Symbol 275 Button
on (release) {
_root._quality = _root.eyeland_hs_quality;
_parent._parent.play();
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 3
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 25
stop();
Symbol 310 MovieClip Frame 47
stop();
Symbol 310 MovieClip Frame 66
stop();
Symbol 310 MovieClip Frame 82
stop();
Symbol 310 MovieClip Frame 102
stop();
Instance of Symbol 310 MovieClip "line" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "line") {
this._visible = false;
}
}
Symbol 315 Button
on (press) {
if (!_parent._parent.script.draggable) {
return(undefined);
}
this.startDrag(false, _parent._parent.script.dragx, _parent._parent.script.topdragy, _parent._parent.script.dragx, _parent._parent.script.topdragy + _parent._parent.script.dragheight);
_parent._parent.script.drag = true;
}
on (release) {
if (!_parent._parent.script.draggable) {
return(undefined);
}
this.stopDrag();
_parent._parent.script.drag = false;
}
Symbol 319 Button
on (press) {
_parent._parent.script.pressup = (_parent._parent.script.moveup = true);
}
on (release) {
_parent._parent.script.pressup = false;
}
Symbol 322 Button
on (press) {
_parent._parent.script.pressdown = (_parent._parent.script.movedown = true);
}
on (release) {
_parent._parent.script.pressdown = false;
}
Symbol 328 Button
on (release) {
btn_press();
}
Symbol 340 MovieClip Frame 1
function rand_str() {
var out = "";
var len = 10;
var alpha = "abcdefghijklmnopqrstuvwxyz";
var n = 0;
while (n < len) {
out = out + alpha.charAt(Math.floor(Math.random() * alpha.length));
n++;
}
return(out);
}
function rhex(num) {
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((num >> ((j * 8) + 4)) & 15) + hex_chr.charAt((num >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < str.length) {
blks[i >> 2] = blks[i >> 2] | (str.charCodeAt(i) << ((i % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((i % 4) * 8));
blks[(nblk * 16) - 2] = str.length * 8;
return(blks);
}
function add2(x, y) {
var lsw = ((x & 65535) + (y & 65535));
var msw = (((x >> 16) + (y >> 16)) + (lsw >> 16));
return((msw << 16) | (lsw & 65535));
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(add2(rol(add2(add2(a, q), add2(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn((b ^ c) ^ d, a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = add2(a, olda);
b = add2(b, oldb);
c = add2(c, oldc);
d = add2(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
var hex_chr = "0123456789abcdef";
_root.eyeland_hs_quality = _root._quality;
_root._quality = "HIGH";
_parent.stop();
stop();
Instance of Symbol 225 MovieClip "loader" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
if ((((_root.eyeland_hs_highscore_url == undefined) || (_root.eyeland_hs_game_id == undefined)) || (_root.eyeland_hs_score_variable == undefined)) || (_root.eyeland_hs_button_label == undefined)) {
trace("== GIAF HS ERROR == Highscore variables not found. Use the \"giaf hs settings\" component on a scene prior to this one to set the highscore variables correctly.");
}
if (_root[_root.eyeland_hs_score_variable] == undefined) {
trace(("== GIAF HS ERROR == Highscore variable \"_root." + _root.eyeland_hs_score_variable) + "\" not set. Please adjust your game's code to make sure this score variable is set before attempting to save it to the server. Use the \"giaf hs settings\" component to set the name of the score variable.");
}
_parent.highscore_url = _root.eyeland_hs_highscore_url;
_parent.game_id = _root.eyeland_hs_game_id;
_parent.score_variable = _root.eyeland_hs_score_variable;
_parent.button_label = _root.eyeland_hs_button_label;
var score = _root[_parent.score_variable];
loadVariables ((((((_parent.highscore_url + "?action=check&id=") + _parent.game_id) + "&score=") + score) + "&rand=") + Math.round(Math.random() * 999999999), this);
}
onClipEvent (data) {
_root.eyeland_hs_result = result;
_root.eyeland_hs_lowscore = lowscore;
_root.eyeland_hs_recordplayeremail = recordplayeremail;
_root.eyeland_hs_emailpromptmessage = unescape(emailpromptmessage);
_root.eyeland_hs_maxchars = Number(maxchars);
_parent.gotoAndPlay("enter");
}
Symbol 340 MovieClip Frame 12
btn_submit._visible = false;
btn_skip._visible = false;
btn_scores._visible = false;
btn_scores._y = btn_submit._y;
btn_playagain._visible = false;
btn_playagain._y = btn_skip._y;
if (_root.eyeland_hs_result == "yes") {
btn_submit._visible = true;
btn_skip._visible = true;
if (_root.eyeland_hs_maxchars > 0) {
nameholder.gotoAndPlay("name" + _root.eyeland_hs_maxchars);
if (_root.eyeland_hs_recordplayeremail == "yes") {
enter_screens.gotoAndPlay("enter_email");
enter_screens.emailpromptmessage = _root.eyeland_hs_emailpromptmessage;
emailholder._y = 40.8;
emailholder.gotoAndPlay("field");
} else {
enter_screens.gotoAndPlay("enter");
}
if (_root.eyeland_hs_maxchars == 3) {
enter_screens.name_label.gotoAndStop(2);
}
} else if (_root.eyeland_hs_recordplayeremail == "yes") {
enter_screens.gotoAndPlay("enter_email_only");
enter_screens.emailpromptmessage = _root.eyeland_hs_emailpromptmessage;
emailholder._y = 20.8;
emailholder.gotoAndPlay("field");
} else {
enter_screens.gotoAndPlay("noname");
}
} else {
btn_scores._visible = true;
btn_playagain._visible = true;
enter_screens.gotoAndPlay("low_score");
enter_screens.low_score_message = ("Score over " + _root.eyeland_hs_lowscore) + " points to get onto the High Score table!";
}
stop();
Instance of Symbol 278 MovieClip "btn_playagain" in Symbol 340 MovieClip Frame 12
onClipEvent (load) {
if (_parent.button_label == "Play Again") {
gotoAndPlay (2);
} else if (_parent.button_label == "Continue") {
gotoAndPlay (3);
}
}
Instance of Symbol 225 MovieClip in Symbol 340 MovieClip Frame 12
onClipEvent (load) {
_parent.score1 = (_parent.score2 = _root[_parent.score_variable]);
}
Symbol 340 MovieClip Frame 22
stop();
Instance of Symbol 225 MovieClip "copy_to_root" in Symbol 340 MovieClip Frame 22
onClipEvent (data) {
_root.eyeland_hs_players = new Array();
_root.eyeland_hs_scores = new Array();
_root.eyeland_hs_dates = new Array();
_root.eyeland_hs_maxscores = this.maxscores;
_root.eyeland_hs_current = this.current;
_root.eyeland_hs_showdate = this.showdate;
_root.eyeland_hs_cleardate = this.cleardate;
_root.eyeland_hs_emailtofriend = this.emailtofriend;
var n = 0;
while (n < numscores) {
_root.eyeland_hs_players.push(unescape(this["p" + n]));
_root.eyeland_hs_scores.push(this["s" + n]);
_root.eyeland_hs_dates.push(unescape(this["d" + n]));
n++;
}
_parent.gotoAndPlay("show");
}
Instance of Symbol 225 MovieClip in Symbol 340 MovieClip Frame 22
onClipEvent (load) {
var score = _root[_parent.score_variable];
var url = ((((_parent.highscore_url + "?action=get&id=") + _parent.game_id) + "&rand=") + Math.round(Math.random() * 999999999));
loadVariables (url, _parent.copy_to_root);
}
Symbol 340 MovieClip Frame 31
stop();
Instance of Symbol 225 MovieClip in Symbol 340 MovieClip Frame 31
onClipEvent (load) {
var score = _root[_parent.score_variable];
var rand = _parent.rand_str();
var url = ((((((((((((_parent.highscore_url + "?action=set&id=") + _parent.game_id) + "&player=") + escape(_root.eyeland_hs_p)) + "&score=") + score) + "&email=") + escape(_root.eyeland_hs_e)) + "&rand=") + rand) + "&rand2=") + _parent.calcMD5(rand + "...you shall not pass"));
loadVariables (url, _parent.copy_to_root);
}
Symbol 340 MovieClip Frame 40
if (_root.eyeland_hs_emailtofriend == "no") {
chbutton._visible = false;
}
stop();
Instance of Symbol 278 MovieClip "playagain" in Symbol 340 MovieClip Frame 40
onClipEvent (load) {
if (_parent.button_label == "Play Again") {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(3);
}
}
Instance of Symbol 330 MovieClip "chbutton" in Symbol 340 MovieClip Frame 40
onClipEvent (load) {
function btn_press() {
_parent.gotoAndPlay("chform");
}
}
Instance of Symbol 225 MovieClip "script" in Symbol 340 MovieClip Frame 40
onClipEvent (load) {
var topliney = _parent.showbg.list.line._y;
var topdragy = _parent.showbg.dragger._y;
var dragx = _parent.showbg.dragger._x;
var dragheight = 73;
var fieldheight = 167.2;
var maxdragamount = (-fieldheight);
var drag = ((dragonce = false));
var pressup = ((moveup = (pressdown = (movedown = false))));
var linedist = 0;
var curr_dist = 0;
var draggable = false;
_parent.showbg.dragger._alpha = 30;
_parent.showbg.up._alpha = 30;
_parent.showbg.down._alpha = 30;
if (_root.eyeland_hs_cleardate != "00/00/00") {
_parent.clearedmsg = "Scores cleared " + _root.eyeland_hs_cleardate;
}
var n = 0;
while (n < _root.eyeland_hs_maxscores) {
_parent.showbg.list.line.duplicateMovieClip("l" + n, n);
var obj = _parent.showbg.list["l" + n];
if (n != _root.eyeland_hs_current) {
obj.flashbox._visible = false;
}
if (_root.eyeland_hs_showdate == "yes") {
if (_root.eyeland_hs_maxchars > 0) {
obj.gotoAndPlay("name_score_date");
} else {
obj.gotoAndPlay("score_date");
}
} else if (_root.eyeland_hs_maxchars == 0) {
obj.gotoAndPlay("score_only");
}
obj._y = obj._y + curr_dist;
obj.number = (n + 1) + ".";
if (n < _root.eyeland_hs_players.length) {
obj.player = ((_root.eyeland_hs_players[n] == "") ? "anonymous" : (_root.eyeland_hs_players[n]));
obj.score = _root.eyeland_hs_scores[n];
obj.date = _root.eyeland_hs_dates[n];
if (obj.player.maxscroll > 1) {
if (_root.eyeland_hs_showdate == "yes") {
obj.gotoAndPlay("name_score_date_tall");
} else {
obj.gotoAndPlay("name_score_tall");
}
}
} else {
obj.anonymous._visible = false;
obj.player = "";
obj.score = "0";
obj.date = "";
}
curr_dist = curr_dist + obj.flashbox._height;
maxdragamount = maxdragamount + obj.flashbox._height;
if (n == (_root.eyeland_hs_maxscores - 1)) {
obj.hline._visible = false;
}
n++;
}
var bobj = _parent.showbg.list["l" + (_root.eyeland_hs_players.length - 1)];
if (maxdragamount > 0) {
var draggable = true;
_parent.showbg.dragger._alpha = 100;
_parent.showbg.up._alpha = 100;
_parent.showbg.down._alpha = 100;
} else {
var draggable = false;
}
_parent.playagain._alpha = 100;
}
onClipEvent (enterFrame) {
if (moveup && (draggable)) {
_parent.showbg.dragger._y = Math.max(_parent.showbg.dragger._y - 2, topdragy);
dragonce = true;
}
if (!pressup) {
moveup = false;
}
if (movedown && (draggable)) {
_parent.showbg.dragger._y = Math.min(_parent.showbg.dragger._y + 2, topdragy + dragheight);
dragonce = true;
}
if (!pressdown) {
movedown = false;
}
if (drag || (dragonce)) {
linedist = ((_parent.showbg.dragger._y - topdragy) / dragheight) * maxdragamount;
if ((_parent.showbg.dragger._y - topdragy) < 1) {
linedist = 0;
}
if ((_parent.showbg.dragger._y - topdragy) > (dragheight - 1)) {
linedist = maxdragamount;
}
_parent.showbg.list.l0._y = topliney - linedist;
var n = 1;
while (n < _root.eyeland_hs_maxscores) {
_parent.showbg.list["l" + n]._y = _parent.showbg.list["l" + (n - 1)]._y + _parent.showbg.list["l" + (n - 1)].flashbox._height;
n++;
}
dragonce = false;
}
}
Symbol 340 MovieClip Frame 49
message = ("You scored " + _root[score_variable]) + " points! To challenge a friend to beat your score, enter their email address in the field below and click CHALLENGE!";
stop();
Instance of Symbol 337 MovieClip in Symbol 340 MovieClip Frame 49
onClipEvent (load) {
function btn_press() {
_parent.gotoAndPlay("show");
}
}
Instance of Symbol 339 MovieClip in Symbol 340 MovieClip Frame 49
onClipEvent (load) {
function btn_press() {
_root.eyeland_hs_friendemail = _parent.friendemail;
_root.eyeland_hs_yourname = _parent.yourname;
_parent.gotoAndPlay("challenge");
}
}
Symbol 340 MovieClip Frame 60
stop();
Instance of Symbol 225 MovieClip "challenge_handler" in Symbol 340 MovieClip Frame 60
onClipEvent (data) {
_parent.gotoAndPlay("show");
}
Instance of Symbol 225 MovieClip in Symbol 340 MovieClip Frame 60
onClipEvent (load) {
var score = _root[_parent.score_variable];
var id = _parent.game_id;
var friend = escape(_root.eyeland_hs_friendemail);
var yourname = escape(_root.eyeland_hs_yourname);
var url = ((((((((((_parent.highscore_url + "?action=challenge&id=") + id) + "&friend=") + friend) + "&yourname=") + yourname) + "&score=") + score) + "&rand=") + Math.round(Math.random() * 999999999));
loadVariables (url, _parent.challenge_handler);
}