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

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

tictactoe1.swf

This is the info page for
Flash #43261

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


Text
loading...

computer   vs.   player

2    players

tic-tac-toe

<P ALIGN="CENTER"><FONT FACE="Verdana" SIZE="11" COLOR="#FFFFFF">www.neave.com/games</FONT></P>

player

ties

computer

player  2  (x)

player  1  (o)

ActionScript [AS1/AS2]

Frame 1
stop(); Stage.showMenu = false; this.onEnterFrame = function () { sofar = this.getBytesLoaded(); total = this.getBytesTotal(); if (sofar == total) { delete this.onEnterFrame; nextFrame(); } };
Frame 2
stop(); blinkClip = function () { this.i = this.i + 0.125; this.i = this.i % 1; this._visible = Math.round(this.i); }; compPlay_btn.onRollOver = function () { dot1_mc.i = 0; dot1_mc.onEnterFrame = blinkClip; }; compPlay_btn.onRollOut = (compPlay_btn.onDragOut = function () { dot1_mc._visible = true; delete dot1_mc.onEnterFrame; }); compPlay_btn.onRelease = function () { twoPlayer = false; play(); }; twoPlay_btn.onRollOver = function () { dot2_mc.i = 0; dot2_mc.onEnterFrame = blinkClip; }; twoPlay_btn.onRollOut = (twoPlay_btn.onDragOut = function () { dot2_mc._visible = true; delete dot2_mc.onEnterFrame; }); twoPlay_btn.onRelease = function () { twoPlayer = true; play(); }; neave_btn.onRollOver = function () { neave_mc.i = 0; neave_mc.onEnterFrame = blinkClip; }; neave_btn.onRollOut = (neave_btn.onDragOut = function () { neave_mc._visible = true; delete neave_mc.onEnterFrame; }); neave_btn.onRelease = function () { getURL ("http://www.neave.com/games/", "_blank"); };
Frame 3
wins = (losses = (ties = 0)); swapTurn = twoPlayer; title_btn.onRollOver = function () { title_mc.i = 0; title_mc.onEnterFrame = blinkClip; }; title_btn.onRollOut = (title_btn.onDragOut = function () { title_mc._visible = true; delete title_mc.onEnterFrame; }); title_btn.onRelease = function () { gotoAndStop (1); }; checkSquare = function () { if ((square == 0) && (a == 0)) { ok = true; a = turn + 1; } if ((square == 1) && (b == 0)) { ok = true; b = turn + 1; } if ((square == 2) && (c == 0)) { ok = true; c = turn + 1; } if ((square == 3) && (d == 0)) { ok = true; d = turn + 1; } if ((square == 4) && (e == 0)) { ok = true; e = turn + 1; } if ((square == 5) && (f == 0)) { ok = true; f = turn + 1; } if ((square == 6) && (g == 0)) { ok = true; g = turn + 1; } if ((square == 7) && (h == 0)) { ok = true; h = turn + 1; } if ((square == 8) && (i == 0)) { ok = true; i = turn + 1; } }; findRow = function (x) { if (a == x) { if ((b == x) && (c == x)) { row = x; strike = 1; } if ((d == x) && (g == x)) { row = x; strike = 4; } if ((e == x) && (i == x)) { row = x; strike = 7; } } if (((b == x) && (e == x)) && (h == x)) { row = x; strike = 5; } if (c == x) { if ((f == x) && (i == x)) { row = x; strike = 6; } if ((e == x) && (g == x)) { row = x; strike = 8; } } if (((d == x) && (e == x)) && (f == x)) { row = x; strike = 2; } if (((g == x) && (h == x)) && (i == x)) { row = x; strike = 3; } }; checkGame = function () { findRow(1); findRow(2); if ((((((((((row == 0) && (a)) && (b)) && (c)) && (d)) && (e)) && (f)) && (g)) && (h)) && (i)) { row = 3; ties++; } if (row == 1) { if (twoPlayer) { losses++; } else { wins++; } } if (row == 2) { if (twoPlayer) { wins++; } else { losses++; } } if (row) { gotoAndPlay (7); } }; playerChoice = function (n) { if (row == 0) { if (twoPlayer) { square = n; ok = false; checkSquare(); if (turn == 0) { turn = 1; if (ok) { _root[("choice" + square) + "_mc"].gotoAndPlay("nought"); } } else { turn = 0; if (ok) { _root[("choice" + square) + "_mc"].gotoAndPlay("cross"); } } checkGame(); } else { square = n; turn = 0; ok = false; checkSquare(); if (ok) { _root[("choice" + square) + "_mc"].gotoAndPlay("cross"); } checkGame(); if (ok && (row == 0)) { compChoice(); } } } }; findGap = function (x) { if ((!a) && (((((b == x) && (c == x)) || ((d == x) && (g == x))) || (e == x)) || (i == x))) { square = 0; } if ((!b) && (((a == x) && (c == x)) || ((e == x) && (h == x)))) { square = 1; } if ((!c) && ((((a == x) && (b == x)) || ((f == x) && (i == x))) || ((e == x) && (g == x)))) { square = 2; } if ((!d) && (((a == x) && (g == x)) || ((e == x) && (f == x)))) { square = 3; } if ((!e) && (((((a == x) && (i == x)) || ((b == x) && (h == x))) || ((c == x) && (g == x))) || ((d == x) && (f == x)))) { square = 4; } if ((!f) && (((e == x) && (d == x)) || ((c == x) && (i == x)))) { square = 5; } if ((!g) && ((((a == x) && (d == x)) || ((c == x) && (e == x))) || ((h == x) && (i == x)))) { square = 6; } if ((!h) && (((b == x) && (e == x)) || ((g == x) && (i == x)))) { square = 7; } if ((!i) && ((((a == x) && (e == x)) || ((c == x) && (f == x))) || ((g == x) && (h == x)))) { square = 8; } }; compChoice = function () { ok = false; turn = 1; findGap(2); findGap(1); checkSquare(); while (!ok) { square = int(Math.random() * 9); checkSquare(); } _root[("choice" + square) + "_mc"].gotoAndPlay("nought"); checkGame(); };
Frame 5
swapTurn = !swapTurn; a = (b = (c = (d = (e = (f = (g = (h = (i = (x = (row = (strike = (turn = 0)))))))))))); ok = false;
Frame 6
stop(); if (swapTurn) { if (twoPlayer) { if (turn == 0) { turn = 1; } else { turn = 0; } } else { compChoice(); } }
Instance of Symbol 35 MovieClip "Grid" in Frame 15
onClipEvent (load) { _visible = _root.strike; }
Frame 16
if (strike) { sound_mc.gotoAndPlay("end"); } else { sound_mc.gotoAndPlay("tie"); }
Instance of Symbol 35 MovieClip "Grid" in Frame 21
onClipEvent (load) { _visible = _root.strike; }
Frame 24
stop(); gameOver_btn.onPress = function () { gotoAndPlay (4); };
Symbol 21 MovieClip Frame 1
if (_root.twoPlayer) { gotoAndStop (2); } else { stop(); }
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 3
stop();
Symbol 24 MovieClip Frame 5
stop();
Symbol 34 MovieClip Frame 1
stop(); num = Number(substring(_name, 7, 1)); if (_root.twoPlayer) { this.onRollOver = function () { if (_root.row == 0) { if (_root.turn == 0) { nought_mc._visible = true; cross_mc._visible = false; } else { nought_mc._visible = false; cross_mc._visible = true; } } }; this.onRollOut = (this.onDragOut = function () { nought_mc._visible = (cross_mc._visible = false); }); } this.onPress = function () { _root.playerChoice(num); };
Instance of Symbol 25 MovieClip "cross_mc" in Symbol 34 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Instance of Symbol 27 MovieClip "nought_mc" in Symbol 34 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 34 MovieClip Frame 2
delete this.onPress; if (_root.twoPlayer) { gotoAndPlay (9); }
Symbol 34 MovieClip Frame 14
stop();
Symbol 34 MovieClip Frame 15
delete this.onPress;
Symbol 34 MovieClip Frame 19
stop();
Symbol 36 MovieClip Frame 1
gotoAndStop(_root.strike + 2);

Library Items

Symbol 1 FontUsed by:2 5 6 8 12 13 14 16 17 18 19 20
Symbol 2 TextUses:1Used by:Timeline
Symbol 3 GraphicUsed by:4 7 25 34 35 36  Timeline
Symbol 4 ButtonUses:3Used by:Timeline
Symbol 5 TextUses:1Used by:Timeline
Symbol 6 TextUses:1Used by:Timeline
Symbol 7 MovieClipUses:3Used by:Timeline
Symbol 8 TextUses:1Used by:15  Timeline
Symbol 9 FontUsed by:10
Symbol 10 EditableTextUses:9Used by:11
Symbol 11 MovieClipUses:10Used by:Timeline
Symbol 12 EditableTextUses:1Used by:Timeline
Symbol 13 EditableTextUses:1Used by:Timeline
Symbol 14 EditableTextUses:1Used by:Timeline
Symbol 15 MovieClipUses:8Used by:Timeline
Symbol 16 TextUses:1Used by:21
Symbol 17 TextUses:1Used by:21
Symbol 18 TextUses:1Used by:21
Symbol 19 TextUses:1Used by:21
Symbol 20 TextUses:1Used by:21
Symbol 21 MovieClipUses:16 17 18 19 20Used by:Timeline
Symbol 22 SoundUsed by:24
Symbol 23 SoundUsed by:24
Symbol 24 MovieClipUses:22 23Used by:Timeline
Symbol 25 MovieClipUses:3Used by:34
Symbol 26 GraphicUsed by:27 34
Symbol 27 MovieClipUses:26Used by:34
Symbol 28 SoundUsed by:34
Symbol 29 GraphicUsed by:34
Symbol 30 GraphicUsed by:34
Symbol 31 GraphicUsed by:34
Symbol 32 GraphicUsed by:34
Symbol 33 SoundUsed by:34
Symbol 34 MovieClipUses:3 25 27 28 29 30 31 32 26 33Used by:Timeline
Symbol 35 MovieClipUses:3Used by:Timeline
Symbol 36 MovieClipUses:3Used by:Timeline

Instance Names

"compPlay_btn"Frame 2Symbol 4 Button
"twoPlay_btn"Frame 2Symbol 4 Button
"neave_btn"Frame 2Symbol 4 Button
"dot1_mc"Frame 2Symbol 7 MovieClip
"dot2_mc"Frame 2Symbol 7 MovieClip
"neave_mc"Frame 2Symbol 11 MovieClip
"title_btn"Frame 3Symbol 4 Button
"title_mc"Frame 3Symbol 15 MovieClip
"Base"Frame 3Symbol 21 MovieClip
"sound_mc"Frame 3Symbol 24 MovieClip
"choice0_mc"Frame 5Symbol 34 MovieClip
"choice1_mc"Frame 5Symbol 34 MovieClip
"choice2_mc"Frame 5Symbol 34 MovieClip
"choice3_mc"Frame 5Symbol 34 MovieClip
"choice4_mc"Frame 5Symbol 34 MovieClip
"choice5_mc"Frame 5Symbol 34 MovieClip
"choice6_mc"Frame 5Symbol 34 MovieClip
"choice7_mc"Frame 5Symbol 34 MovieClip
"choice8_mc"Frame 5Symbol 34 MovieClip
"Grid"Frame 15Symbol 35 MovieClip
"strike_mc"Frame 16Symbol 36 MovieClip
"strike_mc"Frame 20Symbol 36 MovieClip
"Grid"Frame 21Symbol 35 MovieClip
"gameOver_btn"Frame 24Symbol 4 Button
"strike_mc"Frame 24Symbol 36 MovieClip
"cross_mc"Symbol 34 MovieClip Frame 1Symbol 25 MovieClip
"nought_mc"Symbol 34 MovieClip Frame 1Symbol 27 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Labels

"new"Frame 4
"end"Frame 7
"end"Symbol 24 MovieClip Frame 2
"tie"Symbol 24 MovieClip Frame 4
"nought"Symbol 34 MovieClip Frame 2
"now"Symbol 34 MovieClip Frame 9
"cross"Symbol 34 MovieClip Frame 15

Dynamic Text Variables

lossesSymbol 12 EditableText""
tiesSymbol 13 EditableText""
winsSymbol 14 EditableText""




http://swfchan.com/9/43261/info.shtml
Created: 9/5 -2019 14:21:56 Last modified: 9/5 -2019 14:21:56 Server time: 04/05 -2024 22:04:22