Frame 1
iStatus = 0;
setProperty("bolt", _alpha , 0);
if (_global.gohelp == true) {
_global.gohelp = false;
Mouse.show();
gotoAndPlay ("Help1");
}
Frame 2
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded / iBytesTotal) * 100;
setProperty("bolt", _alpha , iBytes);
setProperty("bolt", _xscale , iBytes);
setProperty("bolt", _yscale , iBytes);
sStatus = Math.round(iBytes) add "% loaded";
Frame 3
if (iBytes < 100) {
gotoAndPlay (2);
} else {
sStatus = "COMPLETE";
gotoAndStop (4);
}
Frame 4
if (_global.System) {
System.security.allowDomain("mochibot.com");
}
_level0.__com_mochibot__swfid = "69ef0434";
loadMovieNum ("http://mochibot.com/my/core.swf", 10301);
function findClips(myClip, indentSpaces) {
var _local3 = " ";
var _local1 = 0;
while (_local1 < indentSpaces) {
_local3 = _local3 + " ";
_local1++;
}
for (var _local5 in myClip) {
if (typeof(myClip[_local5]) == "movieclip") {
trace(_local3 + myClip[_local5]._name);
findClips(myClip[_local5], indentSpaces + 4);
}
}
}
function is_stolen(ourDomainName) {
var _local1 = _url;
var _local2 = _local1.indexOf("://") + 3;
var _local5 = _local1.indexOf("/", _local2);
var _local6 = _local1.substring(_local2, _local5);
var _local4 = _local6.lastIndexOf(".") - 1;
var _local3 = _local6.lastIndexOf(".", _local4) + 1;
_local6 = _local6.substring(_local3, _local6.length);
if (_local6 != ourDomainName) {
return(true);
}
}
function init() {
if (!playing) {
return(undefined);
}
_root._dragging_tile = undefined;
var _local2 = 0;
var _local4;
var _local3;
var _local9 = true;
var _local8;
var _local6;
var _local7;
var _local5;
_root.score_title = "Score: ";
_root.score = 0;
_root.timer_title = "Time: ";
_root.timer = 60;
_root.level_title = "Level: ";
_root.level = 1;
_root.level_target = _root.level + " word left to level up";
_root.game_name = "wordslider";
dink = new Sound();
dink.attachSound("dink.wav");
tock = new Sound();
tock.attachSound("tock.wav");
clicka = new Sound();
clicka.attachSound("clicka.wav");
error = new Sound();
error.attachSound("buzzer.wav");
error.setVolume(25);
setInterval(game_timer, 1000);
setInterval(collect_flasher, 500);
gameOver = undefined;
}
function clearbuttons() {
_root.timer = 9999999 /* 0x98967F */;
_root.submit_score._x = -500;
_root.submit_score._y = -500;
_root.play_again._x = -500;
_root.play_again._y = -500;
_root.game_over._x = -500;
_root.game_over._y = -500;
_root.moreinfo._x = -500;
_root.moreinfo._y = -500;
_root.demo_text._x = -500;
_root.demo_text._y = -500;
}
function re_init() {
foundWords = new Array();
foundTiles = "";
target_words = "";
_root.tick1.removeMovieClip();
_root.tick2.removeMovieClip();
_root.tick3.removeMovieClip();
_root.tick4.removeMovieClip();
_root.tick5.removeMovieClip();
_root.tick6.removeMovieClip();
_root.tick7.removeMovieClip();
_root.tick8.removeMovieClip();
_root.level = 1;
_root._dragging_tile = undefined;
var _local2 = 0;
var _local4;
var _local3;
var _local9 = true;
var _local8;
var _local6;
var _local7;
var _local5;
num_spaces = 15;
_root.score = 0;
_root.timer = 60;
_root.submit_score._x = -500;
_root.submit_score._y = -500;
_root.play_again._x = -500;
_root.play_again._y = -500;
_root.game_over._x = -500;
_root.game_over._y = -500;
_root.moreinfo._x = -500;
_root.moreinfo._y = -500;
_root.demo_text._x = -500;
_root.demo_text._y = -500;
gameOver = undefined;
}
function create_grid() {
if (_root.level == 1) {
_root.level_target = _root.level + " word left to level up...";
} else {
_root.level_target = _root.level + " words left to level up...";
}
_root.collect._x = -462;
_root.collect._y = -340;
tiles = new Array();
var _local5 = new Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
var _local3 = new Array("1,1", "2,1", "3,1", "4,1", "5,1", "6,1", "7,1", "8,1", "1,2", "2,2", "3,2", "4,2", "5,2", "6,2", "7,2", "8,2", "1,3", "2,3", "3,3", "4,3", "5,3", "6,3", "7,3", "8,3", "1,4", "2,4", "3,4", "4,4", "5,4", "6,4", "7,4", "8,4", "1,5", "2,5", "3,5", "4,5", "5,5", "6,5", "7,5", "8,5", "1,6", "2,6", "3,6", "4,6", "5,6", "6,6", "7,6", "8,6", "1,7", "2,7", "3,7", "4,7", "5,7", "6,7", "7,7", "8,7", "1,8", "2,8", "3,8", "4,8", "5,8", "6,8", "7,8", "8,8");
i = 0;
while (i < _local3.length) {
co_ord = _local3[i].split(",");
var _local2 = (co_ord[0] + "_") + co_ord[1];
tiles.push(_local2);
i++;
}
_local3.randomize();
var i = 0;
while (i < num_spaces) {
_local3.pop();
i++;
}
target_words = pick_words();
j = 0;
while (j < target_words.length) {
letters = target_words[j].split("");
k = 0;
while (k < letters.length) {
pos = _local3.pop();
co_ord = pos.split(",");
var _local2 = (co_ord[0] + "_") + co_ord[1];
_root.attachMovie(letters[k], _local2, _root.getNewDepth());
_root[_local2]._width = 48;
_root[_local2]._height = 48;
_root[_local2].gotoAndStop(1);
_root[_local2]._x = ((int(co_ord[0]) - 1) * gridSpacing) + (gridSpacing / 2);
_root[_local2]._y = ((int(co_ord[1]) - 1) * gridSpacing) + (gridSpacing / 2);
_root[_local2]._letter = letters[k];
_root[_local2]._moveable = true;
k++;
}
j++;
}
i = 0;
while (i < _local3.length) {
co_ord = _local3[i].split(",");
var _local2 = (co_ord[0] + "_") + co_ord[1];
var _local4 = _local5[Math.floor(Math.random() * 26)];
_root.attachMovie(_local4, _local2, _root.getNewDepth());
_root[_local2].gotoAndStop(1);
_root[_local2]._width = 48;
_root[_local2]._height = 48;
_root[_local2]._x = ((int(co_ord[0]) - 1) * gridSpacing) + (gridSpacing / 2);
_root[_local2]._y = ((int(co_ord[1]) - 1) * gridSpacing) + (gridSpacing / 2);
_root[_local2]._letter = _local4;
_root[_local2]._moveable = true;
i++;
}
}
function pick_words() {
target_words = new Array();
var _local2 = 3;
while (_local2 <= 6) {
var _local3 = 0;
while (_local3 < 2) {
not_found = true;
while (not_found) {
word = wordlist[Math.floor(Math.random() * wordlist.length)];
if (word.length == _local2) {
not_found = false;
target_words.push(word);
}
}
_local3++;
}
_local2++;
}
var _local3 = 0;
while (_local3 < target_words.length) {
name = "word" + int(_local3 + 1);
_root[name] = target_words[_local3];
_local3++;
}
return(target_words);
}
function search_for_words(pos) {
co_ords = pos.split("_");
x = co_ords[0];
y = co_ords[1];
horizontal_tiles = new Array();
vertical_tiles = new Array();
i = 0;
while (i < 8) {
horizontal_tiles.push(((i + 1) + "_") + y);
vertical_tiles.push((x + "_") + (i + 1));
i++;
}
horizontal_letters = new Array();
vertical_letters = new Array();
i = 0;
while (i < horizontal_tiles.length) {
horizontal_letters.push(_root[horizontal_tiles[i]]._letter);
i++;
}
i = 0;
while (i < vertical_tiles.length) {
vertical_letters.push(_root[vertical_tiles[i]]._letter);
i++;
}
horizontal_words = new Array();
vertical_words = new Array();
word = "";
i = 0;
while (i < horizontal_letters.length) {
if (horizontal_letters[i]) {
word = word + horizontal_letters[i];
} else if (word.length > 0) {
horizontal_words.push(word);
word = "";
}
i++;
}
if (word.length > 0) {
horizontal_words.push(word);
}
word = "";
i = 0;
while (i < vertical_letters.length) {
if (vertical_letters[i]) {
word = word + vertical_letters[i];
} else if (word.length > 0) {
vertical_words.push(word);
word = "";
}
i++;
}
if (word.length > 0) {
vertical_words.push(word);
}
reversed_horizontal_words = new Array();
reversed_vertical_words = new Array();
word = "";
i = horizontal_letters.length;
while (i >= 0) {
if (horizontal_letters[i]) {
word = word + horizontal_letters[i];
} else if (word.length > 0) {
reversed_horizontal_words.push(word);
word = "";
}
i--;
}
if (word.length > 0) {
reversed_horizontal_words.push(word);
}
word = "";
i = vertical_letters.length;
while (i >= 0) {
if (vertical_letters[i]) {
word = word + vertical_letters[i];
} else if (word.length > 0) {
reversed_vertical_words.push(word);
word = "";
}
i--;
}
if (word.length > 0) {
reversed_vertical_words.push(word);
}
i = 0;
while (i < horizontal_words.length) {
j = 0;
while (j < target_words.length) {
pos = horizontal_words[i].indexOf(target_words[j]);
if (pos >= 0) {
var _local3 = "";
k = 0;
while (k < horizontal_letters.length) {
if (horizontal_letters[k] == undefined) {
_local3 = _local3 + " ";
} else {
_local3 = _local3 + horizontal_letters[k];
}
k++;
}
starts_at_x = _local3.indexOf(target_words[j]) + 1;
letters_already_found = 0;
l = 0;
while (l < target_words[j].length) {
name = (int(starts_at_x + l) + "_") + y;
if (!_root[name]._moveable) {
letters_already_found++;
}
_root[name]._moveable = undefined;
_root[name].gotoAndStop(2);
if (foundTiles.inArray(name) && (!foundWords.inArray(target_words[j]))) {
_root.bonus_time.gotoAndPlay(2);
} else {
foundTiles.push(name);
}
l++;
}
if (letters_already_found < target_words[j].length) {
foundWords.push(target_words[j]);
_root.score = _root.score + (target_words[j].length * _root.timer);
strike(target_words[j]);
}
}
j++;
}
i++;
}
i = 0;
while (i < vertical_words.length) {
j = 0;
while (j < target_words.length) {
pos = vertical_words[i].indexOf(target_words[j]);
if (pos >= 0) {
var _local3 = "";
k = 0;
while (k < vertical_letters.length) {
if (vertical_letters[k] == undefined) {
_local3 = _local3 + " ";
} else {
_local3 = _local3 + vertical_letters[k];
}
k++;
}
starts_at_y = _local3.indexOf(target_words[j]) + 1;
letters_already_found = 0;
l = 0;
while (l < target_words[j].length) {
name = (x + "_") + int(starts_at_y + l);
if (!_root[name]._moveable) {
letters_already_found++;
}
_root[name]._moveable = undefined;
_root[name].gotoAndStop(2);
if (foundTiles.inArray(name) && (!foundWords.inArray(target_words[j]))) {
_root.bonus_time.gotoAndPlay(2);
} else {
foundTiles.push(name);
}
l++;
}
if (letters_already_found < target_words[j].length) {
foundWords.push(target_words[j]);
_root.score = _root.score + (target_words[j].length * _root.timer);
strike(target_words[j]);
}
}
j++;
}
i++;
}
i = 0;
while (i < reversed_horizontal_words.length) {
j = 0;
while (j < target_words.length) {
pos = reversed_horizontal_words[i].indexOf(target_words[j]);
if (pos >= 0) {
var _local3 = "";
k = horizontal_letters.length;
while (k >= 0) {
if (horizontal_letters[k] == undefined) {
_local3 = _local3 + " ";
} else {
_local3 = _local3 + horizontal_letters[k];
}
k--;
}
starts_at_x = (horizontal_letters.length - _local3.indexOf(target_words[j])) + 1;
letters_already_found = 0;
l = 0;
while (l < target_words[j].length) {
name = (int(starts_at_x - l) + "_") + y;
if (!_root[name]._moveable) {
letters_already_found++;
}
_root[name]._moveable = undefined;
_root[name].gotoAndStop(2);
if (foundTiles.inArray(name) && (!foundWords.inArray(target_words[j]))) {
_root.bonus_time.gotoAndPlay(2);
} else {
foundTiles.push(name);
}
l++;
}
if (letters_already_found < target_words[j].length) {
foundWords.push(target_words[j]);
_root.score = _root.score + (target_words[j].length * _root.timer);
strike(target_words[j]);
}
}
j++;
}
i++;
}
i = 0;
while (i < reversed_vertical_words.length) {
j = 0;
while (j < target_words.length) {
pos = reversed_vertical_words[i].indexOf(target_words[j]);
if (pos >= 0) {
var _local3 = "";
k = vertical_letters.length;
while (k >= 0) {
if (vertical_letters[k] == undefined) {
_local3 = _local3 + " ";
} else {
_local3 = _local3 + vertical_letters[k];
}
k--;
}
starts_at_y = (vertical_letters.length - _local3.indexOf(target_words[j])) + 1;
letters_already_found = 0;
l = 0;
while (l < target_words[j].length) {
name = (x + "_") + int(starts_at_y - l);
if (!_root[name]._moveable) {
letters_already_found++;
}
_root[name]._moveable = undefined;
_root[name].gotoAndStop(2);
if (foundTiles.inArray(name) && (!foundWords.inArray(target_words[j]))) {
_root.bonus_time.gotoAndPlay(2);
} else {
foundTiles.push(name);
}
l++;
}
if (letters_already_found < target_words[j].length) {
foundWords.push(target_words[j]);
_root.score = _root.score + (target_words[j].length * _root.timer);
strike(target_words[j]);
}
}
j++;
}
i++;
}
var _local4 = 0;
var _local8 = new Array();
var _local5 = new Array();
var _local7 = new Array();
var _local6 = new Array();
i = 0;
while (i < foundWords.length) {
if ((foundWords[i].length == 3) && (!_local8.inArray(foundWords[i]))) {
_local4++;
_local8.push(foundWords[i]);
} else if ((foundWords[i].length == 4) && (!_local5.inArray(foundWords[i]))) {
_local4++;
_local5.push(foundWords[i]);
} else if ((foundWords[i].length == 5) && (!_local7.inArray(foundWords[i]))) {
_local4++;
_local7.push(foundWords[i]);
} else if ((foundWords[i].length == 6) && (!_local6.inArray(foundWords[i]))) {
_local4++;
_local6.push(foundWords[i]);
}
i++;
}
if (((_local8.length == 2) && (_local4)) && (!bonus_three)) {
_root.bonus_300.gotoAndPlay(2);
_root.score = _root.score + 300;
bonus_three++;
} else if (((_local5.length == 2) && (_local4)) && (!bonus_four)) {
_root.bonus_400.gotoAndPlay(2);
_root.score = _root.score + 400;
bonus_four++;
} else if (((_local7.length == 2) && (_local4)) && (!bonus_five)) {
_root.bonus_500.gotoAndPlay(2);
_root.score = _root.score + 500;
bonus_five++;
} else if (((_local6.length == 2) && (_local4)) && (!bonus_six)) {
_root.bonus_600.gotoAndPlay(2);
_root.score = _root.score + 600;
bonus_six++;
}
if (foundWords.length == (_root.level - 1)) {
_root.level_target = "1 word left to level up";
} else {
_root.level_target = (_root.level - foundWords.length) + " words left to level up";
}
}
function strike(word) {
if (word.length == 3) {
if ((word == _root.word1) && (!_root.tick1)) {
_root.attachMovie("tick", "tick1", _root.getNewDepth());
_root.tick1._x = 500;
_root.tick1._y = 312;
_root.tick1._xscale = 50;
_root.tick1._yscale = 50;
} else if ((word == _root.word2) && (!_root.tick2)) {
_root.attachMovie("tick", "tick2", _root.getNewDepth());
_root.tick2._x = 580;
_root.tick2._y = 312;
_root.tick2._xscale = 50;
_root.tick2._yscale = 50;
}
} else if (word.length == 4) {
if ((word == _root.word3) && (!_root.tick3)) {
_root.attachMovie("tick", "tick3", _root.getNewDepth());
_root.tick3._x = 500;
_root.tick3._y = 330;
_root.tick3._xscale = 50;
_root.tick3._yscale = 50;
} else if ((word == _root.word4) && (!_root.tick4)) {
_root.attachMovie("tick", "tick4", _root.getNewDepth());
_root.tick4._x = 580;
_root.tick4._y = 330;
_root.tick4._xscale = 50;
_root.tick4._yscale = 50;
}
} else if (word.length == 5) {
if ((word == _root.word5) && (!_root.tick5)) {
_root.attachMovie("tick", "tick5", _root.getNewDepth());
_root.tick5._x = 500;
_root.tick5._y = 345;
_root.tick5._xscale = 50;
_root.tick5._yscale = 50;
} else if ((word == _root.word6) && (!_root.tick6)) {
_root.attachMovie("tick", "tick6", _root.getNewDepth());
_root.tick6._x = 580;
_root.tick6._y = 345;
_root.tick6._xscale = 50;
_root.tick6._yscale = 50;
}
} else if (word.length == 6) {
if ((word == _root.word7) && (!_root.tick7)) {
_root.attachMovie("tick", "tick7", _root.getNewDepth());
_root.tick7._x = 500;
_root.tick7._y = 362;
_root.tick7._xscale = 50;
_root.tick7._yscale = 50;
} else if ((word == _root.word8) && (!_root.tick8)) {
_root.attachMovie("tick", "tick8", _root.getNewDepth());
_root.tick8._x = 580;
_root.tick8._y = 362;
_root.tick8._xscale = 50;
_root.tick8._yscale = 50;
}
}
}
function add_buttons() {
_root.attachMovie("collect", "collect", _root.getNewDepth());
_root.collect._x = -462;
_root.collect._y = -340;
_root.collect._clickable = true;
_root.collect.gotoAndStop(1);
_root.attachMovie("bonus_time", "bonus_time", _root.getNewDepth());
_root.bonus_time._x = 500;
_root.bonus_time._y = 90;
_root.bonus_time._clickable = true;
_root.bonus_time.gotoAndStop(1);
_root.attachMovie("bonus_300", "bonus_300", _root.getNewDepth());
_root.bonus_300._x = 475;
_root.bonus_300._y = 100;
_root.bonus_300._clickable = true;
_root.bonus_300.gotoAndStop(1);
_root.attachMovie("bonus_400", "bonus_400", _root.getNewDepth());
_root.bonus_400._x = 475;
_root.bonus_400._y = 100;
_root.bonus_400._clickable = true;
_root.bonus_400.gotoAndStop(1);
_root.attachMovie("bonus_500", "bonus_500", _root.getNewDepth());
_root.bonus_500._x = 475;
_root.bonus_500._y = 100;
_root.bonus_500._clickable = true;
_root.bonus_500.gotoAndStop(1);
_root.attachMovie("bonus_600", "bonus_600", _root.getNewDepth());
_root.bonus_600._x = 475;
_root.bonus_600._y = 100;
_root.bonus_600._clickable = true;
_root.bonus_600.gotoAndStop(1);
_root.attachMovie("game_over", "game_over", _root.getNewDepth());
_root.game_over._x = -500;
_root.game_over._y = -500;
_root.game_over.gotoAndPlay(2);
_root.attachMovie("submit_score", "submit_score", _root.getNewDepth());
_root.submit_score._x = -500;
_root.submit_score._y = -500;
_root.submit_score.gotoAndStop(1);
_root.submit_score._clickable = true;
_root.attachMovie("play_again", "play_again", _root.getNewDepth());
_root.play_again._x = -500;
_root.play_again._y = -500;
_root.play_again.gotoAndStop(1);
_root.play_again._clickable = true;
_root.attachMovie("moreinfo", "moreinfo", _root.getNewDepth());
_root.moreinfo._x = -500;
_root.moreinfo._y = -500;
_root.moreinfo.gotoAndStop(1);
_root.moreinfo._clickable = true;
}
function clear_board() {
i = 0;
while (i < tiles.length) {
_root[tiles[i]].removeMovieClip();
i++;
}
}
function do_collect() {
clearInterval(do_collect_id);
_root.tick1.removeMovieClip();
_root.tick2.removeMovieClip();
_root.tick3.removeMovieClip();
_root.tick4.removeMovieClip();
_root.tick5.removeMovieClip();
_root.tick6.removeMovieClip();
_root.tick7.removeMovieClip();
_root.tick8.removeMovieClip();
clicka_played = 0;
bonus_three = 0;
bonus_four = 0;
bonus_five = 0;
bonus_six = 0;
dink.start(0, 2);
_root.timer = 60 + (_root.level * 10);
if (_root.timer > 99) {
_root.timer = 99;
}
_root.level++;
num_spaces--;
clear_board();
create_grid();
if (foundWords.length == 8) {
_root.score = _root.score + 1000;
}
foundWords = new Array();
foundTiles = new Array();
if (num_spaces == 0) {
gameOver = true;
}
if (demo_mode && (_root.level > 3)) {
gameOver = true;
_root.attachMovie("demo_mode", "demo_text", _root.getNewDepth());
_root.demo_text.gotoAndStop(1);
_root.demo_text._x = 35;
_root.demo_text._y = 175;
}
}
function moreinfo_mode() {
_root.attachMovie("info", "info", 9999999);
_global.moreinfo = true;
}
function do_submit_score() {
var _local2 = _url;
var _local3 = _local2.indexOf("://") + 3;
var _local6 = _local2.indexOf("/", _local3);
var _local7 = _local2.substring(_local3, _local6);
var _local5 = _local7.lastIndexOf(".") - 1;
var _local4 = _local7.lastIndexOf(".", _local5) + 1;
_local7 = _local7.substring(_local4, _local7.length);
if (_local7 == "chickstop") {
score = _root.score;
game_name = "wordslider";
getURL ("http://www.chickstop.com/games/submitscore/index.php", "", "POST");
} else {
var score = _root.score;
var game_name = "wordslider";
getURL ("http://www.chickstop.com/games/submitscore/index.php", "", "POST");
}
}
function do_play_again() {
re_init();
create_grid();
}
function do_demo_mode() {
getURL ("http://www.playaholics.com/play/wordslider/", "_blank");
return(undefined);
}
function game_timer() {
if (gameOver) {
return(undefined);
}
if (_root.timer <= 0) {
if (gameOver == undefined) {
error.start();
}
gameOver = true;
_root.timer = 0;
} else if ((!clearBoard) && (_root.timer <= 11)) {
tock.start();
_root.timer = _root.timer - 1;
} else if (!clearBoard) {
_root.timer = _root.timer - 1;
}
}
function collect_flasher() {
if ((_root.timer <= 99) && (!gameOver)) {
if (_root.collect._currentframe == 1) {
_root.collect.gotoAndStop(2);
} else {
_root.collect.gotoAndStop(1);
}
}
}
wordlist = new Array();
wordlist = ["a", "able", "about", "account", "acid", "across", "act", "addition", "adjustment", "advertisement", "after", "again", "against", "agreement", "air", "all", "almost", "among", "amount", "amusement", "and", "angle", "angry", "animal", "answer", "ant", "any", "apparatus", "apple", "approval", "arch", "argument", "arm", "army", "art", "as", "at", "attack", "attempt", "attention", "attraction", "authority", "automatic", "awake", "baby", "back", "bad", "bag", "balance", "ball", "band", "base", "basin", "basket", "bath", "be", "beautiful", "because", "bed", "bee", "before", "behaviour", "belief", "bell", "bent", "berry", "between", "bird", "birth", "bit", "bite", "bitter", "black", "blade", "blood", "blow", "blue", "board", "boat", "body", "boiling", "bone", "book", "boot", "bottle", "box", "boy", "brain", "brake", "branch", "brass", "bread", "breath", "brick", "bridge", "bright", "broken", "brother", "brown", "brush", "bucket", "building", "bulb", "burn", "burst", "business", "but", "butter", "button", "by", "cake", "camera", "canvas", "card", "care", "carriage", "cart", "cat", "cause", "certain", "chain", "chalk", "chance", "change", "cheap", "cheese", "chemical", "chest", "chief", "chin", "church", "circle", "clean", "clear", "clock", "cloth", "cloud", "coal", "coat", "cold", "collar", "colour", "comb", "come", "comfort", "committee", "common", "company", "comparison", "competition", "complete", "complex", "condition", "connection", "conscious", "control", "cook", "copper", "copy", "cord", "cork", "cotton", "cough", "country", "cover", "cow", "crack", "credit", "crime", "cruel", "crush", "cry", "cup", "cup", "current", "curtain", "curve", "cushion", "damage", "danger", "dark", "daughter", "day", "dead", "dear", "death", "debt", "decision", "deep", "degree", "delicate", "dependent", "design", "desire", "destruction", "detail", "development", "different", "digestion", "direction", "dirty", "discovery", "discussion", "disease", "disgust", "distance", "distribution", "division", "do", "dog", "door", "doubt", "down", "drain", "drawer", "dress", "drink", "driving", "drop", "dry", "dust", "ear", "early", "earth", "east", "edge", "education", "effect", "egg", "elastic", "electric", "end", "engine", "enough", "equal", "error", "even", "event", "ever", "every", "example", "exchange", "existence", "expansion", "experience", "expert", "eye", "face", "fact", "fall", "false", "family", "far", "farm", "fat", "father", "fear", "feather", "feeble", "feeling", "female", "fertile", "fiction", "field", "fight", "finger", "fire", "first", "fish", "fixed", "flag", "flame", "flat", "flight", "floor", "flower", "fly", "fold", "food", "foolish", "foot", "for", "force", "fork", "form", "forward", "fowl", "frame", "free", "frequent", "friend", "from", "front", "fruit", "full", "future", "garden", "general", "get", "girl", "give", "glass", "glove", "go", "goat", "gold", "good", "government", "grain", "grass", "great", "green", "grey", "grip", "group", "growth", "guide", "gun", "hair", "hammer", "hand", "hanging", "happy", "harbour", "hard", "harmony", "hat", "hate", "have", "he", "head", "healthy", "hear", "hearing", "heart", "heat", "help", "high", "history", "hole", "hollow", "hook", "hope", "horn", "horse", "hospital", "hour", "house", "how", "humour", "I", "ice", "idea", "if", "ill", "important", "impulse", "in", "increase", "industry", "ink", "insect", "instrument", "insurance", "interest", "invention", "iron", "island", "jelly", "jewel", "join", "journey", "judge", "jump", "keep", "kettle", "key", "kick", "kind", "kiss", "knee", "knife", "knot", "knowledge", "land", "language", "last", "late", "laugh", "law", "lead", "leaf", "learning", "leather", "left", "leg", "let", "letter", "level", "library", "lift", "light", "like", "limit", "line", "linen", "lip", "liquid", "list", "little", "living", "lock", "long", "look", "loose", "loss", "loud", "love", "low", "machine", "make", "male", "man", "manager", "map", "mark", "market", "married", "mass", "match", "material", "may", "meal", "measure", "meat", "medical", "meeting", "memory", "metal", "middle", "military", "milk", "mind", "mine", "minute", "mist", "mixed", "money", "monkey", "month", "moon", "morning", "mother", "motion", "mountain", "mouth", "move", "much", "muscle", "music", "nail", "name", "narrow", "nation", "natural", "near", "necessary", "neck", "need", "needle", "nerve", "net", "new", "news", "night", "no", "noise", "normal", "north", "nose", "not", "note", "now", "number", "nut", "observation", "of", "off", "offer", "office", "oil", "old", "on", "only", "open", "operation", "opinion", "opposite", "or", "orange", "order", "organization", "ornament", "other", "out", "oven", "over", "owner", "page", "pain", "paint", "paper", "parallel", "parcel", "part", "past", "paste", "payment", "peace", "pen", "pencil", "person", "physical", "picture", "pig", "pin", "pipe", "place", "plane", "plant", "plate", "play", "please", "pleasure", "plough", "pocket", "point", "poison", "polish", "political", "poor", "porter", "position", "possible", "pot", "potato", "powder", "power", "present", "price", "print", "prison", "private", "probable", "process", "produce", "profit", "property", "prose", "protest", "public", "pull", "pump", "punishment", "purpose", "push", "put", "quality", "question", "quick", "quiet", "quite", "rail", "rain", "range", "rat", "rate", "ray", "reaction", "reading", "ready", "reason", "receipt", "record", "red", "regret", "regular", "relation", "religion", "representative", "request", "respect", "responsible", "rest", "reward", "rhythm", "rice", "right", "ring", "river", "road", "rod", "roll", "roof", "room", "root", "rough", "round", "rub", "rule", "run", "sad", "safe", "sail", "salt", "same", "sand", "say", "scale", "school", "science", "scissors", "screw", "sea", "seat", "second", "secret", "secretary", "see", "seed", "seem", "selection", "self", "send", "sense", "separate", "serious", "servant", "sex", "shade", "shake", "shame", "sharp", "sheep", "shelf", "ship", "shirt", "shock", "shoe", "short", "shut", "side", "sign", "silk", "silver", "simple", "sister", "size", "skin", "", "skirt", "sky", "sleep", "slip", "slope", "slow", "small", "smash", "smell", "smile", "smoke", "smooth", "snake", "sneeze", "snow", "so", "soap", "society", "sock", "soft", "solid", "some", "", "son", "song", "sort", "sound", "soup", "south", "space", "spade", "special", "sponge", "spoon", "spring", "square", "stage", "stamp", "star", "start", "statement", "station", "steam", "steel", "stem", "step", "stick", "sticky", "stiff", "still", "stitch", "stocking", "stomach", "stone", "stop", "store", "story", "straight", "strange", "street", "stretch", "strong", "structure", "substance", "such", "sudden", "sugar", "suggestion", "summer", "sun", "support", "surprise", "sweet", "swim", "system", "table", "tail", "take", "talk", "tall", "taste", "tax", "teaching", "tendency", "test", "than", "that", "the", "then", "theory", "there", "thick", "thin", "thing", "this", "thought", "thread", "throat", "through", "through", "thumb", "thunder", "ticket", "tight", "till", "time", "tin", "tired", "to", "toe", "together", "tomorrow", "tongue", "tooth", "top", "touch", "town", "trade", "train", "transport", "tray", "tree", "trick", "trouble", "trousers", "true", "turn", "twist", "umbrella", "under", "unit", "up", "use", "value", "verse", "very", "vessel", "view", "violent", "voice", "waiting", "walk", "wall", "war", "warm", "wash", "waste", "watch", "water", "wave", "wax", "way", "weather", "week", "weight", "well", "west", "wet", "wheel", "when", "where", "while", "whip", "whistle", "white", "who", "why", "wide", "will", "wind", "window", "wine", "wing", "winter", "wire", "wise", "with", "woman", "wood", "wool", "word", "work", "worm", "wound", "writing", "wrong", "year", "yellow", "yes", "yesterday", "you", "young"];
Array.prototype.randomize = function () {
var _local3 = this.length;
var _local2;
var _local4;
i = 0;
while (i < _local3) {
_local2 = Math.floor(Math.random() * _local3);
_local4 = this[i];
this[i] = this[_local2];
this[_local2] = _local4;
i++;
}
};
Array.prototype.inArray = function (value) {
var _local2;
_local2 = 0;
while (_local2 < this.length) {
if (this[_local2] === value) {
return(true);
}
_local2++;
}
return(false);
};
MovieClip.prototype.getNewDepth = function () {
if (this.currentDepth == undefined) {
this.currentDepth = 1;
}
return(this.currentDepth++);
};
_root.attachMovie("how_to_play", "how_to_play", 9999999);
var playing = undefined;
var tiles;
var clicka_played = 0;
var foundWords = new Array();
var foundTiles = new Array();
var gridSpacing = 50;
var clearBoard = 0;
var num_spaces = 15;
var bonus_three = 0;
var bonus_four = 0;
var bonus_five = 0;
var bonus_six = 0;
init();
create_grid();
add_buttons();
_root.onMouseDown = function () {
mx = _root._xmouse;
my = _root._ymouse;
if (!gameOver) {
start_x = Math.ceil(mx / gridSpacing);
start_y = Math.ceil(my / gridSpacing);
var _local2 = (start_x + "_") + start_y;
if (_root[_local2].hitTest(mx, my) && (_root[_local2]._moveable == true)) {
_root[_local2]._dragging = true;
_root._dragging_tile = _local2;
}
}
};
_root.onMouseMove = function () {
if (!_root._dragging_tile) {
return(undefined);
}
var _local3 = _root._dragging_tile;
if (_root[_local3]._dragging == true) {
mx = _root._xmouse;
my = _root._ymouse;
curr_x = Math.ceil(mx / gridSpacing);
curr_y = Math.ceil(my / gridSpacing);
if (((curr_x > 8) || (curr_x < 0)) || (((curr_y > 8) < curr_y) < 0)) {
_root[_local3]._dragging = undefined;
return(undefined);
}
var _local2 = (curr_x + "_") + curr_y;
if (_root[_local2] && (_local2 != _local3)) {
} else if ((curr_x > (start_x + 1)) || (curr_x < (start_x - 1))) {
} else if ((curr_y > (start_y + 1)) || (curr_y < (start_y - 1))) {
} else if ((curr_x < 1) || (curr_x > 8)) {
} else if ((curr_y < 1) || (curr_y > 8)) {
} else {
if ((curr_x == (start_x + 1)) && (curr_y == start_y)) {
_root.attachMovie(_root[_local3]._letter, _local2, _root.getNewDepth());
_root[_local2]._width = 48;
_root[_local2]._height = 48;
_root[_local2].gotoAndStop(1);
_root[_local2]._x = (curr_x * gridSpacing) - (gridSpacing / 2);
_root[_local2]._y = (curr_y * gridSpacing) - (gridSpacing / 2);
_root[_local2]._letter = _root[_local3]._letter;
_root[_local2]._moveable = _root[_local3]._moveable;
_root[_local3]._dragging = undefined;
_root[_local3].removeMovieClip();
_root._dragging_tile = _local2;
_root[_local2]._dragging = true;
} else if ((curr_y == (start_y + 1)) && (curr_x == start_x)) {
_root.attachMovie(_root[_local3]._letter, _local2, _root.getNewDepth());
_root[_local2]._width = 48;
_root[_local2]._height = 48;
_root[_local2].gotoAndStop(1);
_root[_local2]._x = (curr_x * gridSpacing) - (gridSpacing / 2);
_root[_local2]._y = (curr_y * gridSpacing) - (gridSpacing / 2);
_root[_local2]._letter = _root[_local3]._letter;
_root[_local2]._moveable = _root[_local3]._moveable;
_root[_local3]._dragging = undefined;
_root[_local3].removeMovieClip();
_root._dragging_tile = _local2;
_root[_local2]._dragging = true;
} else if ((curr_x == (start_x - 1)) && (curr_y == start_y)) {
_root.attachMovie(_root[_local3]._letter, _local2, _root.getNewDepth());
_root[_local2]._width = 48;
_root[_local2]._height = 48;
_root[_local2].gotoAndStop(1);
_root[_local2]._x = (curr_x * gridSpacing) - (gridSpacing / 2);
_root[_local2]._y = (curr_y * gridSpacing) - (gridSpacing / 2);
_root[_local2]._letter = _root[_local3]._letter;
_root[_local2]._moveable = _root[_local3]._moveable;
_root[_local3]._dragging = undefined;
_root[_local3].removeMovieClip();
_root._dragging_tile = _local2;
_root[_local2]._dragging = true;
} else if ((curr_y == (start_y - 1)) && (curr_x == start_x)) {
_root.attachMovie(_root[_local3]._letter, _local2, _root.getNewDepth());
_root[_local2]._width = 48;
_root[_local2]._height = 48;
_root[_local2].gotoAndStop(1);
_root[_local2]._x = (curr_x * gridSpacing) - (gridSpacing / 2);
_root[_local2]._y = (curr_y * gridSpacing) - (gridSpacing / 2);
_root[_local2]._letter = _root[_local3]._letter;
_root[_local2]._moveable = _root[_local3]._moveable;
_root[_local3]._dragging = undefined;
_root[_local3].removeMovieClip();
_root._dragging_tile = _local2;
_root[_local2]._dragging = true;
}
start_x = curr_x;
start_y = curr_y;
}
}
};
_root.onMouseUp = function () {
if (!playing) {
playing = true;
_root.how_to_play._x = -500;
_root.how_to_play._y = -500;
init();
return(undefined);
}
if (_root.collect.hitTest(mx, my) && (_root.collect._clickable)) {
do_collect();
} else if ((_root.submit_score.hitTest(mx, my) && (_root.submit_score._clickable)) && (_global.moreinfo != true)) {
do_submit_score();
} else if ((_root.play_again.hitTest(mx, my) && (_root.play_again._clickable)) && (_global.moreinfo != true)) {
do_play_again();
} else if (_root.demo_text.hitTest(mx, my)) {
do_demo_mode();
} else if (_root.moreinfo.hitTest(mx, my) && (_global.moreinfo != true)) {
moreinfo_mode();
clearbuttons();
} else {
var _local3 = _root._dragging_tile;
_root[_local3]._dragging = undefined;
search_for_words(_local3);
if (foundWords.length >= _root.level) {
if (!clicka_played) {
clicka_played = 1;
clicka.start();
}
_root.level_target = "";
_root.collect._x = 515;
_root.collect._y = 270;
do_collect_id = setInterval(do_collect, 1500);
level_up = 1;
}
}
};
_root.onEnterFrame = function () {
if (clearBoard > 0) {
if (clearBoard > 10) {
clearBoard = 0;
} else {
clearBoard++;
}
}
mx = _root._xmouse;
my = _root._ymouse;
if (_root.collect.hitTest(mx, my)) {
_root.collect.gotoAndStop(2);
_root.collect._clickable = true;
} else if (_root.timer > 99) {
_root.collect.gotoAndStop(1);
}
if (_root.bonus_time._currentframe > 25) {
_root.bonus_time.gotoAndStop(1);
}
if (_root.bonus_300._currentframe > 25) {
_root.bonus_300.gotoAndStop(1);
}
if (_root.bonus_400._currentframe > 25) {
_root.bonus_400.gotoAndStop(1);
}
if (_root.bonus_500._currentframe > 25) {
_root.bonus_500.gotoAndStop(1);
}
if (_root.bonus_600._currentframe > 25) {
_root.bonus_600.gotoAndStop(1);
}
if (_root.submit_score.hitTest(mx, my)) {
_root.submit_score.gotoAndStop(2);
_root.submit_score._clickable = true;
} else {
_root.submit_score.gotoAndStop(1);
}
if (_root.play_again.hitTest(mx, my)) {
_root.play_again.gotoAndStop(2);
_root.play_again._clickable = true;
} else {
_root.play_again.gotoAndStop(1);
}
if (_root.moreinfo.hitTest(mx, my)) {
_root.moreinfo.gotoAndStop(2);
_root.moreinfo._clickable = true;
} else {
_root.moreinfo.gotoAndStop(1);
}
if (_root.demo_text.hitTest(mx, my)) {
_root.demo_text.gotoAndStop(2);
_root.demo_text._clickable = true;
} else {
_root.demo_text.gotoAndStop(1);
}
if (gameOver) {
clear_board();
_root.collect._clickable = undefined;
_root.game_over._x = 101;
_root.game_over._y = 51;
if (_root.game_over.gameoveranim._currentframe < 2) {
_root.game_over.gameoveranim.gotoAndPlay(2);
}
if (_root.score > 1000) {
_root.submit_score._x = 100;
_root.submit_score._y = 236;
}
_root.play_again._x = 100;
_root.play_again._y = 272;
_root.moreinfo._x = 100;
_root.moreinfo._y = 305;
}
stop();
};
Symbol 8 MovieClip [z] Frame 1
stop();
Symbol 8 MovieClip [z] Frame 2
stop();
Symbol 11 MovieClip [y] Frame 1
stop();
Symbol 11 MovieClip [y] Frame 2
stop();
Symbol 14 MovieClip [x] Frame 1
stop();
Symbol 14 MovieClip [x] Frame 2
stop();
Symbol 17 MovieClip [w] Frame 1
stop();
Symbol 17 MovieClip [w] Frame 2
stop();
Symbol 20 MovieClip [u] Frame 1
stop();
Symbol 20 MovieClip [u] Frame 2
stop();
Symbol 23 MovieClip [t] Frame 1
stop();
Symbol 23 MovieClip [t] Frame 2
stop();
Symbol 26 MovieClip [s] Frame 1
stop();
Symbol 26 MovieClip [s] Frame 2
stop();
Symbol 29 MovieClip [q] Frame 1
stop();
Symbol 29 MovieClip [q] Frame 2
stop();
Symbol 32 MovieClip [p] Frame 1
stop();
Symbol 32 MovieClip [p] Frame 2
stop();
Symbol 35 MovieClip [n] Frame 1
stop();
Symbol 35 MovieClip [n] Frame 2
stop();
Symbol 38 MovieClip [l] Frame 1
stop();
Symbol 38 MovieClip [l] Frame 2
stop();
Symbol 41 MovieClip [k] Frame 1
stop();
Symbol 41 MovieClip [k] Frame 2
stop();
Symbol 44 MovieClip [j] Frame 1
stop();
Symbol 44 MovieClip [j] Frame 2
stop();
Symbol 47 MovieClip [i] Frame 1
stop();
Symbol 47 MovieClip [i] Frame 2
stop();
Symbol 50 MovieClip [h] Frame 1
stop();
Symbol 50 MovieClip [h] Frame 2
stop();
Symbol 53 MovieClip [f] Frame 1
stop();
Symbol 53 MovieClip [f] Frame 2
stop();
Symbol 56 MovieClip [d] Frame 1
stop();
Symbol 56 MovieClip [d] Frame 2
stop();
Symbol 59 MovieClip [c] Frame 1
stop();
Symbol 59 MovieClip [c] Frame 2
stop();
Symbol 62 MovieClip [b] Frame 1
stop();
Symbol 62 MovieClip [b] Frame 2
stop();
Symbol 71 MovieClip Frame 10
stop();
Symbol 72 Button
on (release) {
_root.timer = 0;
_global.moreinfo = false;
_root.info._x = -500;
_root.info._y = -500;
}
Symbol 77 Button
on (release) {
getURL ("http://www.lightning-games.com", "_blank");
}
Symbol 78 Button
on (release) {
getURL ("http://www.3rdsense.com", "_blank");
}
Symbol 79 Button
on (release) {
getURL ("http://www.chickstop.com", "_blank");
}
Symbol 80 Button
on (release) {
getURL ("http://www.playaholics.com", "_blank");
}
Symbol 82 MovieClip [info] Frame 20
stop();
Symbol 113 MovieClip [how_to_play] Frame 29
stop();
Symbol 119 MovieClip [r] Frame 1
stop();
Symbol 119 MovieClip [r] Frame 2
stop();
Symbol 122 MovieClip [v] Frame 1
stop();
Symbol 122 MovieClip [v] Frame 2
stop();
Symbol 125 MovieClip [o] Frame 1
stop();
Symbol 125 MovieClip [o] Frame 2
stop();
Symbol 128 MovieClip [e] Frame 1
stop();
Symbol 128 MovieClip [e] Frame 2
stop();
Symbol 131 MovieClip [m] Frame 1
stop();
Symbol 131 MovieClip [m] Frame 2
stop();
Symbol 134 MovieClip [a] Frame 1
stop();
Symbol 134 MovieClip [a] Frame 2
stop();
Symbol 137 MovieClip [g] Frame 1
stop();
Symbol 137 MovieClip [g] Frame 2
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 70
stop();
Symbol 139 MovieClip [game_over] Frame 1
stop();
Symbol 139 MovieClip [game_over] Frame 2
play();
Symbol 139 MovieClip [game_over] Frame 3
stop();