Frame 10
ifFrameLoaded (31) {
gotoAndStop (30);
}
Frame 20
gotoAndPlay (1);
Frame 30
stop();
Frame 31
stop();
sin_lookup_table = "0.000/.0175/.0349/.0523/.0698/.0872/.1045/.1219/.1392/.1564/.1736/.1908/.2079/.2250/.2419/.2588/.2756/.2924/.3090/.3256/.3420/.3584/.3746/.3907/.4067/.4226/.4384/.4540/.4695/.4848/.5000/.5150/.5299/.5446/.5592/.5736/.5878/.6018/.6157/.6428/.6561/.6691/.6820/.6947/.7071/.7193/.7314/.7431/.7547/.7660/.7771/.7880/.7986/.8090/.8192/.8290/.8387/.8480/.8572/.8660/.8746/.8829/.8910/.8988/.9063/.9135/.9205/.9272/.9336/.9397/.9455/.9511/.9563/.9613/.9659/.9703/.9744/.9781/.9816/.9848/.9877/.9903/.9925/.9945/.9962/.9976/.9986/.9994/.9998/1.000";
stop();
Symbol 4 MovieClip Frame 10
gotoAndPlay (1);
Symbol 15 Button
on (release) {
gotoAndStop (31);
}
Symbol 18 Button
on (release) {
if ((Number(/:gameover) != Number(true)) and (Number(/:dealfindcommon) != Number(true))) {
Set("/:dealfindcommon", true);
Set("/:shootballcolor", getProperty("/arrow/nextball", _currentframe));
tellTarget ("/arrow/nextball") {
gotoAndStop ("blank");
};
Set("/:hit_ball_name", _name);
Set("/:hit_ball_index", substring(/:hit_ball_name, 5, 2));
Set("/:hit_ball_name", "/" add /:hit_ball_name);
if (Number(/:hit_ball_index) < 25) {
tellTarget ("/arrow/shootball") {
gotoAndPlay ("circle3");
};
} else if ((Number(/:hit_ball_index) >= 25) and (Number(/:hit_ball_index) < 44)) {
tellTarget ("/arrow/shootball") {
gotoAndPlay ("circle2");
};
} else if (Number(/:hit_ball_index) >= 44) {
tellTarget ("/arrow/shootball") {
gotoAndPlay ("circle1");
};
}
tellTarget ("/effect") {
gotoAndPlay ("shoot");
};
stopDrag();
}
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 3
stop();
Symbol 24 MovieClip Frame 4
stop();
Symbol 24 MovieClip Frame 5
stop();
Symbol 24 MovieClip Frame 6
stop();
Symbol 24 MovieClip Frame 7
play();
Symbol 24 MovieClip Frame 11
gotoAndStop (6);
Symbol 28 MovieClip Frame 1
blankeye = false;
Seed = random(20);
if (17 < Number(Seed)) {
blankeye = true;
}
Symbol 28 MovieClip Frame 2
if (Number(blankeye) == Number(false)) {
gotoAndPlay (1);
}
Symbol 28 MovieClip Frame 7
gotoAndPlay (1);
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 3
stop();
Symbol 29 MovieClip Frame 4
stop();
Symbol 29 MovieClip Frame 5
stop();
Symbol 29 MovieClip Frame 6
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
tellTarget ("outball") {
gotoAndStop(/:shootballcolor);
};
Symbol 30 MovieClip Frame 6
call("hitball");
stop();
Symbol 30 MovieClip Frame 7
tellTarget ("outball") {
gotoAndStop(/:shootballcolor);
};
Symbol 30 MovieClip Frame 12
call("hitball");
stop();
Symbol 30 MovieClip Frame 13
tellTarget ("outball") {
gotoAndStop(/:shootballcolor);
};
Symbol 30 MovieClip Frame 18
call("hitball");
stop();
Symbol 30 MovieClip Frame 22
startDrag ("/angle", true);
tellTarget ("/arrow/nextball") {
gotoAndStop(Number(random(5)) + 1);
};
Set("/:dealfindcommon", true);
Set("/main:ballfull", Number(/main:ballfull) + 1);
i = /main:ballfull;
while (Number(/:hit_ball_index) < Number(i)) {
tail = i - 1;
m_head_name = "/ball" add i;
m_tail_name = "/ball" add tail;
Set("/:change_color", getProperty(m_tail_name, _currentframe));
tellTarget (m_head_name) {
gotoAndStop(/:change_color);
};
i = i - 1;
}
tellTarget (/:hit_ball_name) {
gotoAndStop(/:shootballcolor);
};
findCommon = 0;
findDeferent = false;
i = Number(/:hit_ball_index) + 1;
while (Number(findDeferent) == Number(false)) {
m_head_name = "/ball" add i;
head_color = getProperty(m_head_name, _currentframe);
if (Number(/:shootballcolor) != Number(head_color)) {
findDeferent = true;
} else {
findCommon = Number(findCommon) + 1;
Set("CommonIndex" add findCommon, i);
i = Number(i) + 1;
if (Number(/main:ballfull) < Number(i)) {
findDeferent = true;
}
}
}
findDeferent = false;
i = /:hit_ball_index - 1;
while (Number(findDeferent) == Number(false)) {
m_tail_name = "/ball" add i;
tail_color = getProperty(m_tail_name, _currentframe);
if (Number(/:shootballcolor) != Number(tail_color)) {
findDeferent = true;
} else {
findCommon = Number(findCommon) + 1;
Set("CommonIndex" add findCommon, i);
i = i - 1;
if (Number(i) == 0) {
findDeferent = true;
}
}
}
if (Number(findCommon) >= 2) {
findCommon = Number(findCommon) + 1;
Set("CommonIndex" add findCommon, /:hit_ball_index);
call("orderIndex");
i = 1;
while (Number(findCommon) >= Number(i)) {
m_name = "/ball" add eval ("CommonIndex" add i);
tellTarget (m_name) {
gotoAndPlay ("dispear");
};
i = Number(i) + 1;
}
gotoAndPlay (45);
} else {
Set("/:dealfindcommon", false);
}
Symbol 30 MovieClip Frame 30
i = 1;
while (Number(i) < Number(findCommon)) {
j = Number(i) + 1;
p1 = eval ("CommonIndex" add i);
while (Number(findCommon) >= Number(j)) {
p2 = eval ("CommonIndex" add j);
if (Number(p2) < Number(p1)) {
Set("CommonIndex" add j, p1);
Set("CommonIndex" add i, p2);
p1 = p2;
}
j = Number(j) + 1;
}
i = Number(i) + 1;
}
Symbol 30 MovieClip Frame 45
tellTarget ("/effect") {
gotoAndPlay ("dispear");
};
play();
Symbol 30 MovieClip Frame 53
i = CommonIndex1;
j = eval ("CommonIndex" add findCommon) + 1;
dispearNum = j - i;
while (Number(/main:ballfull) >= Number(j)) {
m_head_name = "/ball" add i;
m_tail_name = "/ball" add j;
Set("/:change_color", getProperty(m_tail_name, _currentframe));
tellTarget (m_head_name) {
gotoAndStop(/:change_color);
};
i = Number(i) + 1;
j = Number(j) + 1;
}
i = /main:ballfull;
j = 1;
while (Number(dispearNum) >= Number(j)) {
tellTarget ("/ball" add i) {
gotoAndStop ("blank");
};
i = i - 1;
j = Number(j) + 1;
}
Set("/main:ballfull", /main:ballfull - dispearNum);
Set("/:score", Number(/:score) + Number(dispearNum));
Set("/:dealfindcommon", false);
stop();
Symbol 32 MovieClip Frame 1
ballfull = 0;
i = 1;
while (55 >= Number(i)) {
tellTarget ("/ball" add i) {
gotoAndStop ("blank");
};
i = Number(i) + 1;
}
Set("/:gameover", false);
Set("/:dealfindcommon", false);
Set("/:score", 0);
startDrag ("/angle", true);
Symbol 32 MovieClip Frame 7
if (Number(/:dealfindcommon) == Number(false)) {
ballfull = Number(ballfull) + 1;
if (Number(ballfull) >= 55) {
ballfull = 55;
Set("/:gameover", true);
gotoAndStop (25);
}
i = ballfull;
while (Number(i) >= 2) {
tail = i - 1;
m_head_name = "/ball" add i;
m_tail_name = "/ball" add tail;
Set("/:change_color", getProperty(m_tail_name, _currentframe));
tellTarget (m_head_name) {
gotoAndStop(/:change_color);
};
i = i - 1;
}
tellTarget ("/ball1") {
gotoAndStop(Number(random(5)) + 1);
};
}
Symbol 32 MovieClip Frame 20
gotoAndPlay (7);
Symbol 32 MovieClip Frame 25
tellTarget ("/message") {
gotoAndPlay ("gameover");
};
stopDrag();
stop();
Symbol 33 MovieClip Frame 1
mouse_x = _x - 200;
mouse_y = _y - 200;
if ((Number(mouse_x) != Number(oldx)) or (Number(mouse_y) != Number(oldy))) {
call("sqrt");
call("sin");
setProperty("/arrow", _rotation , 90 - angle);
}
oldx = mouse_x;
oldy = mouse_y;
Symbol 33 MovieClip Frame 2
gotoAndPlay (1);
Symbol 33 MovieClip Frame 39
input = Number(mouse_x * mouse_x) + Number(mouse_y * mouse_y);
if (4 < Number(input)) {
seed = int(input / 2);
output = -1;
guessSeed = 1;
while (Number(output) == Number(-1)) {
guess = guessSeed * guessSeed;
if (1 >= Number(input - guess)) {
output = guessSeed;
}
guessSeed = Number(guessSeed) + 1;
}
} else {
output = 2;
}
Symbol 33 MovieClip Frame 44
sin_theta = mouse_y / output;
if (Number(sin_theta) < 0) {
sin_theta = Number(sin_theta) + Number(sin_theta * -2);
}
counter = 0;
found = 0;
while (!found) {
if (Number(sin_theta) >= Number(substring(/:sin_lookup_table, Number(counter * 6) + 1, 5))) {
angle = Number(counter) + 1;
} else {
found = 1;
}
counter = Number(counter) + 1;
if (180 < Number(counter)) {
found = 1;
counter = 180;
}
}
if ((Number(mouse_x) < 0) and (Number(mouse_y) < 0)) {
angle = 180 - angle;
}
if ((Number(mouse_x) < 0) and (Number(mouse_y) >= 0)) {
angle = 180 + Number(angle);
}
if ((Number(mouse_x) >= 0) and (Number(mouse_y) >= 0)) {
angle = 360 - angle;
}
Symbol 33 MovieClip Frame 50
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 5
gotoAndStop (1);
Symbol 38 MovieClip Frame 10
gotoAndStop (20);
Symbol 38 MovieClip Frame 15
gotoAndStop (1);
Symbol 38 MovieClip Frame 20
gotoAndStop (1);
Symbol 40 MovieClip Frame 2
stop();
Symbol 44 Button
on (release) {
if (/:musicstatus eq "Music On") {
stopAllSounds();
Set("/:musicstatus", "Music OFF");
} else {
tellTarget ("/music") {
gotoAndPlay (1);
};
Set("/:musicstatus", "Music On");
}
}
Symbol 48 MovieClip Frame 10
gotoAndPlay (1);
Symbol 60 Button
on (release) {
topname = /:name;
topscore = /:score;
topword = /:word;
toptype = "colorballII";
getURL ("top10.php", "_self", "POST");
}
on (keyPress "<") {
stop();
}
on (keyPress ">") {
stop();
}
on (keyPress "&") {
stop();
}
Symbol 61 Button
on (release, keyPress "<Enter>") {
tellTarget ("/main") {
gotoAndPlay ("init");
};
tellTarget ("/message") {
gotoAndStop (1);
};
}
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
play();
Symbol 64 MovieClip Frame 10
stop();
Symbol 69 Button
on (release) {
getURL ("http://gflash.yeah.net", "_blank");
}