Frame 1
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
max = 64;
charPos = 0;
timer = 10000;
game = true;
wordCounter = 0;
letterCounter = 0;
num = new Array(max);
randomNumbers = new Array(max);
myArr = ["TELEVISION", "RADIO", "INTERNET", "LIGHTFORCE", "MACRO", "STARSHIP", "SUNNY", "COMPUTER", "PERSONAL", "MOUSE", "SERVER", "DATA", "FLOWER", "WATER", "FOOTBALL", "DEEP", "SPACEMAN", "CLOCK", "SPEED", "VARIABLE", "RETURN", "TRANCE", "PLACE", "NETWORK", "ACTION", "SLEEP", "SCROLL", "ESCAPE", "OVERTIME", "STEREO", "VISUAL", "INDIANA", "DIABLO", "VAMPIRE", "WASTED", "MONITOR", "JAVASCRIPT", "RIVALDO", "SEARCH", "CHEMICAL", "LOVER", "KARATE", "FORMAT", "CANCEL", "MATRIX", "SABBATH", "ULTIMATE", "DRAGON", "PAPERS", "DIGITAL", "ANALOG", "TUNER", "ARROW", "TICKET", "DELETE", "SILENCE", "CARTOON", "DISNEY", "WIERD", "ORBITAL", "MARLBORO", "KEYBOARD", "VOICE", "HUMANITY", "EARTH", "JUPITER", "ANDROMEDA", "SATURN", "ASTRONOMY", "NATION", "GREECE", "FUCK", "PRISONER", "OPERA", "PHANTOM", "FREESTYLE", "SKATER", "GOODDAY", "PSYCHO", "LOCAL", "COLORS", "PROGRAM", "COLLECTOR", "ALBUM", "OZZY", "SCORPIONS", "PLATIPUS", "PLAYBACK", "NINETEEN", "ERASE", "HOMEPAGE", "SURROUND", "MOOGWAI", "MERCEDES", "GHOSTS", "REDBULL", "DIARY", "MADMAN", "CENTAURI", "SELECTOR", "CAMBODIA", "NEON", "ECSTASY", "SMOKER", "DUNGEON", "DEATHTRAP", "CLOUDS", "STUPID", "NATURAL", "ESSENTIAL", "AUTHORITY", "PHILIPS", "MACEDONIA", "LAYERS", "PHOTOSHOP", "PASCAL", "RAPID", "ERASER", "SPOOKY", "COTTON", "NYLON", "ARPEGIATOR"];
shuffleNumbers = function () {
i = 0;
while (i < max) {
num[i] = i;
i++;
}
i = 0;
while (num.length > 0) {
pos = Math.round(Math.random() * (num.length - 1));
randomNumbers[i] = num[pos];
i++;
num.splice(pos, 1);
}
};
placeBoxLetters = function () {
var _local2 = _root;
left = 0;
top = 40;
step = 0;
var _local1 = 0;
while (_local1 < 64) {
name = "box" + _local1;
_local2.mc.attachMovie("box", name, 1000 + _local1);
_local2.mc[name]._x = left;
_local2.mc[name]._y = top;
_local2.mc[name].char = chr(random(26) + 65);
_local2.mc[name].gotoAndStop(1);
left = left + 30;
if (step == 7) {
left = 0;
top = top + 30;
step = 0;
} else {
step++;
}
_local1++;
}
};
placeRandomWord = function () {
var _local1 = _root;
lastThree = lastTwo;
lastTwo = lastOne;
lastOne = w;
do {
w = random(myArr.length);
word = myArr[w];
} while (((w == lastOne) or (w == lastTwo)) or (w == lastThree));
i = 0;
while (i < length(word)) {
name = "box" + randomNumbers[i];
_local1.mc[name].char = word.charAt(i);
i++;
}
};
goTime = function () {
timer--;
if (timer < 1) {
game = false;
gotoAndStop (3);
}
};
Frame 2
shuffleNumbers();
placeBoxLetters();
placeRandomWord();
timerID = setInterval(goTime, 10);
stop();
Frame 3
clearInterval(timerID);
if (game) {
charPos = 0;
timer = timer + 200;
wordCounter++;
letterCounter = letterCounter + length(word);
prevFrame();
} else {
stop();
}
Symbol 3 Button
on (release) {
if (this.char.charAt(0) == _root.word.charAt(_root.charPos)) {
_root.charPos++;
this.gotoAndStop(2);
_root.popSound.gotoAndPlay(2);
if (_root.charPos == length(_root.word)) {
_root.play();
}
} else {
i = 0;
while (i < 64) {
name = "box" + i;
_root.mc[name].gotoAndStop(1);
i++;
}
_root.errorSound.gotoAndPlay(2);
_root.charPos = 0;
}
}
Symbol 13 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 22 Button
on (press) {
getURL ("http://www.freestuff.gr/lightforce", "_blank");
}
Symbol 27 Button
on (press) {
gotoAndPlay (1);
}