Frame 1
fscommand ("allowscale", "0");
petno = "1";
puzzleno = "16";
Frame 2
if (_framesloaded == _totalframes) {
gotoAndStop (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
stop();
Frame 10
count = "1";
while (puzzleno >= count) {
tellTarget (("pict" add count) add "/pict") {
gotoAndStop(/:petno);
};
count = count + "1";
}
timecount = "00:00:00";
th = "0";
tm = "0";
ts = "0";
stop();
Frame 11
count = "1";
while (puzzleno >= count) {
tellTarget (("pict" add count) add "/pict") {
gotoAndStop(/:petno);
};
xpos = random("90");
ypos = random("160");
setProperty("/pict" add count, _x , xpos + "395");
setProperty("/pict" add count, _y , ypos + "90");
count = count + "1";
}
timecount = "00:00:00";
th = "0";
tm = "0";
ts = "0";
Frame 12
stop();
Frame 13
tellTarget ("/pict") {
gotoAndStop(/:petno);
};
stop();
Symbol 5 Button
on (release) {
getURL ("http://www.luar.com.hk/", "_blank");
}
Symbol 27 Button
on (release) {
petno = "1";
play();
}
Symbol 28 Button
on (release) {
petno = "2";
play();
}
Symbol 29 Button
on (release) {
petno = "3";
play();
}
Symbol 46 Button
on (release) {
gotoAndPlay (11);
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 3
stop();
Symbol 56 Button
on (press) {
startDrag ("/pict1", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict1", _x , (int(getProperty("/pict1", _x) / "90") * "90") + "19");
setProperty("/pict1", _y , (int(getProperty("/pict1", _y) / "90") * "90") + "19.5");
}
Symbol 58 Button
on (press) {
startDrag ("/pict2", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict2", _x , (int(getProperty("/pict2", _x) / "90") * "90") + "19");
setProperty("/pict2", _y , (int(getProperty("/pict2", _y) / "90") * "90") + "19.5");
}
Symbol 60 Button
on (press) {
startDrag ("/pict3", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict3", _x , (int(getProperty("/pict3", _x) / "90") * "90") + "19");
setProperty("/pict3", _y , (int(getProperty("/pict3", _y) / "90") * "90") + "19.5");
}
Symbol 62 Button
on (press) {
startDrag ("/pict4", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict4", _x , (int(getProperty("/pict4", _x) / "90") * "90") + "19");
setProperty("/pict4", _y , (int(getProperty("/pict4", _y) / "90") * "90") + "19.5");
}
Symbol 64 Button
on (press) {
startDrag ("/pict5", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict5", _x , (int(getProperty("/pict5", _x) / "90") * "90") + "19");
setProperty("/pict5", _y , (int(getProperty("/pict5", _y) / "90") * "90") + "19.5");
}
Symbol 66 Button
on (press) {
startDrag ("/pict6", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict6", _x , (int(getProperty("/pict6", _x) / "90") * "90") + "19");
setProperty("/pict6", _y , (int(getProperty("/pict6", _y) / "90") * "90") + "19.5");
}
Symbol 68 Button
on (press) {
startDrag ("/pict7", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict7", _x , (int(getProperty("/pict7", _x) / "90") * "90") + "19");
setProperty("/pict7", _y , (int(getProperty("/pict7", _y) / "90") * "90") + "19.5");
}
Symbol 70 Button
on (press) {
startDrag ("/pict8", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict8", _x , (int(getProperty("/pict8", _x) / "90") * "90") + "19");
setProperty("/pict8", _y , (int(getProperty("/pict8", _y) / "90") * "90") + "19.5");
}
Symbol 72 Button
on (press) {
startDrag ("/pict9", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict9", _x , (int(getProperty("/pict9", _x) / "90") * "90") + "19");
setProperty("/pict9", _y , (int(getProperty("/pict9", _y) / "90") * "90") + "19.5");
}
Symbol 74 Button
on (press) {
startDrag ("/pict10", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict10", _x , (int(getProperty("/pict10", _x) / "90") * "90") + "19");
setProperty("/pict10", _y , (int(getProperty("/pict10", _y) / "90") * "90") + "19.5");
}
Symbol 76 Button
on (press) {
startDrag ("/pict11", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict11", _x , (int(getProperty("/pict11", _x) / "90") * "90") + "19");
setProperty("/pict11", _y , (int(getProperty("/pict11", _y) / "90") * "90") + "19.5");
}
Symbol 78 Button
on (press) {
startDrag ("/pict12", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict12", _x , (int(getProperty("/pict12", _x) / "90") * "90") + "19");
setProperty("/pict12", _y , (int(getProperty("/pict12", _y) / "90") * "90") + "19.5");
}
Symbol 80 Button
on (press) {
startDrag ("/pict13", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict13", _x , (int(getProperty("/pict13", _x) / "90") * "90") + "19");
setProperty("/pict13", _y , (int(getProperty("/pict13", _y) / "90") * "90") + "19.5");
}
Symbol 82 Button
on (press) {
startDrag ("/pict14", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict14", _x , (int(getProperty("/pict14", _x) / "90") * "90") + "19");
setProperty("/pict14", _y , (int(getProperty("/pict14", _y) / "90") * "90") + "19.5");
}
Symbol 84 Button
on (press) {
startDrag ("/pict15", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict15", _x , (int(getProperty("/pict15", _x) / "90") * "90") + "19");
setProperty("/pict15", _y , (int(getProperty("/pict15", _y) / "90") * "90") + "19.5");
}
Symbol 86 Button
on (press) {
startDrag ("/pict16", false, "0", "0", "550", "310");
}
on (release, releaseOutside) {
stopDrag();
setProperty("/pict16", _x , (int(getProperty("/pict16", _x) / "90") * "90") + "19");
setProperty("/pict16", _y , (int(getProperty("/pict16", _y) / "90") * "90") + "19.5");
}
Symbol 90 Button
on (release) {
gotoAndPlay (4);
}
Symbol 91 MovieClip Frame 1
right = "0";
a = "1";
while ("4" >= a) {
b = "1";
while ("4" >= b) {
string = ((a - "1") * "4") + b;
if (((int(getProperty("/pict" add string, _x) / "90") + "1") == b) and ((int(getProperty("/pict" add string, _y) / "90") + "1") == a)) {
right = right + "1";
}
b = b + "1";
}
a = a + "1";
}
if (right == /:puzzleno) {
tellTarget ("/") {
gotoAndStop ("Finished");
};
}
Symbol 91 MovieClip Frame 2
gotoAndPlay (1);
Symbol 92 MovieClip Frame 12
Set("/:ts", /:ts + "1");
if (/:ts == "60") {
Set("/:tm", /:tm + "1");
Set("/:ts", "0");
}
if (/:tm == "60") {
Set("/:th", /:th + "1");
Set("/:tm", "0");
}
if (/:ts < "10") {
ts = "0" add /:ts;
} else {
ts = /:ts;
}
if (/:tm < "10") {
tm = "0" add /:tm;
} else {
tm = /:tm;
}
if (/:th < "10") {
th = "0" add /:th;
} else {
th = /:th;
}
Set("/:timecount", (((th add ":") add tm) add ":") add ts);
gotoAndPlay (1);