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

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

Poker Pool 5.swf

This is the info page for
Flash #216042

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


Text
0

0

0

0

0

V.1.0

Video data
receiving...

....................

HELP

HELP

PLAY

PLAY

PLAY
WITHOUT
VIDEO

PLAY
WITHOUT
VIDEO

If video still have not
uploaded, you may play
the game without video

6

7

8

9

10

5

4

3

2

A

J

Q

K

6

7

8

9

10

5

4

3

2

A

J

Q

K

0

0

9

Play Poker on a Billiard table.
Babe will be your opponent

Play Poker on a Billiard table.
Babe will be your opponent

Poker on a Billiard

PokerPool 5

PokerPool 5

PokerPool 5

- Royal Flush - is a hand that contains an ace-high five cards in sequence, all of the same suit. Such as A♦ K♦ Q♦ J♦ 10♦.
- Straight Flush - contains five cards in sequence, all of the same suit. Such as Q♣ J♣ 10♣ 9♣ 8♣.
- Four of a Kind - contains all four cards of one rank. Such as 9♣ 9♠ 9♦ 9♥ J♥.
- Full House - contains three matching cards of one rank and two matching cards of another rank. Such as 3♣ 3♠ 3♦ 6♣ 6♥.
- Flush - where all five cards are of the same suit, but not in sequence. Such as Q♣ 10♣ 7♣ 6♣ 4♣.
- Straight - contains five cards of sequential rank in at least two different suits. Such as Q♣ J♠ 10♠ 9♥ 8♥.
- Three of a Kind - contains three cards of the same rank. Such as 2♦ 2♠ 2♣ K♠ 6♥.
- Two Pairs - contains two cards of the same rank, plus two cards of another same rank. Such as J♥ J♣ 4♣ 4♠ 9♥.
- Two of a Kind - contains two cards of same rank. Such as 4♥ 4♠ K♠ 10♦ 5♠.
- Ace (King, etc..) High - if no any listed combinations, the higher card defines the combination. Such as A♠ 10♦ 5♠ 4♥ 2♠

Poker combinations:

52 cards are placed at 52 pockets of the Poker-Pool table. You receive 5 cards to your hand at right side.
Opponent's hand is at left.
You may discard up to 5 cards, or save your current combination.  To discard - click on "DISCARD" button.
To save combination  click on "SAVE" button.  When you save your combination - the opponent's turn. After
the opponent have finished his discard and have saved his combination, the game compares your combinations.
How to discard:
Click on DISCARD button. 5 balls - analogues to your cards appear on a billiard table. Each ball has the same
suit and value of the corresponding card. Put the ball-card, that you want to discard, to the pocket with the card
that you want to receive at your hand.  When you see that your combination is good enough - click on the
SAVE  button. Then - opponent's turn.
If your combination is higher than opponent's, you win the set and go to the next level, and your opponent
strips.  Try to get her totally naked.
Aim and hit with mouse.      Hit power may be adjusted with Arrow keys: Up-Down (Higher-Lower).

Note:   If the "PLAY" button is not visible - it means, that game is waiting to receive the video data.
Wait till video data will be received, and the "PLAY" button will appear.

It is a sequel to

PokerPool-2

PokerPool

,

&

PokerPool-3

PokerPool-4

More Games

More Games

More Games

LOADING...

YOU

OPP

YOU PLAY

YOU PLAY

OPP PLAYS

OPP PLAYS

HIT POWER

0

LEVEL

Oops! Level Down!....

Oops! Level Down!....

Congrats! - Next Level

END

END

SOUND

OFF

ON

PLAY MORE

PLAY MORE

MORE GAMES

NEXT

NEXT

DISCARD

DISCARD

SAVE

SAVE

9

9

9

MORE OF HER

MORE OF HER

YOU WIN !

YOU WIN !

YOU LOSE!...

YOU LOSE!...

52 cards are placed at 52 pockets of the Poker-Pool table. You receive 5 cards to your hand at right side.
Opponent's hand is at left.
You may discard up to 5 cards, or save your current combination.  To discard - click on "DISCARD" button.
To save combination  click on "SAVE" button.  When you save your combination - the opponent's turn. After
the opponent have finished his discard and have saved his combination, the game compares your
combinations.
How to discard:
Click on DISCARD button. 5 balls - analogues to your cards appear on a billiard table. Each ball has the same
suit and value of the corresponding card. Put the ball-card, that you want to discard, to the pocket with the card
that you want to receive at your hand.  When you see that your combination is good enough - click on the
SAVE  button. Then - opponent's turn.
If your combination is higher than opponent's, you win the set and go to the next level, and your opponent
strips.  Try to get her totally naked.
Aim and hit with mouse.     Hit power may be adjusted with Arrow keys: Up-Down (Higher-Lower).

ActionScript [AS1/AS2]

Frame 1
function randomarray() { var _local3 = new Array(ArrLim); var _local5 = ArrLim; var _local4; var _local2; var _local1; _local2 = 1; while (_local2 <= ArrLim) { _local3[_local2] = _local2; _local2++; } _local2 = 1; while (_local2 <= ArrLim) { _local4 = randRange(1, _local5); RND[_local2] = _local3[_local4]; _local5--; _local1 = _local4; while (_local1 < ArrLim) { _local3[_local1] = _local3[_local1 + 1]; _local1++; } _local2++; } } function randRange(min, max) { var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min; return(_local1); } var introflag = true; var VictoryLevel = 10; var FirstLaunch = true; var highscore1 = 0; var highscore2 = 0; var Differscr = -100; var NewDiffer = 0; var gamecnt = 0; var WhoWin = 2; var PrevWhoWin = 2; var LEVEL = 1; var Surrend = true; var ListnCnt = 0; var cc = 0; Mouse.show(); var StringID = "2201"; var GirlID = StringID; var picNStr; var picaddr; var picFonAdr; var CueNames = new Array(15); var CueTimes = new Array(15); var CueStr = ""; var TimStr = ""; var FLVwidth; var FLVheight; var videoFlvAddr = ""; var CuePercent = new Array(15); var CueBytes = new Array(15); var prcLoaded; var Last_i = 0; var FLVBytesTotal; var VideoTimeTotal; var StrCut = ""; var bytesStr = ""; var LevJumpFlag = false; var X_start; var Bar_start = PogrBar_mc.barMask_mc._x; var pctLoaded = 0; var cardquant = 52; var GroveArr = new Array(55); Rules_mc._visible = false; play_btn._visible = false; WVideo_btn._visible = false; Testdata_mc._visible = false; BallRed1_mc.numRoll_mc.numMov_mc.Val_txt.text = "A"; BallRed2_mc.numRoll_mc.numMov_mc.Val_txt.text = "K"; BallRed3_mc.numRoll_mc.numMov_mc.Val_txt.text = "Q"; BallRed4_mc.numRoll_mc.numMov_mc.Val_txt.text = "J"; BallRed5_mc.numRoll_mc.numMov_mc.Val_txt.text = "10"; stop(); DotsReceive_mc.setMask(DotsShade_mc); DotsShade_mc._x = DotsReceive_mc._x; DotsShade_mc.onEnterFrame = function () { if (this._x <= (DotsReceive_mc._x + DotsReceive_mc._width)) { this._x++; } else { this._x = DotsReceive_mc._x; } }; Dark_mc.onEnterFrame = function () { if (this._alpha > 0) { this._alpha = this._alpha - 1; } if (this._alpha <= 30) { if (kolodaFlag == 0) { kolodaFlag = 1; } } cc++; if (cc > 250) { if (!play_btn._visible) { WVideo_btn._visible = true; } } }; j = 1; while (j <= cardquant) { GroveArr[j] = Groove00_mc.duplicateMovieClip("gr" + j, 200 + j); GroveArr[j].FILLED = false; if (j <= 16) { GroveArr[j]._x = CpointTop_mc._x + (40 * j); GroveArr[j]._y = CpointTop_mc._y - 16; } if ((j > 16) && (j <= 26)) { GroveArr[j]._x = ((CpointTop_mc._x + 16) - 4) + 680; GroveArr[j]._y = ((CpointBtm_mc._y + 3) - 440) + (40 * (j - 16)); GroveArr[j]._rotation = 90; } if ((j > 26) && (j <= 42)) { GroveArr[j]._x = CpointTop_mc._x + (40 * (43 - j)); GroveArr[j]._y = CpointBtm_mc._y - 16; } if (j > 42) { GroveArr[j]._x = (CpointTop_mc._x + 16) + 3; GroveArr[j]._y = (CpointTop_mc._y - 3) + (40 * (53 - j)); GroveArr[j]._rotation = 90; } j++; } Groove00_mc._x = -100; Groove00_mc._visible = false; var kolodaFlag = 0; var ArrLim = 52; var RND = new Array(53); var Kld = 1; var cardval; var takemast; var kolodaOst = new Array(53); var cardquant = 52; var koloda = new Array(53); koloda[1] = bubnaA_mc; koloda[2] = bubna2_mc; koloda[3] = bubna3_mc; koloda[4] = bubna4_mc; koloda[5] = bubna5_mc; koloda[6] = bubna6_mc; koloda[7] = bubna7_mc; koloda[8] = bubna8_mc; koloda[9] = bubna9_mc; koloda[10] = bubna10_mc; koloda[11] = bubnaJ_mc; koloda[12] = bubnaQ_mc; koloda[13] = bubnaK_mc; koloda[14] = ChervaA_mc; koloda[15] = Cherva2_mc; koloda[16] = Cherva3_mc; koloda[17] = Cherva4_mc; koloda[18] = Cherva5_mc; koloda[19] = Cherva6_mc; koloda[20] = Cherva7_mc; koloda[21] = Cherva8_mc; koloda[22] = Cherva9_mc; koloda[23] = Cherva10_mc; koloda[24] = ChervaJ_mc; koloda[25] = ChervaQ_mc; koloda[26] = ChervaK_mc; koloda[27] = PikaA_mc; koloda[28] = Pika2_mc; koloda[29] = Pika3_mc; koloda[30] = Pika4_mc; koloda[31] = Pika5_mc; koloda[32] = Pika6_mc; koloda[33] = Pika7_mc; koloda[34] = Pika8_mc; koloda[35] = Pika9_mc; koloda[36] = Pika10_mc; koloda[37] = PikaJ_mc; koloda[38] = PikaQ_mc; koloda[39] = PikaK_mc; koloda[40] = TrefaA_mc; koloda[41] = Trefa2_mc; koloda[42] = Trefa3_mc; koloda[43] = Trefa4_mc; koloda[44] = Trefa5_mc; koloda[45] = Trefa6_mc; koloda[46] = Trefa7_mc; koloda[47] = Trefa8_mc; koloda[48] = Trefa9_mc; koloda[49] = Trefa10_mc; koloda[50] = TrefaJ_mc; koloda[51] = TrefaQ_mc; koloda[52] = TrefaK_mc; Groove00_mc.onEnterFrame = function () { if (kolodaFlag == 1) { randomarray(); Kld = 1; inPoket = 0; i = 1; while (i <= cardquant) { kolodaOst[i] = koloda[RND[i]]; kolodaOst[i].Body_mc.Fon_mc._visible = true; kolodaOst[i]._visible = false; cardval = RND[i] % 13; if (cardval == 0) { cardval = 13; } takemast = Math.floor(RND[i] / 13) + 1; if ((RND[i] % 13) == 0) { takemast = Math.floor(RND[i] / 13); } kolodaOst[i].VALUE = cardValueAr[cardval - 1]; kolodaOst[i].MAST = takemast; kolodaOst[i].SRTD = false; kolodaOst[i].DSCRD = false; kolodaOst[i].FallFlag = false; i++; } kolodaFlag = 2; } if (kolodaFlag == 2) { if (Kld <= 16) { kolodaOst[Kld]._x = GroveArr[Kld]._x; kolodaOst[Kld]._y = GroveArr[Kld]._y; kolodaOst[Kld]._rotation = 0; } if ((Kld > 16) && (Kld <= 26)) { kolodaOst[Kld]._x = GroveArr[Kld]._x; kolodaOst[Kld]._y = GroveArr[Kld]._y; kolodaOst[Kld]._rotation = 90; } if ((Kld > 26) && (Kld <= 42)) { kolodaOst[Kld]._x = GroveArr[Kld]._x; kolodaOst[Kld]._y = GroveArr[Kld]._y + 32; kolodaOst[Kld]._rotation = 0; } if (Kld > 42) { kolodaOst[Kld]._x = GroveArr[Kld]._x - 32; kolodaOst[Kld]._y = GroveArr[Kld]._y; kolodaOst[Kld]._rotation = -90; } kolodaOst[Kld]._visible = true; kolodaOst[Kld].Body_mc.Fon_mc._visible = true; Kld++; if (Kld > cardquant) { Kld = 0; } } }; if (FirstLaunch) { FirstLaunch = false; var my_flvPb; videoFlvAddr = "http://www.game-videos.info/Vids/PokerPool_Niki/LolaDildo01.flv"; my_flvPb.__set__contentPath(videoFlvAddr); } var listenerObject1 = new Object(); listenerObject1.cuePoint = function (eventObject) { Testdata_mc.cues_txt.text = (("Cue: " + eventObject.info.time) + " ") + eventObject.info.name; Testdata_mc.S_txt.text = "S " + CueTimes[LEVEL]; Testdata_mc.E_txt.text = "E " + CueTimes[LEVEL + 1]; if (eventObject.info.time >= CueTimes[LEVEL + 1]) { my_flvPb.seekToNavCuePoint(CueTimes[LEVEL]); } }; my_flvPb.addEventListener("cuePoint", listenerObject1); var listenerObject2 = new Object(); listenerObject2.metadataReceived = function (eventObject) { var _local1 = 0; FLVwidth = my_flvPb.__get__metadata().width; FLVheight = my_flvPb.__get__metadata().height; FLVBytesTotal = my_flvPb.bytesTotal; my_flvPb._width = 640; my_flvPb._height = 400; while (_local1 < my_flvPb.__get__metadata().cuePoints.length) { CueNames[_local1 + 1] = my_flvPb.__get__metadata().cuePoints[_local1].name; CueTimes[_local1 + 1] = my_flvPb.__get__metadata().cuePoints[_local1].time; CueStr = (((CueStr + "\n ") + CueNames[_local1 + 1]) + " ") + CueTimes[_local1 + 1]; _local1++; } VictoryLevel = _local1 - 1; Last_i = _local1; VideoTimeTotal = CueTimes[_local1]; CueStr = (((CueStr + "\n W=") + my_flvPb._width) + " H=") + my_flvPb._height; Testdata_mc.cuesPts_txt.text = CueStr; play_btn._visible = true; WVideo_btn._visible = false; _local1 = 1; while (_local1 <= Last_i) { CuePercent[_local1] = (CueTimes[_local1] / VideoTimeTotal) * 100; CueBytes[_local1] = Math.round((FLVBytesTotal * CuePercent[_local1]) / 100); _local1++; } }; my_flvPb.addEventListener("metadataReceived", listenerObject2); play_btn.onRelease = function () { my_flvPb.removeEventListener("cuePoint", listenerObject1); play(); }; WVideo_btn.onRelease = function () { my_flvPb.removeEventListener("cuePoint", listenerObject1); play(); }; help_btn.onRelease = function () { Rules_mc._visible = !Rules_mc._visible; Story_mc._visible = false; }; SPP_btn.onRelease = function () { getURL ("http://www.hilostripper.com/Live/connectStrip.php", "_blank"); }; PokerPool_btn.onRelease = function () { getURL ("http://www.stripselector.com/GameGen.php?GameUrl=PokerPool", "_blank"); }; PokerPool2_btn.onRelease = function () { getURL ("http://www.stripselector.com/GameGen.php?GameUrl=PokerPool-2", "_blank"); }; PokerPool3_btn.onRelease = function () { getURL ("http://www.stripselector.com/GameGen.php?GameUrl=PokerPool-3", "_blank"); }; PokerPool4_btn.onRelease = function () { getURL ("http://www.stripselector.com/GameGen.php?GameUrl=PokerPool-4", "_blank"); }; PogrBar_mc.onEnterFrame = function () { pctLoaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); this.barMask_mc._x = Bar_start + ((this.barMask_mc._width / 100) * pctLoaded); if (pctLoaded >= 100) { help_btn._visible = true; LoadOK = true; this._visible = false; } };
Instance of Symbol 9 MovieClip [FLVPlayback] "my_flvPb" in Frame 1
//component parameters onClipEvent (construct) { autoPlay = true; autoRewind = true; autoSize = false; bufferTime = 0.1; contentPath = ""; cuePoints = ["t", 0, "n", "start1", "t", 2, "d", 0, "p", 0, "t", 20000, "n", "jump1", "t", 2, "d", 0, "p", 0, "t", 25000, "n", "jumpTo", "t", 2, "d", 0, "p", 0, "t", 55000, "n", "end1", "t", 2, "d", 0, "p", 0]; isLive = false; maintainAspectRatio = true; skin = ""; skinAutoHide = false; totalTime = 0; version_1_0_1 = ""; volume = 100; }
Frame 2
var TXTvals = new Array("0", "1", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE", "TEN", "JACK", "QUEEN", "KING", "ACE"); var TXTmast = new Array("0", "DIAMONDS", "HEARTS", "SPADES", "CLUBS"); var nothingAtAll = false; var wt7 = 0; var wt51 = 0; var pairVal = 0; var twoPairsVal = 0; var trixVal = 0; var quatroVal = 0; var pairsQnt = 0; var trixQnt = 0; var quatroQnt = 0; var nothing = true; var situaz = 0; var coinNew = new MovieClip(); var FlushMast = 0; var flushFlag = false; var RoyalFlushFlag = false; var straitFlushFlag = false; var straitFlag = false; var FHPairsQnt = 0; var FHTrizQnt = 0; var FullHouseFlag = false; var FHPairsVal = 0; var FHTrixVal = 0; var AllCoinsOut = false; var coinsLive = new Array(100); var StraightVals = new Array(15); var My_CardsVals = new Array(15); var OPP_pairVal = 0; var OPP_twoPairsVal = 0; var OPP_trixVal = 0; var OPP_quatroVal = 0; var OPP_pairsQnt = 0; var OPP_trixQnt = 0; var OPP_quatroQnt = 0; var OPP_nothing = true; var OPP_straitFlag = false; var OPP_flushFlag = false; var OPP_straitFlushFlag = false; var OPP_RoyalFlushFlag = false; var OPP_StraightVals = new Array(15); var OPP_CardsVals = new Array(15); var OPP_FHPairsQnt = 0; var OPP_FHTrizQnt = 0; var OPP_FullHouseFlag = false; var OPP_FHPairsVal = 0; var OPP_FHTrixVal = 0; var Cards = new Array(11); var FHAr2 = new Array(15); var OPP_Cards = new Array(11); var OPP_FHAr2 = new Array(15); var FHcnt = 0; var koef = 1; var OppKoef = 1; var BankInit = 100; var MyBank = BankInit; var BankOpp = BankInit; var Bet = 10; var pot = 0; var CK = 5; var coinsbank = 0; var MygameStep = 0; var OppgameStep = 0; var MyWin = 0; var wtLev = 0; var wtDwn = 0; var wtLoose = 0; var HiVal = 100; var LowVal = 0; var lowCards = new Array(6); var lowCardsMy = new Array(6); var DscrdQnt = 0; var NotChsn = true; var CardsCopy = new Array(6); var CombNoTouch = "NOTHING"; var Comb2ofKind = "TWO OF A KIND: "; var Comb2Pairs = "TWO PAIRS: "; var Comb3ofKind = "THREE OF A KIND: "; var Comb4ofKind = "FOUR OF A KIND: "; var Comb2Jacks = "TWO OF A KIND: "; var CombStraight = "STRAIGHT"; var CombFlush = "FLUSH: "; var CombFullHouse = "FULL HOUSE: "; var CombStraitFlush = "STRAIGHT FLUSH"; var CombRoyalFlush = "ROYAL FLUSH"; var CombNothing = "HIGH"; function initsetSmall() { Opp_BanComb_txt.text = ""; MyBanComb_txt.text = ""; CombShineOpp_mc._visible = false; CombShineMy_mc._visible = false; YouPlayBan_mc._visible = false; CompPlayBan_mc._visible = false; Conrgats_mc._visible = false; LevelDown_mc._visible = false; Touch = false; i = 1; while (i <= cardquant) { kolodaOst[i].Body_mc.Fon_mc._visible = true; i++; } GameStep = 0; } function initset() { ShePlayFirst = false; PL = 1; Kiy_mc._visible = false; i = 0; while (i < ballQ) { touch[i] = false; IncrMx[i] = 0; IncrMy[i] = 0; Incr[i] = 0; K[i] = 0; incr_x[i] = 0; incr_y[i] = 0; BallArr[i].myNum = i; BallArr[i].numRoll_mc._rotation = 0; BallArr[i]._alpha = 100; BallArr[i]._xscale = 100; BallArr[i]._yscale = BallArr[i]._xscale; DrebBord[i] = 0; DrebCnt[i] = 0; ballFlag[i] = true; dirAngle[i] = 0; BallArr[i].PLACED = 0; BallArr[i].OTSKOK = false; BallArr[i].CrdN = 0; i++; } BallArr[0].OTSKOK = true; ballOutCnt = 0; H = 0; B = 0; goalcnt1 = 0; goalcnt2 = 0; lev1 = 0; lev2 = 0; time = 0; gNMem = 1; wch = 0; WasGoal = false; Touch = false; chkYouComp = 0; WaitLastBall = false; aim_mc._alpha = 100; NextOff = false; LuzaSound_mc.gotoAndStop("lusastop"); BallSound_mc.gotoAndStop("stopSound"); Testdata_mc._visible = false; YouPlayBan_mc._visible = false; CompPlayBan_mc._visible = false; Next_btn._visible = false; MorePlay_btn._visible = false; help_mc._visible = false; YouWinGame_mc._visible = false; BillyWinGame_mc.gotoAndStop(1); BallsInGame = ballQ; SurD = 1; SurDY = 0; BSQ1 = 0; BSQ2 = 0; StartGame = true; winFlag = false; KiyHitFlag = 0; KiyHitOppFlag = 0; Conrgats_mc._visible = false; LevelDown_mc._visible = false; BlackJackFlag = false; wt48 = 0; SumMy = 0; SumOp = 0; MA = 0; i = 0; while (i < ballQ) { ResultsMy[i] = 0; ResultsOp[i] = 0; i++; } pairVal = 0; twoPairsVal = 0; trixVal = 0; quatroVal = 0; pairsQnt = 0; trixQnt = 0; quatroQnt = 0; nothing = true; straitFlag = false; flushFlag = false; straitFlushFlag = false; RoyalFlushFlag = false; OPP_pairVal = 0; OPP_twoPairsVal = 0; OPP_trixVal = 0; OPP_quatroVal = 0; OPP_pairsQnt = 0; OPP_trixQnt = 0; OPP_quatroQnt = 0; OPP_nothing = true; OPP_straitFlag = false; OPP_flushFlag = false; OPP_straitFlushFlag = false; OPP_RoyalFlushFlag = false; i = 0; while (i <= 15) { OPP_StraightVals[i] = 0; i++; } OPP_FHPairsQnt = 0; OPP_FHTrizQnt = 0; OPP_FullHouseFlag = false; OPP_FHPairsVal = 0; OPP_FHTrixVal = 0; i = 1; while (i <= 5) { OPP_Cards[i].pair = 0; OPP_Cards[i].tri = 0; OPP_Cards[i].quatro = 0; i++; } i = 0; while (i <= 14) { OPP_FHAr2[i] = 0; i++; } MygameStep = 0; OppgameStep = 0; wt7 = 0; wt51 = 0; OPP_flushFlag = false; OPP_straitHiVal = 0; straitHiVal = 0; OPP_FlushHiVal = 0; FlushHiVal = 0; Opp_BanComb_txt.text = ""; Opp_BanComb_txt._visible = false; MyBanComb_txt.text = ""; MyBanComb_txt._visible = false; OppCombBack_mc._visible = false; MyCombBack_mc._visible = false; MyWin = 0; wtLoose = 0; wtDwn = 0; wtLev = 0; LevChngFlag = false; CombShineOpp_mc._visible = false; CombShineMy_mc._visible = false; ScreenShow = true; GameStep = 0; j = 1; while (j <= cardquant) { GroveArr[j] = Groove00_mc.duplicateMovieClip("gr" + j, 200 + j); GroveArr[j].FILLED = false; if (j <= 16) { GroveArr[j]._x = CpointTop_mc._x + (40 * j); GroveArr[j]._y = CpointTop_mc._y - 16; } if ((j > 16) && (j <= 26)) { GroveArr[j]._x = ((CpointTop_mc._x + 16) - 4) + 680; GroveArr[j]._y = ((CpointBtm_mc._y + 3) - 440) + (40 * (j - 16)); GroveArr[j]._rotation = 90; } if ((j > 26) && (j <= 42)) { GroveArr[j]._x = CpointTop_mc._x + (40 * (43 - j)); GroveArr[j]._y = CpointBtm_mc._y - 16; } if (j > 42) { GroveArr[j]._x = (CpointTop_mc._x + 16) + 3; GroveArr[j]._y = (CpointTop_mc._y - 3) + (40 * (53 - j)); GroveArr[j]._rotation = 90; } j++; } Groove00_mc._x = -100; Groove00_mc._visible = false; inPoket = 0; give5cards = 0; DiscardMy_btn._visible = false; SaveMy_btn._visible = false; DiscardOpp_mc._visible = false; SaveOpp_mc._visible = false; CrdFallFlag = false; ballsPlayFlag = false; i = 1; while (i <= 5) { MyCrdPointsX[i] = myCrdPoint1_mc._x + ((i - 1) * 42); OppCrdPointsX[i] = OppCrdPoint1_mc._x + ((i - 1) * 42); i++; } } function aftertouch(u, v) { var _local5; var _local7; var _local8; var _local6; var _local4; var _local3; if (BallArr[v].hitTest(BallArr[u]._x, BallArr[u]._y, true)) { AlfaCalc(v, u); _local7 = Math.abs(BallArr[u]._x - BallArr[v]._x); _local8 = Math.abs(BallArr[u]._y - BallArr[v]._y); _local6 = Math.sqrt((_local7 * _local7) + (_local8 * _local8)); _local5 = DB - _local6; if (_local6 < DB) { _local5 = DB - _local6; _local4 = _local5 * Math.cos(alfa / 57.32); _local3 = _local5 * Math.sin(alfa / 57.32); _local4 = Math.abs(_local4) / 2; _local3 = Math.abs(_local3) / 2; if (BallArr[u]._x < BallArr[v]._x) { BallArr[u]._x = BallArr[u]._x - _local4; BallArr[v]._x = BallArr[v]._x + _local4; } else { BallArr[u]._x = BallArr[u]._x + _local4; BallArr[v]._x = BallArr[v]._x - _local4; } if (BallArr[u]._y < BallArr[v]._y) { BallArr[u]._y = BallArr[u]._y - _local3; BallArr[v]._y = BallArr[v]._y + _local3; } else { BallArr[u]._y = BallArr[u]._y + _local3; BallArr[v]._y = BallArr[v]._y - _local3; } } } } function detouch(w, ww) { touch[w] = false; touch_mc._x = Xm[w]; touch_mc._y = Ym[w]; k = 0; while (k <= (Incr[w] * 2)) { if (!touch[w]) { if (BallArr[ww].hitTest(touch_mc._x, touch_mc._y, true)) { touch[w] = true; BallArr[w]._x = touch_mc._x; BallArr[w]._y = touch_mc._y; kM = k; } touch_mc._x = touch_mc._x + Math.cos(dirAngle[w] / 57.32); touch_mc._y = touch_mc._y + Math.sin(dirAngle[w] / 57.32); } k++; } } function BB(n1, n2) { var _local4; var _local3; var _local6; var _local5; if ((Incr[n1] > 0) || (Incr[n2] > 0)) { BallSound_mc.gotoAndPlay(2); } if (BallArr[n1]._x < BallArr[n2]._x) { alfarad = Math.atan((BallArr[n2]._y - BallArr[n1]._y) / (BallArr[n2]._x - BallArr[n1]._x)); } else { alfarad = Math.atan((BallArr[n2]._y - BallArr[n1]._y) / (BallArr[n2]._x - BallArr[n1]._x)) - Math.PI; } alfa = (alfarad * 90) / 1.57; Gamma = alfa - dirAngle[n1]; if (Gamma > 360) { Gamma = Gamma - 360; } if (Gamma < -360) { Gamma = Gamma + 360; } if ((Gamma > 180) && (Gamma < 360)) { Gamma = -(360 - Gamma); } if (Gamma < -180) { Gamma = Gamma + 360; } Beta = (alfa + 180) + Gamma; OldDir = dirAngle[n1]; Omega = Beta - dirAngle[n1]; dirAngle[n1] = Beta; dirAngle[n1] = AngleTo360(dirAngle[n1]); IncrW = Incr[n1]; IncrW2 = Incr[n2]; CCos = Math.cos((Omega / 2) / 57.32); SSin = Math.sin((Omega / 2) / 57.32); if (Math.abs(CCos) < 0.14) { Incr[n1] = IncrW * 0.2; } else { Incr[n1] = IncrW * CCos; } if (Math.abs(SSin) < 0.14) { Incr[n2] = IncrW * 0.2; } else { Incr[n2] = IncrW * SSin; } Incr[n1] = Math.abs(Incr[n1]); Incr[n2] = Math.abs(Incr[n2]); dirAngle[n2] = OldDir + Gamma; dirAngle[n2] = AngleTo360(dirAngle[n2]); incr_x[n1] = Math.cos(dirAngle[n1] / 57.32) * Incr[n1]; incr_y[n1] = Math.sin(dirAngle[n1] / 57.32) * Incr[n1]; incr_x[n2] = Math.cos(dirAngle[n2] / 57.32) * Incr[n2]; incr_y[n2] = Math.sin(dirAngle[n2] / 57.32) * Incr[n2]; if ((dirAngle[n1] < 90) && (dirAngle[n1] > -90)) { LRdir[n1] = 1; } else { LRdir[n1] = -1; } BallArr[n1].numRoll_mc._rotation = dirAngle[n1]; if ((dirAngle[n2] < 90) && (dirAngle[n2] > -90)) { LRdir[n2] = 1; } else { LRdir[n2] = -1; } BallArr[n2].numRoll_mc._rotation = dirAngle[n2]; } function BBborder(n, i) { if (n == 1) { dirAngle[i] = 360 - dirAngle[i]; } if (n == 2) { dirAngle[i] = 180 - dirAngle[i]; } if (n == 3) { dirAngle[i] = 360 - dirAngle[i]; } if (n == 4) { dirAngle[i] = 180 - dirAngle[i]; } if (dirAngle[i] > 360) { dirAngle[i] = dirAngle[i] - 360; } if (dirAngle[i] < 0) { dirAngle[i] = dirAngle[i] + 360; } incr_x[i] = Math.cos(dirAngle[i] / 57.32) * Incr[i]; incr_y[i] = Math.sin(dirAngle[i] / 57.32) * Incr[i]; BallArr[i]._x = BallArr[i]._x + (incr_x[i] * 2); BallArr[i]._y = BallArr[i]._y + (incr_y[i] * 2); if (i > 0) { BallArr[i].OTSKOK = false; } if ((dirAngle[i] < 90) && (dirAngle[i] > -90)) { LRdir[i] = 1; } else { LRdir[i] = -1; } BallArr[i].numRoll_mc._rotation = dirAngle[i]; } function AngleTo360(ang) { dirAn_mc._rotation = ang; ang = dirAn_mc._rotation; return(ang); } function AlfaCalc(n1, n2) { if (BallArr[n1]._x < BallArr[n2]._x) { alfarad = Math.atan((BallArr[n2]._y - BallArr[n1]._y) / (BallArr[n2]._x - BallArr[n1]._x)); } else { alfarad = Math.atan((BallArr[n2]._y - BallArr[n1]._y) / (BallArr[n2]._x - BallArr[n1]._x)) - Math.PI; } alfa = (alfarad * 90) / 1.57; alfa = AngleTo360(alfa); } function checkBallY(p) { Mflag = 0; var _local1 = 0; while (_local1 <= (ballQ - 1)) { if (_local1 != p) { if (BallArr[_local1].body_mc.hitTest(BallArr[p].body_mc)) { M = _local1; Mflag++; } } _local1++; } if (Mflag > 0) { if (BallArr[p]._x < 600) { BallArr[p]._x = BallArr[M]._x + 50; } else { BallArr[p]._x = BallArr[M]._x - 50; } } } function checkBallX(p) { Mflag = 0; var _local1 = 0; while (_local1 <= (ballQ - 1)) { if (_local1 != p) { if (BallArr[_local1].body_mc.hitTest(BallArr[p].body_mc)) { M = _local1; Mflag++; } } _local1++; } if (Mflag > 0) { if (BallArr[p]._y < 360) { BallArr[p]._y = BallArr[M]._y + 50; } else { BallArr[p]._y = BallArr[M]._y - 50; } } } function searchAce(Ac) { var _local2; SmallerAngle = 180; k = 1; while (k <= cardquant) { if (kolodaOst[k].VALUE == Ac) { p = 1; while (p < ballQ) { if (BallArr[p].VALUE != wantedVal) { if (k <= 26) { Point1.x = GroveArr[k].pD_mc._x; Point1.y = GroveArr[k].pD_mc._y; GroveArr[k].localToGlobal(Point1); PDX = Point1.x; PDY = Point1.y; } else { Point1.x = GroveArr[k].pU_mc._x; Point1.y = GroveArr[k].pU_mc._y; GroveArr[k].localToGlobal(Point1); PDX = Point1.x; PDY = Point1.y; } if (BallArr[p]._x < PDX) { AlfaRad1 = Math.atan((BallArr[p]._y - PDY) / (BallArr[p]._x - PDX)); } else { AlfaRad1 = Math.atan((BallArr[p]._y - PDY) / (BallArr[p]._x - PDX)) - Math.PI; } Alfa1 = (AlfaRad1 * 90) / 1.57; if (Alfa1 < 0) { Alfa1 = Alfa1 + 360; } if (Angles[p] < 0) { Angles[p] = Angles[p] + 360; } if (Math.abs(Angles[p] - Alfa1) < SmallerAngle) { SmallerAngle = Math.abs(Angles[p] - Alfa1); if (ballFlag[p]) { if (!GroveArr[k].FILLED) { GA = p; TuzA = k; AngHoles[p] = Alfa1; } } } } p++; } } k++; } } function randomarray() { var _local3 = new Array(ArrLim); var _local5 = ArrLim; var _local4; var _local2; var _local1; _local2 = 1; while (_local2 <= ArrLim) { _local3[_local2] = _local2; _local2++; } _local2 = 1; while (_local2 <= ArrLim) { _local4 = randRange(1, _local5); RND[_local2] = _local3[_local4]; _local5--; _local1 = _local4; while (_local1 < ArrLim) { _local3[_local1] = _local3[_local1 + 1]; _local1++; } _local2++; } } function chs10cards() { var _local3 = new Array(ArrLim); var _local5 = ArrLim; var _local4; var _local2; var _local1; _local2 = 1; while (_local2 <= ArrLim) { _local3[_local2] = _local2; _local2++; } _local2 = 1; while (_local2 <= 10) { _local4 = randRange(1, _local5); rand10Arr[_local2] = _local3[_local4]; _local5--; _local1 = _local4; while (_local1 < ArrLim) { _local3[_local1] = _local3[_local1 + 1]; _local1++; } _local2++; } } function randRange(min, max) { var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min; return(_local1); } var GameTime = 5; var LevChngFlag = true; var time = 0; var limit = (GameTime * 60); var GameStep = 1; var StartGame = true; var nextRound = false; var sT = 0; var OldDiffer; var secstr; var minstr; var KiyTurn = false; var KiyClock = true; var wtK = 0; var Napr = new Array(); var Nr = 1; var SmallerAngle = 180; var GA = 0; var angPodstav; var NewDirAngle; var YouDirAngle; var CompPlay = false; var Kas = new Array(); var KasY = new Array(); var ChkHol = new Array(); var BallToAim = new Array(55); var BallToShoot = new Array(55); var Angles = new Array(); var AngHoles = new Array(); var DBF = new Array(); var HoleOK = new Array(); var HoleOK2 = new Array(); var AngHoles2 = new Array(); var BallFree = false; var PlayYou = false; var WasGoal = false; var chkYouComp = 0; var ballQ = 6; var freeOK = false; var STx = new Array(); var STy = new Array(); var StDx = 50; var StDy = 50; var LS = new Array(0, 0, 0, 0, 0, 0, 0); var u; var v; var k; var kM; var DB = 35; var cc = 0; var Seconds = 0; var Minutes = 0; var Timelim = 360; var winFlag = false; var incr_x = new Array(0, 0, 0, 0, 0, 0, 0); var incr_y = new Array(0, 0, 0, 0, 0, 0, 0); var lev1 = 0; var lev2 = 0; var Incr = new Array(0, 0, 0, 0, 0, 0); var IncrInit = 32; var DrebBord = new Array(0, 0, 0, 0, 0, 0); var DrebCnt = new Array(0, 0, 0, 0, 0, 0); var ballFlag = new Array(7); var BallArr = new Array(7); var dirAngle = new Array(0, 0, 0, 0, 0, 0, 0); var init_x = new Array(8); var init_y = new Array(8); var K = new Array(0, 0, 0, 0, 0, 0, 0); var alfarad = 0; var alfa = 0; var Beta = 0; var Gamma; var OldDir = 0; var Omega = 0; var koef1 = 0.99; var koef2 = 0.98; var MouseX; var MouseY; var wtTc = new Array(0, 0, 0, 0, 0, 0, 0); var wt = 0; var wtG = new Array(8); var i; var j; var e; var q; var p; var H = 0; var B = 0; var k; var M; var Mflag; var aimFlag = false; var Touch = false; var goalflag = 0; var goalcnt1 = 0; var goalcnt2 = 0; var ballOut = false; var ballOutCnt = 0; var PL = 1; var SfX = new Array(0, 6, -6); var Sf = new Array(0, 1, -1); var DX; var DY; var iX = new Array(8, 8, 8, 8, 8, 8, 8); var iY = new Array(8, 8, 8, 8, 8, 8, 8); var IncrMx = new Array(0, 0, 0, 0, 0, 0, 0); var IncrMy = new Array(0, 0, 0, 0, 0, 0, 0); var LuzSndFlag = true; var girlChangeFlag = false; var CCos; var SSin; var IncrW; var IncrW2; var Xm = new Array(); var Ym = new Array(); var touch = new Array(false, false, false, false, false, false, false); var razbros; var ShePlayFirst = false; BallArr[0] = BallWhite_mc; BallArr[1] = BallRed1_mc; BallArr[2] = BallRed2_mc; BallArr[3] = BallRed3_mc; BallArr[4] = BallRed4_mc; BallArr[5] = BallRed5_mc; var gNMem = 1; var wch = 0; var NextOff = false; var OldIncr = new Array(); var BallScrd1 = new Array(15); var BallScrd2 = new Array(15); var BallsInGame = ballQ; var WaitLastBall = false; var WBarr = new Array(15); var wtDL = new Array(8); var BSQ1 = 0; var BSQ2 = 0; var SurD = 1; var SurDY = 0; var KiyHitFlag = 0; var KiyHitOppFlag = 0; var cardnamesAr = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"); var cardValueAr = new Array(14, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13); var Display = new Array(53); var ySh = 0; var xSh = 0; var wt28 = 0; var wt48 = 0; var ScreenOff = 0; var ScreenShow = true; var BlackJackFlag = false; var CardMind = new Array(6); var ResultsMy = new Array(6); var ResultsOp = new Array(6); var SumMy = 0; var SumOp = 0; var cardval; var takemast; var ArrLim = 52; var RND = new Array(53); var kolodaFlag = 0; var Kld = 1; var force = 50; var MemAce = new Array(6); var MA = 0; var kolodaOst = new Array(53); var cardquant = 52; var koloda = new Array(53); koloda[1] = bubnaA_mc; koloda[2] = bubna2_mc; koloda[3] = bubna3_mc; koloda[4] = bubna4_mc; koloda[5] = bubna5_mc; koloda[6] = bubna6_mc; koloda[7] = bubna7_mc; koloda[8] = bubna8_mc; koloda[9] = bubna9_mc; koloda[10] = bubna10_mc; koloda[11] = bubnaJ_mc; koloda[12] = bubnaQ_mc; koloda[13] = bubnaK_mc; koloda[14] = ChervaA_mc; koloda[15] = Cherva2_mc; koloda[16] = Cherva3_mc; koloda[17] = Cherva4_mc; koloda[18] = Cherva5_mc; koloda[19] = Cherva6_mc; koloda[20] = Cherva7_mc; koloda[21] = Cherva8_mc; koloda[22] = Cherva9_mc; koloda[23] = Cherva10_mc; koloda[24] = ChervaJ_mc; koloda[25] = ChervaQ_mc; koloda[26] = ChervaK_mc; koloda[27] = PikaA_mc; koloda[28] = Pika2_mc; koloda[29] = Pika3_mc; koloda[30] = Pika4_mc; koloda[31] = Pika5_mc; koloda[32] = Pika6_mc; koloda[33] = Pika7_mc; koloda[34] = Pika8_mc; koloda[35] = Pika9_mc; koloda[36] = Pika10_mc; koloda[37] = PikaJ_mc; koloda[38] = PikaQ_mc; koloda[39] = PikaK_mc; koloda[40] = TrefaA_mc; koloda[41] = Trefa2_mc; koloda[42] = Trefa3_mc; koloda[43] = Trefa4_mc; koloda[44] = Trefa5_mc; koloda[45] = Trefa6_mc; koloda[46] = Trefa7_mc; koloda[47] = Trefa8_mc; koloda[48] = Trefa9_mc; koloda[49] = Trefa10_mc; koloda[50] = TrefaJ_mc; koloda[51] = TrefaQ_mc; koloda[52] = TrefaK_mc; var GroveArr = new Array(55); var inPoket = 0; var fillSpeed = 4; var TuzA; var test1flag = false; var Point1 = new Object(); var PDX; var PDY; var wantedVal = 10; var Surrend = 3; var ACES = new Array(6); ACES[1] = bubnaA_mc; ACES[2] = ChervaA_mc; ACES[3] = PikaA_mc; ACES[4] = TrefaA_mc; ACES[5] = TrefaK_mc; var ACESop = new Array(6); ACESop[1] = bubnaA_mc; ACESop[2] = ChervaA_mc; ACESop[3] = PikaA_mc; ACESop[4] = TrefaA_mc; ACESop[5] = Trefa2_mc; var give5cards = 0; var MyCrdPointsX = new Array(6); var OppCrdPointsX = new Array(6); var CrdFallFlag = false; var nb = 0; var wt5b = 0; var wtOpSv = 0; var wt2999 = 0; var ballsPlayFlag = false; var want2ndVal = 14; var LRdir = new Array(11); var BallsBubn = new Array(6); var BallsCher = new Array(6); var BallsPika = new Array(6); var BallsTref = new Array(6); BallsBubn[1] = BallBubna1_mc; BallsBubn[2] = BallBubna2_mc; BallsBubn[3] = BallBubna3_mc; BallsBubn[4] = BallBubna4_mc; BallsBubn[5] = BallBubna5_mc; BallsCher[1] = BallCherva1_mc; BallsCher[2] = BallCherva2_mc; BallsCher[3] = BallCherva3_mc; BallsCher[4] = BallCherva4_mc; BallsCher[5] = BallCherva5_mc; BallsPika[1] = BallPika1_mc; BallsPika[2] = BallPika2_mc; BallsPika[3] = BallPika3_mc; BallsPika[4] = BallPika4_mc; BallsPika[5] = BallPika5_mc; BallsTref[1] = BallTrefa1_mc; BallsTref[2] = BallTrefa2_mc; BallsTref[3] = BallTrefa3_mc; BallsTref[4] = BallTrefa4_mc; BallsTref[5] = BallTrefa5_mc; var NBub = 0; var NCher = 0; var NPik = 0; var NTrf = 0; var CrdsCopies = new Array(11); var CrdsCopiesOpp = new Array(11); levelUp3_mc.setMask(levMask3_mc); duplicateMovieClip (Kiy0_mc, "Kiy_mc", 300); duplicateMovieClip (Kiy02_mc, "Kiy2_mc", 301); Kiy0_mc._visible = false; Kiy02_mc._visible = false; Next_btn._visible = false; MorePlay_btn._visible = false; MoreHer_btn._visible = false; help_mc._visible = false; SoundOn_btn._visible = false; YouLose2_mc._visible = false; Kiy2_mc._visible = false; Testdata_mc._visible = false; KiyPower_mc.setMask(PowerMask_mc); var Force100 = PowerMask_mc._y; var Force0 = (PowerMask_mc._y + PowerMask_mc._height); PowerMask_mc._y = Force0 - ((PowerMask_mc._height / 100) * force); var myListener = new Object(); myListener.onKeyDown = function () { if (Kiy_mc._visible) { switch (Key.getCode()) { case 38 : if (force < 100) { force++; } break; case 40 : if (force <= 0) { break; } force--; } PowerMask_mc._y = Force0 - ((PowerMask_mc._height / 100) * force); } }; myListener.onKeyUp = function () { switch (Key.getCode()) { case 38 : return; case 40 : } }; Key.addListener(myListener); initset(); stop(); X_start = PercntBar_mc.barMask_mc._x; PercntBar_mc._visible = false; Testdata_mc.cuesPts_txt.text = CueStr; Testdata_mc.S_txt.text = "S " + CueTimes[LEVEL]; Testdata_mc.E_txt.text = "E " + CueTimes[LEVEL + 1]; Testdata_mc.ID_txt.text = IDmem; TV_mc.my_flvPb.contentPath = videoFlvAddr; var listenerObjectJmpBck = new Object(); listenerObjectJmpBck.cuePoint = function (eventObject) { Testdata_mc.cues_txt.text = (("Cue: " + eventObject.info.time) + " ") + eventObject.info.name; if (eventObject.info.time >= CueTimes[LEVEL + 1]) { TV_mc.my_flvPb.seekToNavCuePoint(CueTimes[LEVEL]); } }; TV_mc.my_flvPb.addEventListener("cuePoint", listenerObjectJmpBck); FLVlog_mc.onEnterFrame = function () { if (LevChngFlag) { LevChngFlag = false; TV_mc.my_flvPb.seekToNavCuePoint(CueTimes[LEVEL]); Testdata_mc.S_txt.text = "S " + CueTimes[LEVEL]; Testdata_mc.E_txt.text = "E " + CueTimes[LEVEL + 1]; } TimStr = TV_mc.my_flvPb.playheadTime.toString(); TimStr = TimStr.substring(0, 5); Testdata_mc.FLVtime_txt.text = "T " + TimStr; }; var approxAdd = 500000; PercntBar_mc.onEnterFrame = function () { Testdata_mc.levJump_txt.text = LevJumpFlag; if (LevJumpFlag) { this._visible = true; prcLoaded = Math.round((TV_mc.my_flvPb.bytesLoaded / (CueBytes[LEVEL] + approxAdd)) * 100); if (prcLoaded < 100) { PercntBar_mc.prcnt_txt.text = ("VIDEO STREAM LOADING " + prcLoaded) + "%"; PercntBar_mc.barMask_mc._x = X_start + ((PercntBar_mc.barMask_mc._width / 100) * prcLoaded); if (LevJumpFlag) { Next_btn._visible = false; } } else { PercntBar_mc.prcnt_txt.text = "VIDEO STREAM LOADING 100%"; PercntBar_mc.barMask_mc._x = X_start + ((PercntBar_mc.barMask_mc._width / 100) * 100); if (LevJumpFlag) { LevJumpFlag = false; if (LEVEL < VictoryLevel) { LevChngFlag = true; this._visible = false; } if (LEVEL == VictoryLevel) { if (prcLoaded >= 100) { this._visible = false; LevChngFlag = true; } } } } } }; BallsLogic_mc.onEnterFrame = function () { var _local1; var _local3; var _local2; if (ballsPlayFlag) { _local1 = 0; while (_local1 <= (ballQ - 1)) { if (ballFlag[_local1]) { Xm[_local1] = BallArr[_local1]._x; Ym[_local1] = BallArr[_local1]._y; OldIncr[_local1] = Incr[_local1]; BallArr[_local1]._x = BallArr[_local1]._x + incr_x[_local1]; BallArr[_local1]._y = BallArr[_local1]._y + incr_y[_local1]; } if (_local1 > 0) { _local2 = 1; while (_local2 <= cardquant) { if (!GroveArr[_local2].FILLED) { if (GroveArr[_local2].hitTest(BallArr[_local1]._x, BallArr[_local1]._y, true)) { BallArr[_local1].CrdN = _local2; ballFlag[_local1] = false; BallArr[_local1].numRoll_mc._rotation = 0; Incr[_local1] = 0; incr_x[_local1] = 0; incr_y[_local1] = 0; BallArr[_local1].PLACED = 1; if (_local2 <= 16) { BallArr[_local1]._x = kolodaOst[_local2]._x; incr_x[_local1] = 0; incr_y[_local1] = -fillSpeed; } if ((_local2 > 16) && (_local2 <= 26)) { BallArr[_local1]._y = kolodaOst[_local2]._y; incr_x[_local1] = fillSpeed; incr_y[_local1] = 0; } if ((_local2 > 26) && (_local2 <= 42)) { BallArr[_local1]._x = kolodaOst[_local2]._x; incr_x[_local1] = 0; incr_y[_local1] = fillSpeed; } if (_local2 > 42) { BallArr[_local1]._y = kolodaOst[_local2]._y; incr_x[_local1] = -fillSpeed; incr_y[_local1] = 0; } kolodaOst[_local2].Body_mc.Fon_mc._visible = false; if (GameStep == 2) { Cards[_local1]._visible = false; Cards[_local1] = kolodaOst[_local2]; Cards[_local1].gdx = (MyCrdPointsX[_local1] - Cards[_local1]._x) / 25; Cards[_local1].gdy = (myCrdPoint1_mc._y - Cards[_local1]._y) / 25; } else { OPP_Cards[_local1]._visible = false; OPP_Cards[_local1] = kolodaOst[_local2]; OPP_Cards[_local1].gdx = (OppCrdPointsX[_local1] - OPP_Cards[_local1]._x) / 25; OPP_Cards[_local1].gdy = (OppCrdPoint1_mc._y - OPP_Cards[_local1]._y) / 25; } inPoket++; GroveArr[_local2].FILLED = true; } } else { BallArr[_local1].OTSKOK = true; } _local2++; } } if (ballFlag[_local1]) { if (BallArr[_local1].OTSKOK) { if (BallArr[_local1].body_mc.hitTest(borderUp_mc)) { DrebBord[1]++; if (DrebBord[1] <= 1) { BBborder(1, _local1); } } else { DrebBord[1] = 0; } if (BallArr[_local1].body_mc.hitTest(borderRt_mc)) { DrebBord[2]++; if (DrebBord[2] <= 1) { BBborder(2, _local1); } } else { DrebBord[2] = 0; } if (BallArr[_local1].body_mc.hitTest(borderDw_mc)) { DrebBord[3]++; if (DrebBord[3] <= 1) { BBborder(3, _local1); } } else { DrebBord[3] = 0; } if (BallArr[_local1].body_mc.hitTest(borderLf_mc)) { DrebBord[4]++; if (DrebBord[4] <= 1) { BBborder(4, _local1); } } else { DrebBord[4] = 0; } } } _local1++; } u = 0; while (u <= (ballQ - 1)) { if (ballFlag[u]) { v = 0; while (v <= (ballQ - 1)) { if (u != v) { if (OldIncr[u] > 0) { if (OldIncr[u] > OldIncr[v]) { if (BallArr[v].hitTest(BallArr[u]._x, BallArr[u]._y, true)) { detouch(u, v); if (kM != 0) { BB(u, v); BallArr[u]._x = BallArr[u]._x + incr_x[u]; BallArr[u]._y = BallArr[u]._y + incr_y[u]; } else { BallArr[u]._x = BallArr[u]._x + incr_x[u]; BallArr[u]._y = BallArr[u]._y + incr_y[u]; } aftertouch(u, v); Touch = true; } } } } v++; } } u++; } q = 0; while (q <= (ballQ - 1)) { if (ballFlag[q]) { p = 0; while (p <= (ballQ - 1)) { if (q != p) { if (BallArr[p].hitTest(BallArr[q]._x, BallArr[q]._y, true)) { aftertouch(q, p); } } p++; } } q++; } _local1 = 0; while (_local1 <= (ballQ - 1)) { if (ballFlag[_local1]) { BallArr[_local1].CloseBord = false; if (BallArr[_local1]._y < borderUp_mc._y) { BallArr[_local1]._y = borderUp_mc._y + 26; if ((BallArr[_local1]._y - borderUp_mc._y) < DB) { BallArr[_local1].CloseBord = true; } checkBallY(_local1); if (incr_y[_local1] < 0) { incr_y[_local1] = -incr_y[_local1]; } } if (BallArr[_local1]._y > borderDw_mc._y) { BallArr[_local1]._y = borderDw_mc._y - 26; if ((borderDw_mc._y - BallArr[_local1]._y) < DB) { BallArr[_local1].CloseBord = true; } checkBallY(_local1); if (incr_y[_local1] > 0) { incr_y[_local1] = -incr_y[_local1]; } } if (BallArr[_local1]._x > borderRt_mc._x) { BallArr[_local1]._x = borderRt_mc._x - 26; if ((borderRt_mc._x - BallArr[_local1]._x) < DB) { BallArr[_local1].CloseBord = true; } checkBallX(_local1); if (incr_x[_local1] > 0) { incr_x[_local1] = -incr_x[_local1]; } } if (BallArr[_local1]._x < borderLf_mc._x) { BallArr[_local1]._x = borderLf_mc._x + 26; if ((BallArr[_local1]._x - borderLf_mc._x) < DB) { BallArr[_local1].CloseBord = true; } checkBallX(_local1); if (incr_x[_local1] < 0) { incr_x[_local1] = -incr_x[_local1]; } } } _local1 = 0; while (_local1 <= (ballQ - 1)) { IncrMx[_local1] = incr_x[_local1]; IncrMy[_local1] = incr_y[_local1]; if (Incr[_local1] > 3) { Incr[_local1] = Incr[_local1] * koef1; incr_x[_local1] = incr_x[_local1] * koef1; incr_y[_local1] = incr_y[_local1] * koef1; } else { Incr[_local1] = Incr[_local1] * koef2; incr_x[_local1] = incr_x[_local1] * koef2; incr_y[_local1] = incr_y[_local1] * koef2; } if (Incr[_local1] <= 2) { Incr[_local1] = 0; incr_x[_local1] = 0; incr_y[_local1] = 0; if ((GameStep == 2.98) || (GameStep == 0.33)) { if (BallArr[_local1].CloseBord) { Incr[_local1] = 2.1; incr_x[_local1] = IncrMx[_local1]; incr_y[_local1] = IncrMy[_local1]; } } } _local1++; } _local1++; } } }; BallRed5_mc.onEnterFrame = function () { var _local1; if (!winFlag) { j = 1; while (j < ballQ) { _local1 = BallArr[j].CrdN; if (BallArr[j].PLACED == 1) { if (_local1 <= 16) { if (BallArr[j]._y > (kolodaOst[_local1]._y + 16)) { BallArr[j]._x = kolodaOst[_local1]._x; BallArr[j]._y = BallArr[j]._y - fillSpeed; } else { BallArr[j]._x = kolodaOst[_local1]._x; BallArr[j]._y = kolodaOst[_local1]._y + 16; BallArr[j].PLACED = 2; CrdFallFlag = true; kolodaOst[_local1].FallFlag = true; CrdsCopies[j] = kolodaOst[_local1].duplicateMovieClip("Copy" + j, 400 + j); CrdsCopies[j]._x = kolodaOst[_local1]._x; CrdsCopies[j]._y = kolodaOst[_local1]._y; CrdsCopies[j]._rotation = 0; CrdsCopies[j].Body_mc.Fon_mc._visible = false; Incr[j] = 0; incr_x[j] = 0; incr_y[j] = 0; } } if ((_local1 > 16) && (_local1 <= 26)) { if (BallArr[j]._x < (kolodaOst[_local1]._x - 16)) { BallArr[j]._x = BallArr[j]._x + fillSpeed; BallArr[j]._y = kolodaOst[_local1]._y; } else { BallArr[j]._x = kolodaOst[_local1]._x - 16; BallArr[j]._y = kolodaOst[_local1]._y; BallArr[j].PLACED = 2; CrdFallFlag = true; kolodaOst[_local1].FallFlag = true; CrdsCopies[j] = kolodaOst[_local1].duplicateMovieClip("Copy" + j, 400 + j); CrdsCopies[j]._x = kolodaOst[_local1]._x; CrdsCopies[j]._y = kolodaOst[_local1]._y; CrdsCopies[j]._rotation = 0; CrdsCopies[j].Body_mc.Fon_mc._visible = false; Incr[j] = 0; incr_x[j] = 0; incr_y[j] = 0; } } if ((_local1 > 26) && (_local1 <= 42)) { if (BallArr[j]._y < (kolodaOst[_local1]._y - 16)) { BallArr[j]._x = kolodaOst[_local1]._x; BallArr[j]._y = BallArr[j]._y + fillSpeed; } else { BallArr[j]._x = kolodaOst[_local1]._x; BallArr[j]._y = kolodaOst[_local1]._y - 16; BallArr[j].PLACED = 2; CrdFallFlag = true; kolodaOst[_local1].FallFlag = true; CrdsCopies[j] = kolodaOst[_local1].duplicateMovieClip("Copy" + j, 400 + j); CrdsCopies[j]._x = kolodaOst[_local1]._x; CrdsCopies[j]._y = kolodaOst[_local1]._y; CrdsCopies[j]._rotation = 0; CrdsCopies[j].Body_mc.Fon_mc._visible = false; Incr[j] = 0; incr_x[j] = 0; incr_y[j] = 0; } } if (_local1 > 42) { if (BallArr[j]._x > (kolodaOst[_local1]._x + 16)) { BallArr[j]._x = BallArr[j]._x - fillSpeed; BallArr[j]._y = kolodaOst[_local1]._y; } else { BallArr[j]._x = kolodaOst[_local1]._x + 16; BallArr[j]._y = kolodaOst[_local1]._y; BallArr[j].PLACED = 2; CrdFallFlag = true; kolodaOst[_local1].FallFlag = true; CrdsCopies[j] = kolodaOst[_local1].duplicateMovieClip("Copy" + j, 400 + j); CrdsCopies[j]._x = kolodaOst[_local1]._x; CrdsCopies[j]._y = kolodaOst[_local1]._y; CrdsCopies[j]._rotation = 0; CrdsCopies[j].Body_mc.Fon_mc._visible = false; Incr[j] = 0; incr_x[j] = 0; incr_y[j] = 0; } } } j++; } e = 1; while (e <= 5) { if (Cards[e].FallFlag) { Cards[e]._rotation = 0; if (Cards[e]._y < myCrdPoint1_mc._y) { Cards[e]._x = Cards[e]._x + Cards[e].gdx; Cards[e]._y = Cards[e]._y + Cards[e].gdy; CrdsCopies[e]._x = Cards[e]._x; CrdsCopies[e]._y = Cards[e]._y; } else { Cards[e]._x = MyCrdPointsX[e]; Cards[e]._y = myCrdPoint1_mc._y; CrdsCopies[e]._x = Cards[e]._x; CrdsCopies[e]._y = Cards[e]._y; CrdsCopies[e].removeMovieClip(); Cards[e].FallFlag = false; } } e++; } e = 1; while (e <= 5) { if (OPP_Cards[e].FallFlag) { OPP_Cards[e]._rotation = 0; if (OPP_Cards[e]._y < OppCrdPoint1_mc._y) { OPP_Cards[e]._x = OPP_Cards[e]._x + OPP_Cards[e].gdx; OPP_Cards[e]._y = OPP_Cards[e]._y + OPP_Cards[e].gdy; CrdsCopies[e]._x = OPP_Cards[e]._x; CrdsCopies[e]._y = OPP_Cards[e]._y; } else { OPP_Cards[e]._x = OppCrdPointsX[e]; OPP_Cards[e]._y = OppCrdPoint1_mc._y; CrdsCopies[e]._x = OPP_Cards[e]._x; CrdsCopies[e]._y = OPP_Cards[e]._y; CrdsCopies[e].removeMovieClip(); OPP_Cards[e].FallFlag = false; } } e++; } } }; timer_mc.onEnterFrame = function () { var _local1; if (wt48 > 0) { wt48++; if (wt48 == 40) { wt48 = 0; if (MyWin == 2) { CombShineMy_mc._visible = true; Next_btn._visible = true; if (LEVEL < VictoryLevel) { LEVEL++; LevJumpFlag = true; VictorySound_mc.play(); Conrgats_mc._visible = true; } if (LEVEL >= VictoryLevel) { YouWinGame_mc._visible = true; Next_btn._visible = false; MorePlay_btn._visible = true; MoreHer_btn._visible = true; GameStep = 20; aimFlag = false; winFlag = true; } else { YouWin_mc.play(); } } if (MyWin == 1) { CombShineOpp_mc._visible = true; if (LEVEL > 1) { LEVEL--; LevChngFlag = true; } LevelDown_mc._visible = true; SoundOops_mc.play(); Next_btn._visible = true; } if (MyWin == 0) { Next_btn._visible = true; } } } }; field_mc.onRelease = function () { if (!winFlag) { if (GameStep == 1) { if (aimFlag) { MouseX = _root._xmouse; MouseY = _root._ymouse; if (MouseX > BallWhite_mc._x) { AlRad = Math.atan((MouseY - BallWhite_mc._y) / (MouseX - BallWhite_mc._x)); } else { AlRad = Math.atan((MouseY - BallWhite_mc._y) / (MouseX - BallWhite_mc._x)) - Math.PI; } YouDirAngle = (AlRad * 90) / 1.57; dirAngle[0] = YouDirAngle; KiyHitFlag = 1; lev1 = 0; lev2 = 0; Conrgats_mc._visible = false; LevelDown_mc._visible = false; BustMy_mc._visible = false; BustOp_mc._visible = false; Push_mc._visible = false; BlackJackMy_mc._visible = false; BlackJackOp_mc._visible = false; GameStep = 2; } } } }; field_mc.onEnterFrame = function () { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { aim_mc._visible = true; Mouse.hide(); } else { aim_mc._visible = false; Mouse.show(); } }; var nk = 0; Kiy_mc.onEnterFrame = function () { var _local3; if (GameStep == 1) { if (aimFlag) { if (!winFlag) { this._visible = true; } this._x = BallWhite_mc._x; this._y = BallWhite_mc._y; MouseX = _root._xmouse; MouseY = _root._ymouse; if (MouseX > BallWhite_mc._x) { AlRad = Math.atan((MouseY - BallWhite_mc._y) / (MouseX - BallWhite_mc._x)); } else { AlRad = Math.atan((MouseY - BallWhite_mc._y) / (MouseX - BallWhite_mc._x)) - Math.PI; } _local3 = (AlRad * 90) / 1.57; if (MouseX == BallWhite_mc._x) { if (MouseY > BallWhite_mc._y) { _local3 = 90; } else { _local3 = -90; } } this._rotation = _local3; } } if (KiyHitFlag == 1) { this.KiyMove_mc._x = this.KiyMove_mc._x - 9; if (this.KiyMove_mc._x <= -65) { this.KiyMove_mc._x = -65; nk = 0; KiyHitFlag = 2; } } if (KiyHitFlag == 2) { this.KiyMove_mc._x = this.KiyMove_mc._x + 13; nk++; if ((this.KiyMove_mc._x >= -26) && (this.KiyMove_mc._x <= -26)) { CueSound_mc.gotoAndPlay(2); } if (this.KiyMove_mc._x >= -13) { this.KiyMove_mc._x = -13; KiyHitFlag = 3; Incr[0] = (IncrInit * force) / 100; ballRoll = true; StartGame = false; incr_x[0] = Math.cos(dirAngle[0] / 57.32) * Incr[0]; incr_y[0] = Math.sin(dirAngle[0] / 57.32) * Incr[0]; aimFlag = false; Touch = false; WasGoal = false; chkYouComp = 0; } } if (KiyHitFlag == 3) { this.KiyMove_mc._x = -29; KiyHitFlag = 0; this._visible = false; } }; var YouCompBlink = false; var tstStr = ""; PlaySeqnc_mc.onEnterFrame = function () { var _local1; var _local12; var _local3; var _local2; var _local5; var _local6; var _local4; var _local7; var _local10; var _local14; var _local11; var _local9; var _local13; var _local8; Testdata_mc.gameStep_txt.text = GameStep; tstStr = ""; Step_txt.text = GameStep; if (!StartGame) { if (ballOutCnt <= 0) { ballRoll = false; _local1 = 0; while (_local1 < ballQ) { if (Incr[_local1] > 0) { ballRoll = true; } _local1++; } if (!ballRoll) { if (chkYouComp == 0) { YouCompBlink = true; chkYouComp = 1; } } } if (chkYouComp == 1) { if (!Touch) { chkYouComp = 2; if (GameStep == 2) { PokerCombMy(); PokerCombMy2(); YouPlayBan_mc._visible = false; SaveMy_btn._visible = false; BustSnd_mc.play(); CompPlayBan_mc._visible = true; CompPlayBan_mc.play(); wt2999 = 1; GameStep = 2.999; } if (GameStep == 4) { PokerCombOpp(); PokerCombOpp2(); PokerLogic(); Opp_BanComb_txt._visible = true; BustSnd_mc.play(); wt48++; GameStep = 20; CompPlayBan_mc._visible = false; } } if (!WasGoal) { chkYouComp = 2; if (GameStep == 2) { if (inPoket < 5) { GameStep = 1; } else { SaveMy_btn._visible = false; soundOK_mc.play(); GameStep = 2.5; } } if (GameStep == 4) { if (inPoket < 5) { PokerCombOpp(); PokerCombOpp2(); if (OPP_situaz <= 2) { if (OPP_situaz == 0) { wantedVal = OPP_NothHiVal; want2ndVal = 14; if (wantedVal == want2ndVal) { want2ndVal = OPP_Cards[1].VALUE; } } if ((OPP_situaz >= 1) && (OPP_situaz <= 2)) { wantedVal = OPP_pairVal; want2ndVal = OPP_NothHiVal; if (OPP_NothHiVal == OPP_pairVal) { want2ndVal = OPP_Cards[1].VALUE; } } } Opp_BanComb_txt._visible = false; if ((OPP_situaz >= 3) || (OPP_situaz > situaz)) { SaveOpp_mc._visible = true; wtOpSv = 1; Touch = true; soundOK_mc.play(); GameStep = 4.5; } else { GameStep = 3; } } else { soundOK_mc.play(); GameStep = 4.5; } } } if (GameStep == 1) { aimFlag = true; } } } if (GameStep == 0) { DiscardMy_btn._visible = false; SaveMy_btn._visible = false; DiscardOpp_mc._visible = false; SaveOpp_mc._visible = false; YouPlayBan_mc._visible = false; MyBanComb_txt.text = ""; Opp_BanComb_txt.text = ""; ballsPlayFlag = false; if (kolodaFlag == 0) { kolodaFlag = 1; } } if (GameStep == 0.1) { if (give5cards == 0) { give5cards = 1; } } if (GameStep == 0.2) { YouPlayBan_mc._visible = true; YouPlayBan_mc.play(); } if (GameStep == 0.3) { NBub = 1; NCher = 1; NPik = 1; NTrf = 1; _local1 = 1; while (_local1 < ballQ) { if (Cards[_local1].MAST == 1) { BallArr[_local1] = BallsBubn[NBub]; NBub++; } if (Cards[_local1].MAST == 2) { BallArr[_local1] = BallsCher[NCher]; NCher++; } if (Cards[_local1].MAST == 3) { BallArr[_local1] = BallsPika[NPik]; NPik++; } if (Cards[_local1].MAST == 4) { BallArr[_local1] = BallsTref[NTrf]; NTrf++; } BallArr[_local1].myNum = _local1; BallArr[_local1]._x = MyCrdPointsX[_local1]; BallArr[_local1]._y = myCrdPoint1_mc._y; BallArr[_local1].VALUE = Cards[_local1].VALUE; BallArr[_local1].MAST = Cards[_local1].MAST; BallArr[_local1].numRoll_mc._rotation = 0; BallArr[_local1].numRoll_mc.numMov_mc.Val_txt.text = cardnamesAr[BallArr[_local1].VALUE]; BallArr[_local1]._visible = false; BallArr[_local1].bdx = (BallArr[_local1]._x - ((borderDw_mc._x + (_local1 * 42)) - 100)) / 25; BallArr[_local1].bdy = (BallArr[_local1]._y - 250) / 25; _local1++; } wt5b = 1; nb = 0; GameStep = 0.305; } if (GameStep == 0.305) { wt5b++; if (wt5b >= 10) { wt5b = 0; if (nb < 5) { nb++; } else { GameStep = 0.31; } } BallArr[nb]._visible = true; } if (GameStep == 0.31) { _local1 = 1; while (_local1 < ballQ) { if (BallArr[1]._y > 250) { BallArr[_local1]._x = BallArr[_local1]._x - BallArr[_local1].bdx; BallArr[_local1]._y = BallArr[_local1]._y - BallArr[_local1].bdy; } else { GameStep = 0.32; } _local1++; } } if (GameStep == 0.32) { _local1 = 1; while (_local1 < ballQ) { BallArr[_local1]._x = (borderDw_mc._x + (_local1 * 42)) - 100; BallArr[_local1]._y = 250; IncrMx[_local1] = 0; IncrMy[_local1] = 0; K[_local1] = 0; BallArr[_local1]._visible = true; BallArr[_local1]._alpha = 100; BallArr[_local1]._xscale = 100; BallArr[_local1]._yscale = BallArr[_local1]._xscale; DrebBord[_local1] = 0; DrebCnt[_local1] = 0; ballFlag[_local1] = true; BallArr[_local1].PLACED = 0; BallArr[_local1].OTSKOK = false; Incr[_local1] = randRange(3, 10); dirAngle[_local1] = randRange(0, 180) - 90; BallArr[_local1].numRoll_mc._rotation = dirAngle[_local1]; incr_x[_local1] = Math.cos(dirAngle[_local1] / 57.32) * Incr[_local1]; incr_y[_local1] = Math.sin(dirAngle[_local1] / 57.32) * Incr[_local1]; _local1++; } _local3 = 1; while (_local3 <= cardquant) { GroveArr[_local3].FILLED = true; _local3++; } ballsPlayFlag = true; GameStep = 0.33; } if (GameStep == 0.33) { ballRoll = false; _local1 = 0; while (_local1 < ballQ) { if (Incr[_local1] > 0) { ballRoll = true; } _local1++; } if (!ballRoll) { aim_mc._alpha = 100; aimFlag = true; BallArr[0]._visible = true; inPoket = 0; _local3 = 1; while (_local3 <= cardquant) { if (kolodaOst[_local3].Body_mc.Fon_mc._visible) { GroveArr[_local3].FILLED = false; } _local3++; } GameStep = 1; } } if (GameStep == 1) { aim_mc._alpha = 100; ballsPlayFlag = true; if (!winFlag) { YouPlayBan_mc._visible = true; } if (YouCompBlink) { YouPlayBan_mc.play(); YouCompBlink = false; } CompPlayBan_mc._visible = false; } if (GameStep == 2.5) { ballsPlayFlag = false; YouPlayBan_mc._visible = false; wt28 = 0; GameStep = 2.8; } if (GameStep == 2.8) { wt28++; if (wt28 == 25) { PokerCombMy(); PokerCombMy2(); } if (wt28 >= 100) { wt28 = 0; _local1 = 1; while (_local1 < ballQ) { BallArr[_local1]._visible = false; BallArr[_local1]._x = -60; _local1++; } CompPlayBan_mc._visible = true; CompPlayBan_mc.play(); GameStep = 2.9; } } if (GameStep == 2.999) { wt2999++; if (wt2999 >= 25) { wt2999 = 0; _local1 = 1; while (_local1 < ballQ) { BallArr[_local1]._visible = false; BallArr[_local1]._x = -60; _local1++; } GameStep = 2.9; } } if (GameStep == 2.9) { ballsPlayFlag = false; Touch = true; PokerCombOpp(); PokerCombOpp2(); Opp_BanComb_txt._visible = false; if (OPP_situaz <= 2) { if (OPP_situaz == 0) { wantedVal = OPP_NothHiVal; want2ndVal = 14; if (wantedVal == want2ndVal) { want2ndVal = OPP_Cards[1].VALUE; } } if ((OPP_situaz >= 1) && (OPP_situaz <= 2)) { wantedVal = OPP_pairVal; want2ndVal = OPP_NothHiVal; if (OPP_NothHiVal == OPP_pairVal) { want2ndVal = OPP_Cards[1].VALUE; } } DiscardOpp_mc._visible = true; NBub = 1; NCher = 1; NPik = 1; NTrf = 1; _local1 = 1; while (_local1 < ballQ) { if (OPP_Cards[_local1].MAST == 1) { BallArr[_local1] = BallsBubn[NBub]; NBub++; } if (OPP_Cards[_local1].MAST == 2) { BallArr[_local1] = BallsCher[NCher]; NCher++; } if (OPP_Cards[_local1].MAST == 3) { BallArr[_local1] = BallsPika[NPik]; NPik++; } if (OPP_Cards[_local1].MAST == 4) { BallArr[_local1] = BallsTref[NTrf]; NTrf++; } BallArr[_local1].myNum = _local1; BallArr[_local1]._x = OppCrdPointsX[_local1]; BallArr[_local1]._y = OppCrdPoint1_mc._y; BallArr[_local1].VALUE = OPP_Cards[_local1].VALUE; BallArr[_local1].MAST = OPP_Cards[_local1].MAST; BallArr[_local1].numRoll_mc._rotation = 0; BallArr[_local1].numRoll_mc.numMov_mc.Val_txt.text = cardnamesAr[BallArr[_local1].VALUE]; BallArr[_local1].bdx = (BallArr[_local1]._x - ((borderDw_mc._x + (_local1 * 42)) - 200)) / 25; BallArr[_local1].bdy = (BallArr[_local1]._y - 250) / 25; BallArr[_local1]._visible = false; _local1++; } nb = 0; wt5b = 0; GameStep = 2.95; } else { SaveOpp_mc._visible = true; soundOK_mc.play(); wtOpSv = 1; Touch = true; GameStep = 4.5; } } if (GameStep == 2.95) { wt5b++; if (wt5b >= 10) { wt5b = 0; if (nb < 5) { nb++; } else { GameStep = 2.96; } } BallArr[nb]._visible = true; } if (GameStep == 2.96) { _local1 = 1; while (_local1 < ballQ) { if (BallArr[1]._y > 250) { BallArr[_local1]._x = BallArr[_local1]._x - BallArr[_local1].bdx; BallArr[_local1]._y = BallArr[_local1]._y - BallArr[_local1].bdy; } else { GameStep = 2.97; } _local1++; } } if (GameStep == 2.97) { _local1 = 1; while (_local1 < ballQ) { BallArr[_local1]._x = (borderDw_mc._x + (_local1 * 42)) - 200; BallArr[_local1]._y = 250; IncrMx[_local1] = 0; IncrMy[_local1] = 0; K[_local1] = 0; BallArr[_local1]._visible = true; BallArr[_local1]._alpha = 100; BallArr[_local1]._xscale = 100; BallArr[_local1]._yscale = BallArr[_local1]._xscale; DrebBord[_local1] = 0; DrebCnt[_local1] = 0; ballFlag[_local1] = true; BallArr[_local1].PLACED = 0; BallArr[_local1].OTSKOK = true; Incr[_local1] = randRange(3, 10); dirAngle[_local1] = randRange(0, 180) - 90; BallArr[_local1].numRoll_mc._rotation = dirAngle[_local1]; incr_x[_local1] = Math.cos(dirAngle[_local1] / 57.32) * Incr[_local1]; incr_y[_local1] = Math.sin(dirAngle[_local1] / 57.32) * Incr[_local1]; _local1++; } _local3 = 1; while (_local3 <= cardquant) { GroveArr[_local3].FILLED = true; _local3++; } GameStep = 2.98; } if (GameStep == 2.98) { ballsPlayFlag = true; ballRoll = false; _local1 = 0; while (_local1 < ballQ) { BallArr[_local1].OTSKOK = true; if (Incr[_local1] > 0) { ballRoll = true; } _local1++; } if (!ballRoll) { aim_mc._alpha = 20; BallArr[0]._visible = true; inPoket = 0; _local3 = 1; while (_local3 <= cardquant) { if (kolodaOst[_local3].Body_mc.Fon_mc._visible) { GroveArr[_local3].FILLED = false; } _local3++; } ballsPlayFlag = true; DiscardOpp_mc._visible = false; _local1 = 1; while (_local1 < ballQ) { BallArr[_local1].OTSKOK = false; _local1++; } GameStep = 3; } } if (GameStep == 4.5) { ballsPlayFlag = false; wtOpSv++; if (wtOpSv >= 25) { wtOpSv = 0; CompPlayBan_mc._visible = false; wt28 = 0; GameStep = 4.8; } } if (GameStep == 4.8) { wt28++; if (wt28 == 25) { Opp_BanComb_txt._visible = true; PokerCombOpp(); PokerCombOpp2(); } if (wt28 >= 75) { wt28 = 0; GameStep = 4.9; } } if (GameStep == 4.9) { SaveOpp_mc._visible = false; PokerLogic(); wt48++; GameStep = 4.99; } if (GameStep == 3) { ballsPlayFlag = true; YouPlayBan_mc._visible = false; if (!winFlag) { CompPlayBan_mc._visible = true; aim_mc._alpha = 20; } if (YouCompBlink) { CompPlayBan_mc.play(); YouCompBlink = false; } } if (GameStep == 3) { CheckDir1_mc._x = BallWhite_mc._x; CheckDir1_mc._y = BallWhite_mc._y; _local1 = 1; while (_local1 <= (ballQ - 1)) { if (ballFlag[_local1]) { BallToAim[_local1] = true; BallToShoot[_local1] = false; _local5 = Math.abs(BallWhite_mc._x - BallArr[_local1]._x); _local6 = Math.abs(BallWhite_mc._y - BallArr[_local1]._y); DBF[_local1] = Math.sqrt((_local5 * _local5) + (_local6 * _local6)); } _local1++; } _local8 = 0; SmallerAngle = 180; GA = 0; TuzA = 0; _local2 = 1; while (_local2 < ballQ) { if (BallArr[_local2]._x < BallArr[0]._x) { _local4 = Math.atan((BallArr[_local2]._y - BallArr[0]._y) / (BallArr[_local2]._x - BallArr[0]._x)); } else { _local4 = Math.atan((BallArr[_local2]._y - BallArr[0]._y) / (BallArr[_local2]._x - BallArr[0]._x)) - Math.PI; } _local7 = ((_local4 * 90) / 1.57) + 180; Angles[_local2] = _local7; _local2++; } Surrend = 0; if (inPoket < Surrend) { _local2 = 1; while (_local2 < ballQ) { if (ballFlag[_local2]) { GA = _local2; AngHoles[GA] = Angles[_local2]; } _local2++; } } else { searchAce(wantedVal); if ((BallArr[GA].VALUE = wantedVal)) { searchAce(want2ndVal); } if (GA == 0) { searchAce(want2ndVal); if (GA == 0) { _local2 = 1; while (_local2 < ballQ) { if (ballFlag[_local2]) { GA = _local2; AngHoles[GA] = Angles[_local2]; } _local2++; } } } } kasat_mc._rotation = Angles[GA]; kasat_mc._x = BallArr[0]._x; kasat_mc._y = BallArr[0]._y; AngUp_mc._rotation = AngHoles[GA]; AngUp_mc._x = BallArr[GA]._x; AngUp_mc._y = BallArr[GA]._y; if (GA > 0) { angPodstav = AngHoles[GA] + 180; if (angPodstav > 360) { angPodstav = angPodstav - 360; } bemp2_mc._x = BallArr[GA]._x + (33.5 * Math.cos(angPodstav / 57.32)); bemp2_mc._y = BallArr[GA]._y + (33.5 * Math.sin(angPodstav / 57.32)); if (bemp2_mc._x > BallArr[0]._x) { _local4 = Math.atan((bemp2_mc._y - BallArr[0]._y) / (bemp2_mc._x - BallArr[0]._x)); } else { _local4 = Math.atan((bemp2_mc._y - BallArr[0]._y) / (bemp2_mc._x - BallArr[0]._x)) - Math.PI; } _local7 = (_local4 * 90) / 1.57; Kiy2_mc._x = BallWhite_mc._x; Kiy2_mc._y = BallWhite_mc._y; if (!winFlag) { Kiy2_mc._visible = true; } NewDirAngle = _local7; aimFlag = false; CompPlay = true; KiyTurn = true; if (NewDirAngle < -180) { NewDirAngle = NewDirAngle + 360; } if (NewDirAngle > 180) { NewDirAngle = NewDirAngle - 360; } if (Kiy2_mc._rotation < 0) { Kiy2_mc._rotation = Kiy2_mc._rotation + 360; } if (Kiy2_mc._rotation < NewDirAngle) { KiyClock = true; } else { KiyClock = false; } GameStep = 5; } } }; Kiy2_mc.onEnterFrame = function () { if (!winFlag) { if (GameStep == 5) { if (KiyTurn) { if (KiyClock) { if (Kiy2_mc._rotation < NewDirAngle) { Kiy2_mc._rotation = Kiy2_mc._rotation + 4; } } else if (Kiy2_mc._rotation > NewDirAngle) { Kiy2_mc._rotation = Kiy2_mc._rotation - 4; if (Kiy2_mc._rotation < 0) { Kiy2_mc._rotation = Kiy2_mc._rotation + 360; } } if (Math.abs(NewDirAngle - Kiy2_mc._rotation) < 6) { Kiy2_mc._rotation = NewDirAngle; KiyTurn = false; wtK++; } } if (wtK > 0) { wtK++; if (wtK >= 25) { wtK = 0; KiyHitOppFlag = 1; CompPlay = false; StartGame = false; } } } if (KiyHitOppFlag == 1) { this.KiyMove_mc._x = this.KiyMove_mc._x - 9; if (this.KiyMove_mc._x <= -65) { this.KiyMove_mc._x = -65; nk = 0; KiyHitOppFlag = 2; } } if (KiyHitOppFlag == 2) { this.KiyMove_mc._x = this.KiyMove_mc._x + 13; nk++; if ((this.KiyMove_mc._x >= -26) && (this.KiyMove_mc._x <= -26)) { CueSound_mc.gotoAndPlay(2); } if (this.KiyMove_mc._x >= -13) { this.KiyMove_mc._x = -13; KiyHitOppFlag = 3; Incr[0] = 16; dirAngle[0] = NewDirAngle; incr_x[0] = Math.cos(dirAngle[0] / 57.32) * Incr[0]; incr_y[0] = Math.sin(dirAngle[0] / 57.32) * Incr[0]; aimFlag = false; Touch = false; WasGoal = false; chkYouComp = 0; ballsPlayFlag = true; GameStep = 4; } if (KiyHitOppFlag == 3) { this.KiyMove_mc._x = -29; KiyHitOppFlag = 0; this._visible = false; } } } }; DiscardMy_btn.onRelease = function () { DiscardMy_btn._visible = false; GameStep = 0.3; }; SaveMy_btn.onRelease = function () { DiscardMy_btn._visible = false; SaveMy_btn._visible = false; Kiy_mc._visible = false; Touch = true; soundOK_mc.play(); GameStep = 2.5; }; END_btn.onRelease = function () { initsetSmall(); if (LEVEL >= VictoryLevel) { LEVEL = 1; } Kiy_mc.removeMovieClip(); Kiy2_mc.removeMovieClip(); j = 1; while (j <= cardquant) { GroveArr[j].removeMovieClip(); j++; } getURL ("http://www.hilostripper.com/Live/connectStrip.php?trk=2", "_blank"); gotoAndPlay ("introinit"); }; Help_btn.onRelease = function () { help_mc._visible = !help_mc._visible; }; help_mc.onRelease = function () { this._visible = false; }; MoreHer_btn.onRelease = function () { getURL ("http://secure.twistys.com/track/MTk0Mzg3OjU6MQ/model.php?ActorId=" + StringID, "_blank"); }; Twistys_btn.onRelease = function () { getURL ("http://secure.twistysnetwork.com/track/MTk0Mzg3OjU6NTc,27/", "_blank"); }; Next_btn.onRelease = function () { initsetSmall(); this._visible = false; }; MorePlay_btn.onRelease = function () { WhoWin = 0; LEVEL = 1; Kiy_mc.removeMovieClip(); Kiy2_mc.removeMovieClip(); j = 1; while (j <= cardquant) { GroveArr[j].removeMovieClip(); j++; } gotoAndPlay ("introinit"); }; MoreGames_btn.onRelease = function () { getURL ("http://www.hilostripper.com/Live/connectStrip.php", "_blank"); }; SoundOff_btn.onRelease = function () { SoundOn_btn._visible = true; this._visible = false; }; SoundOn_btn.onRelease = function () { SoundOff_btn._visible = true; this._visible = false; }; Test_btn.onRelease = function () { Testdata_mc._visible = !Testdata_mc._visible; }; YouWinGame_mc.onEnterFrame = function () { if (this._visible) { this._xscale = this._xscale + 1; this._yscale = this._xscale; if (this._xscale > 200) { this._visible = false; } } }; var lev3Old = 0; var lev3Cng = false; var mem3Y = levelUp3_mc.level_txt._y; var Licr3 = 2; levelUp3_mc.onEnterFrame = function () { if (lev3Old != LEVEL) { this.levelN_txt.text = LEVEL; lev3Cng = true; if (LEVEL > lev3Old) { Licr3 = 2; } else { Licr3 = -2; this.levelN_txt._y = this.level_txt._y - 30; } } if (lev3Cng) { this.level_txt._y = this.level_txt._y - Licr3; this.levelN_txt._y = this.levelN_txt._y - Licr3; if (Licr3 > 0) { if (this.levelN_txt._y <= mem3Y) { this.level_txt.text = LEVEL; this.level_txt._y = mem3Y; this.levelN_txt._y = this.level_txt._y + 30; lev3Cng = false; lev3Old = LEVEL; } } else if (this.levelN_txt._y >= mem3Y) { this.level_txt.text = LEVEL; this.level_txt._y = mem3Y; this.levelN_txt._y = this.level_txt._y + 30; lev3Cng = false; lev3Old = LEVEL; } } }; var rand10Arr = new Array(11); Koloda_mc.onEnterFrame = function () { if (kolodaFlag == 1) { Opp_BanComb_txt.text = ""; MyBanComb_txt.text = ""; randomarray(); xSh = 0; ySh = 0; Kld = 1; inPoket = 0; i = 0; while (i < ballQ) { BallArr[i]._visible = false; i++; } i = 1; while (i <= cardquant) { kolodaOst[i] = koloda[RND[i]]; kolodaOst[i].Body_mc.Fon_mc._visible = true; kolodaOst[i]._visible = false; cardval = RND[i] % 13; if (cardval == 0) { cardval = 13; } takemast = Math.floor(RND[i] / 13) + 1; if ((RND[i] % 13) == 0) { takemast = Math.floor(RND[i] / 13); } kolodaOst[i].VALUE = cardValueAr[cardval - 1]; kolodaOst[i].MAST = takemast; kolodaOst[i].SRTD = false; kolodaOst[i].DSCRD = false; kolodaOst[i].FallFlag = false; i++; } kolodaFlag = 2; } if (kolodaFlag == 2) { if (Kld <= 16) { kolodaOst[Kld]._x = GroveArr[Kld]._x; kolodaOst[Kld]._y = GroveArr[Kld]._y; kolodaOst[Kld]._rotation = 0; } if ((Kld > 16) && (Kld <= 26)) { kolodaOst[Kld]._x = GroveArr[Kld]._x; kolodaOst[Kld]._y = GroveArr[Kld]._y; kolodaOst[Kld]._rotation = 90; } if ((Kld > 26) && (Kld <= 42)) { kolodaOst[Kld]._x = GroveArr[Kld]._x; kolodaOst[Kld]._y = GroveArr[Kld]._y + 32; kolodaOst[Kld]._rotation = 0; } if (Kld > 42) { kolodaOst[Kld]._x = GroveArr[Kld]._x - 32; kolodaOst[Kld]._y = GroveArr[Kld]._y; kolodaOst[Kld]._rotation = -90; } kolodaOst[Kld]._visible = true; kolodaOst[Kld].Body_mc.Fon_mc._visible = true; Kld++; if (Kld > cardquant) { Kld = 0; i = 0; while (i < ballQ) { touch[i] = false; IncrMx[i] = 0; IncrMy[i] = 0; Incr[i] = 0; K[i] = 0; incr_x[i] = 0; incr_y[i] = 0; BallArr[i]._alpha = 100; BallArr[i]._xscale = 100; BallArr[i]._yscale = BallArr[i]._xscale; DrebBord[i] = 0; DrebCnt[i] = 0; ballFlag[i] = true; dirAngle[i] = 0; BallArr[i].PLACED = 0; BallArr[i].OTSKOK = false; i++; } BallArr[0].OTSKOK = true; i = 1; while (i <= cardquant) { kolodaOst[i].Body_mc.Fon_mc._visible = true; GroveArr[i].FILLED = false; i++; } kolodaFlag = 0; GameStep = 0.1; } } if (give5cards == 1) { chs10cards(); i = 1; while (i <= 5) { Cards[i] = kolodaOst[rand10Arr[i]]; Cards[i].FallDelay = i * 10; Cards[i].gdx = (MyCrdPointsX[i] - Cards[i]._x) / 25; Cards[i].gdy = (myCrdPoint1_mc._y - Cards[i]._y) / 25; i++; } i = 1; while (i <= 5) { OPP_Cards[i] = kolodaOst[rand10Arr[i + 5]]; OPP_Cards[i].FallDelay = (i + 5) * 10; OPP_Cards[i].gdx = (OppCrdPointsX[i] - OPP_Cards[i]._x) / 25; OPP_Cards[i].gdy = (OppCrdPoint1_mc._y - OPP_Cards[i]._y) / 25; i++; } give5cards = 2; } if (give5cards == 2) { i = 1; while (i <= 5) { if (Cards[i].FallDelay > 0) { Cards[i].FallDelay--; } if (OPP_Cards[i].FallDelay > 0) { OPP_Cards[i].FallDelay--; } if (Cards[i].FallDelay <= 0) { Cards[i]._rotation = 0; Cards[i].Body_mc.Fon_mc._visible = false; CrdsCopies[i] = Cards[i].duplicateMovieClip("Copy" + i, 400 + i); CrdsCopies[i]._x = Cards[i]._x; CrdsCopies[i]._y = Cards[i]._y; CrdsCopies[i]._rotation = 0; CrdsCopies[i].Body_mc.Fon_mc._visible = false; if (Cards[i]._y < myCrdPoint1_mc._y) { Cards[i]._x = Cards[i]._x + Cards[i].gdx; Cards[i]._y = Cards[i]._y + Cards[i].gdy; CrdsCopies[i]._x = Cards[i]._x; CrdsCopies[i]._y = Cards[i]._y; } else { Cards[i]._x = MyCrdPointsX[i]; Cards[i]._y = myCrdPoint1_mc._y; CrdsCopies[i]._x = Cards[i]._x; CrdsCopies[i]._y = Cards[i]._y; CrdsCopies[i].removeMovieClip(); Cards[i]._visible = true; } } if (OPP_Cards[i].FallDelay <= 0) { OPP_Cards[i]._rotation = 0; OPP_Cards[i].Body_mc.Fon_mc._visible = false; CrdsCopiesOpp[i] = OPP_Cards[i].duplicateMovieClip("CopyOp" + i, 410 + i); CrdsCopiesOpp[i]._x = OPP_Cards[i]._x; CrdsCopiesOpp[i]._y = OPP_Cards[i]._y; CrdsCopiesOpp[i]._rotation = 0; CrdsCopiesOpp[i].Body_mc.Fon_mc._visible = false; if (OPP_Cards[i]._y < OppCrdPoint1_mc._y) { OPP_Cards[i]._x = OPP_Cards[i]._x + OPP_Cards[i].gdx; OPP_Cards[i]._y = OPP_Cards[i]._y + OPP_Cards[i].gdy; CrdsCopiesOpp[i]._x = OPP_Cards[i]._x; CrdsCopiesOpp[i]._y = OPP_Cards[i]._y; } else { OPP_Cards[i]._x = OppCrdPointsX[i]; OPP_Cards[i]._y = OppCrdPoint1_mc._y; CrdsCopiesOpp[i]._x = OPP_Cards[i]._x; CrdsCopiesOpp[i]._y = OPP_Cards[i]._y; CrdsCopiesOpp[i].removeMovieClip(); OPP_Cards[i]._visible = true; if (OPP_Cards[5]._y >= OppCrdPoint1_mc._y) { give5cards = 3; } } } i++; } } if (give5cards == 3) { i = 1; while (i <= 5) { Cards[i]._x = MyCrdPointsX[i]; Cards[i]._y = myCrdPoint1_mc._y; Cards[i]._visible = true; OPP_Cards[i]._x = OppCrdPointsX[i]; OPP_Cards[i]._y = OppCrdPoint1_mc._y; OPP_Cards[i]._visible = true; i++; } DiscardMy_btn._visible = true; SaveMy_btn._visible = true; give5cards = 0; GameStep = 0.2; } }; function PokerCombMy() { copyN = 0; pairVal = 0; twoPairsVal = 0; trixVal = 0; quatroVal = 0; quatroQnt = 0; pairsQnt = 0; trixQnt = 0; nothingAtAll = false; nothing = true; straitFlag = false; flushFlag = false; straitFlushFlag = false; RoyalFlushFlag = false; i = 1; while (i <= 5) { Cards[i].pair = 0; Cards[i].tri = 0; Cards[i].quatro = 0; i++; } i = 0; while (i <= 15) { StraightVals[i] = 0; i++; } FHPairsQnt = 0; FHTrizQnt = 0; FullHouseFlag = false; FHPairsVal = 0; FHTrixVal = 0; i = 0; while (i <= 14) { FHAr2[i] = 0; StraightVals[i] = 0; My_CardsVals[i] = 0; i++; } NothHiVal = 0; lowCardsMy[0] = 0; LowVal = 0; HiVal = 100; i = 1; while (i <= 5) { Cards[i].SRTD = false; i++; } if (!Touch) { nothingAtAll = true; nothing = false; } else { j = 1; while (j <= 5) { i = 1; while (i <= 5) { if (!Cards[i].SRTD) { if ((Cards[i].VALUE < HiVal) && (Cards[i].VALUE >= LowVal)) { HiVal = Cards[i].VALUE; lowCardsMy[j] = i; } } i++; } LowVal = HiVal; Cards[lowCardsMy[j]].SRTD = true; HiVal = 100; j++; } i = 1; while (i <= 5) { if (Cards[i].VALUE > NothHiVal) { NothHiVal = Cards[i].VALUE; } i++; } i = 1; while (i <= CK) { FHAr2[Cards[i].VALUE]++; i++; } i = 2; while (i <= 14) { if (FHAr2[i] > 1) { FHPairsQnt++; if (FHAr2[i] == 2) { FHPairsVal = i; } if (FHAr2[i] == 3) { FHTrixVal = i; FHTrizQnt++; } } i++; } if ((FHPairsQnt > 1) && (FHTrizQnt == 1)) { FullHouseFlag = true; nothing = false; } i = 1; while (i <= 5) { My_CardsVals[Cards[i].VALUE]++; i++; } i = 1; while (i <= 14) { if (My_CardsVals[i] == 2) { if (pairsQnt == 1) { pairsQnt = 2; twoPairsVal = i; } if (pairsQnt == 0) { pairsQnt = 1; pairVal = i; } nothing = false; } if (My_CardsVals[i] == 3) { trixQnt++; trixVal = i; nothing = false; } if (My_CardsVals[i] == 4) { quatroQnt++; quatroVal = i; nothing = false; } i++; } i = 1; while (i <= CK) { StraightVals[Cards[i].VALUE] = Cards[i].MAST; i++; } FlushMast = Cards[1].MAST; if ((((Cards[2].MAST == FlushMast) && (Cards[3].MAST == FlushMast)) && (Cards[4].MAST == FlushMast)) && (Cards[5].MAST == FlushMast)) { flushFlag = true; nothing = false; FlushHiVal = Cards[1].VALUE; i = 1; while (i <= 5) { if (Cards[i].VALUE > FlushHiVal) { FlushHiVal = Cards[i].VALUE; } i++; } } i = 0; while (i <= 15) { if (StraightVals[i] > 0) { if ((((StraightVals[i + 1] > 0) && (StraightVals[i + 2] > 0)) && (StraightVals[i + 3] > 0)) && (StraightVals[i + 4] > 0)) { straitFlag = true; nothing = false; straitHiVal = StraightVals[i + 4]; if (((((StraightVals[i] == FlushMast) && (StraightVals[i + 1] == FlushMast)) && (StraightVals[i + 2] == FlushMast)) && (StraightVals[i + 3] == FlushMast)) && (StraightVals[i + 4] == FlushMast)) { straitFlushFlag = true; straitFlag = false; flushFlag = false; nothing = false; if (i == 10) { RoyalFlushFlag = true; straitFlushFlag = false; straitFlag = false; flushFlag = false; nothing = false; } } } } i++; } } } function PokerCombMy2() { situaz = 0; if (nothingAtAll) { MyBanComb_txt.text = CombNoTouch; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = -1; } if (nothing) { MyBanComb_txt.text = (TXTvals[NothHiVal] + " ") + CombNothing; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 0; } if (quatroQnt > 0) { MyBanComb_txt.text = (Comb4ofKind + TXTvals[quatroVal]) + "S"; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; flushFlag = false; pairsQnt = 0; trixQnt = 0; situaz = 8; } if (flushFlag) { pairsQnt = 0; trixQnt = 0; MyBanComb_txt.text = CombFlush + TXTmast[FlushMast]; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 6; } if (straitFlag) { pairsQnt = 0; trixQnt = 0; MyBanComb_txt.text = CombStraight; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 5; } if (straitFlushFlag) { pairsQnt = 0; trixQnt = 0; MyBanComb_txt.text = CombStraitFlush; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 9; } if (RoyalFlushFlag) { pairsQnt = 0; trixQnt = 0; MyBanComb_txt.text = CombRoyalFlush; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 10; } if (FullHouseFlag) { pairsQnt = 0; trixQnt = 0; MyBanComb_txt.text = ((((CombFullHouse + TXTvals[FHTrixVal]) + "S") + " AND ") + TXTvals[FHPairsVal]) + "S"; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 7; } if (pairsQnt == 1) { if (pairVal >= 11) { pairsQnt = 0; MyBanComb_txt.text = (Comb2Jacks + TXTvals[pairVal]) + "S"; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 2; } } if (pairsQnt == 1) { MyBanComb_txt.text = (Comb2ofKind + TXTvals[pairVal]) + "S"; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 1; } if (pairsQnt == 2) { if (twoPairsVal > pairVal) { MyBanComb_txt.text = ((((Comb2Pairs + TXTvals[twoPairsVal]) + "S") + " AND ") + TXTvals[pairVal]) + "S"; } else { MyBanComb_txt.text = ((((Comb2Pairs + TXTvals[pairVal]) + "S") + " AND ") + TXTvals[twoPairsVal]) + "S"; } MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 3; } if (trixQnt == 1) { MyBanComb_txt.text = (Comb3ofKind + TXTvals[trixVal]) + "S"; MyBanComb_txt.textColor = 16777215 /* 0xFFFFFF */; MyBanComb_txt._visible = true; situaz = 4; } switch (situaz) { case -1 : koef = -2; break; case 0 : koef = -1; break; case 1 : koef = 1; break; case 2 : koef = 2; break; case 3 : koef = 3; break; case 4 : koef = 4; break; case 5 : koef = 5; break; case 6 : koef = 6; break; case 7 : koef = 8; break; case 8 : koef = 10; break; case 9 : koef = 20; break; case 10 : koef = 50; } MygameStep = 8; } function PokerCombOpp() { OPP_pairVal = 0; OPP_twoPairsVal = 0; OPP_trixVal = 0; OPP_quatroVal = 0; OPP_pairsQnt = 0; OPP_trixQnt = 0; OPP_quatroQnt = 0; OPP_nothing = true; OPP_nothingAtAll = false; OPP_straitFlag = false; OPP_flushFlag = false; OPP_straitFlushFlag = false; OPP_RoyalFlushFlag = false; OPP_FHPairsQnt = 0; OPP_FHTrizQnt = 0; OPP_FullHouseFlag = false; OPP_FHPairsVal = 0; OPP_FHTrixVal = 0; i = 1; while (i <= 5) { OPP_Cards[i].pair = 0; OPP_Cards[i].tri = 0; OPP_Cards[i].quatro = 0; i++; } i = 0; while (i <= 14) { OPP_FHAr2[i] = 0; OPP_CardsVals[i] = 0; OPP_StraightVals[i] = 0; i++; } OPP_NothHiVal = 0; lowCards[0] = 0; LowVal = 0; HiVal = 100; if (!Touch) { OPP_nothing = false; OPP_nothingAtAll = true; } else { i = 1; while (i <= 5) { if (OPP_Cards[i].VALUE > OPP_NothHiVal) { OPP_NothHiVal = OPP_Cards[i].VALUE; } OPP_Cards[i].SRTD = false; i++; } j = 1; while (j <= 5) { i = 1; while (i <= 5) { if (!OPP_Cards[i].SRTD) { if ((OPP_Cards[i].VALUE < HiVal) && (OPP_Cards[i].VALUE >= LowVal)) { HiVal = OPP_Cards[i].VALUE; lowCards[j] = i; } } i++; } LowVal = HiVal; OPP_Cards[lowCards[j]].SRTD = true; HiVal = 100; j++; } i = 1; while (i <= 5) { OPP_FHAr2[OPP_Cards[i].VALUE]++; i++; } i = 2; while (i <= 14) { if (OPP_FHAr2[i] > 1) { OPP_FHPairsQnt++; if (OPP_FHAr2[i] == 2) { OPP_FHPairsVal = i; } if (OPP_FHAr2[i] == 3) { OPP_FHTrixVal = i; OPP_FHTrizQnt++; } } i++; } if ((OPP_FHPairsQnt > 1) && (OPP_FHTrizQnt == 1)) { OPP_FullHouseFlag = true; } i = 1; while (i <= 5) { OPP_CardsVals[OPP_Cards[i].VALUE]++; i++; } i = 1; while (i <= 14) { if (OPP_CardsVals[i] == 2) { if (OPP_pairsQnt == 1) { OPP_pairsQnt = 2; OPP_twoPairsVal = i; } if (OPP_pairsQnt == 0) { OPP_pairsQnt = 1; OPP_pairVal = i; } OPP_nothing = false; } if (OPP_CardsVals[i] == 3) { OPP_trixQnt++; OPP_trixVal = i; OPP_nothing = false; } if (OPP_CardsVals[i] == 4) { OPP_quatroQnt++; OPP_quatroVal = i; OPP_nothing = false; } i++; } i = 1; while (i <= 5) { OPP_StraightVals[OPP_Cards[i].VALUE] = OPP_Cards[i].MAST; i++; } OPP_FlushMast = OPP_Cards[1].MAST; OPP_FlushHiVal = OPP_Cards[1].VALUE; if ((((OPP_Cards[2].MAST == OPP_FlushMast) && (OPP_Cards[3].MAST == OPP_FlushMast)) && (OPP_Cards[4].MAST == OPP_FlushMast)) && (OPP_Cards[5].MAST == OPP_FlushMast)) { OPP_flushFlag = true; OPP_nothing = false; i = 1; while (i <= 5) { if (OPP_Cards[i].VALUE > OPP_FlushHiVal) { OPP_FlushHiVal = OPP_Cards[i].VALUE; } i++; } } i = 0; while (i <= 15) { if (OPP_StraightVals[i] > 0) { if ((((OPP_StraightVals[i + 1] > 0) && (OPP_StraightVals[i + 2] > 0)) && (OPP_StraightVals[i + 3] > 0)) && (OPP_StraightVals[i + 4] > 0)) { OPP_straitFlag = true; OPP_nothing = false; OPP_straitHiVal = OPP_StraightVals[i + 4]; if (((((OPP_StraightVals[i] == OPP_FlushMast) && (OPP_StraightVals[i + 1] == OPP_FlushMast)) && (OPP_StraightVals[i + 2] == OPP_FlushMast)) && (OPP_StraightVals[i + 3] == OPP_FlushMast)) && (OPP_StraightVals[i + 4] == OPP_FlushMast)) { OPP_straitFlushFlag = true; OPP_straitFlag = false; OPP_flushFlag = false; OPP_nothing = false; if (i == 10) { OPP_RoyalFlushFlag = true; OPP_straitFlushFlag = false; OPP_straitFlag = false; OPP_flushFlag = false; OPP_nothing = false; } } } } i++; } } } function PokerCombOpp2() { OPP_situaz = 0; if (OPP_nothingAtAll) { Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = CombNoTouch; OPP_situaz = -1; } if (OPP_nothing) { Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = (TXTvals[OPP_NothHiVal] + " ") + CombNothing; OPP_situaz = 0; } if (OPP_quatroQnt > 0) { Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = (Comb4ofKind + TXTvals[OPP_quatroVal]) + "S"; OPP_flushFlag = false; OPP_pairsQnt = 0; OPP_trixQnt = 0; OPP_situaz = 8; } if (OPP_flushFlag) { OPP_pairsQnt = 0; OPP_trixQnt = 0; Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = CombFlush + TXTmast[OPP_FlushMast]; OPP_situaz = 6; } if (OPP_straitFlag) { OPP_pairsQnt = 0; OPP_trixQnt = 0; Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = CombStraight; OPP_situaz = 5; } if (OPP_straitFlushFlag) { OPP_pairsQnt = 0; OPP_trixQnt = 0; Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = CombStraitFlush; OPP_situaz = 9; } if (OPP_RoyalFlushFlag) { OPP_pairsQnt = 0; OPP_trixQnt = 0; Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = CombRoyalFlush; OPP_situaz = 10; } if (OPP_FullHouseFlag) { OPP_pairsQnt = 0; OPP_trixQnt = 0; Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = ((((CombFullHouse + TXTvals[OPP_FHTrixVal]) + "S") + " AND ") + TXTvals[OPP_FHPairsVal]) + "S"; OPP_situaz = 7; } if (OPP_pairsQnt == 1) { if (OPP_pairVal >= 11) { OPP_pairsQnt = 0; Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = (Comb2Jacks + TXTvals[OPP_pairVal]) + "S"; OPP_situaz = 2; } } if (OPP_pairsQnt == 1) { Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = (Comb2ofKind + TXTvals[OPP_pairVal]) + "S"; OPP_situaz = 1; } if (OPP_pairsQnt == 2) { if (OPP_twoPairsVal > OPP_pairVal) { Opp_BanComb_txt.text = ((((Comb2Pairs + TXTvals[OPP_twoPairsVal]) + "S") + " AND ") + TXTvals[OPP_pairVal]) + "S"; } else { Opp_BanComb_txt.text = ((((Comb2Pairs + TXTvals[OPP_pairVal]) + "S") + " AND ") + TXTvals[OPP_twoPairsVal]) + "S"; } Opp_BanComb_txt._visible = true; OPP_situaz = 3; } if (OPP_trixQnt == 1) { Opp_BanComb_txt._visible = true; Opp_BanComb_txt.text = (Comb3ofKind + TXTvals[OPP_trixVal]) + "S"; OPP_situaz = 4; } switch (OPP_situaz) { case -1 : OppKoef = -2; return; case 0 : OppKoef = -1; return; case 1 : OppKoef = 1; return; case 2 : OppKoef = 2; return; case 3 : OppKoef = 3; return; case 4 : OppKoef = 4; return; case 5 : OppKoef = 5; return; case 6 : OppKoef = 6; return; case 7 : OppKoef = 8; return; case 8 : OppKoef = 10; return; case 9 : OppKoef = 20; return; case 10 : OppKoef = 50; } } function PokerLogic() { var _local1 = 0; var _local2 = 0; if (situaz > OPP_situaz) { MyWin = 2; } else { if (situaz < OPP_situaz) { MyWin = 1; } if (situaz == OPP_situaz) { switch (situaz) { case 0 : if (NothHiVal > OPP_NothHiVal) { koef = 1; OppKoef = -1; } if (NothHiVal < OPP_NothHiVal) { koef = -1; OppKoef = 1; } if (NothHiVal == OPP_NothHiVal) { koef = -1; OppKoef = -1; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } i--; } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; } break; case 1 : if (pairVal > OPP_pairVal) { koef = 1; OppKoef = -1; } if (pairVal < OPP_pairVal) { koef = -1; OppKoef = 1; } if (pairVal == OPP_pairVal) { koef = 1; OppKoef = 1; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } i--; } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; } break; case 2 : if (pairVal > OPP_pairVal) { koef = 2; OppKoef = -1; } if (pairVal < OPP_pairVal) { koef = -1; OppKoef = 2; } if (pairVal == OPP_pairVal) { koef = 2; OppKoef = 2; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } i--; } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; } break; case 3 : if (pairVal > twoPairsVal) { _local1 = pairVal; MyLowPair = twoPairsVal; } else { _local1 = twoPairsVal; MyLowPair = pairVal; } if (OPP_pairVal > OPP_twoPairsVal) { _local2 = OPP_pairVal; OppLowPair = OPP_twoPairsVal; } else { _local2 = OPP_twoPairsVal; OppLowPair = OPP_pairVal; } if (_local1 > _local2) { koef = 3; OppKoef = -1; } if (_local1 < _local2) { koef = -1; OppKoef = 3; } if (_local1 == _local2) { if (MyLowPair > OppLowPair) { koef = 3; OppKoef = -1; } if (MyLowPair < OppLowPair) { koef = -1; OppKoef = 3; } if (MyLowPair == OppLowPair) { koef = 3; OppKoef = 3; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } i--; } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; } } break; case 4 : if (trixVal > OPP_trixVal) { koef = 4; OppKoef = -1; } if (trixVal < OPP_trixVal) { koef = -1; OppKoef = 4; } if (trixVal == OPP_trixVal) { koef = 4; OppKoef = 4; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; i--; } } break; case 5 : if (straitHiVal > OPP_straitHiVal) { koef = 5; OppKoef = -1; } if (straitHiVal < OPP_straitHiVal) { koef = -1; OppKoef = 5; } if (straitHiVal == OPP_straitHiVal) { koef = 5; OppKoef = 5; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } i--; } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; } break; case 6 : if (FlushHiVal > OPP_FlushHiVal) { koef = 6; OppKoef = -1; } if (FlushHiVal < OPP_FlushHiVal) { koef = 6; OppKoef = -1; } if (FlushHiVal == OPP_FlushHiVal) { koef = 6; OppKoef = 6; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } i--; } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; } break; case 7 : if (FHTrixVal > OPP_FHTrixVal) { koef = 8; OppKoef = -1; } if (FHTrixVal < OPP_FHTrixVal) { koef = -1; OppKoef = 8; } if (FHTrixVal == OPP_FHTrixVal) { koef = 8; OppKoef = 8; if (FHPairsVal > OPP_FHPairsVal) { koef = 8; OppKoef = -1; } if (FHTrixVal < OPP_FHTrixVal) { koef = -1; OppKoef = -8; } if (FHPairsVal == OPP_FHPairsVal) { koef = 8; OppKoef = 8; } } break; case 8 : if (quatroVal > OPP_quatroVal) { koef = 10; OppKoef = -1; } if (quatroVal < OPP_quatroVal) { koef = -1; OppKoef = 10; } if (quatroVal == OPP_quatroVal) { koef = 10; OppKoef = 10; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; i--; } } break; case 9 : if (straitHiVal > OPP_straitHiVal) { koef = 20; OppKoef = -1; } if (straitHiVal < OPP_straitHiVal) { koef = -1; OppKoef = 20; } if (straitHiVal == OPP_straitHiVal) { koef = 20; OppKoef = 20; AceHiFlag = false; AceHiMy = 0; AceHiOp = 0; i = 5; while (i >= 1) { if (!AceHiFlag) { if (Cards[lowCardsMy[i]].VALUE > OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; koef = 1; OppKoef = -1; AceHiMy = Cards[lowCardsMy[i]].VALUE; AceHiOp = OPP_Cards[lowCards[i]].VALUE; } else { if (Cards[lowCardsMy[i]].VALUE < OPP_Cards[lowCards[i]].VALUE) { AceHiFlag = true; } koef = -1; OppKoef = 1; AceHiOp = OPP_Cards[lowCards[i]].VALUE; AceHiMy = Cards[lowCardsMy[i]].VALUE; } } i--; } MyBanComb_txt.text = (TXTvals[AceHiMy] + " ") + CombNothing; Opp_BanComb_txt.text = (TXTvals[AceHiOp] + " ") + CombNothing; } break; case 10 : if (straitHiVal > OPP_straitHiVal) { koef = 50; OppKoef = -1; } if (straitHiVal < OPP_straitHiVal) { koef = -1; OppKoef = 50; } if (straitHiVal != OPP_straitHiVal) { break; } koef = 50; OppKoef = 50; } if ((koef > 0) && (OppKoef > 0)) { MyWin = 0; } else { if (koef > 0) { MyWin = 2; } if (OppKoef > 0) { MyWin = 1; } } } } }
Instance of Symbol 458 MovieClip "aim_mc" in Frame 2
onClipEvent (load) { Mouse.hide(); startDrag (this, true); }
Symbol 5 MovieClip [VideoPlayer] Frame 1
#initclip 12 Object.registerClass("VideoPlayer", mx.video.VideoPlayer); #endinitclip
Symbol 9 MovieClip [FLVPlayback] Frame 1
#initclip 13 Object.registerClass("FLVPlayback", mx.video.FLVPlayback); #endinitclip stop();
Symbol 88 MovieClip Frame 1
var VALUE; var MAST;
Symbol 91 MovieClip Frame 1
var VALUE; var MAST;
Symbol 94 MovieClip Frame 1
var VALUE; var MAST;
Symbol 97 MovieClip Frame 1
var VALUE; var MAST;
Symbol 100 MovieClip Frame 1
var VALUE; var MAST;
Symbol 103 MovieClip Frame 1
var VALUE; var MAST;
Symbol 106 MovieClip Frame 1
var VALUE; var MAST;
Symbol 109 MovieClip Frame 1
var VALUE; var MAST;
Symbol 112 MovieClip Frame 1
var VALUE; var MAST;
Symbol 115 MovieClip Frame 1
var VALUE; var MAST;
Symbol 119 MovieClip Frame 1
var VALUE; var MAST;
Symbol 123 MovieClip Frame 1
var VALUE; var MAST;
Symbol 127 MovieClip Frame 1
var VALUE; var MAST;
Symbol 129 MovieClip Frame 1
var VALUE; var MAST;
Symbol 131 MovieClip Frame 1
var VALUE; var MAST;
Symbol 133 MovieClip Frame 1
var VALUE; var MAST;
Symbol 135 MovieClip Frame 1
var VALUE; var MAST;
Symbol 137 MovieClip Frame 1
var VALUE; var MAST;
Symbol 139 MovieClip Frame 1
var VALUE; var MAST;
Symbol 141 MovieClip Frame 1
var VALUE; var MAST;
Symbol 143 MovieClip Frame 1
var VALUE; var MAST;
Symbol 145 MovieClip Frame 1
var VALUE; var MAST;
Symbol 147 MovieClip Frame 1
var VALUE; var MAST;
Symbol 149 MovieClip Frame 1
var VALUE; var MAST;
Symbol 151 MovieClip Frame 1
var VALUE; var MAST;
Symbol 153 MovieClip Frame 1
var VALUE; var MAST;
Symbol 156 MovieClip Frame 1
var VALUE; var MAST;
Symbol 159 MovieClip Frame 1
var VALUE; var MAST;
Symbol 162 MovieClip Frame 1
var VALUE; var MAST;
Symbol 165 MovieClip Frame 1
var VALUE; var MAST;
Symbol 168 MovieClip Frame 1
var VALUE; var MAST;
Symbol 171 MovieClip Frame 1
var VALUE; var MAST;
Symbol 174 MovieClip Frame 1
var VALUE; var MAST;
Symbol 177 MovieClip Frame 1
var VALUE; var MAST;
Symbol 180 MovieClip Frame 1
var VALUE; var MAST;
Symbol 183 MovieClip Frame 1
var VALUE; var MAST;
Symbol 187 MovieClip Frame 1
var VALUE; var MAST;
Symbol 191 MovieClip Frame 1
var VALUE; var MAST;
Symbol 195 MovieClip Frame 1
var VALUE; var MAST;
Symbol 198 MovieClip Frame 1
var VALUE; var MAST;
Symbol 200 MovieClip Frame 1
var VALUE; var MAST;
Symbol 202 MovieClip Frame 1
var VALUE; var MAST;
Symbol 204 MovieClip Frame 1
var VALUE; var MAST;
Symbol 206 MovieClip Frame 1
var VALUE; var MAST;
Symbol 208 MovieClip Frame 1
var VALUE; var MAST;
Symbol 210 MovieClip Frame 1
var VALUE; var MAST;
Symbol 212 MovieClip Frame 1
var VALUE; var MAST;
Symbol 214 MovieClip Frame 1
var VALUE; var MAST;
Symbol 216 MovieClip Frame 1
var VALUE; var MAST;
Symbol 218 MovieClip Frame 1
var VALUE; var MAST;
Symbol 220 MovieClip Frame 1
var VALUE; var MAST;
Symbol 222 MovieClip Frame 1
var VALUE; var MAST;
Symbol 243 MovieClip Frame 1
var myNum; numRoll_mc.setMask(numMask_mc); numRoll_mc.onEnterFrame = function () { if (_root.Incr[myNum] > 0) { this.numMov_mc._x = this.numMov_mc._x + _root.Incr[myNum]; if (this.numMov_mc._x > 25) { this.numMov_mc._x = -25; } if (this.numMov_mc._x < -25) { this.numMov_mc._x = 25; } } else { this.numMov_mc._x = 0; } };
Symbol 296 MovieClip Frame 1
FLVbar_mc.setMask(barMask_mc);
Symbol 1 MovieClip [__Packages.mx.video.FLVPlayback] Frame 0
class mx.video.FLVPlayback extends MovieClip { var _autoPlay, _autoRewind, _autoSize, _bufferTime, _contentPath, _cuePoints, _idleTimeout, _isLive, _aspectRatio, _seekToPrevOffset, _playheadUpdateInterval, _progressInterval, _totalTime, _transform, _volume, _skinAutoHide, _bufferingBarHides, _origHeight, _prevHeight, __height, _height, _origWidth, _prevWidth, __width, _width, _scaleX, _scaleY, _xscale, _yscale, _preSeekTime, _firstStreamReady, _firstStreamShown, _activeVP, _visibleVP, _topVP, _vp, _vpState, _cpMgr, boundingBox_mc, preview_mc, dispatchEvent, _uiMgr, _bufferingBar, _backButton, __get__cuePoints, _forwardButton, _muteButton, _pauseButton, _playButton, _playPauseButton, _seekBar, _seekBarInterval, _seekBarScrubTolerance, _skin, _stopButton, _visible, _volumeBar, _volumeBarInterval, _volumeBarScrubTolerance, _x, _y, attachMovie, createEmptyMovieClip; function FLVPlayback () { super(); mx.events.EventDispatcher.initialize(this); if (_autoPlay == undefined) { _autoPlay = true; } if (_autoRewind == undefined) { _autoRewind = true; } if (_autoSize == undefined) { _autoSize = false; } if (_bufferTime == undefined) { _bufferTime = 0.1; } if (_contentPath == undefined) { _contentPath = ""; } if (_cuePoints == undefined) { _cuePoints = null; } if (_idleTimeout == undefined) { _idleTimeout = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL; } if (_isLive == undefined) { _isLive = false; } if (_aspectRatio == undefined) { _aspectRatio = true; } if (_seekToPrevOffset == undefined) { _seekToPrevOffset = SEEK_TO_PREV_OFFSET_DEFAULT; } if (_playheadUpdateInterval == undefined) { _playheadUpdateInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL; } if (_progressInterval == undefined) { _progressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL; } if (_totalTime == undefined) { _totalTime = 0; } if (_transform == undefined) { _transform = null; } if (_volume == undefined) { _volume = 100; } if (_skinAutoHide == undefined) { _skinAutoHide = false; } if (_bufferingBarHides == undefined) { _bufferingBarHides = false; } _origHeight = (_prevHeight = (__height = _height)); _origWidth = (_prevWidth = (__width = _width)); _scaleX = 100; _scaleY = 100; _xscale = 100; _yscale = 100; _preSeekTime = -1; _firstStreamReady = false; _firstStreamShown = false; createUIManager(); _activeVP = 0; _visibleVP = 0; _topVP = 0; _vp = new Array(); _vpState = new Array(); _cpMgr = new Array(); createVideoPlayer(0); _vp[0].visible = false; _vp[0].volume = 0; boundingBox_mc._visible = false; boundingBox_mc.unloadMovie(); delete boundingBox_mc; if (_global.isLivePreview) { createLivePreviewMovieClip(); setSize(__width, __height); } _cpMgr[0].processCuePointsProperty(_cuePoints); delete _cuePoints; _cuePoints = null; } function setSize(w, h) { if (_global.isLivePreview) { if (preview_mc == undefined) { createLivePreviewMovieClip(); } preview_mc.box_mc._width = w; preview_mc.box_mc._height = h; if ((preview_mc.box_mc._width < preview_mc.icon_mc._width) || (preview_mc.box_mc._height < preview_mc.icon_mc._height)) { preview_mc.icon_mc._visible = false; } else { preview_mc.icon_mc._visible = true; preview_mc.icon_mc._x = (preview_mc.box_mc._width - preview_mc.icon_mc._width) / 2; preview_mc.icon_mc._y = (preview_mc.box_mc._height - preview_mc.icon_mc._height) / 2; } } if ((w == width) && (h == height)) { return(undefined); } _prevWidth = (__width = w); _prevHeight = (__height = h); var _local3 = 0; while (_local3 < _vp.length) { if (_vp[_local3] != undefined) { _vp[_local3].setSize(w, h); } _local3++; } dispatchEvent({type:"resize", x:x, y:y, width:w, height:h}); } function setScale(xs, ys) { if ((xs == scaleX) && (ys == scaleY)) { return(undefined); } _scaleX = xs; _scaleY = ys; var _local2 = 0; while (_local2 < _vp.length) { if (_vp[_local2] != undefined) { _vp[_local2].setSize((_origWidth * xs) / 100, (_origHeight * ys) / 100); } _local2++; } dispatchEvent({type:"resize", x:x, y:y, width:width, height:height}); } function handleEvent(e) { var _local3 = e.state; if (((e.state != undefined) && (e.target._name == _visibleVP)) && (scrubbing)) { _local3 = SEEKING; } if (e.type == "metadataReceived") { _cpMgr[e.target._name].processFLVCuePoints(e.info.cuePoints); dispatchEvent({type:e.type, info:e.info, vp:e.target._name}); } else if (e.type == "cuePoint") { if (_cpMgr[e.target._name].isFLVCuePointEnabled(e.info)) { dispatchEvent({type:e.type, info:e.info, vp:e.target._name}); } } else if (e.type == "rewind") { dispatchEvent({type:e.type, auto:true, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); _cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); } else if (e.type == "resize") { dispatchEvent({type:e.type, x:x, y:y, width:width, height:height, auto:true, vp:e.target._name}); _prevWidth = __width; _prevHeight = __height; } else if (e.type == "playheadUpdate") { dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if ((_preSeekTime >= 0) && (e.target.state != SEEKING)) { var _local5 = _preSeekTime; _preSeekTime = -1; _cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); dispatchEvent({type:"seek", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if (_local5 < e.playheadTime) { dispatchEvent({type:"fastForward", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } else if (_local5 > e.playheadTime) { dispatchEvent({type:"rewind", auto:false, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } _cpMgr[e.target._name].dispatchASCuePoints(); } else if (e.type == "stateChange") { var _local4 = e.target._name; if ((_local4 == _visibleVP) && (scrubbing)) { return(undefined); } if (e.state == mx.video.VideoPlayer.RESIZING) { return(undefined); } if (((_vpState[_local4].prevState == LOADING) && (_vpState[_local4].autoPlay)) && (e.state == STOPPED)) { return(undefined); } _vpState[_local4].prevState = e.state; dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if (_vp[e.target._name].state != _local3) { return(undefined); } switch (_local3) { case BUFFERING : dispatchEvent({type:"buffering", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case PAUSED : dispatchEvent({type:"paused", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case PLAYING : dispatchEvent({type:"playing", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case STOPPED : dispatchEvent({type:"stopped", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } else if (e.type == "progress") { dispatchEvent({type:e.type, bytesLoaded:e.bytesLoaded, bytesTotal:e.bytesTotal, vp:e.target._name}); } else if (e.type == "ready") { var _local4 = e.target._name; if (!_firstStreamReady) { if (_local4 == _visibleVP) { _firstStreamReady = true; if (_uiMgr.__get__skinReady() && (!_firstStreamShown)) { _uiMgr.__set__visible(true); showFirstStream(); } } } else if ((_firstStreamShown && (_local3 == STOPPED)) && _vpState[_local4].autoPlay) { _vp[_local4].play(); } dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } else if ((e.type == "close") || (e.type == "complete")) { dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } function load(contentPath, totalTime, isLive) { if (_vp[_activeVP] == undefined) { return(undefined); } if (((contentPath == undefined) || (contentPath == null)) || (contentPath == "")) { return(undefined); } autoPlay = (false); if (totalTime != undefined) { this.totalTime = (totalTime); } if (isLive != undefined) { this.isLive = (isLive); } this.contentPath = (contentPath); } function play(contentPath, totalTime, isLive) { if (_vp[_activeVP] == undefined) { return(undefined); } if (contentPath == undefined) { _vp[_activeVP].play(); } else { autoPlay = (true); if (totalTime != undefined) { this.totalTime = (totalTime); } if (isLive != undefined) { this.isLive = (isLive); } this.contentPath = (contentPath); } } function pause() { if (_vp[_activeVP] == undefined) { return(undefined); } _vp[_activeVP].pause(); } function stop() { if (_vp[_activeVP] == undefined) { return(undefined); } _vp[_activeVP].stop(); } function seek(time) { if (_vp[_activeVP] == undefined) { return(undefined); } _preSeekTime = playheadTime; _vp[_activeVP].seek(time); } function seekSeconds(time) { seek(time); } function seekPercent(percent) { if (_vp[_activeVP] == undefined) { return(undefined); } if (((((percent < 0) || (percent > 100)) || (_vp[_activeVP].totalTime == undefined)) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } seek((_vp[_activeVP].totalTime * percent) / 100); } function get playheadPercentage() { if (((_vp[_activeVP].totalTime == undefined) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) { return(undefined); } return((_vp[_activeVP].playheadTime / _vp[_activeVP].totalTime) * 100); } function set playheadPercentage(percent) { seekPercent(percent); //return(playheadPercentage); } function seekToNavCuePoint(timeNameOrCuePoint) { var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } if (((_local3.name == null) || (_local3.name == undefined)) || (typeof(_local3.name) != "string")) { seekToNextNavCuePoint(_local3.time); return(undefined); } if (isNaN(_local3.time)) { _local3.time = 0; } var _local2 = findNearestCuePoint(timeNameOrCuePoint, NAVIGATION); while ((_local2 != null) && ((_local2.time < _local3.time) || (!isFLVCuePointEnabled(_local2)))) { _local2 = findNextCuePointWithName(_local2); } if (_local2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } seek(_local2.time); } function seekToNextNavCuePoint(time) { if (_vp[_activeVP] == undefined) { return(undefined); } if (isNaN(time) || (time < 0)) { time = _vp[_activeVP].playheadTime + 0.001; } var _local3; _local3 = findNearestCuePoint(time, NAVIGATION); if (_local3 == null) { seek(_vp[_activeVP].totalTime); return(undefined); } var _local2 = _local3.index; if (_local3.time < time) { _local2++; } while ((_local2 < _local3.array.length) && (!isFLVCuePointEnabled(_local3.array[_local2]))) { _local2++; } if (_local2 >= _local3.array.length) { var _local5 = _vp[_activeVP].totalTime; if (_local3.array[_local3.array.length - 1].time > _local5) { _local5 = _local3.array[_local3.array.length - 1]; } seek(_local5); } else { seek(_local3.array[_local2].time); } } function seekToPrevNavCuePoint(time) { if (_vp[_activeVP] == undefined) { return(undefined); } if (isNaN(time) || (time < 0)) { time = _vp[_activeVP].playheadTime; } var _local3 = findNearestCuePoint(time, NAVIGATION); if (_local3 == null) { seek(0); return(undefined); } var _local2 = _local3.index; while ((_local2 >= 0) && ((!isFLVCuePointEnabled(_local3.array[_local2])) || (_local3.array[_local2].time >= (time - _seekToPrevOffset)))) { _local2--; } if (_local2 < 0) { seek(0); } else { seek(_local3.array[_local2].time); } } function addASCuePoint(timeOrCuePoint, name, parameters) { return(_cpMgr[_activeVP].addASCuePoint(timeOrCuePoint, name, parameters)); } function removeASCuePoint(timeNameOrCuePoint) { return(_cpMgr[_activeVP].removeASCuePoint(timeNameOrCuePoint)); } function findCuePoint(timeNameOrCuePoint, type) { switch (type) { case "event" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, false, timeNameOrCuePoint)); case "navigation" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, false, timeNameOrCuePoint)); case "flv" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, false, timeNameOrCuePoint)); case "actionscript" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, false, timeNameOrCuePoint)); case "all" : } return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, false, timeNameOrCuePoint)); } function findNearestCuePoint(timeNameOrCuePoint, type) { switch (type) { case "event" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, true, timeNameOrCuePoint)); case "navigation" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, true, timeNameOrCuePoint)); case "flv" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, true, timeNameOrCuePoint)); case "actionscript" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, true, timeNameOrCuePoint)); case "all" : } return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, true, timeNameOrCuePoint)); } function findNextCuePointWithName(cuePoint) { return(_cpMgr[_activeVP].getNextCuePointWithName(cuePoint)); } function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) { return(_cpMgr[_activeVP].setFLVCuePointEnabled(enabled, timeNameOrCuePoint)); } function isFLVCuePointEnabled(timeNameOrCuePoint) { return(_cpMgr[_activeVP].isFLVCuePointEnabled(timeNameOrCuePoint)); } function getNextHighestDepth() { var _local2 = super.getNextHighestDepth(); return(((_local2 < 1000) ? 1000 : (_local2))); } function bringVideoPlayerToFront(index) { if ((index == _topVP) || (_vp[index] == undefined)) { return(undefined); } _vp[_topVP].swapDepths(_vp[index].getDepth()); _topVP = index; } function getVideoPlayer(index) { return(_vp[index]); } function closeVideoPlayer(index) { if (_vp[index] == undefined) { return(undefined); } if (index == 0) { throw new mx.video.VideoError(mx.video.VideoError.DELETE_DEFAULT_PLAYER); } if (_visibleVP == index) { visibleVideoPlayerIndex = (0); } if (_activeVP == index) { activeVideoPlayerIndex = (0); } _vp[index].close(); _vp[index].unloadMovie(); delete _vp[index]; _vp[index] = undefined; } function get activeVideoPlayerIndex() { return(_activeVP); } function set activeVideoPlayerIndex(i) { if (_activeVP == i) { return; } if (_vp[_activeVP].onEnterFrame != undefined) { doContentPathConnect(); } _activeVP = i; if (_vp[_activeVP] == undefined) { createVideoPlayer(_activeVP); _vp[_activeVP].visible = false; _vp[_activeVP].volume = 0; } //return(activeVideoPlayerIndex); } function get autoPlay() { if (_vpState[_activeVP] == undefined) { return(_autoPlay); } return(_vpState[_activeVP].autoPlay); } function set autoPlay(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoPlay = flag; } _vpState[_activeVP].autoPlay = flag; //return(autoPlay); } function get autoRewind() { if (_vp[_activeVP] == undefined) { return(_autoRewind); } return(_vp[_activeVP].autoRewind); } function set autoRewind(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoRewind = flag; } _vp[_activeVP].autoRewind = flag; //return(autoRewind); } function get autoSize() { if (_vp[_activeVP] == undefined) { return(_autoSize); } return(_vp[_activeVP].autoSize); } function set autoSize(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoSize = flag; } _vp[_activeVP].autoSize = flag; //return(autoSize); } function get bitrate() { return(ncMgr.getBitrate()); } function set bitrate(b) { ncMgr.setBitrate(b); //return(bitrate); } function get buffering() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == BUFFERING); } function get bufferingBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _bufferingBar = _uiMgr.getControl(mx.video.UIManager.BUFFERING_BAR); } return(_bufferingBar); } function set bufferingBar(s) { _bufferingBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, s); } //return(bufferingBar); } function get bufferingBarHidesAndDisablesOthers() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _bufferingBarHides = _uiMgr.bufferingBarHidesAndDisablesOthers; } return(_bufferingBarHides); } function set bufferingBarHidesAndDisablesOthers(b) { _bufferingBarHides = b; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__bufferingBarHidesAndDisablesOthers(b); } //return(bufferingBarHidesAndDisablesOthers); } function get backButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _backButton = _uiMgr.getControl(mx.video.UIManager.BACK_BUTTON); } return(_backButton); } function set backButton(s) { _backButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, s); } //return(backButton); } function get bufferTime() { if (_vp[_activeVP] == undefined) { return(_bufferTime); } return(_vp[_activeVP].bufferTime); } function set bufferTime(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _bufferTime = aTime; } _vp[_activeVP].bufferTime = aTime; //return(bufferTime); } function get bytesLoaded() { return(_vp[_activeVP].bytesLoaded); } function get bytesTotal() { return(_vp[_activeVP].bytesTotal); } function get contentPath() { if ((_vp[_activeVP] == undefined) || (_vp[_activeVP].onEnterFrame != undefined)) { return(_contentPath); } return(_vp[_activeVP].url); } function set contentPath(url) { if (_global.isLivePreview) { return; } if (_vp[_activeVP] == undefined) { if (url == _contentPath) { return; } _contentPath = url; } else { if (_vp[_activeVP].url == url) { return; } _vpState[_activeVP].minProgressPercent = undefined; if (_vp[_activeVP].onEnterFrame != undefined) { delete _vp[_activeVP].onEnterFrame; _vp[_activeVP].onEnterFrame = undefined; } _cpMgr[_activeVP].reset(); if (_vpState[_activeVP].autoPlay && (_firstStreamShown)) { _vp[_activeVP].play(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime); } else { _vp[_activeVP].load(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime); } _vpState[_activeVP].isLiveSet = false; _vpState[_activeVP].totalTimeSet = false; } //return(contentPath); } function set cuePoints(cp) { if (_cuePoints != undefined) { return; } _cuePoints = cp; //return(__get__cuePoints()); } function get forwardButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _forwardButton = _uiMgr.getControl(mx.video.UIManager.FORWARD_BUTTON); } return(_forwardButton); } function set forwardButton(s) { _forwardButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, s); } //return(forwardButton); } function get height() { if (_global.isLivePreview) { return(__height); } if (_vp[_visibleVP] != undefined) { __height = _vp[_visibleVP].height; } return(__height); } function set height(h) { setSize(width, h); //return(height); } function get idleTimeout() { if (_vp[_activeVP] == undefined) { return(_idleTimeout); } return(_vp[_activeVP].idleTimeout); } function set idleTimeout(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _idleTimeout = aTime; } _vp[_activeVP].idleTimeout = aTime; //return(idleTimeout); } function get isRTMP() { if (_global.isLivePreview) { return(true); } if (_vp[_activeVP] == undefined) { return(undefined); } return(_vp[_activeVP].isRTMP); } function get isLive() { if (_vp[_activeVP] == undefined) { return(_isLive); } if (_vpState[_activeVP].isLiveSet) { return(_vpState[_activeVP].isLive); } return(_vp[_activeVP].isLive); } function set isLive(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _isLive = flag; } _vpState[_activeVP].isLive = flag; _vpState[_activeVP].isLiveSet = true; //return(isLive); } function get maintainAspectRatio() { if (_vp[_activeVP] == undefined) { return(_aspectRatio); } return(_vp[_activeVP].maintainAspectRatio); } function set maintainAspectRatio(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _aspectRatio = flag; } _vp[_activeVP].maintainAspectRatio = flag; //return(maintainAspectRatio); } function get metadata() { if (_vp[_activeVP] == undefined) { return(null); } return(_vp[_activeVP].metadata); } function get metadataLoaded() { if (_vp[_activeVP] == undefined) { return(false); } return(_cpMgr[_activeVP].metadataLoaded); } function get muteButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _muteButton = _uiMgr.getControl(mx.video.UIManager.MUTE_BUTTON); } return(_muteButton); } function set muteButton(s) { _muteButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, s); } //return(muteButton); } function get ncMgr() { if (_vp[_activeVP] == undefined) { return(null); } return(_vp[_activeVP].ncMgr); } function get pauseButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _pauseButton = _uiMgr.getControl(mx.video.UIManager.PAUSE_BUTTON); } return(_pauseButton); } function set pauseButton(s) { _pauseButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, s); } //return(pauseButton); } function get paused() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == PAUSED); } function get playButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _playButton = _uiMgr.getControl(mx.video.UIManager.PLAY_BUTTON); } return(_playButton); } function set playButton(s) { _playButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, s); } //return(playButton); } function get playheadTime() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].playheadTime); } function set playheadTime(position) { seek(position); //return(playheadTime); } function get playheadUpdateInterval() { if (_vp[_activeVP] == undefined) { return(_playheadUpdateInterval); } return(_vp[_activeVP].playheadUpdateInterval); } function set playheadUpdateInterval(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _playheadUpdateInterval = aTime; } _cpMgr[_activeVP].playheadUpdateInterval = aTime; _vp[_activeVP].playheadUpdateInterval = aTime; //return(playheadUpdateInterval); } function get playing() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == PLAYING); } function get playPauseButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _playPauseButton = _uiMgr.getControl(mx.video.UIManager.PLAY_PAUSE_BUTTON); } return(_playPauseButton); } function set playPauseButton(s) { _playPauseButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, s); } //return(playPauseButton); } function get preferredHeight() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].videoHeight); } function get preferredWidth() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].videoWidth); } function get progressInterval() { if (_vp[_activeVP] == undefined) { return(_progressInterval); } return(_vp[_activeVP].progressInterval); } function set progressInterval(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _progressInterval = aTime; } _vp[_activeVP].progressInterval = aTime; //return(progressInterval); } function get scaleX() { if (_vp[_visibleVP] != undefined) { _scaleX = (_vp[_visibleVP].width / _origWidth) * 100; } return(_scaleX); } function set scaleX(xs) { setScale(xs, scaleY); //return(scaleX); } function get scaleY() { if (_vp[_visibleVP] != undefined) { _scaleY = (_vp[_visibleVP].height / _origHeight) * 100; } return(_scaleY); } function set scaleY(ys) { setScale(scaleX, ys); //return(scaleY); } function get scrubbing() { var _local2 = seekBar; if ((_local2 == undefined) || (_local2.isDragging == undefined)) { return(false); } return(_local2.isDragging); } function get seekBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBar = _uiMgr.getControl(mx.video.UIManager.SEEK_BAR); } return(_seekBar); } function set seekBar(s) { _seekBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.SEEK_BAR, s); } //return(seekBar); } function get seekBarInterval() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBarInterval = _uiMgr.seekBarInterval; } return(_seekBarInterval); } function set seekBarInterval(s) { _seekBarInterval = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__seekBarInterval(_seekBarInterval); } //return(seekBarInterval); } function get seekBarScrubTolerance() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _seekBarScrubTolerance = _uiMgr.seekBarScrubTolerance; } return(_seekBarScrubTolerance); } function set seekBarScrubTolerance(s) { _seekBarScrubTolerance = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance); } //return(seekBarScrubTolerance); } function get seekToPrevOffset() { return(_seekToPrevOffset); } function set seekToPrevOffset(s) { _seekToPrevOffset = s; //return(seekToPrevOffset); } function get skin() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _skin = _uiMgr.skin; } return(_skin); } function set skin(s) { _skin = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__skin(s); } //return(skin); } function get skinAutoHide() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _skinAutoHide = _uiMgr.skinAutoHide; } return(_skinAutoHide); } function set skinAutoHide(b) { if (_global.isLivePreview) { return; } _skinAutoHide = b; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__skinAutoHide(b); } //return(skinAutoHide); } function get transform() { return(_transform); } function set transform(s) { _transform = s; if (_vp[_activeVP] != undefined) { _vp[_activeVP].transform = _transform; } //return(transform); } function get state() { if (_global.isLivePreview) { return(STOPPED); } if (_vp[_activeVP] == undefined) { return(DISCONNECTED); } if ((_activeVP == _visibleVP) && (scrubbing)) { return(SEEKING); } var _local3 = _vp[_activeVP].state; if (_local3 == mx.video.VideoPlayer.RESIZING) { return(LOADING); } if (((_vpState[_activeVP].prevState == LOADING) && (_vpState[_activeVP].autoPlay)) && (_local3 == STOPPED)) { return(LOADING); } return(_local3); } function get stateResponsive() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].stateResponsive); } function get stopButton() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _stopButton = _uiMgr.getControl(mx.video.UIManager.STOP_BUTTON); } return(_stopButton); } function set stopButton(s) { _stopButton = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, s); } //return(stopButton); } function get stopped() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == STOPPED); } function get totalTime() { if (_global.isLivePreview) { return(1); } if (_vp[_activeVP] == undefined) { return(_totalTime); } if (_vpState[_activeVP].totalTimeSet) { return(_vpState[_activeVP].totalTime); } return(_vp[_activeVP].totalTime); } function set totalTime(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _totalTime = aTime; } _vpState[_activeVP].totalTime = aTime; _vpState[_activeVP].totalTimeSet = true; //return(totalTime); } function get version_1_0_1() { return(""); } function set version_1_0_1(v) { //return(version_1_0_1); } function get visible() { return(_visible); } function set visible(v) { _visible = v; //return(visible); } function get visibleVideoPlayerIndex() { return(_visibleVP); } function set visibleVideoPlayerIndex(i) { if (_visibleVP == i) { return; } var _local2 = _visibleVP; if (_vp[i] == undefined) { createVideoPlayer(i); } var _local5 = (_vp[i].height != _vp[_visibleVP].height) || (_vp[i].width != _vp[_visibleVP].width); _vp[_visibleVP].visible = false; _vp[_visibleVP].volume = 0; _visibleVP = i; if (_firstStreamShown) { _uiMgr.setupSkinAutoHide(_local2); _vp[_visibleVP].visible = true; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } } else if ((_vp[_visibleVP].stateResponsive && (_vp[_visibleVP].state != DISCONNECTED)) && (_uiMgr.__get__skinReady())) { _uiMgr.__set__visible(true); _uiMgr.setupSkinAutoHide(_local2); _firstStreamReady = true; showFirstStream(); } if ((_vp[_local2].height != _vp[_visibleVP].height) || (_vp[_local2].width != _vp[_visibleVP].width)) { dispatchEvent({type:"resize", x:x, y:y, width:width, height:height, auto:false, vp:_visibleVP}); } _uiMgr.handleEvent({type:"stateChange", state:_vp[_visibleVP].state, vp:_visibleVP}); _uiMgr.handleEvent({type:"playheadUpdate", playheadTime:_vp[_visibleVP].playheadTime, vp:_visibleVP}); if (_vp[_visibleVP].isRTMP) { _uiMgr.handleEvent({type:"ready", vp:_visibleVP}); } else { _uiMgr.handleEvent({type:"progress", bytesLoaded:_vp[_visibleVP].bytesLoaded, bytesTotal:_vp[_visibleVP].bytesTotal, vp:_visibleVP}); } //return(visibleVideoPlayerIndex); } function get volume() { return(_volume); } function set volume(aVol) { if (_volume == aVol) { return; } _volume = aVol; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } dispatchEvent({type:"volumeUpdate", volume:aVol}); //return(volume); } function get volumeBar() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBar = _uiMgr.getControl(mx.video.UIManager.VOLUME_BAR); } return(_volumeBar); } function set volumeBar(s) { _volumeBar = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, s); } //return(volumeBar); } function get volumeBarInterval() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBarInterval = _uiMgr.volumeBarInterval; } return(_volumeBarInterval); } function set volumeBarInterval(s) { _volumeBarInterval = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__volumeBarInterval(_volumeBarInterval); } //return(volumeBarInterval); } function get volumeBarScrubTolerance() { if ((_uiMgr != null) && (_uiMgr != undefined)) { _volumeBarScrubTolerance = _uiMgr.volumeBarScrubTolerance; } return(_volumeBarScrubTolerance); } function set volumeBarScrubTolerance(s) { _volumeBarScrubTolerance = s; if ((_uiMgr != null) && (_uiMgr != undefined)) { _uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance); } //return(volumeBarScrubTolerance); } function get width() { if (_global.isLivePreview) { return(__width); } if (_vp[_visibleVP] != undefined) { __width = _vp[_visibleVP].width; } return(__width); } function set width(w) { setSize(w, height); //return(width); } function get x() { return(_x); } function set x(xpos) { _x = xpos; //return(x); } function get y() { return(_y); } function set y(ypos) { _y = ypos; //return(y); } function createVideoPlayer(index) { if (_global.isLivePreview) { return(undefined); } var _local4 = width; var _local5 = height; _vp[index] = mx.video.VideoPlayer(attachMovie("VideoPlayer", String(index), VP_DEPTH_OFFSET + index)); _vp[index].setSize(_local4, _local5); _topVP = index; _vp[index].autoRewind = _autoRewind; _vp[index].autoSize = _autoSize; _vp[index].bufferTime = _bufferTime; _vp[index].idleTimeout = _idleTimeout; _vp[index].maintainAspectRatio = _aspectRatio; _vp[index].playheadUpdateInterval = _playheadUpdateInterval; _vp[index].progressInterval = _progressInterval; _vp[index].transform = _transform; _vp[index].volume = _volume; if (index == 0) { _vpState[index] = {id:index, isLive:_isLive, isLiveSet:true, totalTime:_totalTime, totalTimeSet:true, autoPlay:_autoPlay}; if (((_contentPath != null) && (_contentPath != undefined)) && (_contentPath != "")) { _vp[index].onEnterFrame = mx.utils.Delegate.create(this, doContentPathConnect); } } else { _vpState[index] = {id:index, isLive:false, isLiveSet:true, totalTime:0, totalTimeSet:true, autoPlay:false}; } _vp[index].addEventListener("resize", this); _vp[index].addEventListener("close", this); _vp[index].addEventListener("complete", this); _vp[index].addEventListener("cuePoint", this); _vp[index].addEventListener("playheadUpdate", this); _vp[index].addEventListener("progress", this); _vp[index].addEventListener("metadataReceived", this); _vp[index].addEventListener("stateChange", this); _vp[index].addEventListener("ready", this); _vp[index].addEventListener("rewind", this); _cpMgr[index] = new mx.video.CuePointManager(this, index); _cpMgr[index].playheadUpdateInterval = _playheadUpdateInterval; } function createUIManager() { _uiMgr = new mx.video.UIManager(this); _uiMgr.__set__visible(false); if ((_backButton != undefined) && (_backButton != null)) { _uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, _backButton); } if ((_bufferingBar != undefined) && (_bufferingBar != null)) { _uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, _bufferingBar); } _uiMgr.__set__bufferingBarHidesAndDisablesOthers(_bufferingBarHides); if ((_forwardButton != undefined) && (_forwardButton != null)) { _uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, _forwardButton); } if ((_pauseButton != undefined) && (_pauseButton != null)) { _uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, _pauseButton); } if ((_playButton != undefined) && (_playButton != null)) { _uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, _playButton); } if ((_playPauseButton != undefined) && (_playPauseButton != null)) { _uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, _playPauseButton); } if ((_stopButton != undefined) && (_stopButton != null)) { _uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, _stopButton); } if ((_seekBar != undefined) && (_seekBar != null)) { _uiMgr.setControl(mx.video.UIManager.SEEK_BAR, _seekBar); } if ((_seekBarInterval != undefined) && (_seekBarInterval != null)) { _uiMgr.__set__seekBarInterval(_seekBarInterval); } if ((_seekBarScrubTolerance != undefined) && (_seekBarScrubTolerance != null)) { _uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance); } if ((_skin != undefined) && (_skin != null)) { _uiMgr.__set__skin(_skin); } if ((_skinAutoHide != undefined) && (_skinAutoHide != null)) { _uiMgr.__set__skinAutoHide(_skinAutoHide); } if ((_muteButton != undefined) && (_muteButton != null)) { _uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, _muteButton); } if ((_volumeBar != undefined) && (_volumeBar != null)) { _uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, _volumeBar); } if ((_volumeBarInterval != undefined) && (_volumeBarInterval != null)) { _uiMgr.__set__volumeBarInterval(_volumeBarInterval); } if ((_volumeBarScrubTolerance != undefined) && (_volumeBarScrubTolerance != null)) { _uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance); } } function createLivePreviewMovieClip() { preview_mc = createEmptyMovieClip("preview_mc", 10); preview_mc.createEmptyMovieClip("box_mc", 10); preview_mc.box_mc.beginFill(0); preview_mc.box_mc.moveTo(0, 0); preview_mc.box_mc.lineTo(0, 100); preview_mc.box_mc.lineTo(100, 100); preview_mc.box_mc.lineTo(100, 0); preview_mc.box_mc.lineTo(0, 0); preview_mc.box_mc.endFill(); preview_mc.attachMovie("Icon", "icon_mc", 20); } function doContentPathConnect() { delete _vp[0].onEnterFrame; _vp[0].onEnterFrame = undefined; if (_global.isLivePreview) { return(undefined); } if (_vpState[0].autoPlay && (_firstStreamShown)) { _vp[0].play(_contentPath, _isLive, _totalTime); } else { _vp[0].load(_contentPath, _isLive, _totalTime); } _vpState[0].isLiveSet = false; _vpState[0].totalTimeSet = false; } function showFirstStream() { _firstStreamShown = true; _vp[_visibleVP].visible = true; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } var _local2 = 0; while (_local2 < _vp.length) { if (((_vp[_local2] != undefined) && (_vp[_local2].state == STOPPED)) && (_vpState[_local2].autoPlay)) { _vp[_local2].play(); } _local2++; } } function _scrubStart() { var _local2 = playheadTime; _vp[_visibleVP].volume = 0; dispatchEvent({type:"stateChange", state:SEEKING, playheadTime:_local2, vp:_visibleVP}); dispatchEvent({type:"scrubStart", state:SEEKING, playheadTime:_local2}); } function _scrubFinish() { var _local3 = playheadTime; var _local2 = state; _vp[_visibleVP].volume = _volume; if (_local2 != SEEKING) { dispatchEvent({type:"stateChange", state:_local2, playheadTime:_local3, vp:_visibleVP}); } dispatchEvent({type:"scrubFinish", state:_local2, playheadTime:_local3}); } function skinError(message) { if (_firstStreamReady && (!_firstStreamShown)) { showFirstStream(); } dispatchEvent({type:"skinError", message:message}); } function skinLoaded() { if (_firstStreamReady) { _uiMgr.__set__visible(true); if (!_firstStreamShown) { showFirstStream(); } } else if (((_contentPath == undefined) || (_contentPath == null)) || (_contentPath == "")) { _uiMgr.__set__visible(true); } dispatchEvent({type:"skinLoaded"}); } static var version = "1.0.1.10"; static var shortVersion = "1.0.1"; static var DISCONNECTED = "disconnected"; static var STOPPED = "stopped"; static var PLAYING = "playing"; static var PAUSED = "paused"; static var BUFFERING = "buffering"; static var LOADING = "loading"; static var CONNECTION_ERROR = "connectionError"; static var REWINDING = "rewinding"; static var SEEKING = "seeking"; static var ALL = "all"; static var EVENT = "event"; static var NAVIGATION = "navigation"; static var FLV = "flv"; static var ACTIONSCRIPT = "actionscript"; static var VP_DEPTH_OFFSET = 100; static var SEEK_TO_PREV_OFFSET_DEFAULT = 1; }
Symbol 14 MovieClip [__Packages.mx.video.UIManager] Frame 0
class mx.video.UIManager { var _vc, _skin, _skinAutoHide, _skinReady, __visible, _bufferingBarHides, _controlsEnabled, _lastScrubPos, _lastVolumePos, cachedSoundLevel, _isMuted, controls, customClips, skin_mc, skinLoader, layout_mc, border_mc, _seekBarIntervalID, _seekBarInterval, _seekBarScrubTolerance, _volumeBarIntervalID, _volumeBarInterval, _volumeBarScrubTolerance, _bufferingDelayIntervalID, _bufferingDelayInterval, _bufferingOn, _skinAutoHideIntervalID, _progressPercent, placeholderLeft, placeholderRight, placeholderTop, placeholderBottom, videoLeft, videoRight, videoTop, videoBottom, _playAfterScrub; function UIManager (vc) { _vc = vc; _skin = undefined; _skinAutoHide = false; _skinReady = true; __visible = true; _bufferingBarHides = false; _controlsEnabled = true; _lastScrubPos = 0; _lastVolumePos = 0; cachedSoundLevel = _vc.volume; _isMuted = false; controls = new Array(); customClips = undefined; skin_mc = undefined; skinLoader = undefined; layout_mc = undefined; border_mc = undefined; _seekBarIntervalID = 0; _seekBarInterval = SEEK_BAR_INTERVAL_DEFAULT; _seekBarScrubTolerance = SEEK_BAR_SCRUB_TOLERANCE_DEFAULT; _volumeBarIntervalID = 0; _volumeBarInterval = VOLUME_BAR_INTERVAL_DEFAULT; _volumeBarScrubTolerance = VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT; _bufferingDelayIntervalID = 0; _bufferingDelayInterval = BUFFERING_DELAY_INTERVAL_DEFAULT; _bufferingOn = false; _skinAutoHideIntervalID = 0; _vc.addEventListener("metadataReceived", this); _vc.addEventListener("playheadUpdate", this); _vc.addEventListener("progress", this); _vc.addEventListener("stateChange", this); _vc.addEventListener("ready", this); _vc.addEventListener("resize", this); _vc.addEventListener("volumeUpdate", this); } function handleEvent(e) { if ((e.vp != undefined) && (e.vp != _vc.__get__visibleVideoPlayerIndex())) { return(undefined); } var _local9 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (e.type == "stateChange") { if (e.state == mx.video.FLVPlayback.BUFFERING) { if (!_bufferingOn) { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayInterval); } } else { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = 0; _bufferingOn = false; } if (e.state == mx.video.FLVPlayback.LOADING) { _progressPercent = (_vc.getVideoPlayer(e.vp).__get__isRTMP() ? 100 : 0); var _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, e.state); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } } else if ((e.type == "ready") || (e.type == "metadataReceived")) { var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, _vc.__get__state()); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } if (_vc.getVideoPlayer(e.vp).__get__isRTMP()) { _progressPercent = 100; _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } } else if (e.type == "resize") { layoutSkin(); setupSkinAutoHide(); } else if (e.type == "volumeUpdate") { if (_isMuted && (e.volume > 0)) { _isMuted = false; setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_OFF_BUTTON]); setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_ON_BUTTON]); } var _local5 = controls[VOLUME_BAR]; _local5.percentage = (_isMuted ? (cachedSoundLevel) : (e.volume)); if (_local5.percentage < 0) { _local5.percentage = 0; } else if (_local5.percentage > 100) { _local5.percentage = 100; } positionHandle(VOLUME_BAR); } else if ((e.type == "playheadUpdate") && (controls[SEEK_BAR] != undefined)) { if ((!_vc.__get__isLive()) && (_vc.__get__totalTime() > 0)) { var _local6 = (e.playheadTime / _vc.__get__totalTime()) * 100; if (_local6 < 0) { _local6 = 0; } else if (_local6 > 100) { _local6 = 100; } var _local10 = controls[SEEK_BAR]; _local10.percentage = _local6; positionHandle(SEEK_BAR); } } else if (e.type == "progress") { _progressPercent = ((e.bytesTotal <= 0) ? 100 : ((e.bytesLoaded / e.bytesTotal) * 100)); var _local7 = _vc._vpState[e.vp].minProgressPercent; if ((!isNaN(_local7)) && (_local7 > _progressPercent)) { _progressPercent = _local7; } if (_vc.__get__totalTime() > 0) { var _local8 = (_vc.__get__playheadTime() / _vc.__get__totalTime()) * 100; if (_local8 > _progressPercent) { _progressPercent = _local8; _vc._vpState[e.vp].minProgressPercent = _progressPercent; } } var _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } _vc.__set__activeVideoPlayerIndex(_local9); } function get bufferingBarHidesAndDisablesOthers() { return(_bufferingBarHides); } function set bufferingBarHidesAndDisablesOthers(b) { _bufferingBarHides = b; //return(bufferingBarHidesAndDisablesOthers); } function get controlsEnabled() { return(_controlsEnabled); } function set controlsEnabled(flag) { if (_controlsEnabled == flag) { return; } _controlsEnabled = flag; var _local2 = 0; while (_local2 < NUM_BUTTONS) { if (controls[_local2] == undefined) { } else { controls[_local2].releaseCapture(); controls[_local2].enabled = _controlsEnabled && (controls[_local2].myEnabled); skinButtonControl(controls[_local2]); } _local2++; } //return(controlsEnabled); } function get skin() { return(_skin); } function set skin(s) { if (s == _skin) { return; } if (_skin != undefined) { removeSkin(); } _skin = s; _skinReady = ((_skin == undefined) || (_skin == null)) || (_skin == ""); if (!_skinReady) { downloadSkin(); } //return(skin); } function get skinAutoHide() { return(_skinAutoHide); } function set skinAutoHide(b) { if (b == _skinAutoHide) { return; } _skinAutoHide = b; setupSkinAutoHide(); //return(skinAutoHide); } function get skinReady() { return(_skinReady); } function get seekBarInterval() { return(_seekBarInterval); } function set seekBarInterval(s) { if (_seekBarInterval == s) { return; } _seekBarInterval = s; if (_seekBarIntervalID > 0) { clearInterval(_seekBarIntervalID); _seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false); } //return(seekBarInterval); } function get volumeBarInterval() { return(_volumeBarInterval); } function set volumeBarInterval(s) { if (_volumeBarInterval == s) { return; } _volumeBarInterval = s; if (_volumeBarIntervalID > 0) { clearInterval(_volumeBarIntervalID); _volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false); } //return(volumeBarInterval); } function get bufferingDelayInterval() { return(_bufferingDelayInterval); } function set bufferingDelayInterval(s) { if (_bufferingDelayInterval == s) { return; } _bufferingDelayInterval = s; if (_bufferingDelayIntervalID > 0) { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayIntervalID); } //return(bufferingDelayInterval); } function get volumeBarScrubTolerance() { return(_volumeBarScrubTolerance); } function set volumeBarScrubTolerance(s) { _volumeBarScrubTolerance = s; //return(volumeBarScrubTolerance); } function get seekBarScrubTolerance() { return(_seekBarScrubTolerance); } function set seekBarScrubTolerance(s) { _seekBarScrubTolerance = s; //return(seekBarScrubTolerance); } function get visible() { return(__visible); } function set visible(v) { if (__visible == v) { return; } __visible = v; if (!__visible) { skin_mc._visible = false; } else { setupSkinAutoHide(); } //return(visible); } function getControl(index) { return(controls[index]); } function setControl(index, s) { if (s == null) { s = undefined; } if (s == controls[index]) { return(undefined); } switch (index) { case PAUSE_BUTTON : case PLAY_BUTTON : resetPlayPause(); break; case PLAY_PAUSE_BUTTON : if (s._parent != layout_mc) { resetPlayPause(); setControl(PAUSE_BUTTON, s.pause_mc); setControl(PLAY_BUTTON, s.play_mc); } break; case MUTE_BUTTON : if (s._parent == layout_mc) { break; } setControl(MUTE_ON_BUTTON, s.on_mc); setControl(MUTE_OFF_BUTTON, s.off_mc); } if (index >= NUM_BUTTONS) { controls[index] = s; switch (index) { case SEEK_BAR : addBarControl(SEEK_BAR); break; case VOLUME_BAR : addBarControl(VOLUME_BAR); controls[VOLUME_BAR].percentage = _vc.volume; break; case BUFFERING_BAR : controls[BUFFERING_BAR].uiMgr = this; controls[BUFFERING_BAR].controlIndex = BUFFERING_BAR; if (controls[BUFFERING_BAR]._parent == skin_mc) { finishAddBufferingBar(); } else { controls[BUFFERING_BAR].onEnterFrame = function () { this.uiMgr.finishAddBufferingBar(); }; } } setEnabledAndVisibleForState(index, _vc.__get__state()); } else { removeButtonControl(index); controls[index] = s; addButtonControl(index); } } function resetPlayPause() { if (controls[PLAY_PAUSE_BUTTON] == undefined) { return(undefined); } var _local2 = PAUSE_BUTTON; while (_local2 <= PLAY_BUTTON) { removeButtonControl(_local2); _local2++; } controls[PLAY_PAUSE_BUTTON] = undefined; } function addButtonControl(index) { var _local3 = controls[index]; if (_local3 == undefined) { return(undefined); } var _local5 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); _local3.id = index; _local3.state = UP_STATE; _local3.uiMgr = this; setEnabledAndVisibleForState(index, _vc.__get__state()); _local3.onRollOver = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.skinButtonControl(this); }; _local3.onRollOut = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; if ((index == SEEK_BAR_HANDLE) || (index == VOLUME_BAR_HANDLE)) { _local3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; _local3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; _local3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; } else { _local3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.skinButtonControl(this); }; _local3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; _local3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; } if (_local3._parent == skin_mc) { skinButtonControl(_local3); } else { _local3.onEnterFrame = function () { this.uiMgr.skinButtonControl(this); }; } _vc.__set__activeVideoPlayerIndex(_local5); } function removeButtonControl(index) { if (controls[index] == undefined) { return(undefined); } controls[index].uiMgr = undefined; controls[index].onRollOver = undefined; controls[index].onRollOut = undefined; controls[index].onPress = undefined; controls[index].onRelease = undefined; controls[index].onReleaseOutside = undefined; controls[index] = undefined; } function downloadSkin() { if (skinLoader == undefined) { skinLoader = new MovieClipLoader(); skinLoader.addListener(this); } if (skin_mc == undefined) { skin_mc = _vc.createEmptyMovieClip("skin_mc", _vc.getNextHighestDepth()); } skin_mc._visible = false; skin_mc._x = Stage.width + 100; skin_mc._y = Stage.height + 100; skinLoader.loadClip(_skin, skin_mc); } function onLoadError(target_mc, errorCode) { _skinReady = true; _vc.skinError("Unable to load skin swf"); } function onLoadInit() { try { skin_mc._visible = false; skin_mc._x = 0; skin_mc._y = 0; layout_mc = skin_mc.layout_mc; if (layout_mc == undefined) { throw new Error("No layout_mc"); } layout_mc._visible = false; customClips = new Array(); setCustomClips("bg"); if (layout_mc.playpause_mc != undefined) { setSkin(PLAY_PAUSE_BUTTON, layout_mc.playpause_mc); } else { setSkin(PAUSE_BUTTON, layout_mc.pause_mc); setSkin(PLAY_BUTTON, layout_mc.play_mc); } setSkin(STOP_BUTTON, layout_mc.stop_mc); setSkin(BACK_BUTTON, layout_mc.back_mc); setSkin(FORWARD_BUTTON, layout_mc.forward_mc); setSkin(MUTE_BUTTON, layout_mc.volumeMute_mc); setSkin(SEEK_BAR, layout_mc.seekBar_mc); setSkin(VOLUME_BAR, layout_mc.volumeBar_mc); setSkin(BUFFERING_BAR, layout_mc.bufferingBar_mc); setCustomClips("fg"); layoutSkin(); setupSkinAutoHide(); skin_mc._visible = __visible; _skinReady = true; _vc.skinLoaded(); var _local4 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local3 = _vc.__get__state(); var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, _local3); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } _vc.__set__activeVideoPlayerIndex(_local4); } catch(err:Error) { _vc.skinError(err.message); removeSkin(); } } function layoutSkin() { if (layout_mc == undefined) { return(undefined); } var _local3 = layout_mc.video_mc; if (_local3 == undefined) { throw new Error("No layout_mc.video_mc"); } placeholderLeft = _local3._x; placeholderRight = _local3._x + _local3._width; placeholderTop = _local3._y; placeholderBottom = _local3._y + _local3._height; videoLeft = 0; videoRight = _vc.width; videoTop = 0; videoBottom = _vc.height; if (((!isNaN(layout_mc.minWidth)) && (layout_mc.minWidth > 0)) && (layout_mc.minWidth > videoRight)) { videoLeft = videoLeft - ((layout_mc.minWidth - videoRight) / 2); videoRight = layout_mc.minWidth + videoLeft; } if (((!isNaN(layout_mc.minHeight)) && (layout_mc.minHeight > 0)) && (layout_mc.minHeight > videoBottom)) { videoTop = videoTop - ((layout_mc.minHeight - videoBottom) / 2); videoBottom = layout_mc.minHeight + videoTop; } var _local2; _local2 = 0; while (_local2 < customClips.length) { layoutControl(customClips[_local2]); _local2++; } _local2 = 0; while (_local2 < NUM_CONTROLS) { layoutControl(controls[_local2]); _local2++; } } function layoutControl(ctrl) { if (ctrl == undefined) { return(undefined); } if (ctrl.skin.anchorRight) { if (ctrl.skin.anchorLeft) { ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft; ctrl._width = (((ctrl.skin._x + ctrl.skin._width) - placeholderRight) + videoRight) - ctrl._x; if (ctrl.origWidth != undefined) { ctrl.origWidth = undefined; } } else { ctrl._x = (ctrl.skin._x - placeholderRight) + videoRight; } } else { ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft; } if (ctrl.skin.anchorTop) { if (ctrl.skin.anchorBottom) { ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop; ctrl._height = (((ctrl.skin._y + ctrl.skin._height) - placeholderBottom) + videoBottom) - ctrl._y; if (ctrl.origHeight != undefined) { ctrl.origHeight = undefined; } } else { ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop; } } else { ctrl._y = (ctrl.skin._y - placeholderBottom) + videoBottom; } switch (ctrl.controlIndex) { case SEEK_BAR : case VOLUME_BAR : if (ctrl.progress_mc != undefined) { if (_progressPercent == undefined) { _progressPercent = (_vc.__get__isRTMP() ? 100 : 0); } positionBar(ctrl, "progress", _progressPercent); } positionHandle(ctrl.controlIndex); break; case BUFFERING_BAR : if (ctrl.fill_mc == undefined) { break; } positionMaskedFill(ctrl, ctrl.fill_mc, 100); } if (ctrl.layoutSelf != undefined) { ctrl.layoutSelf(); } } function removeSkin() { if (skin_mc != undefined) { var _local2 = 0; while (_local2 < NUM_BUTTONS) { removeButtonControl(_local2); _local2++; } _local2 = NUM_BUTTONS; while (_local2 < NUM_CONTROLS) { controls[_local2] = undefined; _local2++; } skin_mc.unloadMovie(); layout_mc = undefined; border_mc = undefined; } } function setCustomClips(prefix) { var _local4 = 1; while (true) { var _local2 = layout_mc[(prefix + (_local4++)) + "_mc"]; if (_local2 == undefined) { break; } var _local3 = _local2.mc; if (_local3 == undefined) { _local3 = _local2._parent._parent[_local2._name]; } if (_local3 == undefined) { throw new Error("Bad clip in skin: " + _local2); } _local3.skin = _local2; customClips.push(_local3); if ((prefix == "bg") && (_local4 == 2)) { border_mc = _local3; } } } function setSkin(index, s) { if (s == undefined) { return(undefined); } var _local2 = s.mc; if (_local2 == undefined) { _local2 = s._parent._parent[s._name]; } if (_local2 == undefined) { throw new Error("Bad clip in skin: " + s); } _local2.skin = s; if (index < NUM_BUTTONS) { setupSkinStates(_local2); } else { switch (index) { case PLAY_PAUSE_BUTTON : setupSkinStates(_local2.play_mc); setupSkinStates(_local2.pause_mc); break; case MUTE_BUTTON : setupSkinStates(_local2.on_mc); setupSkinStates(_local2.off_mc); break; case SEEK_BAR : case VOLUME_BAR : var _local4 = ((index == SEEK_BAR) ? "seekBar" : "volumeBar"); if (_local2.handle_mc == undefined) { _local2.handle_mc = _local2.skin.seekBarHandle_mc; if (_local2.handle_mc == undefined) { _local2.handle_mc = _local2.skin._parent._parent[_local4 + "Handle_mc"]; } } if (_local2.progress_mc == undefined) { _local2.progress_mc = _local2.skin.progress_mc; if (_local2.progress_mc == undefined) { _local2.progress_mc = _local2.skin._parent._parent[_local4 + "Progress_mc"]; } } if (_local2.fullness_mc == undefined) { _local2.fullness_mc = _local2.skin.fullness_mc; if (_local2.fullness_mc == undefined) { _local2.fullness_mc = _local2.skin._parent._parent[_local4 + "Fullness_mc"]; } } break; case BUFFERING_BAR : if (_local2.fill_mc != undefined) { break; } _local2.fill_mc = _local2.skin.fill_mc; if (_local2.fill_mc != undefined) { break; } _local2.fill_mc = _local2.skin._parent._parent.bufferingBarFill_mc; } } setControl(index, _local2); } function setupSkinStates(ctrl) { if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl; ctrl.over_mc = ctrl; ctrl.down_mc = ctrl; ctrl.disabled_mc = ctrl; } else { ctrl._x = 0; ctrl._y = 0; ctrl.up_mc._x = 0; ctrl.up_mc._y = 0; ctrl.up_mc._visible = true; if (ctrl.over_mc == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc._x = 0; ctrl.over_mc._y = 0; ctrl.over_mc._visible = false; } if (ctrl.down_mc == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc._x = 0; ctrl.down_mc._y = 0; ctrl.down_mc._visible = false; } if (ctrl.disabled_mc == undefined) { ctrl.disabled_mc_mc = ctrl.up_mc; } else { ctrl.disabled_mc._x = 0; ctrl.disabled_mc._y = 0; ctrl.disabled_mc._visible = false; } } } function skinButtonControl(ctrl) { if (ctrl.onEnterFrame != undefined) { delete ctrl.onEnterFrame; ctrl.onEnterFrame = undefined; } if (ctrl.enabled) { switch (ctrl.state) { case UP_STATE : if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl.attachMovie(ctrl.upLinkageID, "up_mc", ctrl.getNextHighestDepth()); } applySkinState(ctrl, ctrl.up_mc); break; case OVER_STATE : if (ctrl.over_mc == undefined) { if (ctrl.overLinkageID == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc = ctrl.attachMovie(ctrl.overLinkageID, "over_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.over_mc); break; case DOWN_STATE : if (ctrl.down_mc == undefined) { if (ctrl.downLinkageID == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc = ctrl.attachMovie(ctrl.downLinkageID, "down_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.down_mc); } } else { ctrl.state = UP_STATE; if (ctrl.disabled_mc == undefined) { if (ctrl.disabledLinkageID == undefined) { ctrl.disabled_mc = ctrl.up_mc; } else { ctrl.disabled_mc = ctrl.attachMovie(ctrl.disabledLinkageID, "disabled_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.disabled_mc); } if (ctrl.placeholder_mc != undefined) { ctrl.placeholder_mc.unloadMovie(); delete ctrl.placeholder_mc; ctrl.placeholder_mc = undefined; } } function applySkinState(ctrl, state) { if (state != ctrl.currentState_mc) { if (state != undefined) { state._visible = true; } if (ctrl.currentState_mc != undefined) { ctrl.currentState_mc._visible = false; } ctrl.currentState_mc = state; } } function addBarControl(controlIndex) { var _local2 = controls[controlIndex]; _local2.isDragging = false; _local2.percentage = 0; _local2.uiMgr = this; _local2.controlIndex = controlIndex; if (_local2._parent == skin_mc) { finishAddBarControl(controlIndex); } else { _local2.onEnterFrame = function () { this.uiMgr.finishAddBarControl(this.controlIndex); }; } } function finishAddBarControl(controlIndex) { var _local2 = controls[controlIndex]; delete _local2.onEnterFrame; _local2.onEnterFrame = undefined; if (_local2.addBarControl != undefined) { _local2.addBarControl(); } calcBarMargins(_local2, "handle", true); calcBarMargins(_local2, "progress", false); calcBarMargins(_local2.progress_mc, "fill", false); calcBarMargins(_local2.progress_mc, "mask", false); calcBarMargins(_local2, "fullness", false); calcBarMargins(_local2.fullness_mc, "fill", false); calcBarMargins(_local2.fullness_mc, "mask", false); _local2.origWidth = _local2._width; _local2.origHeight = _local2._height; fixUpBar(_local2, "progress"); if (_local2.progress_mc != undefined) { fixUpBar(_local2, "progressBarFill"); if (_progressPercent == undefined) { _progressPercent = (_vc.__get__isRTMP() ? 100 : 0); } positionBar(_local2, "progress", _progressPercent); } fixUpBar(_local2, "fullness"); if (_local2.fullness_mc != undefined) { fixUpBar(_local2, "fullnessBarFill"); } fixUpBar(_local2, "handle"); _local2.handle_mc.controlIndex = controlIndex; switch (controlIndex) { case SEEK_BAR : setControl(SEEK_BAR_HANDLE, _local2.handle_mc); break; case VOLUME_BAR : setControl(VOLUME_BAR_HANDLE, _local2.handle_mc); } positionHandle(controlIndex); } function fixUpBar(ctrl, type) { if ((ctrl[type + "LinkageID"] != undefined) && (ctrl[type + "LinkageID"].length > 0)) { var _local1; if (ctrl[type + "Below"]) { _local1 = -1; while (ctrl._parent.getInstanceAtDepth(_local1) != undefined) { _local1--; } } else { ctrl[type + "Below"] = false; _local1 = ctrl._parent.getNextHighestDepth(); } var _local5 = ((ctrl.controlIndex == SEEK_BAR) ? "seekBar" : "volumeBar"); var _local4 = ((_local5 + type.substring(0, 1).toUpperCase()) + type.substring(1)) + "_mc"; ctrl[type + "_mc"] = ctrl._parent.attachMovie(ctrl[type + "LinkageID"], _local4, _local1); } } function calcBarMargins(ctrl, type, symmetricMargins) { var _local2 = ctrl[type + "_mc"]; if (_local2 == undefined) { return(undefined); } if ((ctrl[type + "LeftMargin"] == undefined) && (_local2._parent == ctrl._parent)) { ctrl[type + "LeftMargin"] = _local2._x - ctrl._x; } if (ctrl[type + "RightMargin"] == undefined) { if (symmetricMargins) { ctrl[type + "RightMargin"] = ctrl[type + "LeftMargin"]; } else if (_local2._parent == ctrl._parent) { ctrl[type + "RightMargin"] = ((ctrl._width - _local2._width) - _local2._x) + ctrl._x; } } if ((ctrl[type + "TopMargin"] == undefined) && (_local2._parent == ctrl._parent)) { ctrl[type + "TopMargin"] = _local2._y - ctrl._y; } if (ctrl[type + "BottomMargin"] == undefined) { if (symmetricMargins) { ctrl[type + "BottomMargin"] = ctrl[type + "TopMargin"]; } else if (_local2._parent == ctrl._parent) { ctrl[type + "BottomMargin"] = ((ctrl._height - _local2._height) - _local2._y) + ctrl._y; } } if (ctrl[type + "X"] == undefined) { if (_local2._parent == ctrl._parent) { ctrl[type + "X"] = _local2._x - ctrl._x; } else if (_local2._parent == ctrl) { ctrl[type + "X"] = _local2._x; } } if (ctrl[type + "Y"] == undefined) { if (_local2._parent == ctrl._parent) { ctrl[type + "Y"] = _local2._y - ctrl._y; } else if (_local2._parent == ctrl) { ctrl[type + "Y"] = _local2._y; } } ctrl[type + "XScale"] = _local2._xscale; ctrl[type + "YScale"] = _local2._yscale; ctrl[type + "Width"] = _local2._width; ctrl[type + "Height"] = _local2._height; } function finishAddBufferingBar() { var _local2 = controls[BUFFERING_BAR]; delete _local2.onEnterFrame; _local2.onEnterFrame = undefined; calcBarMargins(_local2, "fill", true); fixUpBar(_local2, "fill"); if (_local2.fill_mc != undefined) { positionMaskedFill(_local2, _local2.fill_mc, 100); } } function positionMaskedFill(ctrl, fill, percent) { var _local5 = fill._parent; var _local3 = ctrl.mask_mc; if (_local3 == undefined) { _local3 = _local5.createEmptyMovieClip(ctrl._name + "Mask_mc", _local5.getNextHighestDepth()); ctrl.mask_mc = _local3; _local3.beginFill(16777215); _local3.lineTo(0, 0); _local3.lineTo(1, 0); _local3.lineTo(1, 1); _local3.lineTo(0, 1); _local3.lineTo(0, 0); _local3.endFill(); fill.setMask(_local3); _local3._x = ctrl.fillX; _local3._y = ctrl.fillY; _local3._width = ctrl.fillWidth; _local3._height = ctrl.fillHeight; _local3._visible = false; calcBarMargins(ctrl, "mask", true); } if (_local5 == ctrl) { if (fill.slideReveal) { fill._x = (ctrl.maskX - ctrl.fillWidth) + ((ctrl.fillWidth * percent) / 100); } else { _local3._width = (ctrl.fillWidth * percent) / 100; } } else if (_local5 == ctrl._parent) { if (fill.slideReveal) { _local3._x = ctrl._x + ctrl.maskLeftMargin; _local3._y = ctrl._y + ctrl.maskTopMargin; _local3._width = (ctrl._width - ctrl.maskRightMargin) - ctrl.maskLeftMargin; _local3._height = (ctrl._height - ctrl.maskTopMargin) - ctrl.maskBottomMargin; fill._x = (_local3._x - ctrl.fillWidth) + ((ctrl.maskWidth * percent) / 100); fill._y = ctrl._y + ctrl.fillTopMargin; } else { fill._x = ctrl._x + ctrl.fillLeftMargin; fill._y = ctrl._y + ctrl.fillTopMargin; _local3._x = fill._x; _local3._y = fill._y; _local3._width = (((ctrl._width - ctrl.fillRightMargin) - ctrl.fillLeftMargin) * percent) / 100; _local3._height = (ctrl._height - ctrl.fillTopMargin) - ctrl.fillBottomMargin; } } } function startHandleDrag(controlIndex) { var _local2 = controls[controlIndex]; var _local5 = _local2.handle_mc; if ((_local2.startHandleDrag == undefined) || (!_local2.startHandleDrag())) { var _local3 = _local2._y + _local2.handleY; var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); _local5.startDrag(false, _local2._x + _local2.handleLeftMargin, _local3, (_local2._x + _local4) - _local2.handleRightMargin, _local3); } _local2.isDragging = true; } function stopHandleDrag(controlIndex) { var _local2 = controls[controlIndex]; var _local3 = _local2.handle_mc; if ((_local2.stopHandleDrag == undefined) || (!_local2.stopHandleDrag())) { _local3.stopDrag(); } _local2.isDragging = false; } function positionHandle(controlIndex) { var _local2 = controls[controlIndex]; var _local3 = _local2.handle_mc; if (_local3 == undefined) { return(undefined); } if ((_local2.positionHandle != undefined) && (_local2.positionHandle())) { return(undefined); } var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); var _local5 = (_local4 - _local2.handleRightMargin) - _local2.handleLeftMargin; _local3._x = (_local2._x + _local2.handleLeftMargin) + ((_local5 * _local2.percentage) / 100); _local3._y = _local2._y + _local2.handleY; if (_local2.fullness_mc != undefined) { positionBar(_local2, "fullness", _local2.percentage); } } function positionBar(ctrl, type, percent) { if ((ctrl.positionBar != undefined) && (ctrl.positionBar(type, percent))) { return(undefined); } var _local2 = ctrl[type + "_mc"]; if (_local2._parent == ctrl) { if (_local2.fill_mc == undefined) { _local2._xscale = (ctrl[type + "XScale"] * percent) / 100; } else { positionMaskedFill(_local2, _local2.fill_mc, percent); } } else { _local2._x = ctrl._x + ctrl[type + "LeftMargin"]; _local2._y = ctrl._y + ctrl[type + "Y"]; if (_local2.fill_mc == undefined) { _local2._width = (((ctrl._width - ctrl[type + "LeftMargin"]) - ctrl[type + "RightMargin"]) * percent) / 100; } else { positionMaskedFill(_local2, _local2.fill_mc, percent); } } } function calcPercentageFromHandle(controlIndex) { var _local2 = controls[controlIndex]; var _local5 = _local2.handle_mc; if ((_local2.calcPercentageFromHandle == undefined) || (!_local2.calcPercentageFromHandle())) { var _local3 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); var _local6 = (_local3 - _local2.handleRightMargin) - _local2.handleLeftMargin; var _local4 = _local5._x - (_local2._x + _local2.handleLeftMargin); _local2.percentage = (_local4 / _local6) * 100; if (_local2.fullness_mc != undefined) { positionBar(_local2, "fullness", _local2.percentage); } } if (_local2.percentage < 0) { _local2.percentage = 0; } if (_local2.percentage > 100) { _local2.percentage = 100; } } function handleRelease(controlIndex) { var _local3 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (controlIndex == SEEK_BAR) { seekBarListener(true); } else if (controlIndex == VOLUME_BAR) { volumeBarListener(true); } stopHandleDrag(controlIndex); _vc.__set__activeVideoPlayerIndex(_local3); if (controlIndex == SEEK_BAR) { _vc._scrubFinish(); } } function seekBarListener(finish) { var _local3 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local4 = controls[SEEK_BAR]; calcPercentageFromHandle(SEEK_BAR); var _local2 = _local4.percentage; if (finish) { clearInterval(_seekBarIntervalID); _seekBarIntervalID = 0; if (_local2 != _lastScrubPos) { _vc.seekPercent(_local2); } _vc.addEventListener("playheadUpdate", this); if (_playAfterScrub) { _vc.play(); } } else if (_vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()).__get__state() == mx.video.VideoPlayer.SEEKING) { } else if ((((_seekBarScrubTolerance <= 0) || (Math.abs(_local2 - _lastScrubPos) > _seekBarScrubTolerance)) || (_local2 < _seekBarScrubTolerance)) || (_local2 > (100 - _seekBarScrubTolerance))) { if (_local2 != _lastScrubPos) { _lastScrubPos = _local2; _vc.seekPercent(_local2); } } _vc.__set__activeVideoPlayerIndex(_local3); } function volumeBarListener(finish) { var _local3 = controls[VOLUME_BAR]; calcPercentageFromHandle(VOLUME_BAR); var _local2 = _local3.percentage; if (finish) { clearInterval(_volumeBarIntervalID); _volumeBarIntervalID = 0; _vc.addEventListener("volumeUpdate", this); } if ((((finish || (_volumeBarScrubTolerance <= 0)) || (Math.abs(_local2 - _lastVolumePos) > _volumeBarScrubTolerance)) || (_local2 < _volumeBarScrubTolerance)) || (_local2 > (100 - _volumeBarScrubTolerance))) { if (_local2 != _lastVolumePos) { if (_isMuted) { cachedSoundLevel = _local2; } else { _vc.__set__volume(_local2); } } } } function doBufferingDelay() { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = 0; var _local2 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (_vc.__get__state() == mx.video.FLVPlayback.BUFFERING) { _bufferingOn = true; handleEvent({type:"stateChange", state:mx.video.FLVPlayback.BUFFERING, vp:_vc.__get__visibleVideoPlayerIndex()}); } _vc.__set__activeVideoPlayerIndex(_local2); } function dispatchMessage(ctrl) { if (ctrl.id == SEEK_BAR_HANDLE) { _vc._scrubStart(); } var _local2 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); switch (ctrl.id) { case PAUSE_BUTTON : _vc.pause(); break; case PLAY_BUTTON : _vc.play(); break; case STOP_BUTTON : _vc.stop(); break; case SEEK_BAR_HANDLE : calcPercentageFromHandle(SEEK_BAR); _lastScrubPos = controls[SEEK_BAR].percentage; _vc.removeEventListener("playheadUpdate", this); if (_vc.__get__playing() || (_vc.__get__buffering())) { _playAfterScrub = true; } else if (_vc.__get__state() != mx.video.VideoPlayer.SEEKING) { _playAfterScrub = false; } _seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false); startHandleDrag(SEEK_BAR, SEEK_BAR_HANDLE); _vc.pause(); break; case VOLUME_BAR_HANDLE : calcPercentageFromHandle(VOLUME_BAR); _lastVolumePos = controls[VOLUME_BAR].percentage; _vc.removeEventListener("volumeUpdate", this); _volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false); startHandleDrag(VOLUME_BAR, VOLUME_BAR_HANDLE); break; case BACK_BUTTON : _vc.seekToPrevNavCuePoint(); break; case FORWARD_BUTTON : _vc.seekToNextNavCuePoint(); break; case MUTE_ON_BUTTON : case MUTE_OFF_BUTTON : if (!_isMuted) { _isMuted = true; cachedSoundLevel = _vc.volume; _vc.__set__volume(0); } else { _isMuted = false; _vc.__set__volume(cachedSoundLevel); } setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_OFF_BUTTON]); setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_ON_BUTTON]); break; default : throw new Error("Unknown ButtonControl"); } _vc.__set__activeVideoPlayerIndex(_local2); } function setEnabledAndVisibleForState(index, state) { var _local5 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local3 = state; if ((_local3 == mx.video.FLVPlayback.BUFFERING) && (!_bufferingOn)) { _local3 = mx.video.FLVPlayback.PLAYING; } switch (index) { case VOLUME_BAR : case VOLUME_BAR_HANDLE : controls[index].myEnabled = true; controls[index].enabled = _controlsEnabled; break; case MUTE_ON_BUTTON : controls[index].myEnabled = !_isMuted; if (controls[MUTE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; case MUTE_OFF_BUTTON : controls[index].myEnabled = _isMuted; if (controls[MUTE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; default : switch (_local3) { case mx.video.FLVPlayback.LOADING : case mx.video.FLVPlayback.CONNECTION_ERROR : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.DISCONNECTED : controls[index].myEnabled = _vc.__get__contentPath() != undefined; break; case mx.video.FLVPlayback.SEEKING : break; default : controls[index].myEnabled = true; } } switch (index) { case SEEK_BAR : switch (_local3) { case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : case mx.video.FLVPlayback.SEEKING : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); break; default : controls[index].myEnabled = false; } if (controls[index].myEnabled) { controls[index].myEnabled = (!isNaN(_vc.__get__totalTime())) && (_vc.__get__totalTime() > 0); } controls[index].handle_mc.myEnabled = controls[index].myEnabled; controls[index].handle_mc.enabled = controls[index].handle_mc.myEnabled; controls[index].handle_mc._visible = controls[index].myEnabled; var _local4 = (((!_bufferingBarHides) || (controls[index].myEnabled)) || (controls[BUFFERING_BAR] == undefined)) || (!controls[BUFFERING_BAR]._visible); controls[index]._visible = _local4; controls[index].progress_mc._visible = _local4; controls[index].progress_mc.fill_mc._visible = _local4; controls[index].fullness_mc._visible = _local4; controls[index].progress_mc.fill_mc._visible = _local4; break; case BUFFERING_BAR : switch (_local3) { case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : case mx.video.FLVPlayback.SEEKING : controls[index].myEnabled = false; break; default : controls[index].myEnabled = true; } controls[index]._visible = controls[index].myEnabled; controls[index].fill_mc._visible = controls[index].myEnabled; break; case PAUSE_BUTTON : switch (_local3) { case mx.video.FLVPlayback.DISCONNECTED : case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PLAYING : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } if (controls[PLAY_PAUSE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; case PLAY_BUTTON : switch (_local3) { case mx.video.FLVPlayback.PLAYING : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PAUSED : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } if (controls[PLAY_PAUSE_BUTTON] != undefined) { controls[index]._visible = !controls[PAUSE_BUTTON]._visible; } break; case STOP_BUTTON : switch (_local3) { case mx.video.FLVPlayback.DISCONNECTED : case mx.video.FLVPlayback.STOPPED : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = true; } break; case BACK_BUTTON : case FORWARD_BUTTON : if (!(_local3 === mx.video.FLVPlayback.BUFFERING)) { } else { controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } } controls[index].enabled = _controlsEnabled && (controls[index].myEnabled); _vc.__set__activeVideoPlayerIndex(_local5); } function setupSkinAutoHide() { var _local2 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()); if (_skinAutoHide && (skin_mc != undefined)) { skinAutoHideHitTest(); if (_skinAutoHideIntervalID == 0) { _skinAutoHideIntervalID = setInterval(this, "skinAutoHideHitTest", SKIN_AUTO_HIDE_INTERVAL); } } else { skin_mc._visible = __visible; clearInterval(_skinAutoHideIntervalID); _skinAutoHideIntervalID = 0; } } function skinAutoHideHitTest() { if (!__visible) { skin_mc._visible = false; } else { var _local4 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()); var _local3 = _local4.hitTest(_root._xmouse, _root._ymouse, true); if ((!_local3) && (border_mc != undefined)) { _local3 = border_mc.hitTest(_root._xmouse, _root._ymouse, true); } skin_mc._visible = _local3; } } static var version = "1.0.1.10"; static var shortVersion = "1.0.1"; static var PAUSE_BUTTON = 0; static var PLAY_BUTTON = 1; static var STOP_BUTTON = 2; static var SEEK_BAR_HANDLE = 3; static var BACK_BUTTON = 4; static var FORWARD_BUTTON = 5; static var MUTE_ON_BUTTON = 6; static var MUTE_OFF_BUTTON = 7; static var VOLUME_BAR_HANDLE = 8; static var NUM_BUTTONS = 9; static var PLAY_PAUSE_BUTTON = 9; static var MUTE_BUTTON = 10; static var BUFFERING_BAR = 11; static var SEEK_BAR = 12; static var VOLUME_BAR = 13; static var NUM_CONTROLS = 14; static var UP_STATE = 0; static var OVER_STATE = 1; static var DOWN_STATE = 2; static var SKIN_AUTO_HIDE_INTERVAL = 200; static var VOLUME_BAR_INTERVAL_DEFAULT = 250; static var VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT = 0; static var SEEK_BAR_INTERVAL_DEFAULT = 250; static var SEEK_BAR_SCRUB_TOLERANCE_DEFAULT = 5; static var BUFFERING_DELAY_INTERVAL_DEFAULT = 1000; }
Symbol 10 MovieClip [__Packages.mx.video.VideoPlayer] Frame 0
class mx.video.VideoPlayer extends MovieClip { var _state, _cachedState, _bufferState, _sawPlayStop, _cachedPlayheadTime, _metadata, _startingPlay, _invalidSeekTime, _invalidSeekRecovery, _currentPos, _atEnd, _cmdQueue, _readyDispatched, _autoResizeDone, _lastUpdateTime, _sawSeekNotify, _updateTimeIntervalID, _updateTimeInterval, _updateProgressIntervalID, _updateProgressInterval, _idleTimeoutIntervalID, _idleTimeoutInterval, _autoResizeIntervalID, _rtmpDoStopAtEndIntervalID, _rtmpDoSeekIntervalID, _httpDoSeekIntervalID, _httpDoSeekCount, _finishAutoResizeIntervalID, _delayedBufferingIntervalID, _delayedBufferingInterval, _isLive, _autoSize, _aspectRatio, _autoPlay, _autoRewind, _bufferTime, _volume, _sound, __visible, _hiddenForResize, _hiddenForResizeMetadataDelay, _contentPath, _video, _ncMgr, _ns, attachAudio, _prevVideoWidth, _prevVideoHeight, _streamLength, _videoWidth, _videoHeight, dispatchEvent, _x, _y, _visible, _hiddenRewindPlayheadTime, ncMgrClassName, _height, _width; function VideoPlayer () { super(); mx.events.EventDispatcher.initialize(this); _state = DISCONNECTED; _cachedState = _state; _bufferState = BUFFER_EMPTY; _sawPlayStop = false; _cachedPlayheadTime = 0; _metadata = null; _startingPlay = false; _invalidSeekTime = false; _invalidSeekRecovery = false; _currentPos = 0; _atEnd = false; _cmdQueue = new Array(); _readyDispatched = false; _autoResizeDone = false; _lastUpdateTime = -1; _sawSeekNotify = false; _updateTimeIntervalID = 0; _updateTimeInterval = DEFAULT_UPDATE_TIME_INTERVAL; _updateProgressIntervalID = 0; _updateProgressInterval = DEFAULT_UPDATE_PROGRESS_INTERVAL; _idleTimeoutIntervalID = 0; _idleTimeoutInterval = DEFAULT_IDLE_TIMEOUT_INTERVAL; _autoResizeIntervalID = 0; _rtmpDoStopAtEndIntervalID = 0; _rtmpDoSeekIntervalID = 0; _httpDoSeekIntervalID = 0; _httpDoSeekCount = 0; _finishAutoResizeIntervalID = 0; _delayedBufferingIntervalID = 0; _delayedBufferingInterval = HTTP_DELAYED_BUFFERING_INTERVAL; if (_isLive == undefined) { _isLive = false; } if (_autoSize == undefined) { _autoSize = false; } if (_aspectRatio == undefined) { _aspectRatio = true; } if (_autoPlay == undefined) { _autoPlay = true; } if (_autoRewind == undefined) { _autoRewind = true; } if (_bufferTime == undefined) { _bufferTime = 0.1; } if (_volume == undefined) { _volume = 100; } _sound = new Sound(this); _sound.setVolume(_volume); __visible = true; _hiddenForResize = false; _hiddenForResizeMetadataDelay = 0; _contentPath = ""; } function setSize(w, h) { if (((w == _video._width) && (h == _video._height)) || (_autoSize)) { return(undefined); } _video._width = w; _video._height = h; if (_aspectRatio) { startAutoResize(); } } function setScale(xs, ys) { if (((xs == _video._xscale) && (ys == _video._yscale)) || (_autoSize)) { return(undefined); } _video._xscale = xs; _video._yscale = ys; if (_aspectRatio) { startAutoResize(); } } function play(url, isLive, totalTime) { if ((url != null) && (url != undefined)) { if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PLAY, url, isLive, totalTime); return(undefined); } execQueuedCmds(); } _autoPlay = true; _load(url, isLive, totalTime); return(undefined); } if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } flushQueuedCmds(); queueCmd(PLAY); setState(LOADING); _cachedState = LOADING; _ncMgr.reconnect(); return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PLAY); return(undefined); } execQueuedCmds(); } if ((_ns == null) || (_ns == undefined)) { _createStream(); _video.attachVideo(_ns); attachAudio(_ns); } switch (_state) { case BUFFERING : if (_ncMgr.isRTMP()) { _play(0); if (_atEnd) { _atEnd = false; _currentPos = 0; setState(REWINDING); } else if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; } } case PLAYING : return(undefined); case STOPPED : if (_ncMgr.isRTMP()) { if (_isLive) { _play(-1); setState(BUFFERING); } else { _play(0); if (_atEnd) { _atEnd = false; _currentPos = 0; _state = BUFFERING; setState(REWINDING); } else if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; setState(BUFFERING); } else { setState(BUFFERING); } } } else { _pause(false); if (_atEnd) { _atEnd = false; _seek(0); _state = BUFFERING; setState(REWINDING); } else if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(PLAYING); } } break; case PAUSED : _pause(false); if (!_ncMgr.isRTMP()) { if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(PLAYING); } } else { setState(BUFFERING); } } } function load(url, isLive, totalTime) { if ((url == null) || (url == undefined)) { throw new Error("null url sent to VideoPlayer.load"); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(LOAD, url, isLive, totalTime); return(undefined); } execQueuedCmds(); } _autoPlay = false; _load(url, isLive, totalTime); } function _load(url, isLive, totalTime) { _prevVideoWidth = videoWidth; if (_prevVideoWidth == undefined) { _prevVideoWidth = _video.width; if (_prevVideoWidth == undefined) { _prevVideoWidth = 0; } } _prevVideoHeight = videoHeight; if (_prevVideoHeight == undefined) { _prevVideoHeight = _video.height; if (_prevVideoHeight == undefined) { _prevVideoHeight = 0; } } _autoResizeDone = false; _cachedPlayheadTime = 0; _bufferState = BUFFER_EMPTY; _sawPlayStop = false; _metadata = null; _startingPlay = false; _invalidSeekTime = false; _invalidSeekRecovery = false; _isLive = ((isLive == undefined) ? false : (isLive)); _contentPath = url; _currentPos = 0; _streamLength = totalTime; _atEnd = false; _videoWidth = undefined; _videoHeight = undefined; _readyDispatched = false; _lastUpdateTime = -1; _sawSeekNotify = false; clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = 0; clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; clearInterval(_httpDoSeekIntervalID); _httpDoSeekIntervalID = 0; clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = 0; clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; closeNS(false); if ((_ncMgr == null) || (_ncMgr == undefined)) { createINCManager(); } var _local2 = _ncMgr.connectToURL(_contentPath); setState(LOADING); _cachedState = LOADING; if (_local2) { _createStream(); _setUpStream(); } if (!_ncMgr.isRTMP()) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval); } } function pause() { if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PAUSE); return(undefined); } execQueuedCmds(); } if ((((_state == PAUSED) || (_state == STOPPED)) || (_ns == null)) || (_ns == undefined)) { return(undefined); } _pause(true); setState(PAUSED); } function stop() { if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(STOP); return(undefined); } execQueuedCmds(); } if (((_state == STOPPED) || (_ns == null)) || (_ns == undefined)) { return(undefined); } if (_ncMgr.isRTMP()) { if (_autoRewind && (!_isLive)) { _currentPos = 0; _play(0, 0); _state = STOPPED; setState(REWINDING); } else { closeNS(true); setState(STOPPED); } } else { _pause(true); if (_autoRewind) { _seek(0); _state = STOPPED; setState(REWINDING); } else { setState(STOPPED); } } } function seek(time) { if (_invalidSeekTime) { return(undefined); } if (isNaN(time) || (time < 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } if (!isXnOK()) { if (((((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } flushQueuedCmds(); queueCmd(SEEK, null, false, time); setState(LOADING); _cachedState = LOADING; _ncMgr.reconnect(); return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(SEEK, null, false, time); return(undefined); } execQueuedCmds(); } if ((_ns == null) || (_ns == undefined)) { _createStream(); _video.attachVideo(_ns); attachAudio(_ns); } if (_atEnd && (time < playheadTime)) { _atEnd = false; } switch (_state) { case PLAYING : _state = BUFFERING; case BUFFERING : case PAUSED : _seek(time); setState(SEEKING); break; case STOPPED : if (_ncMgr.isRTMP()) { _play(0); _pause(true); } _seek(time); _state = PAUSED; setState(SEEKING); } } function close() { closeNS(true); if (((_ncMgr != null) && (_ncMgr != undefined)) && (_ncMgr.isRTMP())) { _ncMgr.close(); } setState(DISCONNECTED); dispatchEvent({type:"close", state:_state, playheadTime:playheadTime}); } function get x() { return(_x); } function set x(xpos) { _x = xpos; //return(x); } function get y() { return(_y); } function set y(ypos) { _y = ypos; //return(y); } function get scaleX() { return(_video._xscale); } function set scaleX(xs) { setScale(xs, scaleY); //return(scaleX); } function get scaleY() { return(_video._yscale); } function set scaleY(ys) { setScale(scaleX, ys); //return(scaleY); } function get width() { return(_video._width); } function set width(w) { setSize(w, _video._height); //return(width); } function get height() { return(_video._height); } function set height(h) { setSize(_video._width, h); //return(height); } function get videoWidth() { if (_readyDispatched) { _videoWidth = _video.width; } return(_videoWidth); } function get videoHeight() { if (_readyDispatched) { _videoHeight = _video.height; } return(_videoHeight); } function get visible() { if (!_hiddenForResize) { __visible = _visible; } return(__visible); } function set visible(v) { __visible = v; if (!_hiddenForResize) { _visible = __visible; } //return(visible); } function get autoSize() { return(_autoSize); } function set autoSize(flag) { if (_autoSize != flag) { _autoSize = flag; if (_autoSize) { startAutoResize(); } } //return(autoSize); } function get maintainAspectRatio() { return(_aspectRatio); } function set maintainAspectRatio(flag) { if (_aspectRatio != flag) { _aspectRatio = flag; if (_aspectRatio && (!_autoSize)) { startAutoResize(); } } //return(maintainAspectRatio); } function get autoRewind() { return(_autoRewind); } function set autoRewind(flag) { _autoRewind = flag; //return(autoRewind); } function get playheadTime() { var _local2 = (((_ns == null) || (_ns == undefined)) ? (_currentPos) : (_ns.time)); if (_metadata.audiodelay != undefined) { _local2 = _local2 - _metadata.audiodelay; if (_local2 < 0) { _local2 = 0; } } return(_local2); } function set playheadTime(position) { seek(position); //return(playheadTime); } function get url() { return(_contentPath); } function get volume() { return(_volume); } function set volume(aVol) { _volume = aVol; if (!_hiddenForResize) { _sound.setVolume(_volume); } //return(volume); } function get transform() { return(_sound.getTransform()); } function set transform(s) { _sound.setTransform(s); //return(transform); } function get isRTMP() { if ((_ncMgr == null) || (_ncMgr == undefined)) { return(undefined); } return(_ncMgr.isRTMP()); } function get isLive() { return(_isLive); } function get state() { return(_state); } function get stateResponsive() { switch (_state) { case DISCONNECTED : case STOPPED : case PLAYING : case PAUSED : case BUFFERING : return(true); } return(false); } function get bytesLoaded() { if (((_ns == null) || (_ns == undefined)) || (_ncMgr.isRTMP())) { return(-1); } return(_ns.bytesLoaded); } function get bytesTotal() { if (((_ns == null) || (_ns == undefined)) || (_ncMgr.isRTMP())) { return(-1); } return(_ns.bytesTotal); } function get totalTime() { return(_streamLength); } function get bufferTime() { return(_bufferTime); } function set bufferTime(aTime) { _bufferTime = aTime; if ((_ns != null) && (_ns != undefined)) { _ns.setBufferTime(_bufferTime); } //return(bufferTime); } function get idleTimeout() { return(_idleTimeoutInterval); } function set idleTimeout(aTime) { _idleTimeoutInterval = aTime; if (_idleTimeoutIntervalID > 0) { clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval); } //return(idleTimeout); } function get playheadUpdateInterval() { return(_updateTimeInterval); } function set playheadUpdateInterval(aTime) { _updateTimeInterval = aTime; if (_updateTimeIntervalID > 0) { clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval); } //return(playheadUpdateInterval); } function get progressInterval() { return(_updateProgressInterval); } function set progressInterval(aTime) { _updateProgressInterval = aTime; if (_updateProgressIntervalID > 0) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval); } //return(progressInterval); } function get ncMgr() { if ((_ncMgr == null) || (_ncMgr == undefined)) { createINCManager(); } return(_ncMgr); } function get metadata() { return(_metadata); } function doUpdateTime() { var _local2 = playheadTime; switch (_state) { case STOPPED : case PAUSED : case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; } if (_lastUpdateTime != _local2) { dispatchEvent({type:"playheadUpdate", state:_state, playheadTime:_local2}); _lastUpdateTime = _local2; } } function doUpdateProgress() { if ((_ns == null) || (_ns == undefined)) { return(undefined); } if ((_ns.bytesTotal >= 0) && (_ns.bytesTotal >= 0)) { dispatchEvent({type:"progress", bytesLoaded:_ns.bytesLoaded, bytesTotal:_ns.bytesTotal}); } if (((_state == DISCONNECTED) || (_state == CONNECTION_ERROR)) || (_ns.bytesLoaded == _ns.bytesTotal)) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = 0; } } function rtmpOnStatus(info) { if (_state == CONNECTION_ERROR) { return(undefined); } switch (info.code) { case "NetStream.Play.Stop" : if (_startingPlay) { return(undefined); } switch (_state) { case RESIZING : if (_hiddenForResize) { finishAutoResize(); } break; case LOADING : case STOPPED : case PAUSED : break; default : _sawPlayStop = true; } break; case "NetStream.Buffer.Empty" : if (!(_bufferState === BUFFER_FULL)) { } else if (_sawPlayStop) { rtmpDoStopAtEnd(true); } else if (_state == PLAYING) { setState(BUFFERING); } _bufferState = BUFFER_EMPTY; _sawPlayStop = false; break; case "NetStream.Buffer.Flush" : if (_sawSeekNotify && (_state == SEEKING)) { _bufferState = BUFFER_EMPTY; _sawPlayStop = false; setStateFromCachedState(); doUpdateTime(); } if (_sawPlayStop && ((_bufferState == BUFFER_EMPTY) || ((_bufferTime <= 0.1) && (_ns.bufferLength <= 0.1)))) { _cachedPlayheadTime = playheadTime; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = setInterval(this, "rtmpDoStopAtEnd", RTMP_DO_STOP_AT_END_INTERVAL); } switch (_bufferState) { case BUFFER_EMPTY : if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } } _bufferState = BUFFER_FLUSH; break; default : if (_state != BUFFERING) { break; } setStateFromCachedState(); } break; case "NetStream.Buffer.Full" : if (_sawSeekNotify && (_state == SEEKING)) { _bufferState = BUFFER_EMPTY; _sawPlayStop = false; setStateFromCachedState(); doUpdateTime(); } switch (_bufferState) { case BUFFER_EMPTY : _bufferState = BUFFER_FULL; if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } if (_rtmpDoStopAtEndIntervalID != 0) { _sawPlayStop = true; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; } } break; case BUFFER_FLUSH : _bufferState = BUFFER_FULL; if (_rtmpDoStopAtEndIntervalID == 0) { break; } _sawPlayStop = true; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; } if (_state == BUFFERING) { setStateFromCachedState(); } break; case "NetStream.Pause.Notify" : if ((_state == RESIZING) && (_hiddenForResize)) { finishAutoResize(); } break; case "NetStream.Unpause.Notify" : if (_state == PAUSED) { _state = PLAYING; setState(BUFFERING); } else { _cachedState = PLAYING; } break; case "NetStream.Play.Start" : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; _bufferState = BUFFER_EMPTY; _sawPlayStop = false; if (_startingPlay) { _startingPlay = false; _cachedPlayheadTime = playheadTime; } else if (_state == PLAYING) { setState(BUFFERING); } break; case "NetStream.Play.Reset" : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; if (_state == REWINDING) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; if ((playheadTime == 0) || (playheadTime < _cachedPlayheadTime)) { setStateFromCachedState(); } else { _cachedPlayheadTime = playheadTime; _rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL); } } break; case "NetStream.Seek.Notify" : if (playheadTime != _cachedPlayheadTime) { setStateFromCachedState(); doUpdateTime(); } else { _sawSeekNotify = true; if (_rtmpDoSeekIntervalID == 0) { _rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL); } } break; case "Netstream.Play.UnpublishNotify" : break; case "Netstream.Play.PublishNotify" : break; case "NetStream.Play.StreamNotFound" : if (!_ncMgr.connectAgain()) { setState(CONNECTION_ERROR); } break; case "NetStream.Play.Failed" : case "NetStream.Failed" : setState(CONNECTION_ERROR); } } function httpOnStatus(info) { switch (info.code) { case "NetStream.Play.Stop" : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; if (_invalidSeekTime) { _invalidSeekTime = false; _invalidSeekRecovery = true; setState(_cachedState); seek(playheadTime); } else { switch (_state) { case PLAYING : case BUFFERING : case SEEKING : httpDoStopAtEnd(); } } break; case "NetStream.Seek.InvalidTime" : if (_invalidSeekRecovery) { _invalidSeekTime = false; _invalidSeekRecovery = false; setState(_cachedState); seek(0); } else { _invalidSeekTime = true; } break; case "NetStream.Buffer.Empty" : _bufferState = BUFFER_EMPTY; if (_state == PLAYING) { clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = setInterval(this, "doDelayedBuffering", _delayedBufferingInterval); } break; case "NetStream.Buffer.Full" : case "NetStream.Buffer.Flush" : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; _bufferState = BUFFER_FULL; if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } } break; case "NetStream.Seek.Notify" : _invalidSeekRecovery = false; switch (_state) { case SEEKING : case REWINDING : if (_httpDoSeekIntervalID != 0) { break; } _httpDoSeekCount = 0; _httpDoSeekIntervalID = setInterval(this, "httpDoSeek", HTTP_DO_SEEK_INTERVAL); } break; case "NetStream.Play.StreamNotFound" : setState(CONNECTION_ERROR); } } function ncConnected() { if ((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { setState(CONNECTION_ERROR); } else { _createStream(); _setUpStream(); } } function ncReconnected() { if ((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) { setState(CONNECTION_ERROR); } else { _ns = null; _state = STOPPED; execQueuedCmds(); } } function onMetaData(info) { if (_metadata != null) { return(undefined); } _metadata = info; if (((_streamLength == undefined) || (_streamLength == null)) || (_streamLength <= 0)) { _streamLength = info.duration; } if (isNaN(_videoWidth) || (_videoWidth <= 0)) { _videoWidth = info.width; } if (isNaN(_videoHeight) || (_videoHeight <= 0)) { _videoHeight = info.height; } dispatchEvent({type:"metadataReceived", info:info}); } function onCuePoint(info) { if ((!_hiddenForResize) || ((!isNaN(_hiddenRewindPlayheadTime)) && (playheadTime < _hiddenRewindPlayheadTime))) { dispatchEvent({type:"cuePoint", info:info}); } } function setState(s) { if (s == _state) { return(undefined); } _hiddenRewindPlayheadTime = undefined; _cachedState = _state; _cachedPlayheadTime = playheadTime; _state = s; var _local2 = _state; dispatchEvent({type:"stateChange", state:_local2, playheadTime:playheadTime}); if (!_readyDispatched) { switch (_local2) { case STOPPED : case PLAYING : case PAUSED : case BUFFERING : _readyDispatched = true; dispatchEvent({type:"ready", state:_local2, playheadTime:playheadTime}); } } if (!(_cachedState === REWINDING)) { } else { dispatchEvent({type:"rewind", state:_local2, playheadTime:playheadTime}); if (_ncMgr.isRTMP() && (_local2 == STOPPED)) { closeNS(); } } switch (_local2) { case STOPPED : case PAUSED : if (_ncMgr.isRTMP() && (_idleTimeoutIntervalID == 0)) { _idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval); } break; case SEEKING : case REWINDING : _bufferState = BUFFER_EMPTY; _sawPlayStop = false; case PLAYING : case BUFFERING : if (_updateTimeIntervalID == 0) { _updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval); } case LOADING : case RESIZING : clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; } execQueuedCmds(); } function setStateFromCachedState() { switch (_cachedState) { case PLAYING : case PAUSED : setState(_cachedState); break; case BUFFERING : if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(_cachedState); } break; default : setState(STOPPED); } } function createINCManager() { if ((ncMgrClassName == null) || (ncMgrClassName == undefined)) { ncMgrClassName = DEFAULT_INCMANAGER; } var ncMgrConstructor = eval (this.ncMgrClassName); _ncMgr = new ncMgrConstructor(); _ncMgr.setVideoPlayer(this); } function rtmpDoStopAtEnd(force) { if (_rtmpDoStopAtEndIntervalID > 0) { switch (_state) { case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; return(undefined); } if (force || (_cachedPlayheadTime == playheadTime)) { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; } else { _cachedPlayheadTime = playheadTime; return(undefined); } } _bufferState = BUFFER_EMPTY; _sawPlayStop = false; _atEnd = true; setState(STOPPED); if (_state != STOPPED) { return(undefined); } doUpdateTime(); if (_state != STOPPED) { return(undefined); } dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime}); if (_state != STOPPED) { return(undefined); } if ((_autoRewind && (!_isLive)) && (playheadTime != 0)) { _atEnd = false; _currentPos = 0; _play(0, 0); setState(REWINDING); } else { closeNS(); } } function rtmpDoSeek() { if ((_state != REWINDING) && (_state != SEEKING)) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; _sawSeekNotify = false; } else if (playheadTime != _cachedPlayheadTime) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; _sawSeekNotify = false; setStateFromCachedState(); doUpdateTime(); } } function httpDoStopAtEnd() { _atEnd = true; if (((_streamLength == undefined) || (_streamLength == null)) || (_streamLength <= 0)) { _streamLength = _ns.time; } _pause(true); setState(STOPPED); if (_state != STOPPED) { return(undefined); } doUpdateTime(); if (_state != STOPPED) { return(undefined); } dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime}); if (_state != STOPPED) { return(undefined); } if (_autoRewind) { _atEnd = false; _pause(true); _seek(0); setState(REWINDING); } } function httpDoSeek() { var _local2 = (_state == REWINDING) || (_state == SEEKING); if ((_local2 && (_httpDoSeekCount < HTTP_DO_SEEK_MAX_COUNT)) && ((_cachedPlayheadTime == playheadTime) || (_invalidSeekTime))) { _httpDoSeekCount++; return(undefined); } _httpDoSeekCount = 0; clearInterval(_httpDoSeekIntervalID); _httpDoSeekIntervalID = 0; if (!_local2) { return(undefined); } setStateFromCachedState(); if (_invalidSeekTime) { _invalidSeekTime = false; _invalidSeekRecovery = true; seek(playheadTime); } else { doUpdateTime(); } } function closeNS(updateCurrentPos) { if ((_ns != null) && (_ns != undefined)) { if (updateCurrentPos) { clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; doUpdateTime(); _currentPos = _ns.time; } delete _ns.onStatus; _ns.onStatus = null; _ns.close(); _ns = null; } } function doDelayedBuffering() { switch (_state) { case LOADING : case RESIZING : break; case PLAYING : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; setState(BUFFERING); break; default : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; } } function _pause(doPause) { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; _ns.pause(doPause); } function _play() { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; _startingPlay = true; switch (arguments.length) { case 0 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : 0), -1); break; case 1 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), -1); break; case 2 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), arguments[1]); break; default : throw new Error("bad args to _play"); } } function _seek(time) { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; if ((_metadata.audiodelay != undefined) && ((time + _metadata.audiodelay) < _streamLength)) { time = time + _metadata.audiodelay; } _ns.seek(time); _invalidSeekTime = false; _bufferState = BUFFER_EMPTY; _sawPlayStop = false; _sawSeekNotify = false; } function isXnOK() { if (_state == LOADING) { return(true); } if (_state == CONNECTION_ERROR) { return(false); } if (_state != DISCONNECTED) { if (((((_ncMgr == null) || (_ncMgr == undefined)) || (_ncMgr.getNetConnection() == null)) || (_ncMgr.getNetConnection() == undefined)) || (!_ncMgr.getNetConnection().isConnected)) { setState(DISCONNECTED); return(false); } return(true); } return(false); } function startAutoResize() { switch (_state) { case DISCONNECTED : case CONNECTION_ERROR : return(undefined); } _autoResizeDone = false; if ((stateResponsive && (_videoWidth != undefined)) && (_videoHeight != undefined)) { doAutoResize(); } else { clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL); } } function doAutoResize() { if (_autoResizeIntervalID > 0) { switch (_state) { case RESIZING : case LOADING : break; case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; return(undefined); default : if (stateResponsive) { break; } return(undefined); } if (((((_video.width != _prevVideoWidth) || (_video.height != _prevVideoHeight)) || (_bufferState == BUFFER_FULL)) || (_bufferState == BUFFER_FLUSH)) || (_ns.time > AUTO_RESIZE_PLAYHEAD_TIMEOUT)) { if ((_hiddenForResize && (_metadata == null)) && (_hiddenForResizeMetadataDelay < AUTO_RESIZE_METADATA_DELAY_MAX)) { _hiddenForResizeMetadataDelay++; return(undefined); } _videoWidth = _video.width; _videoHeight = _video.height; clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; } else { return(undefined); } } if (((!_autoSize) && (!_aspectRatio)) || (_autoResizeDone)) { setState(_cachedState); return(undefined); } _autoResizeDone = true; if (_autoSize) { _video._width = _videoWidth; _video._height = _videoHeight; } else if (_aspectRatio) { var _local3 = (_videoWidth * height) / _videoHeight; var _local2 = (_videoHeight * width) / _videoWidth; if (_local2 < height) { _video._height = _local2; } else if (_local3 < width) { _video._width = _local3; } } if (_hiddenForResize) { _hiddenRewindPlayheadTime = playheadTime; if (_state == LOADING) { _cachedState = PLAYING; } if (!_ncMgr.isRTMP()) { _pause(true); _seek(0); clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL); } else if (!_isLive) { _currentPos = 0; _play(0, 0); setState(RESIZING); } else if (_autoPlay) { clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL); } else { finishAutoResize(); } } else { dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height}); } } function finishAutoResize() { clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = 0; if (stateResponsive) { return(undefined); } _visible = __visible; _sound.setVolume(_volume); _hiddenForResize = false; dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height}); if (_autoPlay) { if (_ncMgr.isRTMP()) { if (!_isLive) { _currentPos = 0; _play(0); } if (_state == RESIZING) { setState(LOADING); _cachedState = PLAYING; } } else { _pause(false); _cachedState = PLAYING; } } else { setState(STOPPED); } } function _createStream() { _ns = new NetStream(_ncMgr.getNetConnection()); _ns.mc = this; if (_ncMgr.isRTMP()) { _ns.onStatus = function (info) { this.mc.rtmpOnStatus(info); }; } else { _ns.onStatus = function (info) { this.mc.httpOnStatus(info); }; } _ns.onMetaData = function (info) { this.mc.onMetaData(info); }; _ns.onCuePoint = function (info) { this.mc.onCuePoint(info); }; _ns.setBufferTime(_bufferTime); } function _setUpStream() { _video.attachVideo(_ns); attachAudio(_ns); if ((!isNaN(_ncMgr.getStreamLength())) && (_ncMgr.getStreamLength() >= 0)) { _streamLength = _ncMgr.getStreamLength(); } if ((!isNaN(_ncMgr.getStreamWidth())) && (_ncMgr.getStreamWidth() >= 0)) { _videoWidth = _ncMgr.getStreamWidth(); } else { _videoWidth = undefined; } if ((!isNaN(_ncMgr.getStreamHeight())) && (_ncMgr.getStreamHeight() >= 0)) { _videoHeight = _ncMgr.getStreamHeight(); } else { _videoHeight = undefined; } if (((_autoSize || (_aspectRatio)) && (_videoWidth != undefined)) && (_videoHeight != undefined)) { _prevVideoWidth = undefined; _prevVideoHeight = undefined; doAutoResize(); } if (((!_autoSize) && (!_aspectRatio)) || ((_videoWidth != undefined) && (_videoHeight != undefined))) { if (_autoPlay) { if (!_ncMgr.isRTMP()) { _cachedState = BUFFERING; _play(); } else if (_isLive) { _cachedState = BUFFERING; _play(-1); } else { _cachedState = BUFFERING; _play(0); } } else { _cachedState = STOPPED; if (_ncMgr.isRTMP()) { _play(0, 0); } else { _play(); _pause(true); _seek(0); } } } else { if (!_hiddenForResize) { __visible = _visible; _visible = false; _volume = _sound.getVolume(); _sound.setVolume(0); _hiddenForResize = true; } _hiddenForResizeMetadataDelay = 0; _play(0); if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; } } clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL); } function doIdleTimeout() { clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; close(); } function flushQueuedCmds() { while (_cmdQueue.length > 0) { _cmdQueue.pop(); } } function execQueuedCmds() { while (((_cmdQueue.length > 0) && (stateResponsive || (_state == CONNECTION_ERROR))) && (((_cmdQueue[0].url != null) && (_cmdQueue[0].url != undefined)) || ((_state != DISCONNECTED) && (_state != CONNECTION_ERROR)))) { var _local2 = _cmdQueue.shift(); _cachedState = _state; _state = EXEC_QUEUED_CMD; switch (_local2.type) { case PLAY : play(_local2.url, _local2.isLive, _local2.time); break; case LOAD : load(_local2.url, _local2.isLive, _local2.time); break; case PAUSE : pause(); break; case STOP : stop(); break; case SEEK : seek(_local2.time); } } } function queueCmd(type, url, isLive, time) { _cmdQueue.push({type:type, url:url, isLive:false, time:time}); } static var version = "1.0.1.10"; static var shortVersion = "1.0.1"; static var DISCONNECTED = "disconnected"; static var STOPPED = "stopped"; static var PLAYING = "playing"; static var PAUSED = "paused"; static var BUFFERING = "buffering"; static var LOADING = "loading"; static var CONNECTION_ERROR = "connectionError"; static var REWINDING = "rewinding"; static var SEEKING = "seeking"; static var RESIZING = "resizing"; static var EXEC_QUEUED_CMD = "execQueuedCmd"; static var BUFFER_EMPTY = "bufferEmpty"; static var BUFFER_FULL = "bufferFull"; static var BUFFER_FLUSH = "bufferFlush"; static var DEFAULT_INCMANAGER = "mx.video.NCManager"; static var DEFAULT_UPDATE_TIME_INTERVAL = 250; static var DEFAULT_UPDATE_PROGRESS_INTERVAL = 250; static var DEFAULT_IDLE_TIMEOUT_INTERVAL = 300000; static var AUTO_RESIZE_INTERVAL = 100; static var AUTO_RESIZE_PLAYHEAD_TIMEOUT = 0.5; static var AUTO_RESIZE_METADATA_DELAY_MAX = 5; static var FINISH_AUTO_RESIZE_INTERVAL = 250; static var RTMP_DO_STOP_AT_END_INTERVAL = 500; static var RTMP_DO_SEEK_INTERVAL = 100; static var HTTP_DO_SEEK_INTERVAL = 250; static var HTTP_DO_SEEK_MAX_COUNT = 4; static var CLOSE_NS_INTERVAL = 0.25; static var HTTP_DELAYED_BUFFERING_INTERVAL = 100; static var PLAY = 0; static var LOAD = 1; static var PAUSE = 2; static var STOP = 3; static var SEEK = 4; }
Symbol 11 MovieClip [__Packages.mx.video.INCManager] Frame 0
interface mx.video.INCManager { }
Symbol 12 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 13 MovieClip [__Packages.mx.video.VideoError] Frame 0
class mx.video.VideoError extends Error { var _code, message, name; function VideoError (errCode, msg) { super(); _code = errCode; message = ((("" + errCode) + ": ") + ERROR_MSG[errCode - BASE_ERROR_CODE]) + ((msg == undefined) ? "" : (": " + msg)); name = "VideoError"; } function get code() { return(_code); } static var version = "1.0.1.10"; static var shortVersion = "1.0.1"; static var BASE_ERROR_CODE = 1000; static var NO_CONNECTION = 1000; static var NO_CUE_POINT_MATCH = 1001; static var ILLEGAL_CUE_POINT = 1002; static var INVALID_SEEK = 1003; static var INVALID_CONTENT_PATH = 1004; static var INVALID_XML = 1005; static var NO_BITRATE_MATCH = 1006; static var DELETE_DEFAULT_PLAYER = 1007; static var ERROR_MSG = ["Unable to make connection to server or to find FLV on server", "No matching cue point found", "Illegal cue point", "Invalid seek", "Invalid contentPath", "Invalid xml", "No bitrate match, must be no default flv", "Cannot delete default VideoPlayer"]; }
Symbol 18 MovieClip [__Packages.mx.video.NCManager] Frame 0
class mx.video.NCManager implements mx.video.INCManager { var _timeoutIntervalId, _tryNCIntervalId, _timeout, _nc, _ncConnected, _isRTMP, _serverName, _wrappedURL, _portNumber, _appName, _contentPath, _streamName, _streamLength, _streamWidth, _streamHeight, _streams, _autoSenseBW, fpadZone, _payload, _connTypeCounter, _bitrate, _owner, _protocol, _smilMgr, _ncUri, _fpadMgr, fallbackServerName, _tryNC; function NCManager () { initNCInfo(); initOtherInfo(); _timeoutIntervalId = 0; _tryNCIntervalId = 0; _timeout = DEFAULT_TIMEOUT; _nc = undefined; _ncConnected = false; } function initNCInfo() { _isRTMP = undefined; _serverName = undefined; _wrappedURL = undefined; _portNumber = undefined; _appName = undefined; } function initOtherInfo() { _contentPath = undefined; _streamName = undefined; _streamLength = undefined; _streamWidth = undefined; _streamHeight = undefined; _streams = undefined; _autoSenseBW = false; fpadZone = undefined; _payload = 0; _connTypeCounter = 0; cleanConns(); } function getTimeout() { return(_timeout); } function setTimeout(t) { _timeout = t; if (_timeoutIntervalId != 0) { clearInterval(_timeoutIntervalId); _timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout); } } function getBitrate() { return(_bitrate); } function setBitrate(b) { if ((_isRTMP == undefined) || (!_isRTMP)) { _bitrate = b; } } function getVideoPlayer() { return(_owner); } function setVideoPlayer(v) { _owner = v; } function getNetConnection() { return(_nc); } function getStreamName() { return(_streamName); } function isRTMP() { return(_isRTMP); } function getStreamLength() { return(_streamLength); } function getStreamWidth() { return(_streamWidth); } function getStreamHeight() { return(_streamHeight); } function connectToURL(url) { initOtherInfo(); _contentPath = url; if (((_contentPath == null) || (_contentPath == undefined)) || (_contentPath == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH); } var _local2 = parseURL(_contentPath); if ((_local2.streamName == undefined) || (_local2.streamName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } if (_local2.isRTMP) { var _local3 = canReuseOldConnection(_local2); _isRTMP = true; _protocol = _local2.protocol; _streamName = _local2.streamName; _serverName = _local2.serverName; _wrappedURL = _local2.wrappedURL; _portNumber = _local2.portNumber; _appName = _local2.appName; if ((((_appName == undefined) || (_appName == "")) || (_streamName == undefined)) || (_streamName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } _autoSenseBW = _streamName.indexOf(",") >= 0; return(_local3 || (connectRTMP())); } if ((_local2.streamName.indexOf("?") < 0) && (_local2.streamName.slice(-4).toLowerCase() == ".flv")) { var _local3 = canReuseOldConnection(_local2); _isRTMP = false; _streamName = _local2.streamName; return(_local3 || (connectHTTP())); } if (_local2.streamName.indexOf("/fms/fpad") >= 0) { try { return(connectFPAD(_local2.streamName)); } catch(err:Error) { } } _smilMgr = new mx.video.SMILManager(this); return(_smilMgr.connectXML(_local2.streamName)); } function connectAgain() { var _local2 = _appName.indexOf("/"); if (_local2 < 0) { _local2 = _streamName.indexOf("/"); if (_local2 >= 0) { _appName = _appName + "/"; _appName = _appName + _streamName.slice(0, _local2); _streamName = _streamName.slice(_local2 + 1); } return(false); } var _local3 = _appName.slice(_local2 + 1); _local3 = _local3 + "/"; _local3 = _local3 + _streamName; _streamName = _local3; _appName = _appName.slice(0, _local2); close(); _payload = 0; _connTypeCounter = 0; cleanConns(); connectRTMP(); return(true); } function reconnect() { if (!_isRTMP) { throw new Error("Cannot call reconnect on an http connection"); } _nc.onStatus = function (info) { this.mc.reconnectOnStatus(this, info); }; _nc.onBWDone = function () { this.mc.onReconnected(); }; _nc.connect(_ncUri, false); } function onReconnected() { delete _nc.onStatus; delete _nc.onBWDone; _ncConnected = true; _owner.ncReconnected(); } function close() { if (_nc) { _nc.close(); _ncConnected = false; } } function helperDone(helper, success) { if (!success) { _nc = undefined; _ncConnected = false; _owner.ncConnected(); _smilMgr = undefined; _fpadMgr = undefined; return(undefined); } var _local2; var _local4; if (helper == _fpadMgr) { _local4 = _fpadMgr.rtmpURL; _fpadMgr = undefined; _local2 = parseURL(_local4); _isRTMP = _local2.isRTMP; _protocol = _local2.protocol; _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; _streamName = _local2.streamName; var _local5 = fpadZone; fpadZone = -1; connectRTMP(); fpadZone = _local5; return(undefined); } if (helper != _smilMgr) { return(undefined); } _streamWidth = _smilMgr.width; _streamHeight = _smilMgr.height; _local4 = _smilMgr.baseURLAttr[0]; if ((_local4 != undefined) && (_local4 != "")) { if (_local4.charAt(_local4.length - 1) != "/") { _local4 = _local4 + "/"; } _local2 = parseURL(_local4); _isRTMP = _local2.isRTMP; _streamName = _local2.streamName; if (_isRTMP) { _protocol = _local2.protocol; _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; if ((_appName == undefined) || (_appName == "")) { _smilMgr = undefined; throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4); } if (_smilMgr.baseURLAttr.length > 1) { _local2 = parseURL(_smilMgr.baseURLAttr[1]); if (_local2.serverName != undefined) { fallbackServerName = _local2.serverName; } } } } _streams = _smilMgr.videoTags; _smilMgr = undefined; var _local3 = 0; while (_local3 < _streams.length) { _local4 = _streams[_local3].src; _local2 = parseURL(_local4); if (_isRTMP == undefined) { _isRTMP = _local2.isRTMP; if (_isRTMP) { _protocol = _local2.protocol; if (_streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Cannot switch between multiple absolute RTMP URLs, must use meta tag base attribute."); } _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; if ((_appName == undefined) || (_appName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4); } } else if ((_local2.streamName.indexOf("/fms/fpad") >= 0) && (_streams.length > 1)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Cannot switch between multiple absolute fpad URLs, must use meta tag base attribute."); } } else if ((((_streamName != undefined) && (_streamName != "")) && (!_local2.isRelative)) && (_streams.length > 1)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "When using meta tag base attribute, cannot use absolute URLs for video or ref tag src attributes."); } _streams[_local3].parseResults = _local2; _local3++; } _autoSenseBW = _streams.length > 1; if (!_autoSenseBW) { if (_streamName != undefined) { _streamName = _streamName + _streams[0].parseResults.streamName; } else { _streamName = _streams[0].parseResults.streamName; } _streamLength = _streams[0].dur; } if (_isRTMP) { connectRTMP(); } else if ((_streamName != undefined) && (_streamName.indexOf("/fms/fpad") >= 0)) { connectFPAD(_streamName); } else { if (_autoSenseBW) { bitrateMatch(); } connectHTTP(); _owner.ncConnected(); } } function bitrateMatch() { var _local3; var _local4 = _bitrate; if (isNaN(_local4)) { _local4 = 0; } var _local2 = 0; while (_local2 < _streams.length) { if (isNaN(_streams[_local2].bitrate) || (_local4 >= _streams[_local2].bitrate)) { _local3 = _local2; break; } _local2++; } if (isNaN(_local3)) { throw new mx.video.VideoError(mx.video.VideoError.NO_BITRATE_MATCH); } if (_streamName != undefined) { _streamName = _streamName + _streams[_local3].src; } else { _streamName = _streams[_local3].src; } _streamLength = _streams[_local3].dur; } function parseURL(url) { var _local2 = new Object(); var _local3 = 0; var _local4 = url.indexOf(":/", _local3); if (_local4 >= 0) { _local4 = _local4 + 2; _local2.protocol = url.slice(_local3, _local4); _local2.isRelative = false; } else { _local2.isRelative = true; } if ((_local2.protocol != undefined) && (((_local2.protocol == "rtmp:/") || (_local2.protocol == "rtmpt:/")) || (_local2.protocol == "rtmps:/"))) { _local2.isRTMP = true; _local3 = _local4; if (url.charAt(_local3) == "/") { _local3++; var _local7 = url.indexOf(":", _local3); var _local8 = url.indexOf("/", _local3); if (_local8 < 0) { if (_local7 < 0) { _local2.serverName = url.slice(_local3); } else { _local4 = _local7; _local2.portNumber = url.slice(_local3, _local4); _local3 = _local4 + 1; _local2.serverName = url.slice(_local3); } return(_local2); } if ((_local7 >= 0) && (_local7 < _local8)) { _local4 = _local7; _local2.serverName = url.slice(_local3, _local4); _local3 = _local4 + 1; _local4 = _local8; _local2.portNumber = url.slice(_local3, _local4); } else { _local4 = _local8; _local2.serverName = url.slice(_local3, _local4); } _local3 = _local4 + 1; } if (url.charAt(_local3) == "?") { var _local9 = url.slice(_local3 + 1); var _local6 = parseURL(_local9); if ((_local6.protocol == undefined) || (!_local6.isRTMP)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } _local2.wrappedURL = "?"; _local2.wrappedURL = _local2.wrappedURL + _local6.protocol; if (_local6.serverName != undefined) { _local2.wrappedURL = _local2.wrappedURL + "/"; _local2.wrappedURL = _local2.wrappedURL + _local6.serverName; } if (_local6.wrappedURL != undefined) { _local2.wrappedURL = _local2.wrappedURL + "/?"; _local2.wrappedURL = _local2.wrappedURL + _local6.wrappedURL; } _local2.appName = _local6.appName; _local2.streamName = _local6.streamName; return(_local2); } _local4 = url.indexOf("/", _local3); if (_local4 < 0) { _local2.appName = url.slice(_local3); return(_local2); } _local2.appName = url.slice(_local3, _local4); _local3 = _local4 + 1; _local4 = url.indexOf("/", _local3); if (_local4 < 0) { _local2.streamName = url.slice(_local3); if (_local2.streamName.slice(-4).toLowerCase() == ".flv") { _local2.streamName = _local2.streamName.slice(0, -4); } return(_local2); } _local2.appName = _local2.appName + "/"; _local2.appName = _local2.appName + url.slice(_local3, _local4); _local3 = _local4 + 1; _local2.streamName = url.slice(_local3); if (_local2.streamName.slice(-4).toLowerCase() == ".flv") { _local2.streamName = _local2.streamName.slice(0, -4); } } else { _local2.isRTMP = false; _local2.streamName = url; } return(_local2); } function canReuseOldConnection(parseResults) { if (((_nc == undefined) || (_nc == null)) || (!_ncConnected)) { return(false); } if (!parseResults.isRTMP) { if (!_isRTMP) { return(true); } _owner.close(); _nc = undefined; _ncConnected = false; initNCInfo(); return(false); } if (_isRTMP) { if (((((parseResults.serverName == _serverName) && (parseResults.appName == _appName)) && (parseResults.protocol == _protocol)) && (parseResults.portNumber == _portNumber)) && (parseResults.wrappedURL == _wrappedURL)) { return(true); } _owner.close(); _nc = undefined; _ncConnected = false; } initNCInfo(); return(false); } function connectHTTP() { _nc = new NetConnection(); _nc.connect(null); _ncConnected = true; return(true); } function connectRTMP() { clearInterval(_timeoutIntervalId); _timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout); _tryNC = new Array(); var _local2 = 0; while (_local2 < RTMP_CONN.length) { _tryNC[_local2] = new NetConnection(); if ((fpadZone != undefined) && (fpadZone != null)) { _tryNC[_local2].fpadZone = fpadZone; } _tryNC[_local2].mc = this; _tryNC[_local2].pending = false; _tryNC[_local2].connIndex = _local2; _tryNC[_local2].onBWDone = function (p_bw) { this.mc.onConnected(this, p_bw); }; _tryNC[_local2].onBWCheck = function () { return(++this.mc._payload); }; _tryNC[_local2].onStatus = function (info) { this.mc.connectOnStatus(this, info); }; _local2++; } nextConnect(); return(false); } function connectFPAD(url) { var _local7; var _local5; var _local6; var _local2 = url.indexOf("?"); while (_local2 >= 0) { _local2++; var _local4 = url.indexOf("&", _local2); if (url.substr(_local2, 4).toLowerCase() == "uri=") { _local7 = url.slice(0, _local2); _local2 = _local2 + 4; if (_local4 >= 0) { _local5 = url.slice(_local2, _local4); _local6 = url.slice(_local4); } else { _local5 = url.slice(_local2); _local6 = ""; } break; } _local2 = _local4; } if (_local2 < 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, "fpad url must include uri parameter: " + url); } var _local8 = parseURL(_local5); if (!_local8.isRTMP) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, "fpad url uri parameter must be rtmp url: " + url); } _fpadMgr = new mx.video.FPADManager(this); return(_fpadMgr.connectXML(_local7, _local5, _local6, _local8)); } function nextConnect() { clearInterval(_tryNCIntervalId); _tryNCIntervalId = 0; var _local4; var _local3; if (_connTypeCounter == 0) { _local4 = _protocol; if (_portNumber != undefined) { _local3 = _portNumber; } else { var _local2 = 0; while (_local2 < RTMP_CONN.length) { if (_local4 == RTMP_CONN[_local2].protocol) { _local3 = RTMP_CONN[_local2].port; break; } _local2++; } } } else { _local4 = RTMP_CONN[_connTypeCounter].protocol; _local3 = RTMP_CONN[_connTypeCounter].port; } var _local5 = ((_local4 + ((_serverName == undefined) ? "" : (((("/" + _serverName) + ":") + _local3) + "/"))) + ((_wrappedURL == undefined) ? "" : (_wrappedURL + "/"))) + _appName; _tryNC[_connTypeCounter].pending = true; _tryNC[_connTypeCounter].connect(_local5, _autoSenseBW); if (_connTypeCounter < (RTMP_CONN.length - 1)) { _connTypeCounter++; _tryNCIntervalId = setInterval(this, "nextConnect", 1500); } } function cleanConns() { clearInterval(_tryNCIntervalId); _tryNCIntervalId = 0; if (_tryNC != undefined) { var _local2 = 0; while (_local2 < _tryNC.length) { if (_tryNC[_local2] != undefined) { delete _tryNC[_local2].onStatus; if (_tryNC[_local2].pending) { _tryNC[_local2].onStatus = function (info) { this.mc.disconnectOnStatus(this, info); }; } else { delete _tryNC[_local2].onStatus; _tryNC[_local2].close(); } } delete _tryNC[_local2]; _local2++; } delete _tryNC; } } function tryFallBack() { if (((_serverName == fallbackServerName) || (fallbackServerName == undefined)) || (fallbackServerName == null)) { delete _nc; _nc = undefined; _ncConnected = false; _owner.ncConnected(); } else { _connTypeCounter = 0; cleanConns(); _serverName = fallbackServerName; connectRTMP(); } } function onConnected(p_nc, p_bw) { clearInterval(_timeoutIntervalId); _timeoutIntervalId = 0; delete p_nc.onBWDone; delete p_nc.onBWCheck; delete p_nc.onStatus; _nc = p_nc; _ncUri = _nc.uri; _ncConnected = true; if (_autoSenseBW) { _bitrate = p_bw * 1024; if (_streams != undefined) { bitrateMatch(); } else { var _local3 = _streamName.split(","); var _local2 = 0; while (_local2 < _local3.length) { var _local4 = stripFrontAndBackWhiteSpace(_local3[_local2]); if ((_local2 + 1) < _local3.length) { if (p_bw <= Number(_local3[_local2 + 1])) { _streamName = _local4; break; } } else { _streamName = _local4; break; } _local2 = _local2 + 2; } if (_streamName.slice(-4).toLowerCase() == ".flv") { _streamName = _streamName.slice(0, -4); } } } if ((!_owner.__get__isLive()) && (_streamLength == undefined)) { var _local6 = new Object(); _local6.mc = this; _local6.onResult = function (length) { this.mc.getStreamLengthResult(length); }; _nc.call("getStreamLength", _local6, _streamName); } else { _owner.ncConnected(); } } function connectOnStatus(target, info) { target.pending = false; if (info.code == "NetConnection.Connect.Success") { _nc = _tryNC[target.connIndex]; _tryNC[target.connIndex] = undefined; cleanConns(); } else if (((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) && (target.connIndex == (RTMP_CONN.length - 1))) { if (!connectAgain()) { tryFallBack(); } } } function reconnectOnStatus(target, info) { if ((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) { delete _nc; _nc = undefined; _ncConnected = false; _owner.ncReconnected(); } } function disconnectOnStatus(target, info) { if (info.code == "NetConnection.Connect.Success") { delete target.onStatus; target.close(); } } function getStreamLengthResult(length) { if (length > 0) { _streamLength = length; } _owner.ncConnected(); } function _onFCSConnectTimeOut() { cleanConns(); _nc = undefined; _ncConnected = false; if (!connectAgain()) { _owner.ncConnected(); } } static function stripFrontAndBackWhiteSpace(p_str) { var _local1; var _local2 = p_str.length; var _local4 = 0; var _local5 = _local2; _local1 = 0; while (_local1 < _local2) { switch (p_str.charCodeAt(_local1)) { case 9 : case 10 : case 13 : case 32 : break; default : _local4 = _local1; break;!//outer level } _local1++; } _local1 = _local2; while (_local1 >= 0) { switch (p_str.charCodeAt(_local1)) { case 9 : case 10 : case 13 : case 32 : break; default : _local5 = _local1 + 1; break;!//outer level } _local1--; } if (_local5 <= _local4) { return(""); } return(p_str.slice(_local4, _local5)); } static var version = "1.0.1.10"; static var shortVersion = "1.0.1"; var DEFAULT_TIMEOUT = 60000; static var RTMP_CONN = [{protocol:"rtmp:/", port:"1935"}, {protocol:"rtmp:/", port:"443"}, {protocol:"rtmpt:/", port:"80"}, {protocol:"rtmps:/", port:"443"}]; }
Symbol 16 MovieClip [__Packages.mx.video.SMILManager] Frame 0
class mx.video.SMILManager { var _owner, _url, xml, baseURLAttr, videoTags, width, height; function SMILManager (owner) { _owner = owner; } function connectXML(url) { _url = fixURL(url); xml = new XML(); xml.onLoad = mx.utils.Delegate.create(this, xmlOnLoad); xml.load(_url); return(false); } function fixURL(origURL) { if ((origURL.substr(0, 5).toLowerCase() == "http:") || (origURL.substr(0, 6).toLowerCase() == "https:")) { var _local2 = ((origURL.indexOf("?") >= 0) ? "&" : "?"); return(((origURL + _local2) + "FLVPlaybackVersion=") + shortVersion); } return(origURL); } function xmlOnLoad(success) { try { if (!success) { _owner.helperDone(this, false); } else { baseURLAttr = new Array(); videoTags = new Array(); var _local2 = xml.firstChild; var _local6 = false; while (_local2 != null) { if (_local2.nodeType == ELEMENT_NODE) { _local6 = true; if (_local2.nodeName.toLowerCase() == "smil") { break; } } _local2 = _local2.nextSibling; } if (!_local6) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" No root node found; if url is for an flv it must have .flv extension and take no parameters"); } else if (_local2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Root node not smil"); } var _local5 = false; var _local4 = 0; while (_local4 < _local2.childNodes.length) { var _local3 = _local2.childNodes[_local4]; if (_local3.nodeType != ELEMENT_NODE) { } else if (_local3.nodeName.toLowerCase() == "head") { parseHead(_local3); } else if (_local3.nodeName.toLowerCase() == "body") { _local5 = true; parseBody(_local3); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Tag ") + _local3.nodeName) + " not supported in ") + _local2.nodeName) + " tag."); } _local4++; } if (!_local5) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Tag body is required."); } _owner.helperDone(this, true); } } catch(err:Error) { _owner.helperDone(this, false); throw err; } } function parseHead(parentNode) { var _local4 = false; var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "meta") { for (var _local6 in _local2.attributes) { if (_local6.toLowerCase() == "base") { baseURLAttr.push(_local2.attributes[_local6]); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Attribute ") + _local6) + " not supported in ") + _local2.nodeName) + " tag."); } } } else if (_local2.nodeName.toLowerCase() == "layout") { if (!_local4) { parseLayout(_local2); _local4 = true; } } _local3++; } } function parseLayout(parentNode) { var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "root-layout") { for (var _local5 in _local2.attributes) { if (_local5.toLowerCase() == "width") { width = Number(_local2.attributes[_local5]); } else if (_local5.toLowerCase() == "height") { height = Number(_local2.attributes[_local5]); } } if (((isNaN(width) || (width < 0)) || (isNaN(height))) || (height < 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + _local2.nodeName) + " requires attributes id, width and height. Width and height must be numbers greater than or equal to 0."); } width = Math.round(width); height = Math.round(height); return(undefined); } _local3++; } } function parseBody(parentNode) { var _local6 = 0; var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else { _local6++; if (_local6 > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + parentNode.nodeName) + " is required to contain exactly one tag."); } if (_local2.nodeName.toLowerCase() == "switch") { parseSwitch(_local2); } else if ((_local2.nodeName.toLowerCase() == "video") || (_local2.nodeName.toLowerCase() == "ref")) { var _local5 = parseVideo(_local2); videoTags.push(_local5); } } _local3++; } if (videoTags.length < 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" At least one video of ref tag is required."); } } function parseSwitch(parentNode) { var _local4 = 0; while (_local4 < parentNode.childNodes.length) { var _local5 = parentNode.childNodes[_local4]; if (_local5.nodeType != ELEMENT_NODE) { } else if ((_local5.nodeName.toLowerCase() == "video") || (_local5.nodeName.toLowerCase() == "ref")) { var _local3 = parseVideo(_local5); if (_local3.bitrate == undefined) { videoTags.push(_local3); } else { var _local6 = false; var _local2 = 0; while (_local2 < videoTags.length) { if ((videoTags[_local2].bitrate == undefined) || (_local3.bitrate < videoTags[_local4].bitrate)) { _local6 = true; videoTags.splice(_local2, 0, videoTags); break; } _local2++; } if (!_local6) { videoTags.push(_local3); } } } _local4++; } } function parseVideo(node) { var _local3 = new Object(); for (var _local4 in node.attributes) { if (_local4.toLowerCase() == "src") { _local3.src = node.attributes[_local4]; } else if (_local4.toLowerCase() == "system-bitrate") { _local3.bitrate = Number(node.attributes[_local4]); } else if (_local4.toLowerCase() == "dur") { _local3.dur = parseTime(node.attributes[_local4]); } } if (_local3.src == undefined) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Attribute src is required in ") + node.nodeName) + " tag."); } return(_local3); } function parseTime(timeStr) { var _local4 = 0; var _local3 = timeStr.split(":"); if ((_local3.length < 1) || (_local3.length > 3)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Invalid dur value: " + timeStr); } var _local1 = 0; while (_local1 < _local3.length) { var _local2 = Number(_local3[_local1]); if (isNaN(_local2)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Invalid dur value: " + timeStr); } _local4 = _local4 * 60; _local4 = _local4 + _local2; _local1++; } return(_local4); } static var version = "1.0.1.10"; static var shortVersion = "1.0.1"; static var ELEMENT_NODE = 1; }
Symbol 15 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var _local2 = function () { var _local2 = arguments.callee.target; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }
Symbol 17 MovieClip [__Packages.mx.video.FPADManager] Frame 0
class mx.video.FPADManager { var _owner, _uriParam, _parseResults, _url, xml, rtmpURL; function FPADManager (owner) { _owner = owner; } function connectXML(urlPrefix, uriParam, urlSuffix, uriParamParseResults) { _uriParam = uriParam; _parseResults = uriParamParseResults; _url = (urlPrefix + "uri=") + _parseResults.protocol; if (_parseResults.serverName != undefined) { _url = _url + ("/" + _parseResults.serverName); } if (_parseResults.portNumber != undefined) { _url = _url + (":" + _parseResults.portNumber); } if (_parseResults.wrappedURL != undefined) { _url = _url + ("/?" + _parseResults.wrappedURL); } _url = _url + ("/" + _parseResults.appName); _url = _url + urlSuffix; xml = new XML(); xml.onLoad = mx.utils.Delegate.create(this, xmlOnLoad); xml.load(_url); return(false); } function xmlOnLoad(success) { try { if (!success) { _owner.helperDone(this, false); } else { var _local5 = xml.firstChild; var _local8 = false; while (_local5 != null) { if (_local5.nodeType == ELEMENT_NODE) { _local8 = true; if (_local5.nodeName.toLowerCase() == "fpad") { break; } } _local5 = _local5.nextSibling; } if (!_local8) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" No root node found; if url is for an flv it must have .flv extension and take no parameters"); } else if (_local5 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Root node not fpad"); } var _local7; var _local6 = 0; while (_local6 < _local5.childNodes.length) { var _local3 = _local5.childNodes[_local6]; if (_local3.nodeType != ELEMENT_NODE) { } else if (_local3.nodeName.toLowerCase() == "proxy") { var _local2 = 0; while (_local2 < _local3.childNodes.length) { var _local4 = _local3.childNodes[_local2]; if (_local4.nodeType == TEXT_NODE) { _local7 = trim(_local4.nodeValue); break; } _local2++; } break; } _local6++; } if ((_local7 == undefined) || (_local7 == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" fpad xml requires proxy tag."); } rtmpURL = (((_parseResults.protocol + "/") + _local7) + "/?") + _uriParam; _owner.helperDone(this, true); } } catch(err:Error) { _owner.helperDone(this, false); throw err; } } function trim(str) { var _local2 = 0; while (_local2 < str.length) { var _local1 = str.charAt(_local2); if ((((_local1 != " ") && (_local1 != "\t")) && (_local1 != "\r")) && (_local1 != newline)) { break; } _local2++; } if (_local2 >= str.length) { return(""); } var _local4 = str.length - 1; while (_local4 > _local2) { var _local1 = str.charAt(_local4); if ((((_local1 != " ") && (_local1 != "\t")) && (_local1 != "\r")) && (_local1 != newline)) { break; } _local4--; } return(str.slice(_local2, _local4 + 1)); } static var version = "1.0.1.10"; static var shortVersion = "1.0.1"; static var ELEMENT_NODE = 1; static var TEXT_NODE = 3; }
Symbol 19 MovieClip [__Packages.mx.video.CuePointManager] Frame 0
class mx.video.CuePointManager { var _owner, _id, _asCuePointTolerance, _linearSearchTolerance, _metadataLoaded, allCuePoints, asCuePoints, _disabledCuePoints, flvCuePoints, navCuePoints, eventCuePoints, _asCuePointIndex, __get__playheadUpdateInterval, _disabledCuePointsByNameOnly; function CuePointManager (owner, id) { _owner = owner; _id = id; reset(); _asCuePointTolerance = _owner.getVideoPlayer(_id).__get__playheadUpdateInterval() / 2000; _linearSearchTolerance = DEFAULT_LINEAR_SEARCH_TOLERANCE; } function reset() { _metadataLoaded = false; allCuePoints = null; asCuePoints = null; _disabledCuePoints = null; flvCuePoints = null; navCuePoints = null; eventCuePoints = null; _asCuePointIndex = 0; } function get metadataLoaded() { return(_metadataLoaded); } function set playheadUpdateInterval(aTime) { _asCuePointTolerance = aTime / 2000; //return(__get__playheadUpdateInterval()); } function get id() { return(_id); } function addASCuePoint(timeOrCuePoint, name, parameters) { var _local3; if (typeof(timeOrCuePoint) == "object") { _local3 = deepCopyObject(timeOrCuePoint); } else { _local3 = {time:timeOrCuePoint, name:name, parameters:deepCopyObject(parameters)}; } var _local7 = isNaN(_local3.time) || (_local3.time < 0); if (_local7) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } var _local6 = (_local3.name == undefined) || (_local3.name == null); if (_local6) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null"); } var _local2; _local3.type = "actionscript"; if (((asCuePoints == null) || (asCuePoints == undefined)) || (asCuePoints.length < 1)) { _local2 = 0; asCuePoints = new Array(); asCuePoints.push(_local3); } else { _local2 = getCuePointIndex(asCuePoints, true, _local3.time); _local2 = ((asCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1)); asCuePoints.splice(_local2, 0, _local3); } if (((allCuePoints == null) || (allCuePoints == undefined)) || (allCuePoints.length < 1)) { _local2 = 0; allCuePoints = new Array(); allCuePoints.push(_local3); } else { _local2 = getCuePointIndex(allCuePoints, true, _local3.time); _local2 = ((allCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1)); allCuePoints.splice(_local2, 0, _local3); } var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime(); if (_local5 > 0) { if (_asCuePointIndex == _local2) { if (_local5 > asCuePoints[_local2].time) { _asCuePointIndex++; } } else if (_asCuePointIndex > _local2) { _asCuePointIndex++; } } else { _asCuePointIndex = 0; } var _local4 = deepCopyObject(asCuePoints[_local2]); _local4.array = asCuePoints; _local4.index = _local2; return(_local4); } function removeASCuePoint(timeNameOrCuePoint) { if (((asCuePoints == null) || (asCuePoints == undefined)) || (asCuePoints.length < 1)) { return(null); } var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local2 = getCuePointIndex(asCuePoints, false, _local3.time, _local3.name); if (_local2 < 0) { return(null); } _local3 = asCuePoints[_local2]; asCuePoints.splice(_local2, 1); _local2 = getCuePointIndex(allCuePoints, false, _local3.time, _local3.name); if (_local2 > 0) { allCuePoints.splice(_local2, 1); } if (_owner.getVideoPlayer(_id).__get__playheadTime() > 0) { if (_asCuePointIndex > _local2) { _asCuePointIndex--; } } else { _asCuePointIndex = 0; } return(_local3); } function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) { var _local4; switch (typeof(timeNameOrCuePoint)) { case "string" : _local4 = {name:timeNameOrCuePoint}; break; case "number" : _local4 = {time:timeNameOrCuePoint}; break; case "object" : _local4 = timeNameOrCuePoint; } var _local12 = isNaN(_local4.time) || (_local4.time < 0); var _local11 = (_local4.name == undefined) || (_local4.name == null); if (_local12 && (_local11)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } var _local6 = 0; var _local2; var _local5; if (_local12) { if (!_metadataLoaded) { if (_disabledCuePointsByNameOnly[_local4.name] == undefined) { if (!enabled) { if (((_disabledCuePointsByNameOnly == null) || (_disabledCuePointsByNameOnly == undefined)) || (_disabledCuePointsByNameOnly.length < 0)) { _disabledCuePointsByNameOnly = new Object(); } _disabledCuePointsByNameOnly[_local4.name] = new Array(); } } else { if (enabled) { _disabledCuePointsByNameOnly[_local4.name] = undefined; } return(-1); } removeCuePoints(_disabledCuePoints, _local4); return(-1); } if (enabled) { _local6 = removeCuePoints(_disabledCuePoints, _local4); } else { var _local3; _local2 = getCuePointIndex(flvCuePoints, true, -1, _local4.name); while (_local2 >= 0) { _local3 = flvCuePoints[_local2]; _local5 = getCuePointIndex(_disabledCuePoints, true, _local3.time); if ((_local5 < 0) || (_disabledCuePoints[_local5].time != _local3.time)) { _disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, {name:_local3.name, time:_local3.time}); _local6 = _local6 + 1; } _local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2); } } return(_local6); } _local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time, _local4.name); if (_local2 < 0) { if (enabled) { if (!_metadataLoaded) { _local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time); if (_local2 < 0) { _local5 = getCuePointIndex(_disabledCuePointsByNameOnly[_local4.name], true, _local4.time); if (cuePointCompare(_local4.time, null, _disabledCuePointsByNameOnly[_local4.name]) != 0) { _disabledCuePointsByNameOnly[_local4.name] = insertCuePoint(_local5, _disabledCuePointsByNameOnly[_local4.name], _local4); } } else { _disabledCuePoints.splice(_local2, 1); } } return((_metadataLoaded ? 0 : -1)); } } else { if (enabled) { _disabledCuePoints.splice(_local2, 1); _local6 = 1; } else { _local6 = 0; } return((_metadataLoaded ? (_local6) : -1)); } if (_metadataLoaded) { _local2 = getCuePointIndex(flvCuePoints, false, _local4.time, _local4.name); if (_local2 < 0) { return(0); } if (_local11) { _local4.name = flvCuePoints[_local2].name; } } _local5 = getCuePointIndex(_disabledCuePoints, true, _local4.time); _disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, _local4); _local6 = 1; return((_metadataLoaded ? 1 : -1)); } function removeCuePoints(cuePointArray, cuePoint) { var _local2; var _local4; var _local5 = 0; _local2 = getCuePointIndex(cuePointArray, true, -1, cuePoint.name); while (_local2 >= 0) { _local4 = cuePointArray[_local2]; cuePointArray.splice(_local2, 1); _local2--; _local5++; _local2 = getNextCuePointIndexWithName(_local4.name, cuePointArray, _local2); } return(_local5); } function insertCuePoint(insertIndex, cuePointArray, cuePoint) { if (insertIndex < 0) { cuePointArray = new Array(); cuePointArray.push(cuePoint); } else { if (cuePointArray[insertIndex].time > cuePoint.time) { insertIndex = 0; } else { insertIndex++; } cuePointArray.splice(insertIndex, 0, cuePoint); } return(cuePointArray); } function isFLVCuePointEnabled(timeNameOrCuePoint) { if (!_metadataLoaded) { return(true); } var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local5 = isNaN(_local3.time) || (_local3.time < 0); var _local6 = (_local3.name == undefined) || (_local3.name == null); if (_local5 && (_local6)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } if (_local5) { var _local2 = getCuePointIndex(flvCuePoints, true, -1, _local3.name); if (_local2 < 0) { return(true); } while (_local2 >= 0) { if (getCuePointIndex(_disabledCuePoints, false, flvCuePoints[_local2].time, flvCuePoints[_local2].name) < 0) { return(true); } _local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2); } return(false); } return(getCuePointIndex(_disabledCuePoints, false, _local3.time, _local3.name) < 0); } function dispatchASCuePoints() { var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime(); if ((_owner.getVideoPlayer(_id).__get__stateResponsive() && (asCuePoints != null)) && (asCuePoints != undefined)) { while ((_asCuePointIndex < asCuePoints.length) && (asCuePoints[_asCuePointIndex].time <= (_local5 + _asCuePointTolerance))) { _owner.dispatchEvent({type:"cuePoint", info:deepCopyObject(asCuePoints[_asCuePointIndex++]), vp:_id}); } } } function resetASCuePointIndex(time) { if (((time <= 0) || (asCuePoints == null)) || (asCuePoints == undefined)) { _asCuePointIndex = 0; return(undefined); } var _local2 = getCuePointIndex(asCuePoints, true, time); _asCuePointIndex = ((asCuePoints[_local2].time < time) ? (_local2 + 1) : (_local2)); } function processFLVCuePoints(metadataCuePoints) { _metadataLoaded = true; if (((metadataCuePoints == undefined) || (metadataCuePoints == null)) || (metadataCuePoints.length < 1)) { flvCuePoints = null; navCuePoints = null; eventCuePoints = null; return(undefined); } flvCuePoints = metadataCuePoints; navCuePoints = new Array(); eventCuePoints = new Array(); var _local5; var _local6 = -1; var _local2; var _local4 = _disabledCuePoints; var _local3 = 0; _disabledCuePoints = new Array(); var _local9 = 0; while (_local2 = flvCuePoints[_local9++] , _local2 != undefined) { if ((_local6 > 0) && (_local6 >= _local2.time)) { flvCuePoints = null; navCuePoints = null; eventCuePoints = null; _disabledCuePoints = null; _disabledCuePointsByNameOnly = null; throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Unsorted cuePoint found after time: " + _local6); } _local6 = _local2.time; while ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, null, _local2) < 0)) { _local3++; } if ((_disabledCuePointsByNameOnly[_local2.name] != undefined) || ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, _local4[_local3].name, _local2) == 0))) { _disabledCuePoints.push({time:_local2.time, name:_local2.name}); } if (_local2.type == "navigation") { navCuePoints.push(_local2); } else if (_local2.type == "event") { eventCuePoints.push(_local2); } if (((allCuePoints == null) || (allCuePoints == undefined)) || (allCuePoints.length < 1)) { allCuePoints = new Array(); allCuePoints.push(_local2); } else { _local5 = getCuePointIndex(allCuePoints, true, _local2.time); _local5 = ((allCuePoints[_local5].time > _local2.time) ? 0 : (_local5 + 1)); allCuePoints.splice(_local5, 0, _local2); } } delete _disabledCuePointsByNameOnly; _disabledCuePointsByNameOnly = null; delete _disabledCuePointsByNameOnly; _disabledCuePointsByNameOnly = null; } function processCuePointsProperty(cuePoints) { if (((cuePoints == undefined) || (cuePoints == null)) || (cuePoints.length == 0)) { return(undefined); } var _local4 = 0; var _local8; var _local6; var _local7; var _local5; var _local9; var _local2 = 0; while (_local2 < (cuePoints.length - 1)) { switch (_local4) { case 6 : addOrDisable(_local9, _local5); _local4 = 0; case 0 : if (cuePoints[_local2++] != "t") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } _local5 = new Object(); _local5.time = cuePoints[_local2] / 1000; _local4++; break; case 1 : if (cuePoints[_local2++] != "n") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if ((cuePoints[_local2] == undefined) || (cuePoints[_local2] == null)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be null or undefined"); } _local5.name = unescape(cuePoints[_local2]); _local4++; break; case 2 : if (cuePoints[_local2++] != "t") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be number"); } switch (cuePoints[_local2]) { case 0 : _local5.type = "event"; break; case 1 : _local5.type = "navigation"; break; case 2 : _local5.type = "actionscript"; break; default : throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be 0, 1 or 2"); } _local4++; break; case 3 : if (cuePoints[_local2++] != "d") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "disabled must be number"); } _local9 = cuePoints[_local2] != 0; _local4++; break; case 4 : if (cuePoints[_local2++] != "p") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "num params must be number"); } _local8 = cuePoints[_local2]; _local4++; if (_local8 == 0) { _local4++; } else { _local5.parameters = new Object(); } break; case 5 : _local6 = cuePoints[_local2++]; _local7 = cuePoints[_local2]; if (typeof(_local6) == "string") { _local6 = unescape(_local6); } if (typeof(_local7) == "string") { _local7 = unescape(_local7); } _local5.parameters[_local6] = _local7; _local8--; if (_local8 != 0) { break; } _local4++; } _local2++; } if (_local4 == 6) { addOrDisable(_local9, _local5); } else { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected end of cuePoint param string"); } } function addOrDisable(disable, cuePoint) { if (disable) { if (cuePoint.type == "actionscript") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Cannot disable actionscript cue points"); } setFLVCuePointEnabled(false, cuePoint); } else if (cuePoint.type == "actionscript") { addASCuePoint(cuePoint); } } function unescape(origStr) { var _local3 = origStr; var _local1 = 0; while (_local1 < cuePointsReplace.length) { var _local2 = _local3.split(cuePointsReplace[_local1++]); if (_local2.length > 1) { _local3 = _local2.join(cuePointsReplace[_local1]); } _local1++; } return(_local3); } function getCuePointIndex(cuePointArray, closeIsOK, time, name, start, len) { if (((cuePointArray == null) || (cuePointArray == undefined)) || (cuePointArray.length < 1)) { return(-1); } var _local13 = isNaN(time) || (time < 0); var _local16 = (name == undefined) || (name == null); if (_local13 && (_local16)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } if ((start == undefined) || (start == null)) { start = 0; } if ((len == undefined) || (len == null)) { len = cuePointArray.length; } if ((!_local16) && (closeIsOK || (_local13))) { var _local8; var _local2; if (_local13) { _local8 = start; } else { _local8 = getCuePointIndex(cuePointArray, closeIsOK, time); } _local2 = _local8; while (_local2 >= start) { if (cuePointArray[_local2].name == name) { break; } _local2--; } if (_local2 >= start) { return(_local2); } _local2 = _local8 + 1; while (_local2 < len) { if (cuePointArray[_local2].name == name) { break; } _local2++; } if (_local2 < len) { return(_local2); } return(-1); } var _local6; if (len <= _linearSearchTolerance) { var _local11 = start + len; var _local3 = start; while (_local3 < _local11) { _local6 = cuePointCompare(time, name, cuePointArray[_local3]); if (_local6 == 0) { return(_local3); } if (_local6 < 0) { break; } _local3++; } if (closeIsOK) { if (_local3 > 0) { return(_local3 - 1); } return(0); } return(-1); } var _local12 = Math.floor(len / 2); var _local15 = start + _local12; _local6 = cuePointCompare(time, name, cuePointArray[_local15]); if (_local6 < 0) { return(getCuePointIndex(cuePointArray, closeIsOK, time, name, start, _local12)); } if (_local6 > 0) { return(getCuePointIndex(cuePointArray, closeIsOK, time, name, _local15 + 1, (_local12 - 1) + (len % 2))); } return(_local15); } function getNextCuePointIndexWithName(name, array, index) { if ((name == undefined) || (name == null)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null"); } if ((array == null) || (array == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.array undefined"); } if ((isNaN(index) || (index < -1)) || (index >= array.length)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.index must be number between -1 and cuePoint.array.length"); } var _local1; _local1 = index + 1; while (_local1 < array.length) { if (array[_local1].name == name) { break; } _local1++; } if (_local1 < array.length) { return(_local1); } return(-1); } static function cuePointCompare(time, name, cuePoint) { var _local2 = Math.round(time * 1000); var _local3 = Math.round(cuePoint.time * 1000); if (_local2 < _local3) { return(-1); } if (_local2 > _local3) { return(1); } if ((name != null) || (name != undefined)) { if (name == cuePoint.name) { return(0); } if (name < cuePoint.name) { return(-1); } return(1); } return(0); } function getCuePoint(cuePointArray, closeIsOK, timeNameOrCuePoint) { var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local2 = getCuePointIndex(cuePointArray, closeIsOK, _local3.time, _local3.name); if (_local2 < 0) { return(null); } _local3 = deepCopyObject(cuePointArray[_local2]); _local3.array = cuePointArray; _local3.index = _local2; return(_local3); } function getNextCuePointWithName(cuePoint) { if ((cuePoint == null) || (cuePoint == undefined)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint parameter undefined"); } if (isNaN(cuePoint.time) || (cuePoint.time < 0)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } var _local3 = getNextCuePointIndexWithName(cuePoint.name, cuePoint.array, cuePoint.index); if (_local3 < 0) { return(null); } var _local4 = deepCopyObject(cuePoint.array[_local3]); _local4.array = cuePoint.array; _local4.index = _local3; return(_local4); } static function deepCopyObject(obj, recurseLevel) { if (((obj == undefined) || (obj == null)) || (typeof(obj) != "object")) { return(obj); } if (recurseLevel == undefined) { recurseLevel = 0; } var _local2 = new Object(); for (var _local4 in obj) { if ((recurseLevel == 0) && ((_local4 == "array") || (_local4 == "index"))) { } else if (typeof(obj[_local4]) == "object") { _local2[_local4] = deepCopyObject(obj[_local4], recurseLevel + 1); } else { _local2[_local4] = obj[_local4]; } } return(_local2); } static var DEFAULT_LINEAR_SEARCH_TOLERANCE = 50; static var cuePointsReplace = ["&quot;", "\"", "&#39;", "'", "&#44;", ",", "&amp;", "&"]; }
Instance of Symbol 9 MovieClip [FLVPlayback] "my_flvPb" in Symbol 317 MovieClip Frame 1
//component parameters onClipEvent (construct) { autoPlay = true; autoRewind = true; autoSize = false; bufferTime = 0.1; contentPath = ""; cuePoints = ["t", 0, "n", "start1", "t", 2, "d", 0, "p", 0, "t", 20000, "n", "jump1", "t", 2, "d", 0, "p", 0, "t", 25000, "n", "jumpTo", "t", 2, "d", 0, "p", 0, "t", 55000, "n", "end1", "t", 2, "d", 0, "p", 0]; isLive = false; maintainAspectRatio = true; skin = ""; skinAutoHide = false; totalTime = 0; version_1_0_1 = ""; volume = 100; }
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 20
gotoAndStop (1);
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 20
gotoAndStop (1);
Symbol 418 MovieClip Frame 1
var myNum; numRoll_mc.setMask(numMask_mc); numRoll_mc.onEnterFrame = function () { if (_root.Incr[myNum] > 0) { this.numMov_mc._x = this.numMov_mc._x + _root.Incr[myNum]; if (this.numMov_mc._x > 25) { this.numMov_mc._x = -25; } if (this.numMov_mc._x < -25) { this.numMov_mc._x = 25; } } else { this.numMov_mc._x = 0; } };
Symbol 423 MovieClip Frame 1
var myNum; numRoll_mc.setMask(numMask_mc); numRoll_mc.onEnterFrame = function () { if (_root.Incr[myNum] > 0) { this.numMov_mc._x = this.numMov_mc._x + _root.Incr[myNum]; if (this.numMov_mc._x > 25) { this.numMov_mc._x = -25; } if (this.numMov_mc._x < -25) { this.numMov_mc._x = 25; } } else { this.numMov_mc._x = 0; } };
Symbol 429 MovieClip Frame 1
var myNum; numRoll_mc.setMask(numMask_mc); numRoll_mc.onEnterFrame = function () { if (_root.Incr[myNum] > 0) { this.numMov_mc._x = this.numMov_mc._x + _root.Incr[myNum]; if (this.numMov_mc._x > 25) { this.numMov_mc._x = -25; } if (this.numMov_mc._x < -25) { this.numMov_mc._x = 25; } } else { this.numMov_mc._x = 0; } };
Symbol 464 MovieClip Frame 1
FLVbar_mc.setMask(barMask_mc);
Symbol 466 MovieClip Frame 1
Symbol 466 MovieClip Frame 8
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 8
gotoAndStop (1);
Symbol 470 MovieClip Frame 1
Symbol 470 MovieClip Frame 18
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 1
stop();

Library Items

Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:9
Symbol 4 VideoUsed by:5
Symbol 5 MovieClip [VideoPlayer]Uses:4Used by:9
Symbol 6 BitmapUsed by:7
Symbol 7 GraphicUses:6Used by:8
Symbol 8 MovieClip [Icon]Uses:7Used by:9
Symbol 9 MovieClip [FLVPlayback]Uses:3 5 8Used by:317  Timeline
Symbol 20 BitmapUsed by:22 316
Symbol 21 BitmapUsed by:22 315
Symbol 22 GraphicUses:20 21Used by:Timeline
Symbol 23 GraphicUsed by:Timeline
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClipUses:24Used by:Timeline
Symbol 26 GraphicUsed by:30
Symbol 27 GraphicUsed by:28 47 223 298 430
Symbol 28 MovieClipUses:27Used by:30  Timeline
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:26 28 29Used by:Timeline
Symbol 31 FontUsed by:32 33 34 35 36 39 40 41 42 43 44 45 49 52 78 260 263 295 339 354 463
Symbol 32 EditableTextUses:31Used by:46
Symbol 33 EditableTextUses:31Used by:46
Symbol 34 EditableTextUses:31Used by:46
Symbol 35 EditableTextUses:31Used by:46
Symbol 36 EditableTextUses:31Used by:46
Symbol 37 FontUsed by:38 48 57 60 68 70 74 76 224 225 260 261 328 332 358 366 368 372 374 378 384 386 390 397 399 403 404 408 409 438 444
Symbol 38 EditableTextUses:37Used by:46
Symbol 39 EditableTextUses:31Used by:46
Symbol 40 EditableTextUses:31Used by:46
Symbol 41 EditableTextUses:31Used by:46
Symbol 42 EditableTextUses:31Used by:46
Symbol 43 EditableTextUses:31Used by:46
Symbol 44 EditableTextUses:31Used by:46
Symbol 45 EditableTextUses:31Used by:46
Symbol 46 MovieClipUses:32 33 34 35 36 38 39 40 41 42 43 44 45Used by:Timeline
Symbol 47 ButtonUses:27Used by:Timeline
Symbol 48 TextUses:37Used by:Timeline
Symbol 49 TextUses:31Used by:51
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:49 50Used by:Timeline
Symbol 52 TextUses:31Used by:53
Symbol 53 MovieClipUses:52Used by:Timeline
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClipUses:54Used by:Timeline
Symbol 56 GraphicUsed by:62
Symbol 57 TextUses:37Used by:62
Symbol 58 GraphicUsed by:62 72 80 370 376 379 388 393 401 406 410
Symbol 59 GraphicUsed by:62
Symbol 60 TextUses:37Used by:62
Symbol 61 GraphicUsed by:62
Symbol 62 ButtonUses:56 57 58 59 60 61Used by:Timeline
Symbol 63 GraphicUsed by:72
Symbol 64 GraphicUsed by:66
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClipUses:64 65Used by:72
Symbol 67 GraphicUsed by:72
Symbol 68 TextUses:37Used by:72
Symbol 69 GraphicUsed by:72
Symbol 70 TextUses:37Used by:72
Symbol 71 GraphicUsed by:72 379
Symbol 72 ButtonUses:63 66 67 68 58 69 70 71Used by:Timeline
Symbol 73 GraphicUsed by:80 370
Symbol 74 TextUses:37Used by:80
Symbol 75 GraphicUsed by:80
Symbol 76 TextUses:37Used by:80
Symbol 77 GraphicUsed by:80
Symbol 78 TextUses:31Used by:80
Symbol 79 GraphicUsed by:80
Symbol 80 ButtonUses:73 74 58 75 76 77 78 79Used by:Timeline
Symbol 81 GraphicUsed by:84
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:84
Symbol 84 MovieClipUses:81 83Used by:88 91 94 97 100 103 106 109 112 115 119 123 127 129 131 133 135 137 139 141 143 145 147 149 151 153 156 159 162 165 168 171 174 177 180 183 187 191 195 198 200 202 204 206 208 210 212 214 216 218 220 222
Symbol 85 GraphicUsed by:88
Symbol 86 FontUsed by:87 90 93 96 99 102 105 108 111 114 118 122 126 155 158 161 164 167 170 173 176 179 182 186 190 194 262 265 267 270 272 273 274 276 455
Symbol 87 TextUses:86Used by:88 135
Symbol 88 MovieClipUses:84 85 87Used by:Timeline
Symbol 89 GraphicUsed by:91
Symbol 90 TextUses:86Used by:91 137
Symbol 91 MovieClipUses:84 89 90Used by:Timeline
Symbol 92 GraphicUsed by:94
Symbol 93 TextUses:86Used by:94 139
Symbol 94 MovieClipUses:84 92 93Used by:Timeline
Symbol 95 GraphicUsed by:97
Symbol 96 TextUses:86Used by:97 141
Symbol 97 MovieClipUses:84 95 96Used by:Timeline
Symbol 98 GraphicUsed by:100
Symbol 99 TextUses:86Used by:100 143
Symbol 100 MovieClipUses:84 98 99Used by:Timeline
Symbol 101 GraphicUsed by:103
Symbol 102 TextUses:86Used by:103 145
Symbol 103 MovieClipUses:84 101 102Used by:Timeline
Symbol 104 GraphicUsed by:106
Symbol 105 TextUses:86Used by:106 147
Symbol 106 MovieClipUses:84 104 105Used by:Timeline
Symbol 107 GraphicUsed by:109
Symbol 108 TextUses:86Used by:109 149
Symbol 109 MovieClipUses:84 107 108Used by:Timeline
Symbol 110 GraphicUsed by:112
Symbol 111 TextUses:86Used by:112 151
Symbol 112 MovieClipUses:84 110 111Used by:Timeline
Symbol 113 GraphicUsed by:115 416
Symbol 114 TextUses:86Used by:115 153
Symbol 115 MovieClipUses:84 113 114Used by:Timeline
Symbol 116 BitmapUsed by:117 128
Symbol 117 GraphicUses:116Used by:119
Symbol 118 TextUses:86Used by:119 129
Symbol 119 MovieClipUses:84 117 118Used by:Timeline
Symbol 120 BitmapUsed by:121 130
Symbol 121 GraphicUses:120Used by:123
Symbol 122 TextUses:86Used by:123 131
Symbol 123 MovieClipUses:84 121 122Used by:Timeline
Symbol 124 BitmapUsed by:125 132
Symbol 125 GraphicUses:124Used by:127
Symbol 126 TextUses:86Used by:127 133
Symbol 127 MovieClipUses:84 125 126Used by:Timeline
Symbol 128 GraphicUses:116Used by:129
Symbol 129 MovieClipUses:84 128 118Used by:Timeline
Symbol 130 GraphicUses:120Used by:131
Symbol 131 MovieClipUses:84 130 122Used by:Timeline
Symbol 132 GraphicUses:124Used by:133
Symbol 133 MovieClipUses:84 132 126Used by:Timeline
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClipUses:84 134 87Used by:Timeline
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:84 136 90Used by:Timeline
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:84 138 93Used by:Timeline
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:84 140 96Used by:Timeline
Symbol 142 GraphicUsed by:143
Symbol 143 MovieClipUses:84 142 99Used by:Timeline
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClipUses:84 144 102Used by:Timeline
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:84 146 105Used by:Timeline
Symbol 148 GraphicUsed by:149
Symbol 149 MovieClipUses:84 148 108Used by:Timeline
Symbol 150 GraphicUsed by:151
Symbol 151 MovieClipUses:84 150 111Used by:Timeline
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClipUses:84 152 114Used by:Timeline
Symbol 154 GraphicUsed by:156
Symbol 155 TextUses:86Used by:156 198
Symbol 156 MovieClipUses:84 154 155Used by:Timeline
Symbol 157 GraphicUsed by:159
Symbol 158 TextUses:86Used by:159 200
Symbol 159 MovieClipUses:84 157 158Used by:Timeline
Symbol 160 GraphicUsed by:162
Symbol 161 TextUses:86Used by:162 202
Symbol 162 MovieClipUses:84 160 161Used by:Timeline
Symbol 163 GraphicUsed by:165
Symbol 164 TextUses:86Used by:165 204
Symbol 165 MovieClipUses:84 163 164Used by:Timeline
Symbol 166 GraphicUsed by:168
Symbol 167 TextUses:86Used by:168 206
Symbol 168 MovieClipUses:84 166 167Used by:Timeline
Symbol 169 GraphicUsed by:171
Symbol 170 TextUses:86Used by:171 208
Symbol 171 MovieClipUses:84 169 170Used by:Timeline
Symbol 172 GraphicUsed by:174
Symbol 173 TextUses:86Used by:174 210
Symbol 174 MovieClipUses:84 172 173Used by:Timeline
Symbol 175 GraphicUsed by:177
Symbol 176 TextUses:86Used by:177 212
Symbol 177 MovieClipUses:84 175 176Used by:Timeline
Symbol 178 GraphicUsed by:180
Symbol 179 TextUses:86Used by:180 214
Symbol 180 MovieClipUses:84 178 179Used by:Timeline
Symbol 181 GraphicUsed by:183
Symbol 182 TextUses:86Used by:183 216
Symbol 183 MovieClipUses:84 181 182Used by:Timeline
Symbol 184 BitmapUsed by:185 217
Symbol 185 GraphicUses:184Used by:187
Symbol 186 TextUses:86Used by:187 218
Symbol 187 MovieClipUses:84 185 186Used by:Timeline
Symbol 188 BitmapUsed by:189 219
Symbol 189 GraphicUses:188Used by:191
Symbol 190 TextUses:86Used by:191 220
Symbol 191 MovieClipUses:84 189 190Used by:Timeline
Symbol 192 BitmapUsed by:193 221
Symbol 193 GraphicUses:192Used by:195
Symbol 194 TextUses:86Used by:195 222
Symbol 195 MovieClipUses:84 193 194Used by:Timeline
Symbol 196 BitmapUsed by:197 199 201 203 205 207 209 211 213 215 217 219 221
Symbol 197 GraphicUses:196Used by:198
Symbol 198 MovieClipUses:84 197 155Used by:Timeline
Symbol 199 GraphicUses:196Used by:200
Symbol 200 MovieClipUses:84 199 158Used by:Timeline
Symbol 201 GraphicUses:196Used by:202
Symbol 202 MovieClipUses:84 201 161Used by:Timeline
Symbol 203 GraphicUses:196Used by:204
Symbol 204 MovieClipUses:84 203 164Used by:Timeline
Symbol 205 GraphicUses:196Used by:206
Symbol 206 MovieClipUses:84 205 167Used by:Timeline
Symbol 207 GraphicUses:196Used by:208
Symbol 208 MovieClipUses:84 207 170Used by:Timeline
Symbol 209 GraphicUses:196Used by:210
Symbol 210 MovieClipUses:84 209 173Used by:Timeline
Symbol 211 GraphicUses:196Used by:212
Symbol 212 MovieClipUses:84 211 176Used by:Timeline
Symbol 213 GraphicUses:196Used by:214
Symbol 214 MovieClipUses:84 213 179Used by:Timeline
Symbol 215 GraphicUses:196Used by:216
Symbol 216 MovieClipUses:84 215 182Used by:Timeline
Symbol 217 GraphicUses:196 184Used by:218
Symbol 218 MovieClipUses:84 217 186Used by:Timeline
Symbol 219 GraphicUses:196 188Used by:220
Symbol 220 MovieClipUses:84 219 190Used by:Timeline
Symbol 221 GraphicUses:196 192Used by:222
Symbol 222 MovieClipUses:84 221 194Used by:Timeline
Symbol 223 MovieClipUses:27Used by:Timeline
Symbol 224 EditableTextUses:37Used by:226
Symbol 225 EditableTextUses:37Used by:226
Symbol 226 MovieClipUses:224 225Used by:Timeline
Symbol 227 GraphicUsed by:243 248 418 423 429
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClipUses:228Used by:243 418 423 429
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:230Used by:243 418 423 429
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClipUses:232Used by:243 418 423 429
Symbol 234 GraphicUsed by:237
Symbol 235 FontUsed by:236 324 325 329 330 333 334 415 420 426
Symbol 236 EditableTextUses:235Used by:237
Symbol 237 MovieClipUses:234 236Used by:238
Symbol 238 MovieClipUses:237Used by:243
Symbol 239 GraphicUsed by:240
Symbol 240 MovieClipUses:239Used by:243 418 423 429
Symbol 241 GraphicUsed by:242 247
Symbol 242 MovieClipUses:241Used by:243 418 423 429
Symbol 243 MovieClipUses:227 229 231 233 238 240 242Used by:Timeline
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClipUses:244Used by:248
Symbol 246 GraphicUsed by:248
Symbol 247 MovieClipUses:241Used by:248
Symbol 248 MovieClipUses:227 245 246 247Used by:Timeline
Symbol 249 FontUsed by:250 251 253 262 455
Symbol 250 TextUses:249Used by:252
Symbol 251 TextUses:249Used by:252
Symbol 252 MovieClipUses:250 251Used by:Timeline
Symbol 253 TextUses:249Used by:Timeline
Symbol 254 FontUsed by:256 257 258
Symbol 255 FontUsed by:256 257 258 346 347
Symbol 256 TextUses:254 255Used by:Timeline
Symbol 257 TextUses:254 255Used by:Timeline
Symbol 258 TextUses:254 255Used by:Timeline
Symbol 259 GraphicUsed by:264 456
Symbol 260 TextUses:37 31Used by:264 456
Symbol 261 TextUses:37Used by:264 456
Symbol 262 TextUses:249 86Used by:264
Symbol 263 TextUses:31Used by:264
Symbol 264 MovieClipUses:259 260 261 262 263Used by:Timeline
Symbol 265 TextUses:86Used by:Timeline
Symbol 266 GraphicUsed by:268 275 277
Symbol 267 TextUses:86Used by:268
Symbol 268 ButtonUses:266 267Used by:Timeline
Symbol 269 GraphicUsed by:271
Symbol 270 TextUses:86Used by:271
Symbol 271 ButtonUses:269 270Used by:Timeline
Symbol 272 TextUses:86Used by:Timeline
Symbol 273 TextUses:86Used by:Timeline
Symbol 274 TextUses:86Used by:275
Symbol 275 ButtonUses:266 274Used by:Timeline
Symbol 276 TextUses:86Used by:277
Symbol 277 ButtonUses:266 276Used by:Timeline
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278Used by:Timeline
Symbol 280 GraphicUsed by:288
Symbol 281 FontUsed by:282 285 286
Symbol 282 TextUses:281Used by:288
Symbol 283 GraphicUsed by:288
Symbol 284 GraphicUsed by:288
Symbol 285 TextUses:281Used by:288
Symbol 286 TextUses:281Used by:288
Symbol 287 GraphicUsed by:288
Symbol 288 ButtonUses:280 282 283 284 285 286 287Used by:Timeline
Symbol 289 GraphicUsed by:Timeline
Symbol 290 GraphicUsed by:296
Symbol 291 GraphicUsed by:292
Symbol 292 MovieClipUses:291Used by:296
Symbol 293 GraphicUsed by:294 462
Symbol 294 MovieClipUses:293Used by:296
Symbol 295 TextUses:31Used by:296
Symbol 296 MovieClipUses:290 292 294 295Used by:Timeline
Symbol 1 MovieClip [__Packages.mx.video.FLVPlayback]
Symbol 14 MovieClip [__Packages.mx.video.UIManager]
Symbol 10 MovieClip [__Packages.mx.video.VideoPlayer]
Symbol 11 MovieClip [__Packages.mx.video.INCManager]
Symbol 12 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 13 MovieClip [__Packages.mx.video.VideoError]
Symbol 18 MovieClip [__Packages.mx.video.NCManager]
Symbol 16 MovieClip [__Packages.mx.video.SMILManager]
Symbol 15 MovieClip [__Packages.mx.utils.Delegate]
Symbol 17 MovieClip [__Packages.mx.video.FPADManager]
Symbol 19 MovieClip [__Packages.mx.video.CuePointManager]
Symbol 297 SoundUsed by:376 379  Timeline
Symbol 298 MovieClipUses:27Used by:Timeline
Symbol 299 GraphicUsed by:300
Symbol 300 MovieClipUses:299Used by:Timeline
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClipUses:301Used by:Timeline
Symbol 303 GraphicUsed by:304
Symbol 304 MovieClipUses:303Used by:Timeline
Symbol 305 GraphicUsed by:306
Symbol 306 MovieClipUses:305Used by:Timeline
Symbol 307 GraphicUsed by:308
Symbol 308 MovieClipUses:307Used by:Timeline
Symbol 309 GraphicUsed by:310
Symbol 310 MovieClipUses:309Used by:Timeline
Symbol 311 GraphicUsed by:312
Symbol 312 MovieClipUses:311Used by:Timeline
Symbol 313 GraphicUsed by:314
Symbol 314 MovieClipUses:313Used by:Timeline
Symbol 315 GraphicUses:21Used by:Timeline
Symbol 316 GraphicUses:20Used by:317
Symbol 317 MovieClipUses:316 9Used by:Timeline
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:318Used by:Timeline
Symbol 320 GraphicUsed by:321
Symbol 321 MovieClipUses:320Used by:Timeline
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClipUses:322Used by:Timeline
Symbol 324 TextUses:235Used by:Timeline
Symbol 325 TextUses:235Used by:Timeline
Symbol 326 GraphicUsed by:327
Symbol 327 MovieClipUses:326Used by:Timeline
Symbol 328 EditableTextUses:37Used by:Timeline
Symbol 329 TextUses:235Used by:331
Symbol 330 TextUses:235Used by:331
Symbol 331 MovieClipUses:329 330Used by:Timeline
Symbol 332 EditableTextUses:37Used by:Timeline
Symbol 333 TextUses:235Used by:335
Symbol 334 TextUses:235Used by:335
Symbol 335 MovieClipUses:333 334Used by:Timeline
Symbol 336 GraphicUsed by:337
Symbol 337 MovieClipUses:336Used by:Timeline
Symbol 338 GraphicUsed by:Timeline
Symbol 339 TextUses:31Used by:Timeline
Symbol 340 GraphicUsed by:341
Symbol 341 MovieClipUses:340Used by:Timeline
Symbol 342 GraphicUsed by:Timeline
Symbol 343 GraphicUsed by:344
Symbol 344 MovieClipUses:343Used by:Timeline
Symbol 345 GraphicUsed by:Timeline
Symbol 346 EditableTextUses:255Used by:348
Symbol 347 EditableTextUses:255Used by:348
Symbol 348 MovieClipUses:346 347Used by:Timeline
Symbol 349 FontUsed by:350 355 356
Symbol 350 TextUses:349Used by:Timeline
Symbol 351 GraphicUsed by:352
Symbol 352 MovieClipUses:351Used by:Timeline
Symbol 353 GraphicUsed by:Timeline
Symbol 354 EditableTextUses:31Used by:Timeline
Symbol 355 TextUses:349Used by:357
Symbol 356 TextUses:349Used by:357
Symbol 357 MovieClipUses:355 356Used by:Timeline
Symbol 358 TextUses:37Used by:359
Symbol 359 MovieClipUses:358Used by:Timeline
Symbol 360 BitmapUsed by:361 362 364
Symbol 361 GraphicUses:360Used by:365
Symbol 362 GraphicUses:360Used by:365
Symbol 363 GraphicUsed by:365
Symbol 364 GraphicUses:360Used by:365
Symbol 365 ButtonUses:361 362 363 364Used by:Timeline
Symbol 366 TextUses:37Used by:370
Symbol 367 GraphicUsed by:370
Symbol 368 TextUses:37Used by:370
Symbol 369 GraphicUsed by:370
Symbol 370 ButtonUses:73 366 58 367 368 369Used by:Timeline
Symbol 371 GraphicUsed by:376
Symbol 372 TextUses:37Used by:376 379
Symbol 373 GraphicUsed by:376 379
Symbol 374 TextUses:37Used by:376
Symbol 375 GraphicUsed by:376
Symbol 376 ButtonUses:371 372 58 373 374 375 297Used by:Timeline
Symbol 377 GraphicUsed by:379
Symbol 378 TextUses:37Used by:379
Symbol 379 ButtonUses:377 372 58 373 378 71 297Used by:Timeline
Symbol 380 GraphicUsed by:382
Symbol 381 GraphicUsed by:382 395
Symbol 382 MovieClipUses:380 381Used by:388
Symbol 383 GraphicUsed by:388
Symbol 384 TextUses:37Used by:388
Symbol 385 GraphicUsed by:388 406
Symbol 386 TextUses:37Used by:388
Symbol 387 GraphicUsed by:388
Symbol 388 ButtonUses:382 383 384 58 385 386 387Used by:Timeline
Symbol 389 GraphicUsed by:393
Symbol 390 TextUses:37Used by:393
Symbol 391 GraphicUsed by:393
Symbol 392 GraphicUsed by:393
Symbol 393 ButtonUses:389 390 58 391 392Used by:Timeline
Symbol 394 GraphicUsed by:395
Symbol 395 MovieClipUses:394 381Used by:401 406
Symbol 396 GraphicUsed by:401
Symbol 397 TextUses:37Used by:401
Symbol 398 GraphicUsed by:401 410
Symbol 399 TextUses:37Used by:401
Symbol 400 GraphicUsed by:401 410
Symbol 401 ButtonUses:395 396 397 58 398 399 400Used by:Timeline
Symbol 402 GraphicUsed by:406
Symbol 403 TextUses:37Used by:406 413
Symbol 404 TextUses:37Used by:406
Symbol 405 GraphicUsed by:406
Symbol 406 ButtonUses:395 402 403 58 385 404 405Used by:Timeline
Symbol 407 GraphicUsed by:410
Symbol 408 TextUses:37Used by:410 414
Symbol 409 TextUses:37Used by:410
Symbol 410 ButtonUses:407 408 58 398 409 400Used by:Timeline
Symbol 411 GraphicUsed by:413 414
Symbol 412 GraphicUsed by:413 414
Symbol 413 MovieClipUses:411 403 412Used by:Timeline
Symbol 414 MovieClipUses:411 408 412Used by:Timeline
Symbol 415 EditableTextUses:235Used by:416
Symbol 416 MovieClipUses:113 415Used by:417
Symbol 417 MovieClipUses:416Used by:418
Symbol 418 MovieClipUses:242 227 229 231 233 417 240Used by:Timeline
Symbol 419 GraphicUsed by:421
Symbol 420 EditableTextUses:235Used by:421
Symbol 421 MovieClipUses:419 420Used by:422
Symbol 422 MovieClipUses:421Used by:423
Symbol 423 MovieClipUses:227 229 231 233 422 240 242Used by:Timeline
Symbol 424 BitmapUsed by:425
Symbol 425 GraphicUses:424Used by:427
Symbol 426 EditableTextUses:235Used by:427
Symbol 427 MovieClipUses:425 426Used by:428
Symbol 428 MovieClipUses:427Used by:429
Symbol 429 MovieClipUses:227 229 231 233 428 240 242Used by:Timeline
Symbol 430 MovieClipUses:27Used by:Timeline
Symbol 431 GraphicUsed by:432
Symbol 432 MovieClipUses:431Used by:433
Symbol 433 MovieClipUses:432Used by:Timeline
Symbol 434 GraphicUsed by:435
Symbol 435 MovieClipUses:434Used by:436
Symbol 436 MovieClipUses:435Used by:Timeline
Symbol 437 GraphicUsed by:446
Symbol 438 TextUses:37Used by:446
Symbol 439 GraphicUsed by:446
Symbol 440 GraphicUsed by:446
Symbol 441 GraphicUsed by:446
Symbol 442 GraphicUsed by:446
Symbol 443 GraphicUsed by:446
Symbol 444 TextUses:37Used by:446
Symbol 445 GraphicUsed by:446
Symbol 446 ButtonUses:437 438 439 440 441 442 443 444 445Used by:Timeline
Symbol 447 FontUsed by:448 449
Symbol 448 TextUses:447Used by:450
Symbol 449 TextUses:447Used by:450
Symbol 450 MovieClipUses:448 449Used by:Timeline
Symbol 451 FontUsed by:452 453
Symbol 452 TextUses:451Used by:454
Symbol 453 TextUses:451Used by:454
Symbol 454 MovieClipUses:452 453Used by:Timeline
Symbol 455 TextUses:249 86Used by:456
Symbol 456 MovieClipUses:259 260 261 455Used by:Timeline
Symbol 457 GraphicUsed by:458
Symbol 458 MovieClipUses:457Used by:Timeline
Symbol 459 GraphicUsed by:464
Symbol 460 GraphicUsed by:461
Symbol 461 MovieClipUses:460Used by:464
Symbol 462 MovieClipUses:293Used by:464
Symbol 463 EditableTextUses:31Used by:464
Symbol 464 MovieClipUses:459 461 462 463Used by:Timeline
Symbol 465 SoundUsed by:466
Symbol 466 MovieClipUses:465Used by:Timeline
Symbol 467 SoundUsed by:468
Symbol 468 MovieClipUses:467Used by:Timeline
Symbol 469 SoundUsed by:470
Symbol 470 MovieClipUses:469Used by:Timeline
Symbol 471 SoundUsed by:472
Symbol 472 MovieClipUses:471Used by:Timeline
Symbol 473 SoundUsed by:474
Symbol 474 MovieClipUses:473Used by:Timeline
Symbol 475 SoundUsed by:476
Symbol 476 MovieClipUses:475Used by:Timeline
Symbol 477 SoundUsed by:478
Symbol 478 MovieClipUses:477Used by:Timeline

Instance Names

"my_flvPb"Frame 1Symbol 9 MovieClip [FLVPlayback]
"Groove00_mc"Frame 1Symbol 30 MovieClip
"CpointTop_mc"Frame 1Symbol 28 MovieClip
"CpointBtm_mc"Frame 1Symbol 28 MovieClip
"Testdata_mc"Frame 1Symbol 46 MovieClip
"Test_btn"Frame 1Symbol 47 Button
"WaitData_mc"Frame 1Symbol 51 MovieClip
"DotsReceive_mc"Frame 1Symbol 53 MovieClip
"DotsShade_mc"Frame 1Symbol 55 MovieClip
"help_btn"Frame 1Symbol 62 Button
"play_btn"Frame 1Symbol 72 Button
"WVideo_btn"Frame 1Symbol 80 Button
"bubna6_mc"Frame 1Symbol 88 MovieClip
"bubna7_mc"Frame 1Symbol 91 MovieClip
"bubna8_mc"Frame 1Symbol 94 MovieClip
"bubna9_mc"Frame 1Symbol 97 MovieClip
"bubna10_mc"Frame 1Symbol 100 MovieClip
"bubna5_mc"Frame 1Symbol 103 MovieClip
"bubna4_mc"Frame 1Symbol 106 MovieClip
"bubna3_mc"Frame 1Symbol 109 MovieClip
"bubna2_mc"Frame 1Symbol 112 MovieClip
"bubnaA_mc"Frame 1Symbol 115 MovieClip
"bubnaJ_mc"Frame 1Symbol 119 MovieClip
"bubnaQ_mc"Frame 1Symbol 123 MovieClip
"bubnaK_mc"Frame 1Symbol 127 MovieClip
"ChervaJ_mc"Frame 1Symbol 129 MovieClip
"ChervaQ_mc"Frame 1Symbol 131 MovieClip
"ChervaK_mc"Frame 1Symbol 133 MovieClip
"Cherva6_mc"Frame 1Symbol 135 MovieClip
"Cherva7_mc"Frame 1Symbol 137 MovieClip
"Cherva8_mc"Frame 1Symbol 139 MovieClip
"Cherva9_mc"Frame 1Symbol 141 MovieClip
"Cherva10_mc"Frame 1Symbol 143 MovieClip
"Cherva5_mc"Frame 1Symbol 145 MovieClip
"Cherva4_mc"Frame 1Symbol 147 MovieClip
"Cherva3_mc"Frame 1Symbol 149 MovieClip
"Cherva2_mc"Frame 1Symbol 151 MovieClip
"ChervaA_mc"Frame 1Symbol 153 MovieClip
"Pika6_mc"Frame 1Symbol 156 MovieClip
"Pika7_mc"Frame 1Symbol 159 MovieClip
"Pika8_mc"Frame 1Symbol 162 MovieClip
"Pika9_mc"Frame 1Symbol 165 MovieClip
"Pika10_mc"Frame 1Symbol 168 MovieClip
"Pika5_mc"Frame 1Symbol 171 MovieClip
"Pika4_mc"Frame 1Symbol 174 MovieClip
"Pika3_mc"Frame 1Symbol 177 MovieClip
"Pika2_mc"Frame 1Symbol 180 MovieClip
"PikaA_mc"Frame 1Symbol 183 MovieClip
"PikaJ_mc"Frame 1Symbol 187 MovieClip
"PikaQ_mc"Frame 1Symbol 191 MovieClip
"PikaK_mc"Frame 1Symbol 195 MovieClip
"Trefa6_mc"Frame 1Symbol 198 MovieClip
"Trefa7_mc"Frame 1Symbol 200 MovieClip
"Trefa8_mc"Frame 1Symbol 202 MovieClip
"Trefa9_mc"Frame 1Symbol 204 MovieClip
"Trefa10_mc"Frame 1Symbol 206 MovieClip
"Trefa5_mc"Frame 1Symbol 208 MovieClip
"Trefa4_mc"Frame 1Symbol 210 MovieClip
"Trefa3_mc"Frame 1Symbol 212 MovieClip
"Trefa2_mc"Frame 1Symbol 214 MovieClip
"TrefaA_mc"Frame 1Symbol 216 MovieClip
"TrefaJ_mc"Frame 1Symbol 218 MovieClip
"TrefaQ_mc"Frame 1Symbol 220 MovieClip
"TrefaK_mc"Frame 1Symbol 222 MovieClip
"CardPoint_mc"Frame 1Symbol 223 MovieClip
"CardDisplay_mc"Frame 1Symbol 226 MovieClip
"CardPointMy_mc"Frame 1Symbol 223 MovieClip
"myCrdPoint1_mc"Frame 1Symbol 223 MovieClip
"OppCrdPoint1_mc"Frame 1Symbol 223 MovieClip
"BallRed1_mc"Frame 1Symbol 243 MovieClip
"BallWhite_mc"Frame 1Symbol 248 MovieClip
"BallRed2_mc"Frame 1Symbol 243 MovieClip
"BallRed3_mc"Frame 1Symbol 243 MovieClip
"BallRed4_mc"Frame 1Symbol 243 MovieClip
"BallRed5_mc"Frame 1Symbol 243 MovieClip
"Story_mc"Frame 1Symbol 252 MovieClip
"Rules_mc"Frame 1Symbol 264 MovieClip
"PokerPool2_btn"Frame 1Symbol 268 Button
"PokerPool_btn"Frame 1Symbol 271 Button
"PokerPool3_btn"Frame 1Symbol 275 Button
"PokerPool4_btn"Frame 1Symbol 277 Button
"Dark_mc"Frame 1Symbol 279 MovieClip
"SPP_btn"Frame 1Symbol 288 Button
"PogrBar_mc"Frame 1Symbol 296 MovieClip
"BallsLogic_mc"Frame 2Symbol 28 MovieClip
"timer_mc"Frame 2Symbol 28 MovieClip
"Koloda_mc"Frame 2Symbol 28 MovieClip
"PlaySeqnc_mc"Frame 2Symbol 28 MovieClip
"FLVlog_mc"Frame 2Symbol 28 MovieClip
"CheckDir1_mc"Frame 2Symbol 298 MovieClip
"Sector_mc"Frame 2Symbol 300 MovieClip
"CheckDir2_mc"Frame 2Symbol 302 MovieClip
"touch_mc"Frame 2Symbol 304 MovieClip
"bemp1_mc"Frame 2Symbol 306 MovieClip
"bemp2_mc"Frame 2Symbol 308 MovieClip
"dirAn_mc"Frame 2Symbol 310 MovieClip
"MacMac_mc"Frame 2Symbol 304 MovieClip
"kasat_mc"Frame 2Symbol 312 MovieClip
"AngUp_mc"Frame 2Symbol 314 MovieClip
"TV_mc"Frame 2Symbol 317 MovieClip
"UnderCombMy_mc"Frame 2Symbol 321 MovieClip
"UnderCombOp_mc"Frame 2Symbol 323 MovieClip
"CombShineMy_mc"Frame 2Symbol 327 MovieClip
"MyBanComb_txt"Frame 2Symbol 328 EditableText
"YouPlayBan_mc"Frame 2Symbol 331 MovieClip
"CombShineOpp_mc"Frame 2Symbol 327 MovieClip
"Opp_BanComb_txt"Frame 2Symbol 332 EditableText
"CompPlayBan_mc"Frame 2Symbol 335 MovieClip
"PowerMask_mc"Frame 2Symbol 337 MovieClip
"KiyPower_mc"Frame 2Symbol 341 MovieClip
"borderUp_mc"Frame 2Symbol 344 MovieClip
"borderDw_mc"Frame 2Symbol 344 MovieClip
"borderRt_mc"Frame 2Symbol 344 MovieClip
"borderLf_mc"Frame 2Symbol 344 MovieClip
"BallRed1_mc"Frame 2Symbol 243 MovieClip
"BallWhite_mc"Frame 2Symbol 248 MovieClip
"BallRed2_mc"Frame 2Symbol 243 MovieClip
"BallRed3_mc"Frame 2Symbol 243 MovieClip
"BallRed4_mc"Frame 2Symbol 243 MovieClip
"BallRed5_mc"Frame 2Symbol 243 MovieClip
"levelUp3_mc"Frame 2Symbol 348 MovieClip
"levMask3_mc"Frame 2Symbol 352 MovieClip
"Step_txt"Frame 2Symbol 354 EditableText
"LevelDown_mc"Frame 2Symbol 357 MovieClip
"Conrgats_mc"Frame 2Symbol 359 MovieClip
"Twistys_btn"Frame 2Symbol 365 Button
"END_btn"Frame 2Symbol 370 Button
"Help_btn"Frame 2Symbol 62 Button
"SoundOff_btn"Frame 2Symbol 376 Button
"SoundOn_btn"Frame 2Symbol 379 Button
"MorePlay_btn"Frame 2Symbol 388 Button
"MoreGames_btn"Frame 2Symbol 393 Button
"Next_btn"Frame 2Symbol 401 Button
"DiscardMy_btn"Frame 2Symbol 406 Button
"SaveMy_btn"Frame 2Symbol 410 Button
"DiscardOpp_mc"Frame 2Symbol 413 MovieClip
"SaveOpp_mc"Frame 2Symbol 414 MovieClip
"bubna6_mc"Frame 2Symbol 88 MovieClip
"bubna7_mc"Frame 2Symbol 91 MovieClip
"bubna8_mc"Frame 2Symbol 94 MovieClip
"bubna9_mc"Frame 2Symbol 97 MovieClip
"bubna10_mc"Frame 2Symbol 100 MovieClip
"bubna5_mc"Frame 2Symbol 103 MovieClip
"bubna4_mc"Frame 2Symbol 106 MovieClip
"bubna3_mc"Frame 2Symbol 109 MovieClip
"bubna2_mc"Frame 2Symbol 112 MovieClip
"bubnaA_mc"Frame 2Symbol 115 MovieClip
"bubnaJ_mc"Frame 2Symbol 119 MovieClip
"bubnaQ_mc"Frame 2Symbol 123 MovieClip
"bubnaK_mc"Frame 2Symbol 127 MovieClip
"ChervaJ_mc"Frame 2Symbol 129 MovieClip
"ChervaQ_mc"Frame 2Symbol 131 MovieClip
"ChervaK_mc"Frame 2Symbol 133 MovieClip
"Cherva6_mc"Frame 2Symbol 135 MovieClip
"Cherva7_mc"Frame 2Symbol 137 MovieClip
"Cherva8_mc"Frame 2Symbol 139 MovieClip
"Cherva9_mc"Frame 2Symbol 141 MovieClip
"Cherva10_mc"Frame 2Symbol 143 MovieClip
"Cherva5_mc"Frame 2Symbol 145 MovieClip
"Cherva4_mc"Frame 2Symbol 147 MovieClip
"Cherva3_mc"Frame 2Symbol 149 MovieClip
"Cherva2_mc"Frame 2Symbol 151 MovieClip
"ChervaA_mc"Frame 2Symbol 153 MovieClip
"Pika6_mc"Frame 2Symbol 156 MovieClip
"Pika7_mc"Frame 2Symbol 159 MovieClip
"Pika8_mc"Frame 2Symbol 162 MovieClip
"Pika9_mc"Frame 2Symbol 165 MovieClip
"Pika10_mc"Frame 2Symbol 168 MovieClip
"Pika5_mc"Frame 2Symbol 171 MovieClip
"Pika4_mc"Frame 2Symbol 174 MovieClip
"Pika3_mc"Frame 2Symbol 177 MovieClip
"Pika2_mc"Frame 2Symbol 180 MovieClip
"PikaA_mc"Frame 2Symbol 183 MovieClip
"PikaJ_mc"Frame 2Symbol 187 MovieClip
"PikaQ_mc"Frame 2Symbol 191 MovieClip
"PikaK_mc"Frame 2Symbol 195 MovieClip
"Trefa6_mc"Frame 2Symbol 198 MovieClip
"Trefa7_mc"Frame 2Symbol 200 MovieClip
"Trefa8_mc"Frame 2Symbol 202 MovieClip
"Trefa9_mc"Frame 2Symbol 204 MovieClip
"Trefa10_mc"Frame 2Symbol 206 MovieClip
"Trefa5_mc"Frame 2Symbol 208 MovieClip
"Trefa4_mc"Frame 2Symbol 210 MovieClip
"Trefa3_mc"Frame 2Symbol 212 MovieClip
"Trefa2_mc"Frame 2Symbol 214 MovieClip
"TrefaA_mc"Frame 2Symbol 216 MovieClip
"TrefaJ_mc"Frame 2Symbol 218 MovieClip
"TrefaQ_mc"Frame 2Symbol 220 MovieClip
"TrefaK_mc"Frame 2Symbol 222 MovieClip
"CardPoint_mc"Frame 2Symbol 223 MovieClip
"CardDisplay_mc"Frame 2Symbol 226 MovieClip
"CardPointMy_mc"Frame 2Symbol 223 MovieClip
"myCrdPoint1_mc"Frame 2Symbol 223 MovieClip
"OppCrdPoint1_mc"Frame 2Symbol 223 MovieClip
"Groove00_mc"Frame 2Symbol 30 MovieClip
"CpointTop_mc"Frame 2Symbol 28 MovieClip
"CpointBtm_mc"Frame 2Symbol 28 MovieClip
"BallBubna1_mc"Frame 2Symbol 418 MovieClip
"BallCherva1_mc"Frame 2Symbol 243 MovieClip
"BallPika1_mc"Frame 2Symbol 423 MovieClip
"BallTrefa1_mc"Frame 2Symbol 429 MovieClip
"BallBubna2_mc"Frame 2Symbol 418 MovieClip
"BallCherva2_mc"Frame 2Symbol 243 MovieClip
"BallPika2_mc"Frame 2Symbol 423 MovieClip
"BallTrefa2_mc"Frame 2Symbol 429 MovieClip
"BallBubna3_mc"Frame 2Symbol 418 MovieClip
"BallCherva3_mc"Frame 2Symbol 243 MovieClip
"BallPika3_mc"Frame 2Symbol 423 MovieClip
"BallTrefa3_mc"Frame 2Symbol 429 MovieClip
"BallBubna4_mc"Frame 2Symbol 418 MovieClip
"BallCherva4_mc"Frame 2Symbol 243 MovieClip
"BallPika4_mc"Frame 2Symbol 423 MovieClip
"BallTrefa4_mc"Frame 2Symbol 429 MovieClip
"BallBubna5_mc"Frame 2Symbol 418 MovieClip
"BallCherva5_mc"Frame 2Symbol 243 MovieClip
"BallPika5_mc"Frame 2Symbol 423 MovieClip
"BallTrefa5_mc"Frame 2Symbol 429 MovieClip
"Testdata_mc"Frame 2Symbol 46 MovieClip
"Test_btn"Frame 2Symbol 47 Button
"field_mc"Frame 2Symbol 430 MovieClip
"Kiy0_mc"Frame 2Symbol 433 MovieClip
"Kiy02_mc"Frame 2Symbol 436 MovieClip
"MoreHer_btn"Frame 2Symbol 446 Button
"YouWinGame_mc"Frame 2Symbol 450 MovieClip
"YouLose2_mc"Frame 2Symbol 454 MovieClip
"help_mc"Frame 2Symbol 456 MovieClip
"aim_mc"Frame 2Symbol 458 MovieClip
"PercntBar_mc"Frame 2Symbol 464 MovieClip
"BallSound_mc"Frame 2Symbol 466 MovieClip
"CueSound_mc"Frame 2Symbol 468 MovieClip
"LuzaSound_mc"Frame 2Symbol 470 MovieClip
"VictorySound_mc"Frame 2Symbol 472 MovieClip
"SoundOops_mc"Frame 2Symbol 474 MovieClip
"soundOK_mc"Frame 2Symbol 476 MovieClip
"BustSnd_mc"Frame 2Symbol 478 MovieClip
"_video"Symbol 5 MovieClip [VideoPlayer] Frame 1Symbol 4 Video
"boundingBox_mc"Symbol 9 MovieClip [FLVPlayback] Frame 1Symbol 3 MovieClip
"pD_mc"Symbol 30 MovieClip Frame 1Symbol 28 MovieClip
"pU_mc"Symbol 30 MovieClip Frame 1Symbol 28 MovieClip
"FLVtime_txt"Symbol 46 MovieClip Frame 1Symbol 32 EditableText
"cues_txt"Symbol 46 MovieClip Frame 1Symbol 33 EditableText
"E_txt"Symbol 46 MovieClip Frame 1Symbol 34 EditableText
"S_txt"Symbol 46 MovieClip Frame 1Symbol 35 EditableText
"cuesPts_txt"Symbol 46 MovieClip Frame 1Symbol 36 EditableText
"gameStep_txt"Symbol 46 MovieClip Frame 1Symbol 38 EditableText
"WsGl_txt"Symbol 46 MovieClip Frame 1Symbol 39 EditableText
"Touch_txt"Symbol 46 MovieClip Frame 1Symbol 40 EditableText
"ID_txt"Symbol 46 MovieClip Frame 1Symbol 41 EditableText
"ChY_txt"Symbol 46 MovieClip Frame 1Symbol 42 EditableText
"NextRnd_txt"Symbol 46 MovieClip Frame 1Symbol 43 EditableText
"diagB_txt"Symbol 46 MovieClip Frame 1Symbol 44 EditableText
"Strt_txt"Symbol 46 MovieClip Frame 1Symbol 45 EditableText
"Fon_mc"Symbol 84 MovieClip Frame 1Symbol 83 MovieClip
"Body_mc"Symbol 88 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 91 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 94 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 97 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 100 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 103 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 106 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 109 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 112 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 115 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 119 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 123 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 127 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 129 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 131 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 133 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 135 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 137 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 139 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 141 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 143 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 145 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 147 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 149 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 151 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 153 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 156 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 159 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 162 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 165 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 168 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 171 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 174 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 177 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 180 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 183 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 187 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 191 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 195 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 198 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 200 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 202 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 204 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 206 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 208 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 210 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 212 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 214 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 216 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 218 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 220 MovieClip Frame 1Symbol 84 MovieClip
"Body_mc"Symbol 222 MovieClip Frame 1Symbol 84 MovieClip
"Mast_txt"Symbol 226 MovieClip Frame 1Symbol 224 EditableText
"Value_txt"Symbol 226 MovieClip Frame 1Symbol 225 EditableText
"Val_txt"Symbol 237 MovieClip Frame 1Symbol 236 EditableText
"numMov_mc"Symbol 238 MovieClip Frame 1Symbol 237 MovieClip
"body_mc"Symbol 243 MovieClip Frame 1Symbol 229 MovieClip
"yellow_mc"Symbol 243 MovieClip Frame 1Symbol 231 MovieClip
"numMask_mc"Symbol 243 MovieClip Frame 1Symbol 233 MovieClip
"numRoll_mc"Symbol 243 MovieClip Frame 1Symbol 238 MovieClip
"area_mc"Symbol 243 MovieClip Frame 1Symbol 242 MovieClip
"body_mc"Symbol 248 MovieClip Frame 1Symbol 245 MovieClip
"area_mc"Symbol 248 MovieClip Frame 1Symbol 247 MovieClip
"FLVbar_mc"Symbol 296 MovieClip Frame 1Symbol 292 MovieClip
"barMask_mc"Symbol 296 MovieClip Frame 1Symbol 294 MovieClip
"my_flvPb"Symbol 317 MovieClip Frame 1Symbol 9 MovieClip [FLVPlayback]
"level_txt"Symbol 348 MovieClip Frame 1Symbol 346 EditableText
"levelN_txt"Symbol 348 MovieClip Frame 1Symbol 347 EditableText
"Val_txt"Symbol 416 MovieClip Frame 1Symbol 415 EditableText
"numMov_mc"Symbol 417 MovieClip Frame 1Symbol 416 MovieClip
"area_mc"Symbol 418 MovieClip Frame 1Symbol 242 MovieClip
"body_mc"Symbol 418 MovieClip Frame 1Symbol 229 MovieClip
"yellow_mc"Symbol 418 MovieClip Frame 1Symbol 231 MovieClip
"numMask_mc"Symbol 418 MovieClip Frame 1Symbol 233 MovieClip
"numRoll_mc"Symbol 418 MovieClip Frame 1Symbol 417 MovieClip
"Val_txt"Symbol 421 MovieClip Frame 1Symbol 420 EditableText
"numMov_mc"Symbol 422 MovieClip Frame 1Symbol 421 MovieClip
"body_mc"Symbol 423 MovieClip Frame 1Symbol 229 MovieClip
"yellow_mc"Symbol 423 MovieClip Frame 1Symbol 231 MovieClip
"numMask_mc"Symbol 423 MovieClip Frame 1Symbol 233 MovieClip
"numRoll_mc"Symbol 423 MovieClip Frame 1Symbol 422 MovieClip
"area_mc"Symbol 423 MovieClip Frame 1Symbol 242 MovieClip
"Val_txt"Symbol 427 MovieClip Frame 1Symbol 426 EditableText
"numMov_mc"Symbol 428 MovieClip Frame 1Symbol 427 MovieClip
"body_mc"Symbol 429 MovieClip Frame 1Symbol 229 MovieClip
"yellow_mc"Symbol 429 MovieClip Frame 1Symbol 231 MovieClip
"numMask_mc"Symbol 429 MovieClip Frame 1Symbol 233 MovieClip
"numRoll_mc"Symbol 429 MovieClip Frame 1Symbol 428 MovieClip
"area_mc"Symbol 429 MovieClip Frame 1Symbol 242 MovieClip
"KiyMove_mc"Symbol 433 MovieClip Frame 1Symbol 432 MovieClip
"KiyMove_mc"Symbol 436 MovieClip Frame 1Symbol 435 MovieClip
"FLVbar_mc"Symbol 464 MovieClip Frame 1Symbol 461 MovieClip
"barMask_mc"Symbol 464 MovieClip Frame 1Symbol 462 MovieClip
"prcnt_txt"Symbol 464 MovieClip Frame 1Symbol 463 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 5 as "VideoPlayer"
ExportAssets (56)Timeline Frame 1Symbol 8 as "Icon"
ExportAssets (56)Timeline Frame 1Symbol 9 as "FLVPlayback"
ExportAssets (56)Timeline Frame 1Symbol 1 as "__Packages.mx.video.FLVPlayback"
ExportAssets (56)Timeline Frame 1Symbol 14 as "__Packages.mx.video.UIManager"
ExportAssets (56)Timeline Frame 1Symbol 10 as "__Packages.mx.video.VideoPlayer"
ExportAssets (56)Timeline Frame 1Symbol 11 as "__Packages.mx.video.INCManager"
ExportAssets (56)Timeline Frame 1Symbol 12 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 13 as "__Packages.mx.video.VideoError"
ExportAssets (56)Timeline Frame 1Symbol 18 as "__Packages.mx.video.NCManager"
ExportAssets (56)Timeline Frame 1Symbol 16 as "__Packages.mx.video.SMILManager"
ExportAssets (56)Timeline Frame 1Symbol 15 as "__Packages.mx.utils.Delegate"
ExportAssets (56)Timeline Frame 1Symbol 17 as "__Packages.mx.video.FPADManager"
ExportAssets (56)Timeline Frame 1Symbol 19 as "__Packages.mx.video.CuePointManager"

Labels

"introinit"Frame 1
"mainstart"Frame 2
"stopSound"Symbol 466 MovieClip Frame 8
"lusastop"Symbol 470 MovieClip Frame 18




http://swfchan.com/44/216042/info.shtml
Created: 30/7 -2019 04:37:49 Last modified: 30/7 -2019 04:37:49 Server time: 28/04 -2024 00:55:14