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

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

Air Hockey.swf

This is the info page for
Flash #11786

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


Text
welcome   to

start

computer

human

hit the puck
again?

NO

YES

ActionScript [AS1/AS2]

Frame 67
stop();
Frame 142
gotoAndPlay (143);
Frame 143
pscore = "0"; cscore = "0";
Frame 145
horz = -"1"; vert = random("2"); if (vert == "0") { vert = -"1"; } speed = "30"; Set("/trig:angle", random("70")); cspeed = "0"; call("/trig:cos"); call("/trig:sin"); xspeed = speed * /trig:cos; yspeed = speed * /trig:sin; ballx = "275"; bally = "166"; setProperty("/ball", _x , ballx); setProperty("/ball", _y , bally); setProperty("/computer", _x , "40"); setProperty("/computer", _y , "166"); setProperty("/player", _x , "510"); setProperty("/player", _y , "166"); startDrag ("/player", true); stop();
Frame 160
stop();
Frame 175
stop();
Symbol 8 Button
on (release) { play(); }
Symbol 29 MovieClip Frame 1
stop(); sin0 = "0"; cos0 = "1"; sin1 = "0.0175"; cos1 = "0.9998"; sin2 = "0.0349"; cos2 = "0.9994"; sin3 = "0.0523"; cos3 = "0.9986"; sin4 = "0.0698"; cos4 = "0.9976"; sin5 = "0.0872"; cos5 = "0.9962"; sin6 = "0.1045"; cos6 = "0.9945"; sin7 = "0.1219"; cos7 = "0.9925"; sin8 = "0.1392"; cos8 = "0.9903"; sin9 = "0.1564"; cos9 = "0.9877"; sin10 = "0.1736"; cos10 = "0.9848"; sin11 = "0.1908"; cos11 = "0.9816"; sin12 = "0.2079"; cos12 = "0.9781"; sin13 = "0.225"; cos13 = "0.9744"; sin14 = "0.2419"; cos14 = "0.9703"; sin15 = "0.2588"; cos15 = "0.9659"; sin16 = "0.2756"; cos16 = "0.9613"; sin17 = "0.2924"; cos17 = "0.9563"; sin18 = "0.309"; cos18 = "0.9511"; sin19 = "0.3256"; cos19 = "0.9455"; sin20 = "0.342"; cos20 = "0.9397"; sin21 = "0.3584"; cos21 = "0.9336"; sin22 = "0.3746"; cos22 = "0.9272"; sin23 = "0.3907"; cos23 = "0.9205"; sin24 = "0.4067"; cos24 = "0.9135"; sin25 = "0.4226"; cos25 = "0.9063"; sin26 = "0.4384"; cos26 = "0.8988"; sin27 = "0.454"; cos27 = "0.891"; sin28 = "0.4695"; cos28 = "0.8829"; sin29 = "0.4848"; cos29 = "0.8746"; sin30 = "0.5"; cos30 = "0.866"; sin31 = "0.515"; cos31 = "0.8572"; sin32 = "0.5299"; cos32 = "0.848"; sin33 = "0.5446"; cos33 = "0.8387"; sin34 = "0.5592"; cos34 = "0.829"; sin35 = "0.5736"; cos35 = "0.8192"; sin36 = "0.5878"; cos36 = "0.809"; sin37 = "0.6018"; cos37 = "0.7986"; sin38 = "0.6157"; cos38 = "0.788"; sin39 = "0.6293"; cos39 = "0.7771"; sin40 = "0.6428"; cos40 = "0.766"; sin41 = "0.6561"; cos41 = "0.7547"; sin42 = "0.6691"; cos42 = "0.7431"; sin43 = "0.682"; cos43 = "0.7314"; sin44 = "0.6947"; cos44 = "0.7193"; sin45 = "0.7071"; cos45 = "0.7071"; sin46 = "0.7193"; cos46 = "0.6947"; sin47 = "0.7314"; cos47 = "0.682"; sin48 = "0.7431"; cos48 = "0.6691"; sin49 = "0.7547"; cos49 = "0.6561"; sin50 = "0.766"; cos50 = "0.6428"; sin51 = "0.7771"; cos51 = "0.6293"; sin52 = "0.788"; cos52 = "0.6157"; sin53 = "0.7986"; cos53 = "0.6018"; sin54 = "0.809"; cos54 = "0.5878"; sin55 = "0.8192"; cos55 = "0.5736"; sin56 = "0.829"; cos56 = "0.5592"; sin57 = "0.8387"; cos57 = "0.5446"; sin58 = "0.848"; cos58 = "0.5299"; sin59 = "0.8572"; cos59 = "0.515"; sin60 = "0.866"; cos60 = "0.5"; sin61 = "0.8746"; cos61 = "0.4848"; sin62 = "0.8829"; cos62 = "0.4695"; sin63 = "0.891"; cos63 = "0.454"; sin64 = "0.8988"; cos64 = "0.4384"; sin65 = "0.9063"; cos65 = "0.4226"; sin66 = "0.9135"; cos66 = "0.4067"; sin67 = "0.4067"; cos67 = "0.4067"; sin68 = "0.9272"; cos68 = "0.3746"; sin69 = "0.9336"; cos69 = "0.3584"; sin70 = "0.9397"; cos70 = "0.342"; sin71 = "0.9455"; cos71 = "0.3256"; sin72 = "0.9511"; cos72 = "0.309"; sin73 = "0.9563"; cos73 = "0.2924"; sin74 = "0.9613"; cos74 = "0.2756"; sin75 = "0.9659"; cos75 = "0.2588"; sin76 = "0.9703"; cos76 = "0.2419"; sin77 = "0.9744"; cos77 = "0.225"; sin78 = "0.9781"; cos78 = "0.2079"; sin79 = "0.9816"; cos79 = "0.1908"; sin80 = "0.9848"; cos80 = "0.1736"; sin81 = "0.9877"; cos81 = "0.1564"; sin82 = "0.9903"; cos82 = "0.1392"; sin83 = "0.9925"; cos83 = "0.1219"; sin84 = "0.9945"; cos84 = "0.1045"; sin85 = "0.9962"; cos85 = "0.0872"; sin86 = "0.9976"; cos86 = "0.0698"; sin87 = "0.9986"; cos87 = "0.0523"; sin88 = "0.9994"; cos88 = "0.0349"; sin89 = "0.9998"; cos89 = "0.0175"; sin90 = "1"; cos90 = "0";
Symbol 29 MovieClip Frame 2
theta = int(angle); if ("360" < theta) { theta = theta - (int(theta / "360") * "360"); } if (("360" >= theta) and (theta >= "270")) { sin = eval ("sin" add ("90" - (theta - "270"))) * (-"1"); } else if ((theta < "270") and (theta >= "180")) { sin = eval ("sin" add (theta - "180")) * (-"1"); } else if ((theta < "180") and ("90" < theta)) { sin = eval ("sin" add ("180" - theta)); } else { sin = eval ("sin" add theta); }
Symbol 29 MovieClip Frame 3
theta = int(angle); if ("360" < theta) { theta = theta - (int(theta / "360") * "360"); } if (("360" >= theta) and (theta >= "270")) { cos = eval ("cos" add ("90" - (theta - "270"))); } else if ((theta < "270") and (theta >= "180")) { cos = eval ("cos" add (theta - "180")) * (-"1"); } else if ((theta < "180") and ("90" < theta)) { cos = eval ("cos" add ("180" - theta)) * (-"1"); } else { cos = eval ("cos" add theta); }
Symbol 30 MovieClip Frame 1
if ((/:bally < "30") and (/:vert == (-"1"))) { Set("/:vert", "1"); } if (("315" < /:bally) and (/:vert == "1")) { Set("/:vert", -"1"); } if (((/:ballx >= (getProperty("/player", _x) - /:speed)) and ((getProperty("/player", _x) + /:speed) >= /:ballx)) and (/:horz == "1")) { paddle = getProperty("/player", _y); if (("25" >= (paddle - /:bally)) and ((paddle - /:bally) >= (-"25"))) { if ((paddle - /:bally) >= "0") { Set("/:vert", -"1"); } else { Set("/:vert", "1"); } Set("/trig:angle", ((((-"1") * /:vert) * (paddle - /:bally)) / "25") * "75"); tellTarget ("/stick") { play(); }; call("/trig:sin"); call("/trig:cos"); Set("/:xspeed", /trig:cos * /:speed); Set("/:yspeed", /trig:sin * /:speed); Set("/:horz", -"1"); } } if (((/:ballx >= (getProperty("/computer", _x) - /:speed)) and ((getProperty("/computer", _x) + /:speed) >= /:ballx)) and (/:horz == (-"1"))) { paddle = getProperty("/computer", _y); if (("25" >= (paddle - /:bally)) and ((paddle - /:bally) >= (-"25"))) { if ((paddle - /:bally) >= "0") { Set("/:vert", -"1"); } else { Set("/:vert", "1"); } Set("/trig:angle", ((((-"1") * /:vert) * (paddle - /:bally)) / "25") * "75"); tellTarget ("/stick") { play(); }; call("/trig:sin"); call("/trig:cos"); Set("/:xspeed", /trig:cos * /:speed); Set("/:yspeed", /trig:sin * /:speed); Set("/:horz", "1"); } } if (/:ballx < "20") { Set("/:pscore", /:pscore + "1"); if (/:pscore == "10") { tellTarget ("/") { gotoAndPlay ("win"); }; } else { tellTarget ("/") { gotoAndPlay ("round"); }; } } if ("530" < /:ballx) { Set("/:cscore", /:cscore + "1"); if (/:cscore == "10") { tellTarget ("/") { gotoAndPlay ("lose"); }; } else { tellTarget ("/") { gotoAndPlay ("round"); }; } } if ("320" < /:bally) { tellTarget ("/wall") { play(); }; } if (/:bally < "40") { tellTarget ("/wall") { play(); }; } Set("/:ballx", /:ballx + (/:xspeed * /:horz)); Set("/:bally", /:bally + (/:yspeed * /:vert)); setProperty("/ball", _x , /:ballx); setProperty("/ball", _y , /:bally);
Symbol 30 MovieClip Frame 2
if ((/:bally < "30") and (/:vert == (-"1"))) { Set("/:vert", "1"); } if (("315" < /:bally) and (/:vert == "1")) { Set("/:vert", -"1"); } if (((/:ballx >= (getProperty("/player", _x) - /:speed)) and ((getProperty("/player", _x) + /:speed) >= /:ballx)) and (/:horz == "1")) { paddle = getProperty("/player", _y); if (("25" >= (paddle - /:bally)) and ((paddle - /:bally) >= (-"25"))) { if ((paddle - /:bally) >= "0") { Set("/:vert", -"1"); } else { Set("/:vert", "1"); } Set("/trig:angle", ((((-"1") * /:vert) * (paddle - /:bally)) / "25") * "75"); tellTarget ("/stick") { play(); }; call("/trig:sin"); call("/trig:cos"); Set("/:xspeed", /trig:cos * /:speed); Set("/:yspeed", /trig:sin * /:speed); Set("/:horz", -"1"); } } if (((/:ballx >= (getProperty("/computer", _x) - /:speed)) and ((getProperty("/computer", _x) + /:speed) >= /:ballx)) and (/:horz == (-"1"))) { paddle = getProperty("/computer", _y); if (("25" >= (paddle - /:bally)) and ((paddle - /:bally) >= (-"25"))) { if ((paddle - /:bally) >= "0") { Set("/:vert", -"1"); } else { Set("/:vert", "1"); } Set("/trig:angle", ((((-"1") * /:vert) * (paddle - /:bally)) / "25") * "75"); tellTarget ("/stick") { play(); }; call("/trig:sin"); call("/trig:cos"); Set("/:xspeed", /trig:cos * /:speed); Set("/:yspeed", /trig:sin * /:speed); Set("/:horz", "1"); } } if (/:ballx < "20") { Set("/:pscore", /:pscore + "1"); if (/:pscore == "10") { tellTarget ("/") { gotoAndPlay ("win"); }; } else { tellTarget ("/") { gotoAndPlay ("round"); }; } } if ("530" < /:ballx) { Set("/:cscore", /:cscore + "1"); if (/:cscore == "10") { tellTarget ("/") { gotoAndPlay ("lose"); }; } else { tellTarget ("/") { gotoAndPlay ("round"); }; } } if ("320" < /:bally) { tellTarget ("/wall") { play(); }; } if (/:bally < "40") { tellTarget ("/wall") { play(); }; } Set("/:ballx", /:ballx + (/:xspeed * /:horz)); Set("/:bally", /:bally + (/:yspeed * /:vert)); setProperty("/ball", _x , /:ballx); setProperty("/ball", _y , /:bally);
Symbol 31 MovieClip Frame 1
if (/:horz == (-"1")) { Set("/:cspeed", random("15") + "20"); if ((/:bally < getProperty("/computer", _y)) and (/:cspeed >= "0")) { Set("/:cspeed", /:cspeed * (-"1")); } if (/:cspeed < "0") { sign = "1"; } else { sign = -"1"; } if (((getProperty("/computer", _y) - /:bally) < "60") or ((-"60") < (getProperty("/computer", _y) - /:bally))) { dspeed = /:cspeed * (((getProperty("/computer", _y) - /:bally) * sign) / "60"); } else { dspeed = /:cspeed; } setProperty("/computer", _y , getProperty("/computer", _y) + dspeed); if (getProperty("/computer", _y) < "55") { setProperty("/computer", _y , "55"); } if ("290" < getProperty("/computer", _y)) { setProperty("/computer", _y , "290"); } }
Symbol 31 MovieClip Frame 2
if (/:horz == (-"1")) { Set("/:cspeed", random("15") + "20"); if ((/:bally < getProperty("/computer", _y)) and (/:cspeed >= "0")) { Set("/:cspeed", /:cspeed * (-"1")); } if (/:cspeed < "0") { sign = "1"; } else { sign = -"1"; } if (((getProperty("/computer", _y) - /:bally) < "60") or ((-"60") < (getProperty("/computer", _y) - /:bally))) { dspeed = /:cspeed * (((getProperty("/computer", _y) - /:bally) * sign) / "60"); } else { dspeed = /:cspeed; } setProperty("/computer", _y , getProperty("/computer", _y) + dspeed); if (getProperty("/computer", _y) < "55") { setProperty("/computer", _y , "55"); } if ("290" < getProperty("/computer", _y)) { setProperty("/computer", _y , "290"); } }
Symbol 32 MovieClip Frame 1
if ("530" < /:ballx) { play(); } stop();
Symbol 32 MovieClip Frame 25
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 2
gotoAndStop (1);
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 3
gotoAndStop (1);
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
gotoAndStop (1);
Symbol 44 Button
on (release) { fscommand ("quit"); }
Symbol 47 Button
on (release) { gotoAndPlay (73); }

Library Items

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

Instance Names

"ball"Frame 143Symbol 25 MovieClip
"player"Frame 143Symbol 27 MovieClip
"computer"Frame 143Symbol 28 MovieClip
"trig"Frame 143Symbol 29 MovieClip
"buzz"Frame 145Symbol 32 MovieClip
"stick"Frame 145Symbol 34 MovieClip
"wall"Frame 145Symbol 36 MovieClip
"beep"Frame 145Symbol 38 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Labels

"sequence"Frame 73
"newgame"Frame 143
"round"Frame 144
"sin"Symbol 29 MovieClip Frame 2
"cos"Symbol 29 MovieClip Frame 3
"start"Symbol 32 MovieClip Frame 1
"stick"Symbol 34 MovieClip Frame 1
"wall"Symbol 36 MovieClip Frame 1
"beep"Symbol 38 MovieClip Frame 1

Dynamic Text Variables

cscoreSymbol 22 EditableText""
pscoreSymbol 23 EditableText""




http://swfchan.com/3/11786/info.shtml
Created: 6/6 -2019 19:51:31 Last modified: 6/6 -2019 19:51:31 Server time: 22/12 -2024 22:50:31