Instance of Symbol 6 MovieClip "loader" in Frame 1
onClipEvent (load) {
stop();
percentloaded = (_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100;
if (percentloaded == 100) {
_root.gotoAndStop("start");
}
}
onClipEvent (enterFrame) {
percentloaded = (_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100;
if (percentloaded == 100) {
_root.gotoAndStop("start");
}
Set("_root:per", ("loading :" add Math.Round(percentloaded)) add "% of 145k");
_root.loader.bar._xscale = percentloaded;
updateAfterEvent();
}
Frame 2
stop();
Symbol 11 Button
on (release) {
nextFrame();
}
Symbol 22 Button
on (release) {
prevFrame();
}
Symbol 30 Button
on (release) {
_parent.gametype = "EASY";
_parent.randomval = 5;
_parent.speed = 1;
_parent.boost = 0;
_parent.delay = 60;
_parent.waveno = 1;
_parent.dropmax = 5;
_parent.gotoAndStop(3);
}
Symbol 31 Button
on (release) {
_parent.gametype = "HARD";
_parent.randomval = 10;
_parent.speed = 1;
_parent.boost = 0;
_parent.delay = 40;
_parent.waveno = 1;
_parent.dropmax = 3;
_parent.gotoAndStop(3);
}
Symbol 32 Button
on (release) {
_parent.gametype = "MED";
_parent.randomval = 7;
_parent.speed = 1;
_parent.boost = 0;
_parent.delay = 50;
_parent.waveno = 1;
_parent.dropmax = 4;
_parent.gotoAndStop(3);
}
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
stop();
Symbol 34 Button
on (release) {
Set("_root:keepframe", 1);
Set("_root:scoreframe", 2);
Set("_root:submitit", 0);
}
Symbol 45 Button
on (release) {
status = "";
at = _root:email.indexOf("@");
dot = _root:email.lastIndexOf(".");
if ((at < dot) && (at != -1)) {
Set("_root:submitit", 1);
play();
} else {
_root.email = "Enter a valid email!";
}
}
Symbol 46 Button
on (release) {
if (_root:keepframe == 1) {
Set("_root:scoreframe", 1);
_parent._parent.gotoAndStop(1);
} else {
Set("_root:scoreframe", _root:keepframe);
}
}
Symbol 61 Button
on (press) {
scrollaction.up = true;
}
on (rollOut, release, dragOut, releaseOutside) {
scrollaction.up = false;
}
Symbol 62 Button
on (press) {
scrollaction.down = true;
}
on (rollOut, release, dragOut, releaseOutside) {
scrollaction.down = false;
}
Symbol 63 MovieClip Frame 1
var sk_url = _parent._parent.sk_url;
var return_type = "PLAIN";
var game_title = _parent._parent.game_title;
var game_author = _parent._parent.game_author;
var script_timeout = _parent._parent.script_timeout;
var my_name = _parent._parent.my_name;
if (my_name == "") {
my_name = _parent._parent.anonymous_name;
}
var my_score = _parent._parent.my_score;
i = 0;
while (_parent._parent.additional_data.length >= i) {
if (eval (_parent._parent.additional_data[i]) != "") {
Set(_parent._parent.additional_data_name[i], eval (_parent._parent.additional_data[i]));
}
i++;
}
var scores_to_return = _parent._parent.scores_to_return;
var scores_per_person = _parent._parent.scores_per_person;
var anonymous_name = _parent._parent.anonymous_name;
var sort_scores_in_reverse = _parent._parent.sort_scores_in_reverse;
_parent.rank = "";
_parent.type = "";
_parent.name = "";
_parent.score = "";
_parent.message_text = "Loading";
script_timeout = (getTimer() / 1000) + script_timeout;
if (_root:submitit == 1) {
loadVariables (sk_url, this, "POST");
} else {
loadVariables (sk_url, this, "GET");
}
play();
Symbol 63 MovieClip Frame 2
test_timeout = getTimer() / 1000;
if (sk_done == "yes") {
sk_done = "no";
_parent.message_text = "";
gotoAndPlay (4);
} else if (error != null) {
_parent.message_text = error;
stop();
} else if (test_timeout >= script_timeout) {
_parent.message_text = "Unable to\nattain web connection";
_root.highscore = "N/A";
stop();
} else {
if (_parent.message_text == " ") {
_parent.message_text = "Loading";
} else {
_parent.message_text = " ";
}
play();
}
Symbol 63 MovieClip Frame 3
prevFrame();
Symbol 63 MovieClip Frame 4
_root.highscore = score_1;
var i = 1;
var match = 0;
while (eval ("score_" + i)) {
_parent.rank = _parent.rank + (i + "\r");
_parent.name = _parent.name + (eval ("name_" + i) + "\r");
_parent.score = _parent.score + (eval ("score_" + i) + "\r");
_parent.type = _parent.type + (eval ("type_" + i) + "\r");
if (((escape(my_name) == eval ("name_" + i)) && (my_score == eval ("score_" + i))) && (match == 0)) {
match = i;
}
i++;
}
var scores_returned = (i - 1);
if (!score_1) {
_parent.message_text = "Nobody here";
stop();
}
play();
Symbol 63 MovieClip Frame 5
var n = "";
if (match == 1) {
n = "st";
} else if (match == 2) {
n = "nd";
} else if (match == 3) {
n = "rd";
} else if (20 >= match) {
n = "th";
} else if (Number(match.toString().substr(match.toString().length - 1)) == 1) {
n = "st";
} else if (Number(match.toString().substr(match.toString().length - 1)) == 2) {
n = "nd";
} else if (Number(match.toString().substr(match.toString().length - 1)) == 3) {
n = "rd";
} else {
n = "th";
}
if ((match == 0) && (my_score != null)) {
_parent.message_text = "Top KLAX 3D players";
} else if (my_score == null) {
_parent.message_text = "Top KLAX 3D players";
} else {
_parent.message_text = (((("Congratulations\nYour ranking is " + match) + n) + " out of ") + scores_returned) + " scores";
_parent.rank.scroll = match - 3;
_parent.name.scroll = match - 3;
_parent.score.scroll = match - 3;
_parent.type.scroll = match - 3;
_parent.award.scroll = match - 3;
}
stop();
Symbol 65 MovieClip Frame 1
stop();
Set("_root:email", "");
Symbol 65 MovieClip Frame 2
stop();
Instance of Symbol 64 MovieClip "scrollaction" in Symbol 65 MovieClip Frame 2
onClipEvent (enterFrame) {
if (up == true) {
_parent.rank.scroll = _parent.rank.scroll - 1;
_parent.name.scroll = _parent.name.scroll - 1;
_parent.score.scroll = _parent.score.scroll - 1;
_parent.type.scroll = _parent.type.scroll - 1;
_parent.award.scroll = _parent.award.scroll - 1;
} else if (down == true) {
_parent.rank.scroll = _parent.rank.scroll + 1;
_parent.name.scroll = _parent.name.scroll + 1;
_parent.score.scroll = _parent.score.scroll + 1;
_parent.type.scroll = _parent.type.scroll + 1;
_parent.award.scroll = _parent.award.scroll + 1;
}
}
Symbol 66 Button
on (release) {
Set("_root:keepframe", 3);
_root.score = null;
view = 1;
Set("_root:scoreframe", 2);
Set("_root:submitit", 0);
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
var my_name = eval (my_name);
if ((my_name == "") or (my_name == null)) {
my_name = anonymous_name;
}
var my_score = eval (my_score);
if (my_name != anonymous_name) {
board.gotoAndStop(2);
} else if (attempt_to_collect_name == 0) {
board.gotoAndStop(2);
} else {
my_name = "";
}
stop();
Instance of Symbol 65 MovieClip "board" in Symbol 68 MovieClip Frame 2
onClipEvent (load) {
if (_parent.view == 1) {
gotoAndStop (2);
} else {
stop();
}
}
Symbol 68 MovieClip Frame 3
stop();
Symbol 68 MovieClip Frame 4
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
var my_name = eval (my_name);
if ((my_name == "") or (my_name == null)) {
my_name = anonymous_name;
}
var my_score = eval (my_score);
if (my_name != anonymous_name) {
board.gotoAndStop(2);
} else if (attempt_to_collect_name == 0) {
board.gotoAndStop(2);
} else {
my_name = "";
}
stop();
Instance of Symbol 75 MovieClip in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
where = _parent._parent.stacked.length - 1;
me = new Color(this);
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
onClipEvent (enterFrame) {
where = _parent._parent.stacked.length - 1;
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
Instance of Symbol 77 MovieClip in Symbol 84 MovieClip Frame 3
onClipEvent (load) {
where = _parent._parent.stacked.length - 2;
me = new Color(this);
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
onClipEvent (enterFrame) {
where = _parent._parent.stacked.length - 2;
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
Instance of Symbol 79 MovieClip in Symbol 84 MovieClip Frame 4
onClipEvent (load) {
where = _parent._parent.stacked.length - 3;
me = new Color(this);
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
onClipEvent (enterFrame) {
where = _parent._parent.stacked.length - 3;
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
Instance of Symbol 81 MovieClip in Symbol 84 MovieClip Frame 5
onClipEvent (load) {
where = _parent._parent.stacked.length - 4;
me = new Color(this);
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
onClipEvent (enterFrame) {
where = _parent._parent.stacked.length - 4;
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 6
onClipEvent (load) {
where = _parent._parent.stacked.length - 5;
me = new Color(this);
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
onClipEvent (enterFrame) {
where = _parent._parent.stacked.length - 5;
me.setTransform(eval ("_parent._parent.Transform" add _parent._parent.stacked[where]));
}
Symbol 103 MovieClip Frame 79
if ((_parent.poss.substr(4, 1) eq _name.substr(5, 1)) && (_parent.stacked.length < 5)) {
_parent.stacked.push(randomcol);
gotoAndPlay (107);
}
Symbol 103 MovieClip Frame 80
if ((_parent.poss.substr(4, 1) eq _name.substr(5, 1)) && (_parent.stacked.length < 5)) {
_parent.stacked.push(randomcol);
gotoAndPlay (107);
}
Symbol 103 MovieClip Frame 91
_parent.countblock = _parent.countblock - 1;
_parent.dropped = _parent.dropped + 1;
_parent.tilescount = _parent.tilescount + 1;
removeMovieClip("");
stop();
Symbol 103 MovieClip Frame 92
_parent.countblock = _parent.countblock - 1;
_parent.dropped = _parent.dropped + 1;
_parent.tilescount = _parent.tilescount + 1;
removeMovieClip("");
stop();
Symbol 103 MovieClip Frame 104
gotoAndPlay (41);
Symbol 103 MovieClip Frame 108
_parent.tilescount = _parent.tilescount + 1;
removeMovieClip("");
Symbol 103 MovieClip Frame 109
_parent.tilescount = _parent.tilescount + 1;
removeMovieClip("");
Symbol 123 MovieClip Frame 79
if ((_parent.poss.substr(4, 1) eq _name.substr(5, 1)) && (_parent.stacked.length < 5)) {
_parent.stacked.push(randomcol);
gotoAndPlay (107);
}
Symbol 123 MovieClip Frame 80
if ((_parent.poss.substr(4, 1) eq _name.substr(5, 1)) && (_parent.stacked.length < 5)) {
_parent.stacked.push(randomcol);
gotoAndPlay (107);
}
Symbol 123 MovieClip Frame 91
_parent.countblock = _parent.countblock - 1;
_parent.dropped = _parent.dropped + 1;
_parent.tilescount = _parent.tilescount + 1;
removeMovieClip("");
stop();
Symbol 123 MovieClip Frame 92
_parent.countblock = _parent.countblock - 1;
_parent.dropped = _parent.dropped + 1;
_parent.tilescount = _parent.tilescount + 1;
removeMovieClip("");
stop();
Symbol 123 MovieClip Frame 104
gotoAndPlay (41);
Symbol 123 MovieClip Frame 108
_parent.tilescount = _parent.tilescount + 1;
removeMovieClip("");
Symbol 123 MovieClip Frame 109
_parent.tilescount = _parent.tilescount + 1;
removeMovieClip("");
Instance of Symbol 124 MovieClip "one" in Symbol 129 MovieClip Frame 2
onClipEvent (load) {
me = new Color(this);
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[0]));
}
onClipEvent (enterFrame) {
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[0]));
}
Instance of Symbol 125 MovieClip "two" in Symbol 129 MovieClip Frame 3
onClipEvent (load) {
me = new Color(this);
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[1]));
}
onClipEvent (enterFrame) {
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[1]));
}
Instance of Symbol 126 MovieClip "three" in Symbol 129 MovieClip Frame 4
onClipEvent (load) {
me = new Color(this);
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[2]));
}
onClipEvent (enterFrame) {
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[2]));
}
Instance of Symbol 127 MovieClip "four" in Symbol 129 MovieClip Frame 5
onClipEvent (load) {
me = new Color(this);
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[3]));
}
onClipEvent (enterFrame) {
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[3]));
}
Instance of Symbol 128 MovieClip "five" in Symbol 129 MovieClip Frame 6
onClipEvent (load) {
me = new Color(this);
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[4]));
}
onClipEvent (enterFrame) {
me.setTransform(eval ("_parent.Transform" add eval ("_parent._parent." add _parent.myname)[4]));
}
Symbol 130 Button
on (keyPress "<Right>") {
if (pause == false) {
if (poss eq "poss1") {
poss = "poss2";
} else if (poss eq "poss2") {
poss = "poss3";
} else if (poss eq "poss3") {
poss = "poss4";
} else if (poss eq "poss4") {
poss = "poss5";
}
}
}
on (keyPress "<Left>") {
if (pause == false) {
if (poss eq "poss5") {
poss = "poss4";
} else if (poss eq "poss4") {
poss = "poss3";
} else if (poss eq "poss3") {
poss = "poss2";
} else if (poss eq "poss2") {
poss = "poss1";
}
}
}
on (keyPress "<Space>") {
if (pause == false) {
if ((0 < stacked.length) && (eval ("stack" add poss.substr(4)).length < 5)) {
moving = String(stacked.pop());
eval ("stack" add poss.substr(4)).push(moving);
checkit = 5;
}
}
}
on (keyPress "p") {
if (pause == false) {
pause = true;
} else if (pause == true) {
pause = false;
}
}
Symbol 140 Button
on (release) {
theblockno = 1;
while (5 >= theblockno) {
depth = 1;
while (depth < 10) {
removeMovieClip(("block" add theblockno) add depth);
depth++;
}
theblockno++;
}
gotoAndStop (1);
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
var my_name = eval (my_name);
if ((my_name == "") or (my_name == null)) {
my_name = anonymous_name;
}
var my_score = eval (my_score);
if (my_name != anonymous_name) {
board.gotoAndStop(2);
} else if (attempt_to_collect_name == 0) {
board.gotoAndStop(2);
} else {
my_name = "";
}
stop();
Instance of Symbol 65 MovieClip "board" in Symbol 153 MovieClip Frame 2
onClipEvent (load) {
if (_parent.view == 1) {
gotoAndStop (2);
} else {
stop();
}
}
Symbol 153 MovieClip Frame 3
stop();
Symbol 153 MovieClip Frame 4
stop();
Symbol 154 MovieClip Frame 1
pointsno = 0;
dropped = 0;
pointstotal = 0;
tilesget = 40;
pointsget = 100;
klaxget = 5;
horizontalget = 5;
diagonalget = 5;
stop();
_root.score = null;
Instance of Symbol 68 MovieClip "keeper" in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
sk_url = "http://www.wheelhousecreative.co.uk/klax/sk.pl";
script_timeout = 15;
game_title = "klax";
game_author = "wheelhousecreative";
my_name = "";
attempt_to_collect_name = 1;
my_score = "_root:score";
additional_data_name = new array();
additional_data_name[0] = "type";
additional_data_name[1] = "email";
additional_data_name[2] = "";
additional_data_name[3] = "";
additional_data_name[4] = "";
additional_data = new array();
additional_data[0] = "_root:type";
additional_data[1] = "_root:email";
additional_data[2] = "";
additional_data[3] = "";
additional_data[4] = "";
scores_to_return = 100;
scores_per_person = 3;
anonymous_name = "KLAX Anonymous";
sort_scores_in_reverse = "FALSE";
}
onClipEvent (load) {
gotoAndStop (3);
Set("_root:scoreframe", 3);
}
onClipEvent (enterFrame) {
gotoAndStop(_root:scoreframe);
}
Instance of Symbol 70 MovieClip "keeper2" in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
sk_url = "http://www.wheelhousecreative.co.uk/klax/sk.pl";
script_timeout = 15;
game_title = "klax";
game_author = "wheelhousecreative";
my_name = "";
attempt_to_collect_name = 1;
my_score = "_root:score";
additional_data_name = new array();
additional_data_name[0] = "type";
additional_data_name[1] = "email";
additional_data_name[2] = "";
additional_data_name[3] = "";
additional_data_name[4] = "";
additional_data = new array();
additional_data[0] = "_root:type";
additional_data[1] = "_root:email";
additional_data[2] = "";
additional_data[3] = "";
additional_data[4] = "";
scores_to_return = 100;
scores_per_person = 3;
anonymous_name = "KLAX Anonymous";
sort_scores_in_reverse = "FALSE";
}
Symbol 154 MovieClip Frame 2
stop();
pause = false;
waveno = waveno + 1;
Transform1 = {ra:"100", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"100"};
Transform2 = {ra:"0", rb:"0", ga:"100", gb:"0", ba:"0", bb:"0", aa:"100", ab:"100"};
Transform3 = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"100", bb:"0", aa:"100", ab:"100"};
Transform4 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"0", bb:"0", aa:"100", ab:"100"};
Transform5 = {ra:"50", rb:"0", ga:"30", gb:"0", ba:"10", bb:"0", aa:"100", ab:"100"};
Transform6 = {ra:"100", rb:"0", ga:"50", gb:"0", ba:"0", bb:"0", aa:"100", ab:"100"};
Transform7 = {ra:"100", rb:"0", ga:"0", gb:"0", ba:"100", bb:"0", aa:"100", ab:"100"};
Transform8 = {ra:"50", rb:"0", ga:"0", gb:"0", ba:"50", bb:"0", aa:"100", ab:"100"};
Transform9 = {ra:"70", rb:"0", ga:"90", gb:"0", ba:"20", bb:"0", aa:"100", ab:"100"};
Transform10 = {ra:"0", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"100"};
Transform11 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"100"};
Instance of Symbol 84 MovieClip in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
poss1x = -137.8;
poss1y = 2.3;
poss2x = -110.6;
poss2y = 21.4;
poss3x = -83.3;
poss3y = 40.5;
poss4x = -56;
poss4y = 59.7;
poss5x = -28.8;
poss5y = 78.9;
_parent.poss = "poss1";
_parent.stacked = new Array();
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.stacked.length + 1);
_x = eval (_parent.poss add "x");
_y = eval (_parent.poss add "y");
}
Instance of Symbol 103 MovieClip "block1" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
stop();
me = new Color(this);
randomcol = Math.floor(Math.random() * _parent.randomval) + 1;
me.setTransform(eval ("_parent.Transform" add randomcol));
frame = 1;
}
onClipEvent (enterFrame) {
if ((playme == 1) && (_parent.pause == false)) {
frame = frame + (_parent.speed + _parent.boost);
gotoAndStop(frame);
}
}
Instance of Symbol 122 MovieClip in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
if (_parent.wavetype eq "KLAX") {
gotoAndStop (2);
} else if (_parent.wavetype eq "HORIZONTAL") {
gotoAndStop (3);
} else if (_parent.wavetype eq "DIAGONAL") {
gotoAndStop (4);
} else if (_parent.wavetype eq "TILES") {
gotoAndStop (5);
} else if (_parent.wavetype eq "POINTS") {
gotoAndStop (6);
}
}
onClipEvent (enterFrame) {
lives = _parent.dropmax - _parent.dropped;
if (_parent.wavetype eq "KLAX") {
need = _parent.klaxget - _parent.klaxno;
} else if (_parent.wavetype eq "HORIZONTAL") {
need = _parent.horizontalget - _parent.horizontalcount;
} else if (_parent.wavetype eq "DIAGONAL") {
need = _parent.diagonalget - _parent.diagonalcount;
} else if (_parent.wavetype eq "TILES") {
need = _parent.tilesget - _parent.tilescount;
} else if (_parent.wavetype eq "POINTS") {
need = _parent.pointsget - _parent.pointsno;
}
}
Instance of Symbol 103 MovieClip "block2" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
stop();
me = new Color(this);
randomcol = Math.floor(Math.random() * _parent.randomval) + 1;
me.setTransform(eval ("_parent.Transform" add randomcol));
frame = 1;
}
onClipEvent (enterFrame) {
if ((playme == 1) && (_parent.pause == false)) {
frame = frame + (_parent.speed + _parent.boost);
gotoAndStop(frame);
}
}
Instance of Symbol 103 MovieClip "block3" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
stop();
me = new Color(this);
randomcol = Math.floor(Math.random() * _parent.randomval) + 1;
me.setTransform(eval ("_parent.Transform" add randomcol));
frame = 1;
}
onClipEvent (enterFrame) {
if ((playme == 1) && (_parent.pause == false)) {
frame = frame + (_parent.speed + _parent.boost);
gotoAndStop(frame);
}
}
Instance of Symbol 123 MovieClip "block4" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
stop();
me = new Color(this);
randomcol = Math.floor(Math.random() * _parent.randomval) + 1;
me.setTransform(eval ("_parent.Transform" add randomcol));
frame = 1;
}
onClipEvent (enterFrame) {
if ((playme == 1) && (_parent.pause == false)) {
frame = frame + (_parent.speed + _parent.boost);
gotoAndStop(frame);
}
}
Instance of Symbol 103 MovieClip "block5" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
stop();
me = new Color(this);
randomcol = Math.floor(Math.random() * _parent.randomval) + 1;
me.setTransform(eval ("_parent.Transform" add randomcol));
frame = 1;
}
onClipEvent (enterFrame) {
if ((playme == 1) && (_parent.pause == false)) {
frame = frame + (_parent.speed + _parent.boost);
gotoAndStop(frame);
}
}
Instance of Symbol 129 MovieClip "pstack1" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
Transform1 = _parent.Transform1;
Transform2 = _parent.Transform2;
Transform3 = _parent.Transform3;
Transform4 = _parent.Transform4;
Transform5 = _parent.Transform5;
Transform6 = _parent.Transform6;
Transform7 = _parent.Transform7;
Transform8 = _parent.Transform8;
Transform9 = _parent.Transform9;
Transform10 = _parent.Transform10;
myname = _name.substr(1);
Set("_parent." add myname, new Array());
}
onClipEvent (enterFrame) {
gotoAndStop(eval ("_parent." add myname).length + 1);
}
Instance of Symbol 129 MovieClip "pstack2" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
Transform1 = _parent.Transform1;
Transform2 = _parent.Transform2;
Transform3 = _parent.Transform3;
Transform4 = _parent.Transform4;
Transform5 = _parent.Transform5;
Transform6 = _parent.Transform6;
Transform7 = _parent.Transform7;
Transform8 = _parent.Transform8;
Transform9 = _parent.Transform9;
Transform10 = _parent.Transform10;
myname = _name.substr(1);
Set("_parent." add myname, new Array());
}
onClipEvent (enterFrame) {
gotoAndStop(eval ("_parent." add myname).length + 1);
}
Instance of Symbol 129 MovieClip "pstack3" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
Transform1 = _parent.Transform1;
Transform2 = _parent.Transform2;
Transform3 = _parent.Transform3;
Transform4 = _parent.Transform4;
Transform5 = _parent.Transform5;
Transform6 = _parent.Transform6;
Transform7 = _parent.Transform7;
Transform8 = _parent.Transform8;
Transform9 = _parent.Transform9;
Transform10 = _parent.Transform10;
myname = _name.substr(1);
Set("_parent." add myname, new Array());
}
onClipEvent (enterFrame) {
gotoAndStop(eval ("_parent." add myname).length + 1);
}
Instance of Symbol 129 MovieClip "pstack4" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
Transform1 = _parent.Transform1;
Transform2 = _parent.Transform2;
Transform3 = _parent.Transform3;
Transform4 = _parent.Transform4;
Transform5 = _parent.Transform5;
Transform6 = _parent.Transform6;
Transform7 = _parent.Transform7;
Transform8 = _parent.Transform8;
Transform9 = _parent.Transform9;
Transform10 = _parent.Transform10;
myname = _name.substr(1);
Set("_parent." add myname, new Array());
}
onClipEvent (enterFrame) {
gotoAndStop(eval ("_parent." add myname).length + 1);
}
Instance of Symbol 129 MovieClip "pstack5" in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
Transform1 = _parent.Transform1;
Transform2 = _parent.Transform2;
Transform3 = _parent.Transform3;
Transform4 = _parent.Transform4;
Transform5 = _parent.Transform5;
Transform6 = _parent.Transform6;
Transform7 = _parent.Transform7;
Transform8 = _parent.Transform8;
Transform9 = _parent.Transform9;
Transform10 = _parent.Transform10;
myname = _name.substr(1);
Set("_parent." add myname, new Array());
}
onClipEvent (enterFrame) {
gotoAndStop(eval ("_parent." add myname).length + 1);
}
Instance of Symbol 131 MovieClip in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
row1 = new Array();
row2 = new Array();
row3 = new Array();
row4 = new Array();
row5 = new Array();
depth = 1;
count = _parent.delay;
_parent.countblock = 0;
}
onClipEvent (enterFrame) {
if (0 < _parent.checkit) {
check = 1;
while ((5 >= check) && (found == false)) {
if ((((0 < Number(eval ("_parent.stack" add check)[0])) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add check)[1]))) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add check)[2]))) && (Number(eval ("_parent.stack" add check)[2]) == Number(eval ("_parent.stack" add check)[3]))) {
eval ("_parent.stack" add check).splice(0, 4);
trace("4 vertical @ stack " add check);
_parent.klaxno = _parent.klaxno + 2;
_parent.pointsno = _parent.pointsno + 30;
_parent.verticalcount = _parent.verticalcount + 1;
found = true;
}
if ((((0 < Number(eval ("_parent.stack" add check)[1])) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add check)[2]))) && (Number(eval ("_parent.stack" add check)[2]) == Number(eval ("_parent.stack" add check)[3]))) && (Number(eval ("_parent.stack" add check)[3]) == Number(eval ("_parent.stack" add check)[4]))) {
eval ("_parent.stack" add check).splice(1, 4);
trace("4 vertical @ stack " add check);
_parent.klaxno = _parent.klaxno + 2;
_parent.pointsno = _parent.pointsno + 30;
found = true;
}
check++;
}
found = false;
check = 1;
while ((5 >= check) && (found == false)) {
if (((0 < Number(eval ("_parent.stack" add check)[0])) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add check)[1]))) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add check)[2]))) {
eval ("_parent.stack" add check).splice(0, 3);
trace("3 vertical @ stack " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 20;
_parent.verticalcount = _parent.verticalcount + 1;
found = true;
}
if (((0 < Number(eval ("_parent.stack" add check)[1])) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add check)[2]))) && (Number(eval ("_parent.stack" add check)[2]) == Number(eval ("_parent.stack" add check)[3]))) {
eval ("_parent.stack" add check).splice(1, 3);
trace("3 vertical @ stack " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 20;
_parent.verticalcount = _parent.verticalcount + 1;
found = true;
}
if (((0 < Number(eval ("_parent.stack" add check)[2])) && (Number(eval ("_parent.stack" add check)[2]) == Number(eval ("_parent.stack" add check)[3]))) && (Number(eval ("_parent.stack" add check)[3]) == Number(eval ("_parent.stack" add check)[4]))) {
eval ("_parent.stack" add check).splice(2, 3);
trace("3 vertical @ stack " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 20;
_parent.verticalcount = _parent.verticalcount + 1;
found = true;
}
check++;
}
rowno = 1;
while (rowno < 6) {
countrow = 1;
while (countrow < 6) {
eval ("row" add rowno).unshift(eval ("_parent.stack" add countrow)[rowno - 1]);
countrow++;
}
eval ("row" add rowno).splice(5);
eval ("row" add rowno).reverse();
rowno++;
}
check = 1;
while ((5 >= check) && (found == false)) {
if (((((0 < Number(eval ("row" add check)[0])) && (Number(eval ("row" add check)[0]) == Number(eval ("row" add check)[1]))) && (Number(eval ("row" add check)[1]) == Number(eval ("row" add check)[2]))) && (Number(eval ("row" add check)[2]) == Number(eval ("row" add check)[3]))) && (Number(eval ("row" add check)[3]) == Number(eval ("row" add check)[4]))) {
del = 1;
while (5 >= del) {
eval ("_parent.stack" add del).splice(check - 1, 1);
del++;
}
trace("5 horizontal @ row " add check);
_parent.klaxno = _parent.klaxno + 3;
_parent.pointsno = _parent.pointsno + 60;
_parent.horizontalcount = _parent.horizontalcount + 1;
found = true;
}
check++;
}
check = 1;
while ((5 >= check) && (found == false)) {
if ((((0 < Number(eval ("row" add check)[0])) && (Number(eval ("row" add check)[0]) == Number(eval ("row" add check)[1]))) && (Number(eval ("row" add check)[1]) == Number(eval ("row" add check)[2]))) && (Number(eval ("row" add check)[2]) == Number(eval ("row" add check)[3]))) {
del = 1;
while (4 >= del) {
eval ("_parent.stack" add del).splice(check - 1, 1);
del++;
}
trace("4 horizontal @ row " add check);
_parent.klaxno = _parent.klaxno + 2;
_parent.pointsno = _parent.pointsno + 50;
_parent.horizontalcount = _parent.horizontalcount + 1;
found = true;
}
if ((((0 < Number(eval ("row" add check)[1])) && (Number(eval ("row" add check)[1]) == Number(eval ("row" add check)[2]))) && (Number(eval ("row" add check)[2]) == Number(eval ("row" add check)[3]))) && (Number(eval ("row" add check)[3]) == Number(eval ("row" add check)[4]))) {
del = 2;
while (5 >= del) {
eval ("_parent.stack" add del).splice(check - 1, 1);
del++;
}
trace("4 horizontal @ row " add check);
_parent.klaxno = _parent.klaxno + 2;
_parent.pointsno = _parent.pointsno + 50;
_parent.horizontalcount = _parent.horizontalcount + 1;
found = true;
}
check++;
}
check = 1;
while ((5 >= check) && (found == false)) {
if (((0 < Number(eval ("row" add check)[0])) && (Number(eval ("row" add check)[0]) == Number(eval ("row" add check)[1]))) && (Number(eval ("row" add check)[1]) == Number(eval ("row" add check)[2]))) {
del = 1;
while (3 >= del) {
eval ("_parent.stack" add del).splice(check - 1, 1);
del++;
}
trace("3 horizontal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 40;
_parent.horizontalcount = _parent.horizontalcount + 1;
found = true;
}
if (((0 < Number(eval ("row" add check)[1])) && (Number(eval ("row" add check)[1]) == Number(eval ("row" add check)[2]))) && (Number(eval ("row" add check)[2]) == Number(eval ("row" add check)[3]))) {
del = 2;
while (4 >= del) {
eval ("_parent.stack" add del).splice(check - 1, 1);
del++;
}
trace("3 horizontal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 40;
_parent.horizontalcount = _parent.horizontalcount + 1;
found = true;
}
if (((0 < Number(eval ("row" add check)[2])) && (Number(eval ("row" add check)[2]) == Number(eval ("row" add check)[3]))) && (Number(eval ("row" add check)[3]) == Number(eval ("row" add check)[4]))) {
del = 3;
while (5 >= del) {
eval ("_parent.stack" add del).splice(check - 1, 1);
del++;
}
trace("3 horizontal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 40;
_parent.horizontalcount = _parent.horizontalcount + 1;
found = true;
}
check++;
}
if ((((((((((found == false) && (0 < Number(_parent.stack1[0]))) && (Number(_parent.stack1[0]) == Number(_parent.stack2[1]))) && (Number(_parent.stack1[0]) == Number(_parent.stack3[2]))) && (Number(_parent.stack1[0]) == Number(_parent.stack4[3]))) && (Number(_parent.stack1[0]) == Number(_parent.stack5[4]))) && (Number(_parent.stack1[0]) == Number(_parent.stack1[4]))) && (Number(_parent.stack1[0]) == Number(_parent.stack2[3]))) && (Number(_parent.stack1[0]) == Number(_parent.stack4[1]))) && (Number(_parent.stack1[0]) == Number(_parent.stack5[0]))) {
trace("BIGX");
_parent.klaxno = _parent.klaxno + 10;
_parent.pointsno = _parent.pointsno + 150;
_parent.bigx = _parent.bigx + 1;
found = true;
}
if ((((((found == false) && (0 < Number(_parent.stack1[0]))) && (Number(_parent.stack1[0]) == Number(_parent.stack2[1]))) && (Number(_parent.stack1[0]) == Number(_parent.stack3[2]))) && (Number(_parent.stack1[0]) == Number(_parent.stack4[3]))) && (Number(_parent.stack1[0]) == Number(_parent.stack5[4]))) {
trace("5 diagonal");
_parent.klaxno = _parent.klaxno + 3;
_parent.pointsno = _parent.pointsno + 90;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
if ((((((found == false) && (0 < Number(_parent.stack1[4]))) && (Number(_parent.stack1[4]) == Number(_parent.stack2[3]))) && (Number(_parent.stack1[4]) == Number(_parent.stack3[2]))) && (Number(_parent.stack1[4]) == Number(_parent.stack4[1]))) && (Number(_parent.stack1[4]) == Number(_parent.stack5[0]))) {
trace("5 diagonal");
_parent.klaxno = _parent.klaxno + 3;
_parent.pointsno = _parent.pointsno + 90;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check = 1;
while ((2 >= check) && (found == false)) {
if ((((0 < Number(eval ("_parent.stack" add check)[0])) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check + 1))[1]))) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check + 2))[2]))) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check + 3))[3]))) {
line = 0;
del = check;
while ((check + 4) >= del) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del++;
}
trace("4 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 2;
_parent.pointsno = _parent.pointsno + 80;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check++;
}
check = 5;
while ((check >= 4) && (found == false)) {
if ((((0 < Number(eval ("_parent.stack" add check)[0])) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check - 1))[1]))) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check - 2))[2]))) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check - 3))[3]))) {
line = 0;
del = check;
while (del >= (check - 4)) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del--;
}
trace("4 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 2;
_parent.pointsno = _parent.pointsno + 80;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check--;
}
check = 1;
while ((2 >= check) && (found == false)) {
if ((((0 < Number(eval ("_parent.stack" add check)[1])) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check + 1))[2]))) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check + 2))[3]))) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check + 3))[4]))) {
line = 1;
del = check;
while ((check + 4) >= del) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del++;
}
trace("4 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 2;
_parent.pointsno = _parent.pointsno + 80;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check++;
}
check = 5;
while ((check >= 4) && (found == false)) {
if ((((0 < Number(eval ("_parent.stack" add check)[1])) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check - 1))[2]))) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check - 2))[3]))) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check - 3))[4]))) {
line = 1;
del = check;
while (del >= (check - 4)) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del--;
}
trace("4 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 2;
_parent.pointsno = _parent.pointsno + 80;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check--;
}
check = 1;
while ((3 >= check) && (found == false)) {
if (((0 < Number(eval ("_parent.stack" add check)[0])) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check + 1))[1]))) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check + 2))[2]))) {
line = 0;
del = check;
while ((check + 3) >= del) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del++;
}
trace("3 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 70;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check++;
}
check = 5;
while ((check >= 3) && (found == false)) {
if (((0 < Number(eval ("_parent.stack" add check)[0])) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check - 1))[1]))) && (Number(eval ("_parent.stack" add check)[0]) == Number(eval ("_parent.stack" add (check - 2))[2]))) {
line = 0;
del = check;
while (del >= (check - 3)) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del--;
}
trace("3 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 70;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check--;
}
check = 1;
while ((3 >= check) && (found == false)) {
if (((0 < Number(eval ("_parent.stack" add check)[1])) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check + 1))[2]))) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check + 2))[3]))) {
line = 1;
del = check;
while ((check + 3) >= del) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del++;
}
trace("3 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 70;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check++;
}
check = 5;
while ((check >= 3) && (found == false)) {
if (((0 < Number(eval ("_parent.stack" add check)[1])) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check - 1))[2]))) && (Number(eval ("_parent.stack" add check)[1]) == Number(eval ("_parent.stack" add (check - 2))[3]))) {
line = 1;
del = check;
while (del >= (check - 3)) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del--;
}
trace("3 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 70;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check--;
}
check = 1;
while ((3 >= check) && (found == false)) {
if (((0 < Number(eval ("_parent.stack" add check)[2])) && (Number(eval ("_parent.stack" add check)[2]) == Number(eval ("_parent.stack" add (check + 1))[3]))) && (Number(eval ("_parent.stack" add check)[2]) == Number(eval ("_parent.stack" add (check + 2))[4]))) {
line = 2;
del = check;
while ((check + 3) >= del) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del++;
}
trace("3 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 70;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check++;
}
check = 5;
while ((check >= 3) && (found == false)) {
if (((0 < Number(eval ("_parent.stack" add check)[2])) && (Number(eval ("_parent.stack" add check)[2]) == Number(eval ("_parent.stack" add (check - 1))[3]))) && (Number(eval ("_parent.stack" add check)[2]) == Number(eval ("_parent.stack" add (check - 2))[4]))) {
line = 2;
del = check;
while (del >= (check - 3)) {
eval ("_parent.stack" add del).splice(line, 1);
line = line + 1;
del--;
}
trace("3 diagonal @ row " add check);
_parent.klaxno = _parent.klaxno + 1;
_parent.pointsno = _parent.pointsno + 70;
_parent.diagonalcount = _parent.diagonalcount + 1;
found = true;
}
check--;
}
countfull = 0;
full = 1;
while (5 >= full) {
if (((((0 < Number(eval ("_parent.stack" add full)[0])) && (0 < Number(eval ("_parent.stack" add full)[1]))) && (0 < Number(eval ("_parent.stack" add full)[2]))) && (0 < Number(eval ("_parent.stack" add full)[3]))) && (0 < Number(eval ("_parent.stack" add full)[4]))) {
countfull = countfull + 1;
}
full++;
}
if (countfull == 5) {
_parent.gotoAndStop("over");
}
_parent.checkit = _parent.checkit - 1;
}
if (count >= _parent.delay) {
theblockno = Math.floor(Math.random() * 5) + 1;
duplicateMovieClip ("_parent.block" add theblockno, ("block" add theblockno) add depth, depth + (10 * theblockno));
Set((("_parent.block" add theblockno) add depth) add ".playme", 1);
depth = depth + 1;
if (depth >= 8) {
depth = 1;
}
_parent.countblock = _parent.countblock + 1;
count = 0;
}
if (_parent.pause == false) {
count = count + 1;
}
}
onClipEvent (keyDown) {
pressed = Key.getCode();
if ((pressed == 40) && (_parent.pause == false)) {
_parent.boost = 1;
count = count + 1;
}
updateAfterEvent();
}
onClipEvent (keyUp) {
pressed = Key.getCode();
if ((pressed == 40) && (_parent.pause == false)) {
_parent.boost = 0;
}
updateAfterEvent();
}
Instance of Symbol 138 MovieClip in Symbol 154 MovieClip Frame 2
onClipEvent (load) {
_parent.klaxno = 0;
_parent.pointsno = 0;
_parent.verticalcount = 0;
_parent.horizontalcount = 0;
_parent.diagonalcount = 0;
_parent.tilescount = 0;
}
onClipEvent (enterFrame) {
highscore = _root.highscore;
pointsdisplay = _parent.pointstotal + _parent.pointsno;
if ((highscore < pointsdisplay) && (_root.highscore ne "NA")) {
highscore = pointsdisplay;
}
if (_parent.wavetype eq "KLAX") {
if (_parent.klaxno >= _parent.klaxget) {
_parent.pointstotal = _parent.pointstotal + _parent.pointsno;
_parent.gotoAndStop("doneit");
}
}
if (_parent.wavetype eq "HORIZONTAL") {
if (_parent.horizontalcount >= _parent.horizontalget) {
_parent.pointstotal = _parent.pointstotal + _parent.pointsno;
_parent.gotoAndStop("doneit");
}
}
if (_parent.wavetype eq "DIAGONAL") {
if (_parent.diagonalcount >= _parent.diagonalget) {
_parent.pointstotal = _parent.pointstotal + _parent.pointsno;
_parent.gotoAndStop("doneit");
}
}
if (_parent.wavetype eq "TILES") {
if (_parent.tilescount >= _parent.tilesget) {
_parent.pointstotal = _parent.pointstotal + _parent.pointsno;
_parent.gotoAndStop("doneit");
}
}
if (_parent.wavetype eq "POINTS") {
if (_parent.pointsno >= _parent.pointsget) {
_parent.pointstotal = _parent.pointstotal + _parent.pointsno;
_parent.gotoAndStop("doneit");
}
}
if (_parent.dropped == _parent.dropmax) {
_parent.pointstotal = _parent.pointstotal + _parent.pointsno;
_parent.gotoAndStop("over");
}
}
Symbol 154 MovieClip Frame 3
boost = 0;
if (gametype eq "EASY") {
typedisplay = "EASY GAME";
} else if (gametype eq "MED") {
typedisplay = "STANDARD GAME";
} else if (gametype eq "HARD") {
typedisplay = "HARD GAME";
}
if (waveno < 7) {
randomwave = Math.floor(Math.random() * 3) + 1;
} else {
randomwave = Math.floor(Math.random() * 5) + 1;
}
if (randomwave == 1) {
wavetype = "POINTS";
get = ("You must get " add pointsget) add " points";
} else if (randomwave == 2) {
wavetype = "KLAX";
get = ("You must get " add klaxget) add " KLAXs";
} else if (randomwave == 3) {
wavetype = "TILES";
get = ("You must use " add tilesget) add " tiles";
} else if (randomwave == 4) {
wavetype = "HORIZONTAL";
get = ("You must get " add horizontalget) add " horizontal KLAXs";
} else if (randomwave == 5) {
wavetype = "DIAGONAL";
get = ("You must get " add diagonalget) add " diagonal KLAXs";
}
stop();
Instance of Symbol 146 MovieClip in Symbol 154 MovieClip Frame 3
onClipEvent (load) {
pause = 3;
tellTarget (_parent) {
stop();
};
start = getTimer();
end = start + (1000 * pause);
}
onClipEvent (enterFrame) {
now = getTimer();
if (now >= end) {
_parent.nextFrame();
}
}
Symbol 154 MovieClip Frame 4
gotoAndStop (2);
Symbol 154 MovieClip Frame 5
theblockno = 1;
while (5 >= theblockno) {
depth = 1;
while (depth < 10) {
removeMovieClip(("block" add theblockno) add depth);
depth++;
}
theblockno++;
}
Instance of Symbol 148 MovieClip in Symbol 154 MovieClip Frame 5
onClipEvent (load) {
pause = 1;
tellTarget (_parent) {
stop();
};
start = getTimer();
end = start + (1000 * pause);
}
onClipEvent (enterFrame) {
now = getTimer();
if (now >= end) {
_parent.nextFrame();
}
}
Symbol 154 MovieClip Frame 6
if ((waveno == 5) && (randomval < 10)) {
randomval = randomval + 1;
} else if ((waveno == 10) && (randomval < 10)) {
randomval = randomval + 1;
} else if ((waveno == 15) && (randomval < 10)) {
randomval = randomval + 1;
} else if ((waveno == 20) && (randomval < 10)) {
randomval = randomval + 1;
} else if ((waveno == 25) && (randomval < 10)) {
randomval = randomval + 1;
}
if ((waveno == 30) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 35) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 40) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 45) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 50) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 55) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 60) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 65) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 70) && (30 < delay)) {
delay = delay - 2;
} else if ((waveno == 75) && (30 < delay)) {
delay = delay - 2;
}
if (wavetype eq "KLAX") {
if (gametype eq "EASY") {
klaxget = klaxget + 1;
} else if (gametype eq "MED") {
klaxget = klaxget + 2;
} else if (gametype eq "HARD") {
klaxget = klaxget + 3;
}
} else if (wavetype eq "HORIZONTAL") {
if (gametype eq "EASY") {
horizontalget = horizontalget + 1;
} else if (gametype eq "MED") {
horizontalget = horizontalget + 2;
} else if (gametype eq "HARD") {
horizontalget = horizontalget + 3;
}
} else if (wavetype eq "DIAGONAL") {
if (gametype eq "EASY") {
diagonalget = diagonalget + 1;
} else if (gametype eq "MED") {
diagonalget = diagonalget + 2;
} else if (gametype eq "HARD") {
diagonalget = diagonalget + 3;
}
} else if (wavetype eq "TILES") {
if (gametype eq "EASY") {
tilesget = tilesget + 5;
} else if (gametype eq "MED") {
tilesget = tilesget + 10;
} else if (gametype eq "HARD") {
tilesget = tilesget + 15;
}
} else if (wavetype eq "POINTS") {
if (gametype eq "EASY") {
pointsget = pointsget + 50;
} else if (gametype eq "MED") {
pointsget = pointsget + 100;
} else if (gametype eq "HARD") {
pointsget = pointsget + 150;
}
}
gotoAndStop (3);
Symbol 154 MovieClip Frame 7
theblockno = 1;
while (5 >= theblockno) {
depth = 1;
while (depth < 10) {
removeMovieClip(("block" add theblockno) add depth);
depth++;
}
theblockno++;
}
_root.score = pointstotal;
if (gametype eq "EASY") {
_root.type = "EASY";
} else if (gametype eq "MED") {
_root.type = "STANDARD";
} else if (gametype eq "HARD") {
_root.type = "HARD";
}
Instance of Symbol 153 MovieClip "keeper" in Symbol 154 MovieClip Frame 7
onClipEvent (load) {
sk_url = "http://www.wheelhousecreative.co.uk/klax/sk.pl";
script_timeout = 15;
game_title = "klax";
game_author = "wheelhousecreative";
my_name = "";
attempt_to_collect_name = 1;
my_score = "_root:score";
additional_data_name = new array();
additional_data_name[0] = "type";
additional_data_name[1] = "email";
additional_data_name[2] = "";
additional_data_name[3] = "";
additional_data_name[4] = "";
additional_data = new array();
additional_data[0] = "_root:type";
additional_data[1] = "_root:email";
additional_data[2] = "";
additional_data[3] = "";
additional_data[4] = "";
scores_to_return = 100;
scores_per_person = 3;
anonymous_name = "KLAX Anonymous";
sort_scores_in_reverse = "FALSE";
}
onClipEvent (load) {
gotoAndStop (1);
Set("_root:scoreframe", 1);
}
onClipEvent (enterFrame) {
gotoAndStop(_root:scoreframe);
}
Symbol 154 MovieClip Frame 8
gotoAndStop (1);
Symbol 157 Button
on (release) {
getURL ("http://www.wheelhousecreative.co.uk", "_blank");
}