Frame 29
ifFrameLoaded (33) {
gotoAndPlay (31);
}
Frame 30
gotoAndPlay (1);
Frame 31
gotoAndPlay (32);
Frame 32
stop();
Frame 33
Set("/:Over", "0");
Set("/:Score", "0");
Set("/:AllDownCount", "0");
Set("/:AllDownOne", "0");
Set("/:DispearCount", "0");
Set("/:SameColorCount", "0");
Set("/:temp", "0");
Set("/:temp2", "0");
Set("/:temp3", "0");
Set("/:temp4", "0");
Set("/:CanDown", "0");
Set("/:BeginUp", "0");
Set("/:CurrentColor", "0");
Set("/:CurrentHave", "0");
Set("/:BallDownY", "0");
Set("/:BeginDown", "0");
Set("/:arrowposition", "5");
Set("/:i", "1");
while ("8" >= /:i) {
Set("/:linenumber" add /:i, random("4") + "1");
Set("/:i", /:i + "1");
}
Set("/:i", "1");
Set("/:j", "1");
while ("8" >= /:i) {
while ("10" >= /:j) {
duplicateMovieClip ("/ballorg", ("ball" add /:i) add /:j, (/:i * "10") + /:j);
setProperty(("/ball" add /:i) add /:j, _x , (/:i * "20") + "30");
setProperty(("/ball" add /:i) add /:j, _y , (/:j * "20") + "10");
tellTarget (("/ball" add /:i) add /:j) {
if (eval ("/:linenumber" add /:i) >= /:j) {
gotoAndStop(random("6"));
} else {
gotoAndStop (6);
}
};
Set("/:j", /:j + "1");
}
Set("/:i", /:i + "1");
Set("/:j", "1");
}
setProperty("/arrow", _y , (eval ("/:linenumber" add /:arrowposition) * "20") + "30");
setProperty("/arrow", _x , "130");
setProperty("/collect", _x , "130");
setProperty("/line", _x , "130");
setProperty("/pikchu", _x , "136");
tellTarget ("/collect") {
gotoAndStop (6);
};
Set("/:zx1", "-1");
Set("/:zy1", "0");
Set("/:zx2", "0");
Set("/:zy2", "-1");
Set("/:zx3", "1");
Set("/:zy3", "0");
Set("/:zx4", "0");
Set("/:zy4", "1");
stop();
Symbol 4 MovieClip Frame 25
gotoAndPlay (1);
Symbol 10 Button
on (release) {
gotoAndStop (33);
}
Symbol 23 Button
on (keyPress "<Left>") {
if ((("1" < /:arrowposition) and (/:BeginUp == "0")) and (/:Over == "0")) {
setProperty("/arrow", _x , getProperty("/arrow", _x) - "20");
setProperty("/collect", _x , getProperty("/collect", _x) - "20");
setProperty("/pikchu", _x , getProperty("/pikchu", _x) - "20");
setProperty("/line", _x , getProperty("/line", _x) - "20");
Set("/:arrowposition", /:arrowposition - "1");
setProperty("/arrow", _y , (eval ("/:linenumber" add /:arrowposition) * "20") + "30");
}
}
on (keyPress "<Right>") {
if (((/:arrowposition < "8") and (/:BeginUp == "0")) and (/:Over == "0")) {
setProperty("/arrow", _x , getProperty("/arrow", _x) + "20");
setProperty("/collect", _x , getProperty("/collect", _x) + "20");
setProperty("/pikchu", _x , getProperty("/pikchu", _x) + "20");
setProperty("/line", _x , getProperty("/line", _x) + "20");
Set("/:arrowposition", /:arrowposition + "1");
setProperty("/arrow", _y , "30" + (eval ("/:linenumber" add /:arrowposition) * "20"));
}
}
on (keyPress "<Down>") {
if (/:Over == "0") {
mcname = eval ("/:linenumber" add /:arrowposition);
mcname = ("/ball" add /:arrowposition) add mcname;
Set("/:temp", getProperty(mcname, _currentframe));
if (/:CurrentHave <> "0") {
if (/:temp <> /:CurrentColor) {
Set("/:CanDown", "0");
} else {
Set("/:CanDown", "1");
}
}
if (/:CurrentHave == "0") {
Set("/:CurrentColor", /:temp);
if (/:temp < "6") {
Set("/:CanDown", "1");
}
}
if ((eval ("/:linenumber" add arrowposition) >= "1") and /:CanDown) {
Set("/:CurrentHave", /:CurrentHave + "1");
duplicateMovieClip (mcname, "downball", 90);
setProperty("/downball", _x , getProperty(mcname, _x));
setProperty("/downball", _y , getProperty(mcname, _y));
tellTarget ("/downball") {
gotoAndStop(/:temp);
};
tellTarget (mcname) {
gotoAndStop (6);
Set("/:linenumber" add /:arrowposition, eval ("/:linenumber" add /:arrowposition) - "1");
setProperty("/arrow", _y , "30" + (eval ("/:linenumber" add /:arrowposition) * "20"));
};
Set("/:BallDownY", getProperty("/downball", _y));
Set("/:BeginDown", "1");
tellTarget ("/voice") {
gotoAndPlay (2);
};
}
}
}
on (keyPress "<Up>") {
if ((/:Over == "0") and ("8" >= eval ("/:linenumber" add /:arrowposition))) {
Set("/:SameColorCount", "0");
if ("0" < /:CurrentHave) {
tellTarget ("/collect") {
gotoAndStop (6);
};
Set("/:temp", eval ("/:linenumber" add /:arrowposition));
Set("/:temp4", /:temp);
Set("/:temp", ("/ball" add /:arrowposition) add /:temp);
Set("/:temp", getProperty(/:temp, _currentframe));
while ((/:temp == /:CurrentColor) and ("0" < /:temp4)) {
Set("/:SameColorCount", /:SameColorCount + "1");
Set("/:temp4", /:temp4 - "1");
Set("/:temp", /:temp4);
Set("/:temp", ("/ball" add /:arrowposition) add /:temp);
Set("/:temp", getProperty(/:temp, _currentframe));
}
Set("/:SameColorCount", /:SameColorCount + /:CurrentHave);
Set("/:temp", "10" - eval ("/:linenumber" add /:arrowposition));
if (/:temp < /:CurrentHave) {
Set("/:CurrentHave", /:temp);
}
}
while ("0" < /:CurrentHave) {
Set("/:temp", eval ("/:linenumber" add /:arrowposition) + "1");
Set("/:temp", ("/ball" add /:arrowposition) add /:temp);
tellTarget (/:temp) {
gotoAndStop(/:CurrentColor);
};
Set("/:linenumber" add /:arrowposition, eval ("/:linenumber" add /:arrowposition) + "1");
Set("/:CurrentHave", /:CurrentHave - "1");
setProperty("/arrow", _y , "30" + (eval ("/:linenumber" add /:arrowposition) * "20"));
}
if (/:SameColorCount >= "3") {
Set("/:Score", /:Score + /:SameColorCount);
Set("/:BeginUp", "1");
tellTarget ("/voice") {
gotoAndStop (4);
};
}
}
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 3
stop();
Symbol 26 MovieClip Frame 4
stop();
Symbol 26 MovieClip Frame 5
stop();
Symbol 26 MovieClip Frame 6
stop();
Symbol 26 MovieClip Frame 11
gotoAndStop (6);
Symbol 30 MovieClip Frame 8
gotoAndPlay (1);
Symbol 31 MovieClip Frame 1
if (/:Over == "0") {
if (/:BeginDown == "1") {
Set("/:BallDownY", /:BallDownY + "40");
if ("250" < /:BallDownY) {
Set("/:BeginDown", "0");
removeMovieClip("/downball");
tellTarget ("/collect") {
gotoAndStop(/:CurrentColor);
};
}
setProperty("/downball", _y , /:BallDownY);
}
if (/:BeginUp == "1") {
Set("/:BeginUp", "0");
Set("/:i", "1");
Set("/:j", "1");
while ("8" >= /:i) {
while ("10" >= /:j) {
Set("/:temp", ("/ball" add /:i) add /:j);
Set("/:temp", getProperty(/:temp, _currentframe));
if (/:temp == /:CurrentColor) {
Set(("/:mg" add /:i) add /:j, "0");
} else {
Set(("/:mg" add /:i) add /:j, "1");
}
Set("/:j", /:j + "1");
}
Set("/:j", "1");
Set("/:i", /:i + "1");
}
Set("/:i", "0");
while ("9" >= /:i) {
Set(("/:mg" add /:i) add "0", "1");
Set(("/:mg" add /:i) add "11", "1");
Set("/:i", /:i + "1");
}
Set("/:i", "0");
while ("11" >= /:i) {
Set("/:mg0" add /:i, "1");
Set("/:mg9" add /:i, "1");
Set("/:i", /:i + "1");
}
Set("/:front", "1");
Set("/:rear", "1");
Set(("/:sq" add /:front) add "x", /:arrowposition);
Set(("/:sq" add /:front) add "y", eval ("/:linenumber" add /:arrowposition));
Set(("/:mg" add /:arrowposition) add eval ("/linenumber" add /:arrowposition), "-1");
while (/:rear >= /:front) {
Set("/:x", eval (("/:sq" add /:front) add "x"));
Set("/:y", eval (("/:sq" add /:front) add "y"));
Set("/:v", "1");
while ("4" >= /:v) {
Set("/:i", /:x + eval ("/:zx" add /:v));
Set("/:j", /:y + eval ("/:zy" add /:v));
if (eval (("/:mg" add /:i) add /:j) == "0") {
Set("/:rear", /:rear + "1");
Set(("/:sq" add /:rear) add "x", /:i);
Set(("/:sq" add /:rear) add "y", /:j);
Set(("/:mg" add /:i) add /:j, "-1");
}
Set("/:v", /:v + "1");
}
Set("/:front", /:front + "1");
}
if ("1" < /:rear) {
while ("1" < /:rear) {
Set("/:x", eval (("/:sq" add /:rear) add "x"));
Set("/:y", eval (("/:sq" add /:rear) add "y"));
Set("/:rear", /:rear - "1");
Set("/:temp2", ("/ball" add /:x) add /:y);
tellTarget (/:temp2) {
gotoAndPlay (7);
};
}
}
Set("/:DispearCount", "101");
}
if ("110" < /:DispearCount) {
Set("/:i", "1");
while ("8" >= /:i) {
Set("/:j", "1");
while (eval ("/:linenumber" add /:i) >= /:j) {
Set("/:temp2", ("/ball" add /:i) add /:j);
Set("/:temp2", getProperty(/:temp2, _currentframe));
if (/:temp2 >= "6") {
Set("/:v", /:j);
Set("/:temp6", eval ("/:linenumber" add /:i));
while (/:temp6 >= /:v) {
Set("/:temp2", ("/ball" add /:i) add /:v);
Set("/:v", /:v + "1");
Set("/:temp3", ("/ball" add /:i) add /:v);
Set("/:temp3", getProperty(/:temp3, _currentframe));
tellTarget (/:temp2) {
gotoAndStop(/:temp3);
};
}
Set("/:temp7", eval ("/:linenumber" add /:i));
Set("/:linenumber" add /:i, /:temp7 - "1");
Set("/:j", /:j - "1");
}
Set("/:j", /:j + "1");
}
Set("/:i", /:i + "1");
}
setProperty("/arrow", _y , (eval ("/:linenumber" add /:arrowposition) * "20") + "30");
Set("/:DispearCount", "0");
}
if ("100" < /:DispearCount) {
Set("/:DispearCount", /:DispearCount + "1");
}
if (/:AllDownOne == "0") {
Set("/:AllDownCount", /:AllDownCount + "1");
if ("70" < /:AllDownCount) {
if (/:DispearCount < "100") {
Set("/:AllDownOne", "1");
Set("/:AllDownCount", "0");
}
}
}
if (/:AllDownOne == "1") {
Set("/:AllDownOne", "0");
Set("/:i", "1");
while ("8" >= /:i) {
Set("/:v", eval ("/:linenumber" add /:i) + "1");
if (/:v >= "10") {
duplicateMovieClip ("/over", "over1", 888);
setProperty("/over1", _x , "115");
setProperty("/over1", _y , "130");
Set("/:Over", "1");
tellTarget ("/voice") {
gotoAndPlay ("oversound");
};
}
Set("/:linenumber" add /:i, /:v);
while (/:v >= "2") {
Set("/:temp2", ("/ball" add /:i) add /:v);
Set("/:v", /:v - "1");
Set("/:temp3", ("/ball" add /:i) add /:v);
Set("/:temp3", getProperty(/:temp3, _currentframe));
tellTarget (/:temp2) {
gotoAndStop(/:temp3);
};
}
Set("/:temp2", ("/ball" add /:i) add "1");
tellTarget (/:temp2) {
gotoAndStop(random("6"));
};
Set("/:i", /:i + "1");
}
setProperty("/arrow", _y , "30" + (eval ("/:linenumber" add /:arrowposition) * "20"));
}
}
Symbol 31 MovieClip Frame 2
gotoAndPlay (1);
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 3
stop();
Symbol 37 MovieClip Frame 5
stop();
Symbol 37 MovieClip Frame 7
stop();
Symbol 38 Button
on (release) {
getURL ("http://gflash.yeah.net", "_blank");
}
Symbol 40 MovieClip Frame 2
stop();
Symbol 50 Button
on (release) {
topname = /:ssname;
topscore = /:Score;
toptype = "colorball";
topword = /:ssword;
getURL ("top10.php", "_self", "POST");
}
Symbol 51 Button
on (release) {
call("/:init");
removeMovieClip("/over1");
}
Symbol 59 Button
on (release) {
if (/:musicstatus eq "Music On") {
stopAllSounds();
Set("/:musicstatus", "Music Off");
} else {
tellTarget ("/music") {
gotoAndPlay (1);
};
Set("/:musicstatus", "Music On");
}
}
Symbol 60 Button
on (release) {
getURL ("http://gflash.yeah.net/", "_blank");
}