Frame 1
Set("/:text", "ÊÇÑÊ´Õ¤ÃѺÂÔ¹´Õµé͹ÃѺÊÙè äÁà¤ÔÅ ¨ÍÃìá´¹à¡Á");
if ("0" >= /:step) {
Set("/:step", "1");
}
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
Frame 30
Set("/:text", "ã¹Êèǹ¢Í§à¡Á·ÕèËÁ´ 10 Ê൨·ÕèµéͧàÍÒª¹ÐãËéËÁ´");
Frame 61
Set("/:text", "¤Ø³¨ÐµéͧàÍÒª¹Ð·ÕÁ¨Ò¡ÊÒµÐÇѹµ¡½Ñè§á»«Ô¿Ô¡ãËéËÁ´¡è͹");
Frame 94
Set("/:text", "ËÅѧ¨Ò¡¹Ñ鹨еéͧá¢è§¡ÑºÊÒµÐÇѹÍÍ¡áÅÐà¢éÒªÔ§");
Frame 107
stopped = "0";
totalscore = "0";
score = "0";
Set("/timer:input", "30");
Set("/timer:output", /timer:input);
Frame 124
Set("/:text", "ÊÙéà¢Ò¹ÐäÁ¤ì");
Frame 145
Set("/:text", "¤Ô´¶Ö§ÊÁÒªÔ¡bangkokcity.com ·ÕèÊØ´ ¨Ò¡--webmaster");
stop();
Frame 148
round = "1";
a = getProperty("/ball", _x);
h = getProperty("/move_hoop", _x);
hit_left = h - "7";
hit_right = h + "18";
if ((hit_left < a) and (a < hit_right)) {
hit = "1";
} else {
hit = "0";
}
if (stopped == "3") {
gotoAndPlay("check_score" add round);
} else {
tellTarget ("/timer") {
gotoAndStop ("loopstart");
};
}
net_x = getProperty("/net_move", _x);
Frame 149
gotoAndPlay (148);
Frame 156
if (score >= "10") {
Set("/:text", "àÂÕèÂÁÁÒ¡ äÁ¤ì!!¹Ò¼èÒ¹à¢éÒÊÙèÃͺ2");
tellTarget ("/cameras") {
play();
};
round_move = "next";
} else {
Set("/:text", "¾ÅÒ´«ÐáÅéÇ !! á¢è§ÃͺãËÁèÍÕ¡ÃͺáÅéǡѹ¹Ð");
round_move = "replay";
}
Frame 168
stop();
Frame 176
round = "2";
tellTarget ("/cameras") {
gotoAndStop (1);
};
Frame 193
stopped = "0";
score = "0";
going = "1";
Set("/timer:input", "30");
Set("/timer:output", /timer:input);
moving_left = "1";
moving_right = "0";
setProperty("/timer/bar", _xscale , "100");
Frame 194
a = getProperty("/ball", _x);
h = getProperty("/move_hoop", _x);
hit_left = h - "7";
hit_right = h + "18";
if ((hit_left < a) and (a < hit_right)) {
hit = "1";
} else {
hit = "0";
}
if (stopped == "3") {
gotoAndPlay("check_score" add round);
} else {
tellTarget ("/timer") {
gotoAndStop ("loopstart");
};
}
Frame 195
gotoAndPlay (194);
if ((moving_right == "1") and (h < "700")) {
setProperty("/move_hoop", _x , h + "5");
setProperty("/net_move", _x , h + "5");
} else {
moving_left = "1";
moving_right = "0";
setProperty("/move_hoop", _x , h - "5");
setProperty("/net_move", _x , h - "5");
}
if ((moving_left == "1") and ("100" < h)) {
setProperty("/move_hoop", _x , h - "5");
setProperty("/net_move", _x , h - "5");
} else {
moving_right = "1";
moving_left = "0";
setProperty("/move_hoop", _x , h + "5");
setProperty("/net_move", _x , h + "5");
}
Frame 201
if (score >= "10") {
Set("/:text", "àÂÕèÂÁÁÒ¡ !! ¼èÒ¹à¢éÒÊÙèÃͺ 3");
tellTarget ("/cameras") {
play();
};
round_move = "next";
} else {
Set("/:text", "âÍÂ...¾ÅÒ´«ÐáÅéÇ. ¾ÂÒÂÒÁãËÁè¹Ð");
round_move = "replay";
}
Frame 213
stop();
Frame 224
round = "3";
tellTarget ("/cameras") {
gotoAndStop (1);
};
Frame 241
stopped = "0";
score = "0";
going = "1";
Set("/timer:input", "30");
Set("/timer:output", /timer:input);
moving_left = "1";
moving_right = "0";
Frame 242
a = getProperty("/ball", _x);
h = getProperty("/move_hoop", _x);
hit_left = h - "7";
hit_right = h + "18";
if ((hit_left < a) and (a < hit_right)) {
hit = "1";
} else {
hit = "0";
}
if (stopped == "3") {
gotoAndPlay("check_score" add round);
} else {
tellTarget ("/timer") {
gotoAndStop ("loopstart");
};
}
Frame 243
gotoAndPlay (242);
if ((moving_right == "1") and (h < "700")) {
setProperty("/move_hoop", _x , h + "10");
setProperty("/net_move", _x , h + "10");
} else {
moving_left = "1";
moving_right = "0";
setProperty("/move_hoop", _x , h - "10");
setProperty("/net_move", _x , h - "10");
}
if ((moving_left == "1") and ("100" < h)) {
setProperty("/move_hoop", _x , h - "10");
setProperty("/net_move", _x , h - "10");
} else {
moving_right = "1";
moving_left = "0";
setProperty("/move_hoop", _x , h + "10");
setProperty("/net_move", _x , h + "10");
}
Frame 249
if (score >= "10") {
Set("/:step", /:step + "1");
Set("/:text", "ÂÍ´àÂÕèÂÁ·ÕèÊØ´ !! ¹Òµéͧä´éà»ç¹àºÍÃì1á¹èàæÅÂ");
tellTarget ("/cameras") {
play();
};
round_move = "replay";
} else {
Set("/:text", "¾ÅÒ´«Ð¹Õè... ÅͧãËÁè¹Ð");
round_move = "replay";
}
Frame 261
if (/:step >= "10") {
gotoAndPlay (272);
}
stop();
Frame 282
stop();
Set("/:text", "ÂÔ¹´Õ´éǤسª¹ÐàÅÔÈáÅéÇ");
Symbol 28 MovieClip Frame 19
stop();
Symbol 30 MovieClip Frame 19
stop();
Symbol 59 MovieClip Frame 1
input = "30";
setProperty("bar", _xscale , "100");
stop();
Symbol 59 MovieClip Frame 14
if (/:going == "1") {
Set("/timer:zeero", int(getTimer() / "1000"));
Set("/:going", "2");
gotoAndStop (15);
} else {
gotoAndStop (15);
}
stop();
Symbol 59 MovieClip Frame 15
output = input;
if ("0" < output) {
display = int(getTimer() / "1000") - zeero;
output = input - display;
percent = (output / input) * "100";
if (percent >= "1") {
setProperty("bar", _xscale , percent);
} else {
setProperty("bar", _xscale , "1");
}
}
if ("0" >= output) {
gotoAndPlay (23);
}
stop();
stop();
Symbol 59 MovieClip Frame 23
Set("/:stopped", "3");
tellTarget ("/ball") {
gotoAndStop ("times_up");
};
Symbol 59 MovieClip Frame 42
stop();
Symbol 66 Button
on (release) {
gotoAndPlay (148);
going = "1";
}
Symbol 70 MovieClip Frame 1
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage1:Golden State Warriors ");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 2
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage2:Los Angeles Clippers");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 3
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage3:Los Angeles Lakers");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 4
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage4:Phoenix Suns");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 5
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage5:Portland Trail Blazers");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 6
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage6:Sacramento Kings");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 7
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage7:Seattle SuperSonics");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 8
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage8:Utah Jazz");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 9
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage9:Miami Heat");
} else {
nextFrame();
}
Symbol 70 MovieClip Frame 10
if (/:step == _currentframe) {
stop();
Set("/:team", "Stage10:Chicago Bulls");
} else {
nextFrame();
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 96
gotoAndPlay (2);
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 16
gotoAndStop (1);
Symbol 94 MovieClip Frame 1
stop();
stop();
Symbol 94 MovieClip Frame 27
gotoAndStop (1);
gotoAndStop (1);
Symbol 95 Button
on (press) {
startDrag ("", true, "50", "550", "750", "550");
}
on (release) {
stopDrag();
x = getProperty("/ball", _x);
setProperty("/shoot", _x , getProperty("/ball", _x));
tellTarget ("/shoot") {
gotoAndPlay ("shoot");
};
}
Symbol 96 MovieClip Frame 5
Set("/:text", "¤ÇéÒÅÙ¡ÁÒáÅéǪÙéµàÅÂ");
rand1 = random("8");
setProperty("/ball", _x , rand1 * "100");
if (rand1 == "0") {
setProperty("/ball", _x , "500");
}
Symbol 101 MovieClip Frame 1
call(/:rand_ball_place);
tellTarget ("/ball") {
gotoAndStop ("hold");
};
if (/:stopped == "3") {
gotoAndStop (96);
}
stop();
Symbol 101 MovieClip Frame 17
if (random("2") == "1") {
Set("/:text", "»Ùé´...àÍêÂ..ªÙêµ......");
} else if (random("3") == "2") {
Set("/:text", "ä»àÅÂÅÙ¡¾èÍ...");
} else {
Set("/:text", "ªÙéµ................");
}
tellTarget ("/ball") {
gotoAndStop ("off");
};
tellTarget ("/timer") {
if (/timer:output == "0") {
gotoAndStop ("times_up");
}
};
Symbol 101 MovieClip Frame 32
if (/:hit == "1") {
gotoAndPlay (75);
} else {
gotoAndPlay (33);
}
Symbol 101 MovieClip Frame 33
if (random("2") == "1") {
Set("/:text", "âÍéÇ....¾ÅÒ´«Ð¹Õè");
} else if (random("3") == "2") {
Set("/:text", "ÅÙ¡§èÒÂæäÁè¹èÒ¾ÅÒ´¹Ð...");
} else {
Set("/:text", "ÍÙéÇæ....ææ....µÑé§ã¨Ë¹èÍÂ");
}
tellTarget ("/timer") {
if (/timer:output == "0") {
gotoAndStop ("times_up");
}
};
Symbol 101 MovieClip Frame 54
gotoAndStop (1);
Symbol 101 MovieClip Frame 75
if (random("2") == "1") {
Set("/:text", "¡ÅÒ§ÃÙàÅÂäÁ¤ì...¹ÒÂÁѹá¨ëǨÃÔ§!");
} else if (random("3") == "2") {
Set("/:text", "¨êÒº·ÕèÊØ´àÅÂÅÙ¡¹Õé...");
} else {
Set("/:text", "¹ÒÂá¹èÁÒ¡äÁ¤ì");
}
tellTarget ("/net_move") {
gotoAndPlay ("hit");
};
Set("/:score", /:score + "2");
Set("/:totalscore", /:totalscore + "2");
tellTarget ("/timer") {
if (/timer:output == "0") {
gotoAndStop ("times_up");
}
};
Symbol 101 MovieClip Frame 95
gotoAndPlay (1);
Symbol 101 MovieClip Frame 96
stop();
Symbol 106 MovieClip Frame 1
input = "30";
setProperty("bar", _xscale , "100");
stop();
Symbol 106 MovieClip Frame 14
if (/:going == "1") {
Set("/timer:zeero", int(getTimer() / "1000"));
Set("/:going", "2");
gotoAndStop (15);
} else {
gotoAndStop (15);
}
stop();
Symbol 106 MovieClip Frame 15
output = input;
if ("0" < output) {
display = int(getTimer() / "1000") - zeero;
output = input - display;
percent = (output / input) * "100";
if (percent >= "1") {
setProperty("bar", _xscale , percent);
} else {
setProperty("bar", _xscale , "1");
}
}
if ("0" >= output) {
gotoAndPlay (23);
}
stop();
stop();
Symbol 106 MovieClip Frame 23
Set("/:stopped", "3");
tellTarget ("/ball") {
gotoAndStop ("times_up");
};
Symbol 106 MovieClip Frame 42
stop();
Symbol 116 Button
on (release) {
getURL ("http://www.bangkokcity.com");
}
Symbol 119 Button
on (release) {
if (round_move eq "next") {
gotoAndPlay (176);
} else {
gotoAndPlay (1);
}
}
Symbol 120 Button
on (release) {
if (round_move eq "next") {
gotoAndPlay (224);
} else {
gotoAndPlay (1);
}
}
Symbol 121 Button
on (release) {
if (round_move eq "next") {
gotoAndPlay (272);
} else {
gotoAndPlay (1);
}
}