STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/59604988?noj=FRM59604988-22DC" width="1" height="1"></div>

billiards.swf

This is the info page for
Flash #116930

(Click the ID number above for more basic data on this flash file.)


Text
13

10

15

14

12

11

9

8

7

6

5

4

3

2

1

technologies

Professional website development
Interactive design, games and presentations

PLAYER 1
PLAYER 2

PLAYER 1
PLAYER 2

PLAYER 1
COMPUTER

PLAYER 1
COMPUTER

PLAYER 1

PLAYER 1

Rules

8-ball is played with 15 balls and a cue ball. The goal of each
player is to pocket their set of balls (solid: 1-7, or stripes: 9-15)
and then to pocket the 8 ball. The first player to legally pocket
the 8 ball wins the game. Players do not need to call their shots
in this version of 8-ball. A player`s turn is over when they fail to
pocket one of their balls or if they scratch.
Breaking
The break is made by Player 1, beginning from any point behind
the Head String. The Head String is defined by an imaginary
vertical line across the table at the rightmost spot. If Player 1
pockets a ball on the break, their set of balls (stripes or solid) is
selected by the first ball. If Player 1 does not pocked a ball,
Player 2 shoots and the table remains open until a ball is
pocketed. Pocketing the 8 ball on the break is an instant victory.
Losing the game
A player immediately loses the game for any of the following
reasons:
- Pocketing the 8 ball when they are not shooting at the 8 ball.
- Scratching the cue ball while shooting at the 8 ball.

Straight Pool is played with 15 balls and a cue ball. There are no
set of balls, and each player can shoot at any ball on the table.
The goal is to be first to pocket 8 balls. A player`s turn is over
when they fail to pocket a ball or if thay scratch.
Breaking
The break is made by Player. If a ball is pocketed on the break
the player continues to shoot.
Shooting
A player is allowed to shoot at any ball on the table. A point is
awarded for each ball legally pocketed. When one player reaches
8 points the game is over and that player is the winner.

Straight Pool

8-ball

MENU

MENU

AXIFER

absolute technologies

0

Player 1

Player 2

0

0

Player 1

Computer

0

0

Player 1

0

ActionScript [AS1/AS2]

Frame 1
function open_ax_url() { getURL ("http://www.axifer.com/?billiards", "_blank"); } advert_url = "http://axifer.com/billiards_advert.php"; context_menu = new ContextMenu(); context_menu.customItems.push(new ContextMenuItem("Developed by AXIFER", open_ax_url)); context_menu.hideBuiltInItems(); _root.menu = context_menu; ADVERT_HTML = "loading"; this.onEnterFrame = function () { var _local4 = this.getBytesLoaded(); var _local3 = this.getBytesTotal(); if (_local3 < 100) { var _local2 = 1; } else { var _local2 = Math.floor((_local4 / (_local3 / 38)) + 0.0001) + 1; if (_local4 >= _local3) { this.onEnterFrame = function () { }; play(); } } if (_local2 < 1) { var _local2 = 1; } else if (_local2 > 38) { var _local2 = 38; } progress_bar.gotoAndStop(_local2); }; stop();
Frame 2
function turnSounds(p) { if (p) { useSOUNDS = 1; } else { useSOUNDS = 0; } } function turnMus(p) { if (p) { sound_Mus.setVolume(100); } else { sound_Mus.setVolume(0); } } function run_game(gametype, playerstype) { PLAY_GAME = gametype; PLAYERS_TYPE = playerstype; if (PLAY_GAME == "8ball") { game_name = "8-Ball"; } else if (PLAY_GAME == "straight") { game_name = "Straight Pool"; } gotoAndStop ("game"); } useSOUNDS = 1; sound_Mus = new Sound("mus");
Frame 3
var obj_xml = new XML(); obj_xml.ignoreWhite = true; obj_xml.load(_root.advert_url); obj_xml.onLoad = function (resload) { if ((!resload) || (obj_xml == "")) { ADVERT_HTML = ""; adverts.gotoAndStop(2); } else { ADVERT_HTML = ("<FONT COLOR=\"#FAE776\" FACE=\"Arial\" SIZE=\"13\">" + obj_xml) + "</FONT>"; adverts.tx.html = true; adverts.tx.htmlText = ADVERT_HTML; } }; b1.onRelease = function () { run_game("8ball", "2"); }; b2.onRelease = function () { run_game("8ball", "R"); }; b3.onRelease = function () { run_game("straight", "1"); }; b4.onRelease = function () { run_game("straight", "2"); }; b5.onRelease = function () { run_game("straight", "R"); }; stop();
Frame 4
stop();
Symbol 10 MovieClip Frame 2
stop();
Symbol 15 MovieClip Frame 2
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 2
stop();
Symbol 31 MovieClip Frame 2
stop();
Symbol 35 MovieClip Frame 2
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 23
if (_parent._parent.kick()) { gotoAndPlay ("kick"); }
Symbol 87 MovieClip Frame 24
stop();
Symbol 87 MovieClip Frame 31
_root.main.curr_cue.removeMovieClip(); stop();
Symbol 89 MovieClip [cue_R] Frame 1
function kick() { _parent.sound_keykick(1, RES_STEP); _parent.b1.dirc = RES_DIRC; _parent.b1.mystep = RES_STEP; _parent.set_game_status("run"); return(1); } if (_root.PLAY_GAME == "8ball") { if (_parent.total2 >= 7) { TARGET_BALLS = new Array(); TARGET_BALLS.push(9); } else if (_parent.SelfBall_1 == "strip") { TARGET_BALLS = new Array(10, 11, 12, 13, 14, 15, 16); } else if (_parent.SelfBall_1 == "solid") { TARGET_BALLS = new Array(2, 3, 4, 5, 6, 7, 8); } else { TARGET_BALLS = new Array(2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16); } } else if (_root.PLAY_GAME == "straight") { TARGET_BALLS = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); } RES_DIRC = 0; RES_STEP = 1; arrPocketPoss = new Array(); offs = 10; p = 1; while (p <= 6) { switch (p) { case 1 : sx = _parent.topleft_poket[0] + offs; sy = _parent.topleft_poket[1] + offs; break; case 2 : sx = _parent.topcenter_poket[0]; sy = _parent.topcenter_poket[1] + offs; break; case 3 : sx = _parent.topright_poket[0] - offs; sy = _parent.topright_poket[1] + offs; break; case 4 : sx = _parent.bottright_poket[0] - offs; sy = _parent.bottright_poket[1] - offs; break; case 5 : sx = _parent.bottcenter_poket[0]; sy = _parent.bottcenter_poket[1] - offs; break; case 6 : sx = _parent.bottleft_poket[0] + offs; sy = _parent.bottleft_poket[1] - offs; break; default : s = ""; } arrPocketPoss[p] = new Array(sx, sy); p++; } shooted = 0; allShoots = new Array(); num_balls = TARGET_BALLS.length; i = 0; while (i < num_balls) { objTarget = eval ("_parent.b" + TARGET_BALLS[i]); if (objTarget.ex) { zpk = 6; p = 1; while (p <= zpk) { pocketPos = arrPocketPoss[p]; dist_cue_target = _parent.mathem_distance(_parent.b1._x, _parent.b1._y, objTarget._x, objTarget._y); dist_cue_pocket = _parent.mathem_distance(_parent.b1._x, _parent.b1._y, objTarget._x, objTarget._y); ang_cue_target = _parent.mathem_angle(_parent.b1._x, _parent.b1._y, objTarget._x, objTarget._y); ang_target_pocket = _parent.mathem_angle(objTarget._x, objTarget._y, pocketPos[0], pocketPos[1]); mg = _parent.normalize(ang_target_pocket - ang_cue_target); if (Math.abs(mg) < 70) { bcGlobal = Math.sin(_parent.mpi * mg) * _parent.ball_diam; bcGlobal2 = bcGlobal * bcGlobal; ac1 = Math.sqrt(_parent.ball_2diam - bcGlobal2); ac2 = dist_cue_target - Math.abs(ac1); s_ang = Math.atan(bcGlobal / ac2) / (Math.PI/180); s_dirc = ang_cue_target - s_ang; shootData = new Array(); shootData.dirc = s_dirc; shootData.obs = 0; shootData.mystep = 16 + random(10); c = 2; while (c <= 16) { if ((c != TARGET_BALLS[i]) && (eval ("_parent.b" + c).ex)) { e_dist = _parent.mathem_distance(_parent.b1._x, _parent.b1._y, eval ("_parent.b" + c)._x, eval ("_parent.b" + c)._y); e_ang = _parent.mathem_angle(_parent.b1._x, _parent.b1._y, eval ("_parent.b" + c)._x, eval ("_parent.b" + c)._y); se_ang = Math.abs(_parent.normalize(ang_cue_target - e_ang)); if (se_ang < 90) { se_bc = Math.abs(Math.sin(_parent.mpi * se_ang) * e_dist); if (se_bc <= _parent.ball_diam) { shootData.obs = 1; break; } } } c++; } if (!shootData.obs) { c = 2; while (c <= 16) { if ((c != TARGET_BALLS[i]) && (eval ("_parent.b" + c).ex)) { e_dist = _parent.mathem_distance(objTarget._x, objTarget._y, eval ("_parent.b" + c)._x, eval ("_parent.b" + c)._y); e_ang = _parent.mathem_angle(objTarget._x, objTarget._y, eval ("_parent.b" + c)._x, eval ("_parent.b" + c)._y); se_ang = _parent.normalize(ang_target_pocket - e_ang); if (Math.abs(se_ang) < 90) { se_bc = Math.abs(Math.sin(_parent.mpi * se_ang) * e_dist); if (se_bc <= _parent.ball_diam) { shootData.obs = 1; break; } } } c++; } } if (!shootData.obs) { RES_DIRC = shootData.dirc; RES_STEP = shootData.mystep; shooted = 1; num_balls = 0; zpk = 0; break; } allShoots.push(shootData); } p++; } } i++; } if (!shooted) { num_Shoots = allShoots.length; numr = random(num_Shoots + 1); if (numr > num_Shoots) { numr = num_Shoots; } psh = allShoots[numr]; if ((psh.dirc == "") || (psh.dirc == undefined)) { psh = new Array(); psh.dirc = random(360) - 180; psh.mystep = 5 + random(20); } RES_DIRC = psh.dirc; RES_STEP = psh.mystep; } cue._rotation = RES_DIRC; cue.ins.gotoAndPlay("run");
Symbol 90 MovieClip [cue_2] Frame 1
pos = 1; mdown = 0; this.onEnterFrame = function () { if (pos && (_parent.table.hitTest(_root._xmouse, _root._ymouse))) { cue._rotation = _parent.mathem_angle(0, 0, this._xmouse, this._ymouse); } }; this.onMouseDown = function () { if (pos && (_parent.table.hitTest(_root._xmouse, _root._ymouse))) { mdown = 1; cue.ins.play(); } }; this.onMouseUp = function () { if (pos && (mdown)) { pos = 0; var _local2 = cue.ins._currentframe * 1; _parent.sound_keykick(1, _local2); _parent.b1.dirc = _parent.mathem_angle(_parent.b1._x, _parent.b1._y, _parent._xmouse, _parent._ymouse); _parent.b1.mystep = _local2; _parent.set_game_status("run"); cue.ins.gotoAndPlay("kick"); } };
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 23
stop();
Symbol 92 MovieClip Frame 30
_root.main.curr_cue.removeMovieClip(); stop();
Symbol 94 MovieClip [cue_1] Frame 1
pos = 1; mdown = 0; this.onEnterFrame = function () { if (pos && (_parent.table.hitTest(_root._xmouse, _root._ymouse))) { cue._rotation = _parent.mathem_angle(0, 0, this._xmouse, this._ymouse); } }; this.onMouseDown = function () { if (pos && (_parent.table.hitTest(_root._xmouse, _root._ymouse))) { mdown = 1; cue.ins.play(); } }; this.onMouseUp = function () { if (pos && (mdown)) { pos = 0; var _local2 = cue.ins._currentframe * 1; _parent.sound_keykick(1, _local2); _parent.b1.dirc = _parent.mathem_angle(_parent.b1._x, _parent.b1._y, _parent._xmouse, _parent._ymouse); _parent.b1.mystep = _local2; _parent.set_game_status("run"); cue.ins.gotoAndPlay("kick"); } };
Symbol 95 MovieClip [game_straight] Frame 1
function start_game(gameType) { tellTarget (_parent) { total1 = 0; total2 = 0; SelfBall_1 = ""; current_game_type = gameType; set_balls(); set_game_status("player1"); }; } function inshot() { tellTarget (_parent) { ex_shots++; var _local4 = "player" + current_player; var _local5 = 1; var _local7 = 0; var _local3 = 0; var _local6 = 0; if (shotRes_pkBalls[1]) { _local7 = 1; } var _local2 = 2; while (_local2 <= 16) { if (shotRes_pkBalls[_local2]) { _local3++; } _local2++; } if (_local7) { _local5 = 0; _local6 = 1; } else if (_local3 <= 0) { _local5 = 0; } if (!_local5) { if (current_game_type == "1") { _local4 = "player1"; } else if (current_game_type == "2") { if (current_player == "1") { _local4 = "player2"; } else { _local4 = "player1"; } } else if (current_game_type == "R") { if (current_player == "1") { _local4 = "playerR"; } else { _local4 = "player1"; } } } if (_local6) { _local3 = 0; _local2 = 1; while (_local2 <= 16) { if (shotRes_pkBalls[_local2]) { takeBall_out(_local2); } _local2++; } } if (current_player == "1") { total1 = total1 + _local3; } else { total2 = total2 + _local3; } controls.score1 = total1; controls.score2 = total2; if (total1 >= 8) { game_over(1); return(undefined); } if (total2 >= 8) { game_over(2); return(undefined); } set_game_status(_local4); return(undefined); } } function inshot__() { tellTarget (_parent) { ex_shots++; var nextPlayer = ("player" + current_player); var selfTurn = 1; var firstSelfContact = 0; var p_cueBall = 0; var p_blackBall = 0; var total_self = 0; var total_strip = 0; var total_solid = 0; var falseNumBallsPocket = 0; var selfNumBallsPocket = 0; var num_stripBallsPocket = 0; var num_solidBallsPocket = 0; var SelfBall_1_SET = 0; var back_AllBalls = 0; var back_SelfBalls = 0; if ((SelfBall_1 == "") && (shotRes_firstPocket > 0)) { firstSelfContact = 1; SelfBall_1_SET = 1; if (current_player == "1") { if (shotRes_firstPocket < 9) { SelfBall_1 = "strip"; SelfBall_2 = "solid"; } else { SelfBall_1 = "solid"; SelfBall_2 = "strip"; } } else if (shotRes_firstPocket < 9) { SelfBall_1 = "solid"; SelfBall_2 = "strip"; } else { SelfBall_1 = "strip"; SelfBall_2 = "solid"; } controls.balltype1.set_ball_type(SelfBall_1); controls.balltype2.set_ball_type(SelfBall_2); } if (shotRes_pkBalls[1]) { p_cueBall = 1; } if (shotRes_pkBalls[9]) { p_blackBall = 1; } var i = 2; while (i <= 8) { if (!eval ("b" + i).ex) { total_strip++; } if (shotRes_pkBalls[i]) { num_stripBallsPocket++; } i++; } var i = 10; while (i <= 16) { if (!eval ("b" + i).ex) { total_solid++; } if (shotRes_pkBalls[i]) { num_solidBallsPocket++; } i++; } if (current_player == "1") { if (SelfBall_1 == "strip") { if (shotRes_firstContact < 9) { firstSelfContact = 1; } total1 = (total_self = total_strip); total2 = total_solid; selfNumBallsPocket = num_stripBallsPocket; falseNumBallsPocket = num_solidBallsPocket; } else { if (shotRes_firstContact > 9) { firstSelfContact = 1; } total1 = (total_self = total_solid); total2 = total_strip; selfNumBallsPocket = num_solidBallsPocket; falseNumBallsPocket = num_stripBallsPocket; } } else if (SelfBall_1 == "strip") { if (shotRes_firstContact > 9) { firstSelfContact = 1; } total1 = total_strip; total2 = (total_self = total_solid); selfNumBallsPocket = num_solidBallsPocket; falseNumBallsPocket = num_stripBallsPocket; } else { if (shotRes_firstContact < 9) { firstSelfContact = 1; } total1 = total_solid; total2 = (total_self = total_strip); selfNumBallsPocket = num_stripBallsPocket; falseNumBallsPocket = num_solidBallsPocket; } if (p_cueBall) { selfTurn = 0; back_AllBalls = 1; } if (!firstSelfContact) { back_SelfBalls = 1; selfTurn = 0; } else if (selfNumBallsPocket <= 0) { selfTurn = 0; } if (!selfTurn) { if (current_game_type == "1") { nextPlayer = "player1"; } else if (current_game_type == "2") { if (current_player == "1") { nextPlayer = "player2"; } else { nextPlayer = "player1"; } } else if (current_game_type == "R") { if (current_player == "1") { nextPlayer = "playerR"; } else { nextPlayer = "player1"; } } } if (back_AllBalls) { var i = 1; while (i <= 16) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } else if (back_SelfBalls) { if (current_player == "1") { if (SelfBall_1 == "strip") { var i = 1; while (i <= 8) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } else { if (shotRes_pkBalls[1]) { takeBall_out(1); } var i = 10; while (i <= 16) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } } else if (SelfBall_1 == "strip") { if (shotRes_pkBalls[1]) { takeBall_out(1); } var i = 10; while (i <= 16) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } else { var i = 1; while (i <= 8) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } } total_strip = 0; total_solid = 0; num_stripBallsPocket = 0; num_solidBallsPocket = 0; var i = 2; while (i <= 8) { if (!eval ("b" + i).ex) { total_strip++; } if (shotRes_pkBalls[i]) { num_stripBallsPocket++; } i++; } var i = 10; while (i <= 16) { if (!eval ("b" + i).ex) { total_solid++; } if (shotRes_pkBalls[i]) { num_solidBallsPocket++; } i++; } if (current_player == "1") { if (SelfBall_1 == "strip") { total1 = (total_self = total_strip); total2 = total_solid; } else { total1 = (total_self = total_solid); total2 = total_strip; } } else if (SelfBall_1 == "strip") { total1 = total_strip; total2 = (total_self = total_solid); } else { total1 = total_solid; total2 = (total_self = total_strip); } controls.score1 = total1; controls.score2 = total2; set_game_status(nextPlayer); return(undefined); } } _parent.ex_shots = 0;
Symbol 96 MovieClip [game_8balls] Frame 1
function start_game(gameType) { tellTarget (_parent) { total1 = 0; total2 = 0; SelfBall_1 = ""; current_game_type = gameType; set_balls(); set_game_status("player1"); }; } function inshot() { tellTarget (_parent) { ex_shots++; var nextPlayer = ("player" + current_player); var selfTurn = 1; var firstSelfContact = 0; var p_cueBall = 0; var p_blackBall = 0; var total_self = 0; var total_strip = 0; var total_solid = 0; var falseNumBallsPocket = 0; var selfNumBallsPocket = 0; var num_stripBallsPocket = 0; var num_solidBallsPocket = 0; var SelfBall_1_SET = 0; var back_AllBalls = 0; var back_SelfBalls = 0; if ((SelfBall_1 == "") && (shotRes_firstPocket > 0)) { firstSelfContact = 1; SelfBall_1_SET = 1; if (current_player == "1") { if (shotRes_firstPocket < 9) { SelfBall_1 = "strip"; SelfBall_2 = "solid"; } else { SelfBall_1 = "solid"; SelfBall_2 = "strip"; } } else if (shotRes_firstPocket < 9) { SelfBall_1 = "solid"; SelfBall_2 = "strip"; } else { SelfBall_1 = "strip"; SelfBall_2 = "solid"; } controls.balltype1.set_ball_type(SelfBall_1); controls.balltype2.set_ball_type(SelfBall_2); } if (shotRes_pkBalls[1]) { p_cueBall = 1; } if (shotRes_pkBalls[9]) { p_blackBall = 1; } var i = 2; while (i <= 8) { if (!eval ("b" + i).ex) { total_strip++; } if (shotRes_pkBalls[i]) { num_stripBallsPocket++; } i++; } var i = 10; while (i <= 16) { if (!eval ("b" + i).ex) { total_solid++; } if (shotRes_pkBalls[i]) { num_solidBallsPocket++; } i++; } if (current_player == "1") { if (SelfBall_1 == "strip") { if (shotRes_firstContact < 9) { firstSelfContact = 1; } total1 = (total_self = total_strip); total2 = total_solid; selfNumBallsPocket = num_stripBallsPocket; falseNumBallsPocket = num_solidBallsPocket; } else { if (shotRes_firstContact > 9) { firstSelfContact = 1; } total1 = (total_self = total_solid); total2 = total_strip; selfNumBallsPocket = num_solidBallsPocket; falseNumBallsPocket = num_stripBallsPocket; } } else if (SelfBall_1 == "strip") { if (shotRes_firstContact > 9) { firstSelfContact = 1; } total1 = total_strip; total2 = (total_self = total_solid); selfNumBallsPocket = num_solidBallsPocket; falseNumBallsPocket = num_stripBallsPocket; } else { if (shotRes_firstContact < 9) { firstSelfContact = 1; } total1 = total_solid; total2 = (total_self = total_strip); selfNumBallsPocket = num_stripBallsPocket; falseNumBallsPocket = num_solidBallsPocket; } if (p_blackBall) { selfTurn = 0; if (ex_shots == 1) { if (current_player == "1") { var winner = "1"; } else { var winner = "2"; } game_over(winner); return(undefined); } if ((!p_selfBall) && (total_self == 7)) { if ((shotRes_firstContact == 9) && (!p_cueBall)) { if (current_player == "1") { var winner = "1"; } else { var winner = "2"; } } else if (current_player == "1") { var winner = "2"; } else { var winner = "1"; } game_over(winner); return(undefined); } if (current_player == "1") { var winner = "2"; } else { var winner = "1"; } game_over(winner); return(undefined); } if (p_cueBall) { selfTurn = 0; if ((SelfBall_1 == "") || (SelfBall_1_SET)) { SelfBall_1 = ""; back_AllBalls = 1; } else { back_SelfBalls = 1; } } if (!firstSelfContact) { back_SelfBalls = 1; selfTurn = 0; } else if (selfNumBallsPocket <= 0) { selfTurn = 0; } if (!selfTurn) { if (current_game_type == "1") { nextPlayer = "player1"; } else if (current_game_type == "2") { if (current_player == "1") { nextPlayer = "player2"; } else { nextPlayer = "player1"; } } else if (current_game_type == "R") { if (current_player == "1") { nextPlayer = "playerR"; } else { nextPlayer = "player1"; } } } if (back_AllBalls) { var i = 1; while (i <= 16) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } else if (back_SelfBalls) { if (current_player == "1") { if (SelfBall_1 == "strip") { var i = 1; while (i <= 8) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } else { if (shotRes_pkBalls[1]) { takeBall_out(1); } var i = 10; while (i <= 16) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } } else if (SelfBall_1 == "strip") { if (shotRes_pkBalls[1]) { takeBall_out(1); } var i = 10; while (i <= 16) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } else { var i = 1; while (i <= 8) { if (shotRes_pkBalls[i]) { takeBall_out(i); } i++; } } } total_strip = 0; total_solid = 0; num_stripBallsPocket = 0; num_solidBallsPocket = 0; var i = 2; while (i <= 8) { if (!eval ("b" + i).ex) { total_strip++; } if (shotRes_pkBalls[i]) { num_stripBallsPocket++; } i++; } var i = 10; while (i <= 16) { if (!eval ("b" + i).ex) { total_solid++; } if (shotRes_pkBalls[i]) { num_solidBallsPocket++; } i++; } if (current_player == "1") { if (SelfBall_1 == "strip") { total1 = (total_self = total_strip); total2 = total_solid; } else { total1 = (total_self = total_solid); total2 = total_strip; } } else if (SelfBall_1 == "strip") { total1 = total_strip; total2 = (total_self = total_solid); } else { total1 = total_solid; total2 = (total_self = total_strip); } controls.score1 = total1; controls.score2 = total2; set_game_status(nextPlayer); return(undefined); } } _parent.ex_shots = 0;
Symbol 144 MovieClip Frame 2
stop();
Symbol 148 Button
on (release) { _root.open_ax_url(); }
Symbol 154 MovieClip Frame 1
if (_root.ADVERT_HTML != "loading") { if ((_root.ADVERT_HTML == "") || (_root.ADVERT_HTML == undefined)) { gotoAndStop (2); } else { tx.html = true; tx.htmlText = _root.ADVERT_HTML; stop(); } } else { stop(); }
Symbol 154 MovieClip Frame 2
stop();
Symbol 180 MovieClip Frame 1
bts.onRelease = function () { if (_currentframe == 1) { _parent.turnMus(0); gotoAndStop (2); } else { _parent.turnMus(1); gotoAndStop (1); } }; stop();
Symbol 182 MovieClip Frame 1
bts.onRelease = function () { if (_currentframe == 1) { _parent.turnSounds(0); gotoAndStop (2); } else { _parent.turnSounds(1); gotoAndStop (1); } }; stop();
Symbol 185 Button
on (release) { gotoAndStop ("menu"); }
Symbol 206 MovieClip Frame 1
function set_ball_type(t) { if (t == "strip") { gotoAndStop (3); } else if (t == "solid") { gotoAndStop (4); } else { gotoAndStop (2); } }
Symbol 206 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 1
function switch_curr_player(n) { if (n == 1) { crr1._visible = 1; crr2._visible = 0; } else if (n == 2) { crr1._visible = 0; crr2._visible = 1; } else { crr1._visible = 0; crr2._visible = 0; } } switch_curr_player(0); if (_root.PLAYERS_TYPE == "1") { gotoAndStop (3); } else if (_root.PLAYERS_TYPE == "2") { stop(); } else if (_root.PLAYERS_TYPE == "R") { gotoAndStop (2); }
Symbol 221 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 3
stop();
Symbol 229 MovieClip Frame 1
function show_winner(n) { if (((n == "1") || (n == "2")) || (n == "R")) { winnerName = eval ("_root.playername" + n); gotoAndStop (3); } else { gotoAndStop (4); } }
Symbol 229 MovieClip Frame 2
stop();
Symbol 230 MovieClip Frame 1
function sound_kick(p, step) { if (!_root.useSOUNDS) { return(undefined); } var _local2 = soundRat_kick * step; if (_local2 > 100) { _local2 = 100; } var _local3 = new Sound("b" + p); _local3.attachSound("kick"); _local3.setVolume(_local2); _local3.start(); } function sound_bordkick(p, step) { if (!_root.useSOUNDS) { return(undefined); } var _local2 = soundRat_bordkick * step; if (_local2 > 100) { _local2 = 100; } var _local3 = new Sound("b" + p); _local3.attachSound("bordkick"); _local3.setVolume(_local2); _local3.start(); } function sound_keykick(p, step) { if (!_root.useSOUNDS) { return(undefined); } var _local2 = soundRat_keykick * step; if (_local2 > 100) { _local2 = 100; } var _local3 = new Sound("b" + p); _local3.attachSound("keykick"); _local3.setVolume(_local2); _local3.start(); } function sound_loose(p, step) { if (!_root.useSOUNDS) { return(undefined); } var _local2 = soundRat_loose * step; if (_local2 > 100) { _local2 = 100; } if (_local2 < 40) { _local2 = 40; } var _local3 = new Sound("b" + p); _local3.attachSound("loose"); _local3.setVolume(_local2); _local3.start(); } function mathem_distance(px1, py1, px2, py2) { var _local2 = px1 - px2; var _local1 = py1 - py2; return(Math.sqrt((_local2 * _local2) + (_local1 * _local1))); } function mathem_angle(xCenter, yCenter, xDistant, yDistant) { var _local3 = xDistant - xCenter; var _local2 = yDistant - yCenter; var _local1 = Math.atan2(_local2, _local3); return(_local1 / (Math.PI/180)); } function mathem_pos(xCenter, yCenter, angleToDistant, distance) { var _local1 = Math.sin((Math.PI/180) * angleToDistant) * distance; var _local2 = Math.sqrt((distance * distance) - (_local1 * _local1)); if (Math.abs(angleToDistant) > 90) { _local2 = _local2 * -1; } return(Array(xCenter + _local2, yCenter + _local1)); } function normalize(angle) { if (angle > 180) { angle = angle - 360; } if (angle < -180) { angle = angle + 360; } return(angle); } function wheel_steps(ball, f) { var nf = (eval ("b" + ball).wheel._currentframe + Math.floor((f * 7) + 1E-5)); if (nf > 200) { nf = nf - 200; } eval ("b" + ball).wheel.gotoAndStop(nf); } function BallToPocket(ball, pk) { if ((shotRes_firstPocket == 0) && ((ball != 1) && (ball != 9))) { shotRes_firstPocket = ball; } shotRes_pkBalls[ball] = 1; eval ("b" + ball).pocket = pk; eval ("b" + ball).ex = 0; } function checkPockets(arParams) { var kicktype = "border"; var cango = 1; var can_pre = 1; var prep = 0; var cmpr = 0; var paramSet = eval ((("pocketPositions." + arParams.c_side) + ".") + arParams.c_pocket); var cnr_ins = paramSet.ins_left; var cnr_out = paramSet.out_left; var crrAngPocket = paramSet.ang_left; var angRef = paramSet.angref_left; var newposAngOut = mathem_angle(cnr_out[0], cnr_out[1], arParams.nx, arParams.ny); var prevposAngOut = mathem_angle(cnr_out[0], cnr_out[1], arParams.px, arParams.py); var newposAngIns = mathem_angle(cnr_ins[0], cnr_ins[1], arParams.nx, arParams.ny); if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if (((newposAngOut > 45) || (newposAngOut < -135)) && ((prevposAngOut < 45) && (prevposAngOut > -135))) { prep = 1; } if ((newposAngOut > 45) || (newposAngOut < -135)) { can_pre = 0; } } else if (arParams.c_pocket == "right") { if (((newposAngOut > 135) || (newposAngOut < -45)) && ((prevposAngOut < 135) && (prevposAngOut > -45))) { prep = 1; } if ((newposAngOut > 135) || (newposAngOut < -45)) { can_pre = 0; } } else { if (((newposAngOut < -70) || (newposAngOut > 110)) && ((prevposAngOut > -70) && (prevposAngOut < 110))) { prep = 1; } if ((newposAngOut < -70) || (newposAngOut > 110)) { can_pre = 0; } } } else if (arParams.c_pocket == "left") { if (((newposAngOut > 135) || (newposAngOut < -45)) && ((prevposAngOut < 135) && (prevposAngOut > -45))) { prep = 1; } if ((newposAngOut > 135) || (newposAngOut < -45)) { can_pre = 0; } } else if (arParams.c_pocket == "right") { if (((newposAngOut < -135) || (newposAngOut > 45)) && ((prevposAngOut > -135) && (prevposAngOut < 45))) { prep = 1; } if ((newposAngOut < -135) || (newposAngOut > 45)) { can_pre = 0; } } else { if (((newposAngOut > 70) || (newposAngOut < -110)) && ((prevposAngOut < 70) && (prevposAngOut > -110))) { prep = 1; } if ((newposAngOut > 70) || (newposAngOut < -110)) { can_pre = 0; } } if (prep == 1) { var p_ang = normalize(prevposAngOut - crrAngPocket); var p_dist = mathem_distance(cnr_out[0], cnr_out[1], arParams.px, arParams.py); var m_bc = (Math.sin(mpi * p_ang) * p_dist); var m_ang = normalize(crrAngPocket - arParams.dirc); var nst = (m_bc / Math.sin(mpi * m_ang)); if (nst > 0) { var newPos = mathem_pos(arParams.px, arParams.py, arParams.dirc, nst); var angToNew = mathem_angle(cnr_ins[0], cnr_ins[1], newPos[0], newPos[1]); if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if ((angToNew > 135) || (angToNew < -45)) { cmpr = 1; } } else if (arParams.c_pocket == "right") { if ((angToNew > -135) && (angToNew < 45)) { cmpr = 1; } } else if ((angToNew > -160) && (angToNew < 20)) { cmpr = 1; } } else if (arParams.c_pocket == "left") { if ((angToNew > 45) || (angToNew < -135)) { cmpr = 1; } } else if (arParams.c_pocket == "right") { if ((angToNew < 135) && (angToNew > -45)) { cmpr = 1; } } else if ((angToNew < 160) && (angToNew > -20)) { cmpr = 1; } if (cmpr == 1) { if (nst > 0) { arParams.nx = newPos[0]; arParams.ny = newPos[1]; } else { arParams.nx = arParams.px; arParams.ny = arParams.py; } kicktype = "ins"; arParams.dirc = normalize(((arParams.dirc - crrAngPocket) * -1) + crrAngPocket); } else { var toins_dist = mathem_distance(arParams.px, arParams.py, cnr_ins[0], cnr_ins[1]); var toins_ang = mathem_angle(arParams.px, arParams.py, cnr_ins[0], cnr_ins[1]); var angleToCorner = normalize(Math.abs(arParams.dirc - toins_ang)); var toins_bc = Math.abs(toins_dist * Math.sin(mpi * angleToCorner)); if (toins_bc < ball_radius) { var newins_dist = mathem_distance(arParams.nx, arParams.ny, cnr_ins[0], cnr_ins[1]); if (newins_dist < ball_radius) { var toins_bc2 = (toins_bc * toins_bc); var ac_curr = Math.sqrt((toins_dist * toins_dist) - toins_bc2); var ac_nx = Math.sqrt(ball_2radius - toins_bc2); var distBack = (ac_curr - ac_nx); var newPos = mathem_pos(arParams.px, arParams.py, arParams.dirc, distBack); var checkAng = mathem_angle(cnr_ins[0], cnr_ins[1], newPos[0], newPos[1]); var chkp = 0; if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if (((checkAng > -45) && (checkAng < 135)) && ((arParams.dirc > 67.5) || (arParams.dirc < -112.5))) { chkp = 1; } } else if (arParams.c_pocket == "right") { if (((checkAng > 45) || (checkAng < -135)) && ((arParams.dirc > 157.5) || (arParams.dirc < -22.5))) { chkp = 1; } } else if (((checkAng > 20) || (checkAng < -160)) && ((arParams.dirc < -35) || (arParams.dirc > 145))) { chkp = 1; } } else if (arParams.c_pocket == "left") { if (((checkAng < 45) && (checkAng > -135)) && ((arParams.dirc < -67.5) || (arParams.dirc > 112.5))) { chkp = 1; } } else if (arParams.c_pocket == "right") { if (((checkAng < -45) || (checkAng > 135)) && ((arParams.dirc > 22.5) || (arParams.dirc < -157.5))) { chkp = 1; } } else if (((checkAng < -20) || (checkAng > 160)) && ((arParams.dirc > 35) || (arParams.dirc < -145))) { chkp = 1; } if (chkp == 1) { if (distBack > 0) { arParams.nx = newPos[0]; arParams.ny = newPos[1]; } else { arParams.nx = arParams.px; arParams.ny = arParams.py; } kicktype = "cnr1L"; arParams.dirc = normalize(((2 * angRef) - 180) - arParams.dirc); } } } } } } else { var toins_dist = mathem_distance(arParams.px, arParams.py, cnr_ins[0], cnr_ins[1]); var toins_ang = mathem_angle(arParams.px, arParams.py, cnr_ins[0], cnr_ins[1]); var angleToCorner = normalize(Math.abs(arParams.dirc - toins_ang)); var toins_bc = Math.abs(toins_dist * Math.sin(mpi * angleToCorner)); if (toins_bc < ball_radius) { var newins_dist = mathem_distance(arParams.nx, arParams.ny, cnr_ins[0], cnr_ins[1]); if (newins_dist < ball_radius) { var toins_bc2 = (toins_bc * toins_bc); var ac_curr = Math.sqrt((toins_dist * toins_dist) - toins_bc2); var ac_nx = Math.sqrt(ball_2radius - toins_bc2); var distBack = (ac_curr - ac_nx); var newPos = mathem_pos(arParams.px, arParams.py, arParams.dirc, distBack); var checkAng = mathem_angle(cnr_ins[0], cnr_ins[1], newPos[0], newPos[1]); var chkp = 0; if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if (((checkAng > -45) && (checkAng < 135)) && ((arParams.dirc > 67.5) || (arParams.dirc < -112.5))) { chkp = 1; } } else if (arParams.c_pocket == "right") { if (((checkAng > 45) || (checkAng < -135)) && ((arParams.dirc > 157.5) || (arParams.dirc < -22.5))) { chkp = 1; } } else if (((checkAng > 20) || (checkAng < -160)) && ((arParams.dirc < -35) || (arParams.dirc > 145))) { chkp = 1; } } else if (arParams.c_pocket == "left") { if (((checkAng < 45) && (checkAng > -135)) && ((arParams.dirc < -67.5) || (arParams.dirc > 112.5))) { chkp = 1; } } else if (arParams.c_pocket == "right") { if (((checkAng < -45) || (checkAng > 135)) && ((arParams.dirc > 22.5) || (arParams.dirc < -157.5))) { chkp = 1; } } else if (((checkAng < -20) || (checkAng > 160)) && ((arParams.dirc > 35) || (arParams.dirc < -145))) { chkp = 1; } if (chkp == 1) { if (distBack > 0) { arParams.nx = newPos[0]; arParams.ny = newPos[1]; } else { arParams.nx = arParams.px; arParams.ny = arParams.py; } kicktype = "cnr2L"; arParams.dirc = normalize(((2 * angRef) - 180) - arParams.dirc); } } } } var can_pre_s = 1; var prep_s = 0; var cmpr_s = 0; var cnr_ins = paramSet.ins_right; var cnr_out = paramSet.out_right; var crrAngPocket = paramSet.ang_right; var angRef = paramSet.angref_right; var newposAngOut = mathem_angle(cnr_out[0], cnr_out[1], arParams.nx, arParams.ny); var prevposAngOut = mathem_angle(cnr_out[0], cnr_out[1], arParams.px, arParams.py); var newposAngIns = mathem_angle(cnr_ins[0], cnr_ins[1], arParams.nx, arParams.ny); if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if (((newposAngOut < 45) && (newposAngOut > -135)) && ((prevposAngOut > 45) || (prevposAngOut < -135))) { prep_s = 1; } if ((newposAngOut < 45) && (newposAngOut > -135)) { can_pre_s = 0; } } else if (arParams.c_pocket == "right") { if (((newposAngOut < 135) && (newposAngOut > -45)) && ((prevposAngOut > 135) || (prevposAngOut < -45))) { prep_s = 1; } if ((newposAngOut < 135) && (newposAngOut > -45)) { can_pre_s = 0; } } else { if (((newposAngOut < 70) && (newposAngOut > -110)) && ((prevposAngOut > 70) || (prevposAngOut < -110))) { prep_s = 1; } if ((newposAngOut < 70) && (newposAngOut > -110)) { can_pre_s = 0; } } } else if (arParams.c_pocket == "left") { if (((newposAngOut < 135) && (newposAngOut > -45)) && ((prevposAngOut > 135) || (prevposAngOut < -45))) { prep_s = 1; } if ((newposAngOut < 135) && (newposAngOut > -45)) { can_pre_s = 0; } } else if (arParams.c_pocket == "right") { if (((newposAngOut < 45) && (newposAngOut > -135)) && ((prevposAngOut < -135) || (prevposAngOut > 45))) { prep_s = 1; } if ((newposAngOut < 45) && (newposAngOut > -135)) { can_pre_s = 0; } } else { if (((newposAngOut > -70) && (newposAngOut < 110)) && ((prevposAngOut > 110) || (prevposAngOut < -70))) { prep_s = 1; } if ((newposAngOut > -70) && (newposAngOut < 110)) { can_pre_s = 0; } } if ((can_pre == 1) && (can_pre_s == 1)) { cango = 0; } if (prep_s == 1) { var p_ang = normalize(prevposAngOut - crrAngPocket); var p_dist = mathem_distance(cnr_out[0], cnr_out[1], arParams.px, arParams.py); var m_bc = (Math.sin(mpi * p_ang) * p_dist); var m_ang = normalize(crrAngPocket - arParams.dirc); var nst = (m_bc / Math.sin(mpi * m_ang)); if (nst > 0) { var newPos = mathem_pos(arParams.px, arParams.py, arParams.dirc, nst); var angToNew = mathem_angle(cnr_ins[0], cnr_ins[1], newPos[0], newPos[1]); if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if ((angToNew > 135) || (angToNew < -45)) { cmpr_s = 1; } } else if (arParams.c_pocket == "right") { if ((angToNew > -135) && (angToNew < 45)) { cmpr_s = 1; } } else if ((angToNew > 160) || (angToNew < -20)) { cmpr_s = 1; } } else if (arParams.c_pocket == "left") { if ((angToNew > 45) || (angToNew < -135)) { cmpr_s = 1; } } else if (arParams.c_pocket == "right") { if ((angToNew > -45) && (angToNew < 135)) { cmpr_s = 1; } } else if ((angToNew < -160) || (angToNew > 20)) { cmpr_s = 1; } if (cmpr_s == 1) { if (nst > 0) { arParams.nx = newPos[0]; arParams.ny = newPos[1]; } else { arParams.nx = arParams.px; arParams.ny = arParams.py; } kicktype = "ins"; arParams.dirc = normalize(((arParams.dirc - crrAngPocket) * -1) + crrAngPocket); } else { var toins_dist = mathem_distance(arParams.px, arParams.py, cnr_ins[0], cnr_ins[1]); var toins_ang = mathem_angle(arParams.px, arParams.py, cnr_ins[0], cnr_ins[1]); var angleToCorner = normalize(Math.abs(arParams.dirc - toins_ang)); var toins_bc = Math.abs(toins_dist * Math.sin(mpi * angleToCorner)); if (toins_bc < ball_radius) { var newins_dist = mathem_distance(arParams.nx, arParams.ny, cnr_ins[0], cnr_ins[1]); if (newins_dist < ball_radius) { var toins_bc2 = (toins_bc * toins_bc); var ac_curr = Math.sqrt((toins_dist * toins_dist) - toins_bc2); var ac_nx = Math.sqrt(ball_2radius - toins_bc2); var distBack = (ac_curr - ac_nx); var newPos = mathem_pos(arParams.px, arParams.py, arParams.dirc, distBack); var checkAng = mathem_angle(cnr_ins[0], cnr_ins[1], newPos[0], newPos[1]); var chkp = 0; if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if (((checkAng < 135) && (checkAng > -45)) && ((arParams.dirc > -157.5) && (arParams.dirc < 22.5))) { chkp = 1; } } else if (arParams.c_pocket == "right") { if (((checkAng < -135) || (checkAng > 45)) && ((arParams.dirc > -67.5) && (arParams.dirc < 112.5))) { chkp = 1; } } else if (((checkAng > -20) && (checkAng < 160)) && ((arParams.dirc < 35) && (arParams.dirc > -145))) { chkp = 1; } } else if (arParams.c_pocket == "left") { if (((checkAng > -135) && (checkAng < 45)) && ((arParams.dirc < 157.5) && (arParams.dirc > -22.5))) { chkp = 1; } } else if (arParams.c_pocket == "right") { if (((checkAng > 135) || (checkAng < -45)) && ((arParams.dirc < 67.5) && (arParams.dirc > -112.5))) { chkp = 1; } } else if (((checkAng > -160) && (checkAng < 20)) && ((arParams.dirc < 145) && (arParams.dirc > -35))) { chkp = 1; } if (chkp == 1) { if (distBack > 0) { arParams.nx = newPos[0]; arParams.ny = newPos[1]; } else { arParams.nx = arParams.px; arParams.ny = arParams.py; } kicktype = "cnr1R"; arParams.dirc = normalize(((2 * angRef) - 180) - arParams.dirc); } } } } } } else { var toins_dist = mathem_distance(arParams.px, arParams.py, cnr_ins[0], cnr_ins[1]); var toins_ang = mathem_angle(arParams.px, arParams.py, cnr_ins[0], cnr_ins[1]); var angleToCorner = normalize(Math.abs(arParams.dirc - toins_ang)); var toins_bc = Math.abs(toins_dist * Math.sin(mpi * angleToCorner)); if (toins_bc < ball_radius) { var newins_dist = mathem_distance(arParams.nx, arParams.ny, cnr_ins[0], cnr_ins[1]); if (newins_dist < ball_radius) { var toins_bc2 = (toins_bc * toins_bc); var ac_curr = Math.sqrt((toins_dist * toins_dist) - toins_bc2); var ac_nx = Math.sqrt(ball_2radius - toins_bc2); var distBack = (ac_curr - ac_nx); var newPos = mathem_pos(arParams.px, arParams.py, arParams.dirc, distBack); var checkAng = mathem_angle(cnr_ins[0], cnr_ins[1], newPos[0], newPos[1]); var chkp = 0; if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if (((checkAng < 135) && (checkAng > -45)) && ((arParams.dirc > -157.5) && (arParams.dirc < 22.5))) { chkp = 1; } } else if (arParams.c_pocket == "right") { if (((checkAng < -135) || (checkAng > 45)) && ((arParams.dirc > -67.5) && (arParams.dirc < 112.5))) { chkp = 1; } } else if (((checkAng > -20) && (checkAng < 160)) && ((arParams.dirc < 35) && (arParams.dirc > -145))) { chkp = 1; } } else if (arParams.c_pocket == "left") { if (((checkAng > -135) && (checkAng < 45)) && ((arParams.dirc < 157.5) && (arParams.dirc > -22.5))) { chkp = 1; } } else if (arParams.c_pocket == "right") { if (((checkAng > 135) || (checkAng < -45)) && ((arParams.dirc < 67.5) && (arParams.dirc > -112.5))) { chkp = 1; } } else if (((checkAng > -160) && (checkAng < 20)) && ((arParams.dirc < 145) && (arParams.dirc > -35))) { chkp = 1; } if (chkp == 1) { if (distBack > 0) { arParams.nx = newPos[0]; arParams.ny = newPos[1]; } else { arParams.nx = arParams.px; arParams.ny = arParams.py; } kicktype = "cnr1R"; arParams.dirc = normalize(((2 * angRef) - 180) - arParams.dirc); } } } } var inpk = 0; var pkn = 0; var distPk = pocketToBall; if (arParams.c_side == "top") { if (arParams.c_pocket == "left") { if (subc1.hitTest(arParams.nx, arParams.ny)) { inpk = 1; pkn = 1; } else { distPk = mathem_distance(arParams.nx, arParams.ny, topleft_poket[0], topleft_poket[1]); pkn = 1; } } else if (arParams.c_pocket == "right") { if (subc3.hitTest(arParams.nx, arParams.ny)) { inpk = 1; pkn = 3; } else { distPk = mathem_distance(arParams.nx, arParams.ny, topright_poket[0], topright_poket[1]); pkn = 3; } } else if (subc2.hitTest(arParams.nx, arParams.ny)) { inpk = 1; pkn = 2; } else { distPk = mathem_distance(arParams.nx, arParams.ny, topcenter_poket[0], topcenter_poket[1]); pkn = 2; } } else if (arParams.c_pocket == "left") { if (subc6.hitTest(arParams.nx, arParams.ny)) { inpk = 1; pkn = 6; } else { distPk = mathem_distance(arParams.nx, arParams.ny, bottleft_poket[0], bottleft_poket[1]); pkn = 6; } } else if (arParams.c_pocket == "right") { if (subc4.hitTest(arParams.nx, arParams.ny)) { inpk = 1; pkn = 4; } else { distPk = mathem_distance(arParams.nx, arParams.ny, bottright_poket[0], bottright_poket[1]); pkn = 4; } } else if (subc5.hitTest(arParams.nx, arParams.ny)) { inpk = 1; pkn = 5; } else { distPk = mathem_distance(arParams.nx, arParams.ny, bottcenter_poket[0], bottcenter_poket[1]); pkn = 5; } if ((distPk < pocketToBall) || (inpk)) { _root.main.sound_loose(arParams.ball, arParams.ballstep); BallToPocket(arParams.ball, pkn); } arParams.kicktype = kicktype; arParams.cango = cango; return(arParams); } function ballMoving(c) { if (!eval ("b" + c).ex) { return(0); } tellTarget ("b" + c) { if (mystep <= 0) { return(1); } if (ex) { mystep = mystep - _root.main.easing; if (mystep < 0) { mystep = 0; } var setstep = 0; var NewPosition_arr = _root.main.mathem_pos(_x, _y, dirc, mystep); var u = 1; while (u <= _root.main.existsBalls) { if ((u != c) && (eval ("_root.main.b" + u).ex)) { var distance = _root.main.mathem_distance(_x, _y, eval ("_root.main.b" + u)._x, eval ("_root.main.b" + u)._y); if (distance < (mystep + _root.main.ball_diam)) { var distance_to = _root.main.mathem_distance(NewPosition_arr[0], NewPosition_arr[1], eval ("_root.main.b" + u)._x, eval ("_root.main.b" + u)._y); var glob_angleToBall = _root.main.mathem_angle(_x, _y, eval ("_root.main.b" + u)._x, eval ("_root.main.b" + u)._y); var angleToBall = Math.abs(_root.main.normalize(dirc - glob_angleToBall)); var bc = Math.abs(distance * Math.sin(_root.main.mpi * angleToBall)); var angToNewpos = _root.main.mathem_angle(NewPosition_arr[0], NewPosition_arr[1], eval ("_root.main.b" + u)._x, eval ("_root.main.b" + u)._y); var angleN_ball = Math.abs(_root.main.normalize(dirc - angToNewpos)); if ((((distance_to < _root.main.ball_diam) || (angleN_ball > 90)) && (bc < _root.main.ball_diam)) && (angleToBall < 90)) { if (_root.main.shotRes_firstContact == 0) { if (c == 1) { _root.main.shotRes_firstContact = u; } else if (u == 1) { _root.main.shotRes_firstContact = c; } } _root.main.sound_kick(c, mystep); var bc2 = (bc * bc); var ac_curr = Math.sqrt((distance * distance) - bc2); var ac_nx = Math.sqrt(_root.main.ball_2diam - bc2); var distBack = (ac_curr - ac_nx); if (distBack > 0) { NewPosition_arr = _root.main.mathem_pos(_x, _y, dirc, distBack); } else { NewPosition_arr[0] = _x; NewPosition_arr[1] = _y; } var ecr = _root.main.normalize(dirc - glob_angleToBall); if (ecr < 0) { var dm = -90; } else { var dm = 90; } var ANG1 = _root.main.normalize((dirc - glob_angleToBall) - dm); var ANG2 = _root.main.normalize((eval ("_root.main.b" + u).dirc - glob_angleToBall) - dm); var U1 = mystep; var U2 = eval ("_root.main.b" + u).mystep; var U1x = (Math.sin((Math.PI/180) * ANG1) * U1); var U2x = (Math.sin((Math.PI/180) * ANG2) * U2); var U1y = Math.sqrt((U1 * U1) - (U1x * U1x)); var U2y = Math.sqrt((U2 * U2) - (U2x * U2x)); if (Math.abs(ANG1) < 90) { U1y = U1y * -1; } if (Math.abs(ANG2) < 90) { U2y = U2y * -1; } var V1x = (((U1x + U2x) - (U1x - U2x)) * 0.5); var V2x = (((U1x + U2x) - (U2x - U1x)) * 0.5); var V1y = U1y; var V2y = U2y; var V1 = Math.sqrt((V1y * V1y) + (V1x * V1x)); var V2 = Math.sqrt((V2y * V2y) + (V2x * V2x)); var ang_res1 = _root.main.normalize(_root.main.mathem_angle(0, 0, V1x, V1y) + 90); var ang_res2 = _root.main.normalize(_root.main.mathem_angle(0, 0, V2x, V2y) + 90); var newAng1 = _root.main.normalize((ang_res1 + glob_angleToBall) + dm); var newAng2 = _root.main.normalize((ang_res2 + glob_angleToBall) + dm); eval ("_root.main.b" + u).dirc = newAng2; eval ("_root.main.b" + u).mystep = V2; setstep = 1; } } } u++; } if (setstep) { dirc = newAng1; mystep = V1; } kicktype = "border"; cango = 1; var rParams = new Array(); rParams.ballstep = mystep; rParams.ball = c; rParams.dirc = dirc; rParams.px = _x; rParams.py = _y; rParams.nx = NewPosition_arr[0]; rParams.ny = NewPosition_arr[1]; if (NewPosition_arr[1] < _root.main.y_center) { rParams.c_side = "top"; if ((kicktype == "border") && (NewPosition_arr[0] < _root.main.leftArea_xmax)) { rParams.c_pocket = "left"; var resPocket = _root.main.checkPockets(rParams); kicktype = resPocket.kicktype; cango = resPocket.cango; NewPosition_arr[0] = rParams.nx; NewPosition_arr[1] = rParams.ny; dirc = rParams.dirc; } if ((kicktype == "border") && (NewPosition_arr[0] > _root.main.rightArea_xmin)) { rParams.c_pocket = "right"; var resPocket = _root.main.checkPockets(rParams); kicktype = resPocket.kicktype; cango = resPocket.cango; NewPosition_arr[0] = rParams.nx; NewPosition_arr[1] = rParams.ny; dirc = rParams.dirc; } if ((kicktype == "border") && ((NewPosition_arr[0] > _root.main.centerArea_xmin) && (NewPosition_arr[0] < _root.main.centerArea_xmax))) { rParams.c_pocket = "center"; var resPocket = _root.main.checkPockets(rParams); kicktype = resPocket.kicktype; cango = resPocket.cango; NewPosition_arr[0] = rParams.nx; NewPosition_arr[1] = rParams.ny; dirc = rParams.dirc; } } else { rParams.c_side = "bottom"; if ((kicktype == "border") && (NewPosition_arr[0] < _root.main.leftArea_xmax)) { rParams.c_pocket = "left"; var resPocket = _root.main.checkPockets(rParams); kicktype = resPocket.kicktype; cango = resPocket.cango; NewPosition_arr[0] = rParams.nx; NewPosition_arr[1] = rParams.ny; dirc = rParams.dirc; } if ((kicktype == "border") && (NewPosition_arr[0] > _root.main.rightArea_xmin)) { rParams.c_pocket = "right"; var resPocket = _root.main.checkPockets(rParams); kicktype = resPocket.kicktype; cango = resPocket.cango; NewPosition_arr[0] = rParams.nx; NewPosition_arr[1] = rParams.ny; dirc = rParams.dirc; } if ((kicktype == "border") && ((NewPosition_arr[0] > _root.main.centerArea_xmin) && (NewPosition_arr[0] < _root.main.centerArea_xmax))) { rParams.c_pocket = "center"; var resPocket = _root.main.checkPockets(rParams); kicktype = resPocket.kicktype; cango = resPocket.cango; NewPosition_arr[0] = rParams.nx; NewPosition_arr[1] = rParams.ny; dirc = rParams.dirc; } } if (kicktype != "border") { _root.main.sound_bordkick(c, mystep); } if ((kicktype == "border") && (cango == 1)) { if ((NewPosition_arr[0] < _root.main.x_min) && (Math.abs(dirc) > 90)) { _root.main.sound_bordkick(c, mystep); var alpha = (180 - Math.abs(dirc)); var ac = (_root.main.x_min - NewPosition_arr[0]); var bc = (ac * Math.tan(_root.main.mpi * alpha)); var ab = Math.sqrt((ac * ac) + (bc * bc)); if (ab > mystep) { NewPosition_arr[0] = _x; NewPosition_arr[1] = _y; } else { NewPosition_arr = _root.main.mathem_pos(_x, _y, dirc, mystep - ab); } dirc = _root.main.normalize(180 - dirc); mystep = mystep - _root.main.bordEasing; } else if ((NewPosition_arr[0] > _root.main.x_max) && (Math.abs(dirc) < 90)) { _root.main.sound_bordkick(c, mystep); var alpha = Math.abs(dirc); var ac = (NewPosition_arr[0] - _root.main.x_max); var bc = (ac * Math.tan(_root.main.mpi * alpha)); var ab = Math.sqrt((ac * ac) + (bc * bc)); if (ab > mystep) { NewPosition_arr[0] = _x; NewPosition_arr[1] = _y; } else { NewPosition_arr = _root.main.mathem_pos(_x, _y, dirc, mystep - ab); } dirc = _root.main.normalize(180 - dirc); mystep = mystep - _root.main.bordEasing; } else if ((NewPosition_arr[1] < _root.main.y_min) && (dirc < 0)) { _root.main.sound_bordkick(c, mystep); var alpha = Math.abs(Math.abs(dirc) - 90); var ac = (_root.main.y_min - NewPosition_arr[1]); var bc = (ac * Math.tan(_root.main.mpi * alpha)); var ab = Math.sqrt((ac * ac) + (bc * bc)); if (ab > mystep) { NewPosition_arr[0] = _x; NewPosition_arr[1] = _y; } else { NewPosition_arr = _root.main.mathem_pos(_x, _y, dirc, mystep - ab); } dirc = dirc * -1; mystep = mystep - _root.main.bordEasing; } else if ((NewPosition_arr[1] > _root.main.y_max) && (dirc > 0)) { _root.main.sound_bordkick(c, mystep); var alpha = Math.abs(Math.abs(dirc) - 90); var ac = (NewPosition_arr[1] - _root.main.y_max); var bc = (ac * Math.tan(_root.main.mpi * alpha)); var ab = Math.sqrt((ac * ac) + (bc * bc)); if (ab > mystep) { NewPosition_arr[0] = _x; NewPosition_arr[1] = _y; } else { NewPosition_arr = _root.main.mathem_pos(_x, _y, dirc, mystep - ab); } dirc = dirc * -1; mystep = mystep - _root.main.bordEasing; } } _root.main.wheel_steps(c, mystep); if (prevDirc != dirc) { wheel._rotation = _root.main.normalize(dirc - 180); } prevDirc = dirc; _x = NewPosition_arr[0]; _y = NewPosition_arr[1]; } }; return(0); } function remove_balls() { var i = 1; while (i <= existsBalls) { eval ("b" + i).removeMovieClip(); i++; } } function set_balls() { var i = 1; while (i <= existsBalls) { this.attachMovie("b_" + (i - 1), "b" + i, 100 + i); eval ("b" + i).outstep = 0; eval ("b" + i).j_out = 0; eval ("b" + i).ex = 1; eval ("b" + i).mystep = 0; eval ("b" + i).dirc = 0; eval ("b" + i).wheel._rotation = random(360) - 180; wheel_steps(i, random(18) + 1); i++; } var exPoss = new Array(); arBalls = new Array(); var bp8 = 0; var n8num = 9; var i = 0; while (i < 20) { var nr = (random(14) + 2); if (!exPoss[nr]) { exPoss[nr] = 1; arBalls.push(nr); if (nr == n8num) { bp8 = arBalls.length - 1; } } i++; } var i = 2; while (i <= 16) { if (!exPoss[i]) { exPoss[i] = 1; arBalls.push(i); if (i == n8num) { bp8 = arBalls.length - 1; } } i++; } arBalls[bp8] = arBalls[4]; arBalls[4] = n8num; var nCols = arColumns.length; var crBall = 0; var crrpos_x = pos_FirstBall_x; var crrpos_y = 0; var i = 0; while (i < nCols) { var cm = arColumns[i]; var firstYPos = ((pos_FirstBall_y - ((cm * stepBalls_Y) / 2)) + ball_radius); var c = 1; while (c <= cm) { eval ("b" + arBalls[crBall])._x = crrpos_x; eval ("b" + arBalls[crBall])._y = firstYPos; firstYPos = firstYPos + stepBalls_Y; crBall++; c++; } crrpos_x = crrpos_x - stepBalls_X; i++; } b1._x = pos_WBall_x; b1._y = pos_WBall_y; } function takeBall_out(n) { if (!eval ("b" + n).ex) { eval ("b" + n).outstep = 0; eval ("b" + n).j_out = 0; eval ("b" + n).ex = 1; eval ("b" + n).mystep = 0; eval ("b" + n).dirc = 0; eval ("b" + n).wheel._rotation = random(360) - 180; wheel_steps(n, random(18) + 1); eval ("b" + n)._visible = 1; eval ("b" + n)._alpha = 100; eval ("b" + n)._xscale = 100; eval ("b" + n)._yscale = 100; var crs = 1; while (crs) { if (n == 1) { eval ("b" + n)._x = 575 + random(150); } else { eval ("b" + n)._x = ((ball_diam + 2) + x_offset) + random((field_w - ball_2A_diam) - 4); } eval ("b" + n)._y = ((ball_diam + 2) + y_offset) + random((field_h - ball_2A_diam) - 4); crs = 0; var c = 1; while (c <= 16) { if (n != c) { if (eval ("b" + n).hitTest(eval ("b" + c))) { crs = 1; break; } } c++; } } } } function reset_shot_data() { shotRes_pkBalls = new Array(); shotRes_firstPocket = 0; shotRes_firstContact = 0; } function switch_next() { game_engine.inshot(); } function set_game_status(st) { reset_shot_data(); game_status = st; if (st == "lobby") { controls.switch_curr_player(0); remove_balls(); curr_cue.removeMovieClip(); return(undefined); } if (st == "off") { controls.switch_curr_player(0); curr_cue.removeMovieClip(); return(undefined); } if (st == "run") { return(undefined); } if (st == "player1") { controls.switch_curr_player(1); current_player = "1"; this.attachMovie("cue_1", "curr_cue", 5000); } else if (st == "player2") { controls.switch_curr_player(2); current_player = "2"; this.attachMovie("cue_2", "curr_cue", 5000); } else if (st == "playerR") { controls.switch_curr_player(2); current_player = "R"; this.attachMovie("cue_R", "curr_cue", 5000); } curr_cue._x = b1._x; curr_cue._y = b1._y; } function game_over(winner_id) { set_game_status("off"); if (_root.PLAYERS_TYPE == "1") { winner.show_winner(0); } else if ((_root.PLAYERS_TYPE == "R") && (winner_id == "2")) { winner.show_winner("R"); } else { winner.show_winner(winner_id); } } winner.swapDepths(6000); soundRat_kick = 3; soundRat_bordkick = 2; soundRat_keykick = 3; soundRat_loose = 4; field_w = 700; field_h = 350; x_offset = 50; y_offset = 50; existsBalls = 16; ball_diam = 20; easing = 0.12; bordEasing = 0.12; pocket_anim_alpha_num_steps = 6; pocket_anim_scale_out = 70; pocket_anim_alpha_step = 100 / pocket_anim_alpha_num_steps; pocket_anim_scale_out_step = (100 - pocket_anim_scale_out) / pocket_anim_alpha_num_steps; ball_radius = ball_diam / 2; ball_2radius = ball_radius * ball_radius; ball_2diam = ball_diam * ball_diam; ball_2A_diam = ball_diam + ball_diam; x_min = ball_radius + x_offset; x_max = (field_w - ball_radius) + x_offset; y_min = ball_radius + y_offset; y_max = (field_h - ball_radius) + y_offset; x_center = (field_w / 2) + x_offset; y_center = (field_h / 2) + y_offset; mpi = (Math.PI/180); centerPocket_width = 40; cornerSidePocket_width = 24; h_centerPocket_width = centerPocket_width / 2; h_cornerSidePocket_width = cornerSidePocket_width / 2; centerArea_xmin = x_center - 50; centerArea_xmax = x_center + 50; leftArea_xmin = x_min - 40; leftArea_xmax = x_min + 40; rightArea_xmin = x_max - 40; rightArea_xmax = x_max + 40; pocketToBall = 14; rPocket = 16; topright_poket = mathem_pos(x_max + ball_radius, y_min - ball_radius, -45, rPocket); bottright_poket = mathem_pos(x_max + ball_radius, y_max + ball_radius, 45, rPocket); topleft_poket = mathem_pos(x_min - ball_radius, y_min - ball_radius, -135, rPocket); bottleft_poket = mathem_pos(x_min - ball_radius, y_max + ball_radius, 135, rPocket); topcenter_poket = new Array(x_center, (y_min - ball_radius) - rPocket); bottcenter_poket = new Array(x_center, (y_max + ball_radius) + rPocket); pocketPositions = new Array(); pocketPositions.top = new Array(); pocketPositions.top.left = new Array(); pocketPositions.top.center = new Array(); pocketPositions.top.right = new Array(); pocketPositions.bottom = new Array(); pocketPositions.bottom.left = new Array(); pocketPositions.bottom.center = new Array(); pocketPositions.bottom.right = new Array(); pocketPositions.top.center.angref_left = 55; pocketPositions.top.center.angref_right = 125; pocketPositions.top.center.ang_left = -70; pocketPositions.top.center.ang_right = -110; pocketPositions.top.center.ins_left = new Array(x_center - h_centerPocket_width, y_offset); pocketPositions.top.center.ins_right = new Array(x_center + h_centerPocket_width, y_offset); pocketPositions.top.center.out_left = mathem_pos(pocketPositions.top.center.ins_left[0], pocketPositions.top.center.ins_left[1], normalize(pocketPositions.top.center.ang_left + 90), ball_radius); pocketPositions.top.center.out_right = mathem_pos(pocketPositions.top.center.ins_right[0], pocketPositions.top.center.ins_right[1], normalize(pocketPositions.top.center.ang_right - 90), ball_radius); pocketPositions.bottom.center.angref_left = -55; pocketPositions.bottom.center.angref_right = -125; pocketPositions.bottom.center.ang_left = 70; pocketPositions.bottom.center.ang_right = 110; pocketPositions.bottom.center.ins_left = new Array(x_center - h_centerPocket_width, y_offset + field_h); pocketPositions.bottom.center.ins_right = new Array(x_center + h_centerPocket_width, y_offset + field_h); pocketPositions.bottom.center.out_left = mathem_pos(pocketPositions.bottom.center.ins_left[0], pocketPositions.bottom.center.ins_left[1], normalize(pocketPositions.bottom.center.ang_left - 90), ball_radius); pocketPositions.bottom.center.out_right = mathem_pos(pocketPositions.bottom.center.ins_right[0], pocketPositions.bottom.center.ins_right[1], normalize(pocketPositions.bottom.center.ang_right + 90), ball_radius); pocketPositions.top.left.angref_left = -22.5; pocketPositions.top.left.angref_right = 112.5; pocketPositions.top.left.ang_left = -135; pocketPositions.top.left.ang_right = -135; pocketPositions.top.left.ins_left = new Array(x_offset, y_offset + cornerSidePocket_width); pocketPositions.top.left.ins_right = new Array(x_offset + cornerSidePocket_width, y_offset); pocketPositions.top.left.out_left = mathem_pos(pocketPositions.top.left.ins_left[0], pocketPositions.top.left.ins_left[1], normalize(pocketPositions.top.left.ang_left + 90), ball_radius); pocketPositions.top.left.out_right = mathem_pos(pocketPositions.top.left.ins_right[0], pocketPositions.top.left.ins_right[1], normalize(pocketPositions.top.left.ang_right - 90), ball_radius); pocketPositions.bottom.left.angref_left = 22.5; pocketPositions.bottom.left.angref_right = -112.5; pocketPositions.bottom.left.ang_left = 135; pocketPositions.bottom.left.ang_right = 135; pocketPositions.bottom.left.ins_left = new Array(x_offset, (y_offset + field_h) - cornerSidePocket_width); pocketPositions.bottom.left.ins_right = new Array(x_offset + cornerSidePocket_width, y_offset + field_h); pocketPositions.bottom.left.out_left = mathem_pos(pocketPositions.bottom.left.ins_left[0], pocketPositions.bottom.left.ins_left[1], normalize(pocketPositions.bottom.left.ang_left - 90), ball_radius); pocketPositions.bottom.left.out_right = mathem_pos(pocketPositions.bottom.left.ins_right[0], pocketPositions.bottom.left.ins_right[1], normalize(pocketPositions.bottom.left.ang_right + 90), ball_radius); pocketPositions.top.right.angref_left = 67.5; pocketPositions.top.right.angref_right = -157.5; pocketPositions.top.right.ang_left = -45; pocketPositions.top.right.ang_right = -45; pocketPositions.top.right.ins_left = new Array((x_offset + field_w) - cornerSidePocket_width, y_offset); pocketPositions.top.right.ins_right = new Array(x_offset + field_w, y_offset + cornerSidePocket_width); pocketPositions.top.right.out_left = mathem_pos(pocketPositions.top.right.ins_left[0], pocketPositions.top.right.ins_left[1], normalize(pocketPositions.top.right.ang_left + 90), ball_radius); pocketPositions.top.right.out_right = mathem_pos(pocketPositions.top.right.ins_right[0], pocketPositions.top.right.ins_right[1], normalize(pocketPositions.top.right.ang_right - 90), ball_radius); pocketPositions.bottom.right.angref_left = -67.5; pocketPositions.bottom.right.angref_right = 157.5; pocketPositions.bottom.right.ang_left = 45; pocketPositions.bottom.right.ang_right = 45; pocketPositions.bottom.right.ins_left = new Array((x_offset + field_w) - cornerSidePocket_width, y_offset + field_h); pocketPositions.bottom.right.ins_right = new Array(x_offset + field_w, (y_offset + field_h) - cornerSidePocket_width); pocketPositions.bottom.right.out_left = mathem_pos(pocketPositions.bottom.right.ins_left[0], pocketPositions.bottom.right.ins_left[1], normalize(pocketPositions.bottom.right.ang_left - 90), ball_radius); pocketPositions.bottom.right.out_right = mathem_pos(pocketPositions.bottom.right.ins_right[0], pocketPositions.bottom.right.ins_right[1], normalize(pocketPositions.bottom.right.ang_right + 90), ball_radius); this.onEnterFrame = function () { var stop_all = 1; n = 1; while (n <= existsBalls) { if ((!eval ("b" + n).ex) && (!eval ("b" + n).j_out)) { if (eval ("b" + n).outstep == 0) { var ar_s = new Array(); switch (eval ("b" + n).pocket) { case 1 : ar_s = topleft_poket; break; case 2 : ar_s = topcenter_poket; break; case 3 : ar_s = topright_poket; break; case 4 : ar_s = bottright_poket; break; case 5 : ar_s = bottcenter_poket; break; case 6 : ar_s = bottleft_poket; break; default : eval ("b" + n).j_out = 1; eval ("b" + n)._visible = 0; } eval ("b" + n)._x = ar_s[0]; eval ("b" + n)._y = ar_s[1]; } eval ("b" + n).outstep++; if (eval ("b" + n).outstep > pocket_anim_alpha_num_steps) { eval ("b" + n)._visible = 0; eval ("b" + n).j_out = 1; } else { var scl = (100 - (pocket_anim_scale_out_step * eval ("b" + n).outstep)); eval ("b" + n)._xscale = scl; eval ("b" + n)._yscale = scl; eval ("b" + n)._alpha = 100 - (pocket_anim_alpha_step * eval ("b" + n).outstep); } } else { var rs = ballMoving(n); if ((!rs) && (eval ("b" + n).ex)) { stop_all = 0; } } n++; } if (stop_all && (game_status == "run")) { switch_next(); } }; pos_FirstBall_x = 230; pos_FirstBall_y = y_center; stepBalls_Y = ball_diam + 2; stepBalls_X = 18; arColumns = new Array(1, 2, 3, 4, 5); pos_WBall_x = 580; pos_WBall_y = y_center; reset_shot_data(); game_status = "off"; if (_root.PLAY_GAME == "8ball") { this.attachMovie("game_8balls", "game_engine", 5100); } else if (_root.PLAY_GAME == "straight") { this.attachMovie("game_straight", "game_engine", 5100); }
Symbol 230 MovieClip Frame 2
game_engine.start_game(_root.PLAYERS_TYPE); stop();

Library Items

Symbol 1 Sound [loose]
Symbol 2 Sound [bordkick]
Symbol 3 Sound [kick]
Symbol 4 Sound [keykick]
Symbol 5 GraphicUsed by:12
Symbol 6 GraphicUsed by:10 15 19 23 27 31 35 40 46 52 58 64 70 76 82 206
Symbol 7 GraphicUsed by:10 15 19 23 27 31 35 40 46 52 58 64 70 76 82
Symbol 8 FontUsed by:9 14 18 22 26 30 34 39 44 50 56 62 68 74 80
Symbol 9 TextUses:8Used by:10
Symbol 10 MovieClipUses:6 7 9Used by:12
Symbol 11 GraphicUsed by:12 16 20 24 28 32 47 53 59 65 71 77 83 206
Symbol 12 MovieClip [b_13]Uses:5 10 11
Symbol 13 GraphicUsed by:16
Symbol 14 TextUses:8Used by:15
Symbol 15 MovieClipUses:6 7 14Used by:16
Symbol 16 MovieClip [b_10]Uses:13 15 11
Symbol 17 GraphicUsed by:20
Symbol 18 TextUses:8Used by:19
Symbol 19 MovieClipUses:6 7 18Used by:20
Symbol 20 MovieClip [b_15]Uses:17 19 11
Symbol 21 GraphicUsed by:24
Symbol 22 TextUses:8Used by:23
Symbol 23 MovieClipUses:6 7 22Used by:24
Symbol 24 MovieClip [b_14]Uses:21 23 11
Symbol 25 GraphicUsed by:28
Symbol 26 TextUses:8Used by:27
Symbol 27 MovieClipUses:6 7 26Used by:28
Symbol 28 MovieClip [b_12]Uses:25 27 11
Symbol 29 GraphicUsed by:32
Symbol 30 TextUses:8Used by:31
Symbol 31 MovieClipUses:6 7 30Used by:32
Symbol 32 MovieClip [b_11]Uses:29 31 11
Symbol 33 GraphicUsed by:37
Symbol 34 TextUses:8Used by:35
Symbol 35 MovieClipUses:6 7 34Used by:37
Symbol 36 GraphicUsed by:37 41
Symbol 37 MovieClip [b_9]Uses:33 35 36
Symbol 38 GraphicUsed by:41
Symbol 39 TextUses:8Used by:40
Symbol 40 MovieClipUses:6 7 39Used by:41
Symbol 41 MovieClip [b_8]Uses:38 40 36
Symbol 42 GraphicUsed by:47
Symbol 43 ShapeTweeningUsed by:46
Symbol 44 TextUses:8Used by:46
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:6 43 7 44 45Used by:47
Symbol 47 MovieClip [b_7]Uses:42 46 11
Symbol 48 GraphicUsed by:53
Symbol 49 ShapeTweeningUsed by:52
Symbol 50 TextUses:8Used by:52
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:6 49 7 50 51Used by:53
Symbol 53 MovieClip [b_6]Uses:48 52 11
Symbol 54 GraphicUsed by:59
Symbol 55 ShapeTweeningUsed by:58
Symbol 56 TextUses:8Used by:58
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:6 55 7 56 57Used by:59
Symbol 59 MovieClip [b_5]Uses:54 58 11
Symbol 60 GraphicUsed by:65
Symbol 61 ShapeTweeningUsed by:64
Symbol 62 TextUses:8Used by:64
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:6 61 7 62 63Used by:65
Symbol 65 MovieClip [b_4]Uses:60 64 11
Symbol 66 GraphicUsed by:71
Symbol 67 ShapeTweeningUsed by:70
Symbol 68 TextUses:8Used by:70
Symbol 69 GraphicUsed by:70
Symbol 70 MovieClipUses:6 67 7 68 69Used by:71
Symbol 71 MovieClip [b_3]Uses:66 70 11
Symbol 72 GraphicUsed by:77
Symbol 73 ShapeTweeningUsed by:76
Symbol 74 TextUses:8Used by:76
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:6 73 7 74 75Used by:77
Symbol 77 MovieClip [b_2]Uses:72 76 11
Symbol 78 GraphicUsed by:83
Symbol 79 ShapeTweeningUsed by:82
Symbol 80 TextUses:8Used by:82
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:6 79 7 80 81Used by:83
Symbol 83 MovieClip [b_1]Uses:78 82 11
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClip [b_0]Uses:84
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:86Used by:88
Symbol 88 MovieClipUses:87Used by:89 90
Symbol 89 MovieClip [cue_R]Uses:88
Symbol 90 MovieClip [cue_2]Uses:88
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:93
Symbol 93 MovieClipUses:92Used by:94
Symbol 94 MovieClip [cue_1]Uses:93
Symbol 95 MovieClip [game_straight]
Symbol 96 MovieClip [game_8balls]
Symbol 97 GraphicUsed by:Timeline
Symbol 98 GraphicUsed by:137
Symbol 99 GraphicUsed by:137
Symbol 100 GraphicUsed by:137
Symbol 101 GraphicUsed by:137
Symbol 102 GraphicUsed by:137
Symbol 103 GraphicUsed by:137
Symbol 104 GraphicUsed by:137
Symbol 105 GraphicUsed by:137
Symbol 106 GraphicUsed by:137
Symbol 107 GraphicUsed by:137
Symbol 108 GraphicUsed by:137
Symbol 109 GraphicUsed by:137
Symbol 110 GraphicUsed by:137
Symbol 111 GraphicUsed by:137
Symbol 112 GraphicUsed by:137
Symbol 113 GraphicUsed by:137
Symbol 114 GraphicUsed by:137
Symbol 115 GraphicUsed by:137
Symbol 116 GraphicUsed by:137
Symbol 117 GraphicUsed by:137
Symbol 118 GraphicUsed by:137
Symbol 119 GraphicUsed by:137
Symbol 120 GraphicUsed by:137
Symbol 121 GraphicUsed by:137
Symbol 122 GraphicUsed by:137
Symbol 123 GraphicUsed by:137
Symbol 124 GraphicUsed by:137
Symbol 125 GraphicUsed by:137
Symbol 126 GraphicUsed by:137
Symbol 127 GraphicUsed by:137
Symbol 128 GraphicUsed by:137
Symbol 129 GraphicUsed by:137
Symbol 130 GraphicUsed by:137
Symbol 131 GraphicUsed by:137
Symbol 132 GraphicUsed by:137
Symbol 133 GraphicUsed by:137
Symbol 134 GraphicUsed by:137
Symbol 135 GraphicUsed by:137
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136Used by:Timeline
Symbol 138 GraphicUsed by:142 228
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:139Used by:142
Symbol 141 GraphicUsed by:142 161 223
Symbol 142 MovieClipUses:138 140 141Used by:157  Timeline
Symbol 143 SoundUsed by:144
Symbol 144 MovieClipUses:143Used by:Timeline
Symbol 145 FontUsed by:146 208 209 214 215 219
Symbol 146 EditableTextUses:145Used by:154
Symbol 147 GraphicUsed by:148 178
Symbol 148 ButtonUses:147Used by:154  Timeline
Symbol 149 GraphicUsed by:154  Timeline
Symbol 150 FontUsed by:151 199
Symbol 151 TextUses:150Used by:154  Timeline
Symbol 152 FontUsed by:153
Symbol 153 TextUses:152Used by:154
Symbol 154 MovieClipUses:146 148 149 151 153Used by:Timeline
Symbol 155 GraphicUsed by:157
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClipUses:155 142 156Used by:Timeline
Symbol 158 GraphicUsed by:161
Symbol 159 GraphicUsed by:161
Symbol 160 SoundUsed by:161 185
Symbol 161 ButtonUses:158 141 159 160Used by:Timeline
Symbol 162 FontUsed by:163 164 165 166 167 168 174 175 186 187 198
Symbol 163 TextUses:162Used by:Timeline
Symbol 164 TextUses:162Used by:Timeline
Symbol 165 TextUses:162Used by:Timeline
Symbol 166 TextUses:162Used by:Timeline
Symbol 167 TextUses:162Used by:Timeline
Symbol 168 TextUses:162Used by:Timeline
Symbol 169 FontUsed by:170
Symbol 170 TextUses:169Used by:Timeline
Symbol 171 FontUsed by:172 173
Symbol 172 TextUses:171Used by:Timeline
Symbol 173 TextUses:171Used by:Timeline
Symbol 174 TextUses:162Used by:Timeline
Symbol 175 TextUses:162Used by:Timeline
Symbol 176 GraphicUsed by:180 182
Symbol 177 GraphicUsed by:180
Symbol 178 ButtonUses:147Used by:180 182
Symbol 179 GraphicUsed by:180 182
Symbol 180 MovieClipUses:176 177 178 179Used by:Timeline
Symbol 181 GraphicUsed by:182
Symbol 182 MovieClipUses:176 181 178 179Used by:Timeline
Symbol 183 GraphicUsed by:185
Symbol 184 GraphicUsed by:185
Symbol 185 ButtonUses:183 184 160Used by:Timeline
Symbol 186 TextUses:162Used by:Timeline
Symbol 187 TextUses:162Used by:Timeline
Symbol 188 FontUsed by:189 190 207 210 211 216 217 220 224 225
Symbol 189 EditableTextUses:188Used by:Timeline
Symbol 190 EditableTextUses:188Used by:Timeline
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:191Used by:230
Symbol 193 BitmapUsed by:194
Symbol 194 GraphicUses:193Used by:200
Symbol 195 GraphicUsed by:200
Symbol 196 GraphicUsed by:200
Symbol 197 GraphicUsed by:200
Symbol 198 TextUses:162Used by:200
Symbol 199 TextUses:150Used by:200
Symbol 200 MovieClipUses:194 195 196 197 198 199Used by:230
Symbol 201 GraphicUsed by:221
Symbol 202 GraphicUsed by:206
Symbol 203 GraphicUsed by:206
Symbol 204 GraphicUsed by:206
Symbol 205 GraphicUsed by:206
Symbol 206 MovieClipUses:202 203 6 204 11 205Used by:221
Symbol 207 EditableTextUses:188Used by:221
Symbol 208 EditableTextUses:145Used by:221
Symbol 209 EditableTextUses:145Used by:221
Symbol 210 EditableTextUses:188Used by:221
Symbol 211 EditableTextUses:188Used by:221
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClipUses:212Used by:221
Symbol 214 EditableTextUses:145Used by:221
Symbol 215 EditableTextUses:145Used by:221
Symbol 216 EditableTextUses:188Used by:221
Symbol 217 EditableTextUses:188Used by:221
Symbol 218 GraphicUsed by:221
Symbol 219 EditableTextUses:145Used by:221
Symbol 220 EditableTextUses:188Used by:221
Symbol 221 MovieClipUses:201 206 207 208 209 210 211 213 214 215 216 217 218 219 220Used by:230
Symbol 222 GraphicUsed by:223
Symbol 223 MovieClipUses:141 222Used by:229
Symbol 224 EditableTextUses:188Used by:229
Symbol 225 EditableTextUses:188Used by:229
Symbol 226 SoundUsed by:229
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClipUses:138 227Used by:229
Symbol 229 MovieClipUses:223 224 225 226 228Used by:230
Symbol 230 MovieClipUses:192 200 221 229Used by:Timeline

Instance Names

"progress_bar"Frame 1Symbol 137 MovieClip
"pool_logo"Frame 1Symbol 142 MovieClip
"mus"Frame 2Symbol 144 MovieClip
"adverts"Frame 2Symbol 154 MovieClip
"b1"Frame 3Symbol 161 Button
"b2"Frame 3Symbol 161 Button
"b4"Frame 3Symbol 161 Button
"b5"Frame 3Symbol 161 Button
"b3"Frame 3Symbol 161 Button
"main"Frame 4Symbol 230 MovieClip
"wheel"Symbol 12 MovieClip [b_13] Frame 1Symbol 10 MovieClip
"wheel"Symbol 16 MovieClip [b_10] Frame 1Symbol 15 MovieClip
"wheel"Symbol 20 MovieClip [b_15] Frame 1Symbol 19 MovieClip
"wheel"Symbol 24 MovieClip [b_14] Frame 1Symbol 23 MovieClip
"wheel"Symbol 28 MovieClip [b_12] Frame 1Symbol 27 MovieClip
"wheel"Symbol 32 MovieClip [b_11] Frame 1Symbol 31 MovieClip
"wheel"Symbol 37 MovieClip [b_9] Frame 1Symbol 35 MovieClip
"wheel"Symbol 41 MovieClip [b_8] Frame 1Symbol 40 MovieClip
"wheel"Symbol 47 MovieClip [b_7] Frame 1Symbol 46 MovieClip
"wheel"Symbol 53 MovieClip [b_6] Frame 1Symbol 52 MovieClip
"wheel"Symbol 59 MovieClip [b_5] Frame 1Symbol 58 MovieClip
"wheel"Symbol 65 MovieClip [b_4] Frame 1Symbol 64 MovieClip
"wheel"Symbol 71 MovieClip [b_3] Frame 1Symbol 70 MovieClip
"wheel"Symbol 77 MovieClip [b_2] Frame 1Symbol 76 MovieClip
"wheel"Symbol 83 MovieClip [b_1] Frame 1Symbol 82 MovieClip
"ins"Symbol 88 MovieClip Frame 1Symbol 87 MovieClip
"cue"Symbol 89 MovieClip [cue_R] Frame 1Symbol 88 MovieClip
"cue"Symbol 90 MovieClip [cue_2] Frame 1Symbol 88 MovieClip
"ins"Symbol 93 MovieClip Frame 1Symbol 92 MovieClip
"cue"Symbol 94 MovieClip [cue_1] Frame 1Symbol 93 MovieClip
"tx"Symbol 154 MovieClip Frame 1Symbol 146 EditableText
"pool_logo"Symbol 157 MovieClip Frame 1Symbol 142 MovieClip
"bts"Symbol 180 MovieClip Frame 1Symbol 178 Button
"bts"Symbol 182 MovieClip Frame 1Symbol 178 Button
"balltype1"Symbol 221 MovieClip Frame 1Symbol 206 MovieClip
"balltype2"Symbol 221 MovieClip Frame 1Symbol 206 MovieClip
"crr1"Symbol 221 MovieClip Frame 1Symbol 213 MovieClip
"crr2"Symbol 221 MovieClip Frame 1Symbol 213 MovieClip
"subc3"Symbol 230 MovieClip Frame 1Symbol 192 MovieClip
"subc2"Symbol 230 MovieClip Frame 1Symbol 192 MovieClip
"subc1"Symbol 230 MovieClip Frame 1Symbol 192 MovieClip
"subc4"Symbol 230 MovieClip Frame 1Symbol 192 MovieClip
"subc5"Symbol 230 MovieClip Frame 1Symbol 192 MovieClip
"subc6"Symbol 230 MovieClip Frame 1Symbol 192 MovieClip
"table"Symbol 230 MovieClip Frame 1Symbol 200 MovieClip
"controls"Symbol 230 MovieClip Frame 1Symbol 221 MovieClip
"winner"Symbol 230 MovieClip Frame 1Symbol 229 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 1 as "loose"
ExportAssets (56)Timeline Frame 1Symbol 2 as "bordkick"
ExportAssets (56)Timeline Frame 1Symbol 3 as "kick"
ExportAssets (56)Timeline Frame 1Symbol 4 as "keykick"
ExportAssets (56)Timeline Frame 1Symbol 12 as "b_13"
ExportAssets (56)Timeline Frame 1Symbol 16 as "b_10"
ExportAssets (56)Timeline Frame 1Symbol 20 as "b_15"
ExportAssets (56)Timeline Frame 1Symbol 24 as "b_14"
ExportAssets (56)Timeline Frame 1Symbol 28 as "b_12"
ExportAssets (56)Timeline Frame 1Symbol 32 as "b_11"
ExportAssets (56)Timeline Frame 1Symbol 37 as "b_9"
ExportAssets (56)Timeline Frame 1Symbol 41 as "b_8"
ExportAssets (56)Timeline Frame 1Symbol 47 as "b_7"
ExportAssets (56)Timeline Frame 1Symbol 53 as "b_6"
ExportAssets (56)Timeline Frame 1Symbol 59 as "b_5"
ExportAssets (56)Timeline Frame 1Symbol 65 as "b_4"
ExportAssets (56)Timeline Frame 1Symbol 71 as "b_3"
ExportAssets (56)Timeline Frame 1Symbol 77 as "b_2"
ExportAssets (56)Timeline Frame 1Symbol 83 as "b_1"
ExportAssets (56)Timeline Frame 1Symbol 85 as "b_0"
ExportAssets (56)Timeline Frame 1Symbol 89 as "cue_R"
ExportAssets (56)Timeline Frame 1Symbol 90 as "cue_2"
ExportAssets (56)Timeline Frame 1Symbol 94 as "cue_1"
ExportAssets (56)Timeline Frame 1Symbol 95 as "game_straight"
ExportAssets (56)Timeline Frame 1Symbol 96 as "game_8balls"

Labels

"menu"Frame 3
"game"Frame 4
"run"Symbol 87 MovieClip Frame 3
"kick"Symbol 87 MovieClip Frame 25
"kick"Symbol 92 MovieClip Frame 24

Dynamic Text Variables

game_nameSymbol 189 EditableText""
game_nameSymbol 190 EditableText""
score1Symbol 207 EditableText"0"
_root.playername1Symbol 208 EditableText"Player 1"
_root.playername2Symbol 209 EditableText"Player 2"
score1Symbol 210 EditableText"0"
score2Symbol 211 EditableText"0"
_root.playername1Symbol 214 EditableText"Player 1"
_root.playernameRSymbol 215 EditableText"Computer"
score1Symbol 216 EditableText"0"
score2Symbol 217 EditableText"0"
_root.playername1Symbol 219 EditableText"Player 1"
score1Symbol 220 EditableText"0"
winnerNameSymbol 224 EditableText""
winnerNameSymbol 225 EditableText""




http://swfchan.com/24/116930/info.shtml
Created: 8/3 -2019 08:59:52 Last modified: 8/3 -2019 08:59:52 Server time: 22/12 -2024 11:58:49