Frame 1
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
if (percent == 100) {
num_of_players = 1;
gotoAndPlay (3);
}
display = ("Loaded " + percent) + " %";
Frame 2
gotoAndPlay (1);
Frame 3
swap_limit = "";
fscommand ("allowscale", 0);
Frame 54
stop();
crab.legs.stop();
Frame 55
crab.legs.play();
play();
Frame 98
stop();
swap_limit = 1;
mistakes = 0;
coconuts.gotoAndPlay("start");
Frame 100
play();
crab.arms.wood.gotoAndStop(2);
Frame 132
stop();
crab.legs.stop();
Frame 133
crab.legs.play();
play();
Frame 158
gotoAndPlay (4);
Symbol 11 Button
on (release) {
getURL ("http://www.hyro.com", "_blank");
}
Symbol 21 Button
on (release) {
_parent.gotoAndPlay("throw");
}
Symbol 24 Button
on (release) {
_root.play();
}
Symbol 27 Button
on (release) {
_root.game_type = "A";
_root.play();
}
Symbol 30 Button
on (release) {
_root.game_type = "B";
_root.play();
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
if (options == "yes") {
wood.gotoAndStop(3);
}
Symbol 33 MovieClip Frame 59
gotoAndPlay (1);
Symbol 33 MovieClip Frame 60
play();
options = "yes";
Symbol 33 MovieClip Frame 93
wood.gotoAndStop(3);
Symbol 39 MovieClip Frame 70
gotoAndPlay(random(30) + 2);
Symbol 43 MovieClip Frame 1
stop();
Symbol 45 Button
on (release) {
gotoAndPlay (2);
}
Symbol 46 Button
on (release) {
gotoAndPlay (29);
}
Symbol 47 Button
on (release) {
gotoAndPlay (54);
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
play();
Symbol 50 MovieClip Frame 15
_parent.bad();
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
play();
Symbol 52 MovieClip Frame 15
_parent.good();
stop();
Symbol 53 MovieClip Frame 1
function good() {
_root.swap_limit = _root.swap_limit + 1;
_root.mistakes = 0;
}
function bad() {
_root.swap_limit = _root.swap_limit - 1;
if (_root.game_type eq "B") {
_root.mistakes++;
}
}
function check_end() {
if (_root.game_type eq "B") {
if (_root.mistakes == 2) {
tellTarget ("_root") {
gotoAndStop ("game_over");
};
}
}
if (_root.swap_limit == 0) {
tellTarget ("_root") {
gotoAndStop ("game_over");
};
} else {
tellTarget ("../../") {
gotoAndPlay ("start");
};
}
}
stop();
Symbol 53 MovieClip Frame 2
if (_root.pos_2 eq "yes") {
correct.gotoAndPlay(2);
} else {
wrong.gotoAndPlay(2);
}
Symbol 53 MovieClip Frame 26
check_end();
Symbol 53 MovieClip Frame 29
if (_root.pos_1 eq "yes") {
correct.gotoAndPlay(2);
} else {
wrong.gotoAndPlay(2);
}
Symbol 53 MovieClip Frame 53
check_end();
Symbol 53 MovieClip Frame 54
if (_root.pos_3 eq "yes") {
correct.gotoAndPlay(2);
} else {
wrong.gotoAndPlay(2);
}
Symbol 53 MovieClip Frame 79
check_end();
Symbol 54 MovieClip Frame 1
call("ran_move");
Symbol 54 MovieClip Frame 2
play();
Symbol 54 MovieClip Frame 9
if (/:pos_1 eq "yes") {
Set("/:pos_1", "no");
Set("/:pos_2", "yes");
} else if (/:pos_2 eq "yes") {
Set("/:pos_2", "no");
Set("/:pos_1", "yes");
}
call("ran_move");
Symbol 54 MovieClip Frame 19
if (/:pos_1 eq "yes") {
Set("/:pos_1", "no");
Set("/:pos_3", "yes");
} else if (/:pos_3 eq "yes") {
Set("/:pos_3", "no");
Set("/:pos_1", "yes");
}
call("ran_move");
Symbol 54 MovieClip Frame 27
if (/:pos_2 eq "yes") {
Set("/:pos_2", "no");
Set("/:pos_3", "yes");
} else if (/:pos_3 eq "yes") {
Set("/:pos_3", "no");
Set("/:pos_2", "yes");
}
call("ran_move");
Symbol 54 MovieClip Frame 35
if (/:pos_2 eq "yes") {
Set("/:pos_2", "no");
Set("/:pos_3", "yes");
} else if (/:pos_3 eq "yes") {
Set("/:pos_3", "no");
Set("/:pos_2", "yes");
}
call("ran_move");
Symbol 54 MovieClip Frame 45
if (/:pos_1 eq "yes") {
Set("/:pos_1", "no");
Set("/:pos_3", "yes");
} else if (/:pos_3 eq "yes") {
Set("/:pos_3", "no");
Set("/:pos_1", "yes");
}
call("ran_move");
Symbol 54 MovieClip Frame 46
play();
Symbol 54 MovieClip Frame 53
if (/:pos_1 eq "yes") {
Set("/:pos_1", "no");
Set("/:pos_2", "yes");
} else if (/:pos_2 eq "yes") {
Set("/:pos_2", "no");
Set("/:pos_1", "yes");
}
call("ran_move");
Symbol 54 MovieClip Frame 55
if (i == /:swap_limit) {
gotoAndStop (63);
} else {
tellTarget ("") {
gotoAndPlay("move" add (random(6) + 1));
};
}
i = i + 1;
Symbol 54 MovieClip Frame 63
if (/:pos_2 eq "yes") {
tellTarget ("cups.ball") {
gotoAndStop (2);
};
} else if (/:pos_3 eq "yes") {
tellTarget ("cups.ball") {
gotoAndStop (3);
};
}
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 43
Set("/:pos_1", "yes");
Set("/:pos_2", "no");
Set("/:pos_3", "no");
stop();