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/52048352?noj=FRM52048352-22DC" width="1" height="1"></div>

airhockey.swf

This is the info page for
Flash #30677

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


Text
FLASH

FUN

PAGES

.COM

loading, please wait...

loading, please wait...

PLAY

Instructions

10

10

PLAY AGAIN

Player

Computer

OBJECTIVE:

Outplay the computer to win the game. First to score 9
goals wins the game.

CONTROLS :

Move the Mallet with your mouse and hit the puck. The
harder you hit the puck the harder it travels.

INSTRUCTIONS

ActionScript [AS1/AS2]

Frame 1
stop();
Instance of Symbol 41 MovieClip in Frame 1
onClipEvent (enterFrame) { if (_root.getBytesLoaded() >= _root.getBytesTotal()) { _root.gotoAndPlay(2); } else { this.gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * this._totalframes)); } }
Instance of Symbol 41 MovieClip in Frame 2
onClipEvent (enterFrame) { if (_root.getBytesLoaded() >= _root.getBytesTotal()) { _root.gotoAndPlay(3); } else { this.gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * this._totalframes)); } }
Frame 3
stop();
Frame 4
function reset() { hitFlag = false; } decay = 0.99; score1 = 0; score2 = 0; hitFlag = false; _root.onEnterFrame = function () { puck.xmov = puck.xmov * decay; puck.ymov = puck.ymov * decay; puck._x = puck._x + puck.xmov; puck._y = puck._y + puck.ymov; if ((puck._y + puck.ymov) < 100) { puck._y = 100; puck.ymov = -puck.ymov; } if ((puck._y + puck.ymov) > 333) { puck._y = 338; puck.ymov = -puck.ymov; } if ((puck._x + puck.xmov) < 55) { puck._x = 55; puck.xmov = -puck.xmov; } if ((puck._x + puck.xmov) > 545) { puck._x = 545; puck.xmov = -puck.xmov; } firstSound = new Sound(); firstSound.attachSound("hit"); rgl._alpha = 0; if (puck.hitTest(paddle)) { puck.xmov = paddle.vx + 6; puck.ymov = paddle.vy + 7; } if (puck.hitTest(frame1) and (this.hitFlag == false)) { _root.firstSound.start(); this.hitFlag = true; this.reset(); } if (puck.hitTest(frame2) and (this.hitFlag == false)) { _root.firstSound.start(); this.hitFlag = true; this.reset(); } if (puck.hitTest(frame3) and (this.hitFlag == false)) { _root.firstSound.start(); this.hitFlag = true; this.reset(); } if (puck.hitTest(frame4) and (this.hitFlag == false)) { _root.firstSound.start(); this.hitFlag = true; this.reset(); } if ((puck._x >= rgl._x) && (Math.abs(puck._y - rgl._y) < (rgl._width / 2))) { score1 = score1 + 1; puck._x = 250; puck._y = 200; puck.ymov = 0; puck.xmov = 0; if (score1 == 7) { } } }; paddle.onPress = function () { this.isDragging = true; this.vx = (this.vy = 0); this.lmx = _root._xmouse; this.lmy = _root._ymouse; this.startDrag(false, 70, 105, 270, 340); }; paddle.onRelease = function () { this.isDragging = false; this.stopDrag(); }; paddle.onEnterFrame = function () { if (this.isDragging) { this.vx = this.vx * decay; this.vy = this.vy * decay; this.vx = _root._xmouse - this.lmx; this.vy = _root._ymouse - this.lmy; this.lmx = _root._xmouse; this.lmy = _root._ymouse; } }; paddle2.onEnterFrame = function () { if (test) { this.vx2 = (this.vy2 = 0); this.lmx2 = this._x; this.lmy2 = this._y; } checker2 = random(2); if (random <= 1) { xrnd = random(10); if (xrnd <= 1) { xrnd = 2; } rnd1 = -1 * xrnd; } if (random == 2) { xrnd = random(10); if (xrnd <= 1) { xrnd = 2; } rnd1 = 1 * xrnd; } if (_root.puck._y <= 175) { yrnd = random(10); if (yrnd <= 1) { yrnd = 2; } rnd2 = 1 * yrnd; } else if (_root.puck._y >= 175) { yrnd = random(10); if (yrnd <= 1) { yrnd = 2; } rnd2 = -1 * speedx; } if (random <= 1) { speedx = random(50); if (speedx <= 1) { speedx = 2; } speed1 = -1 * speedx; } this.vx2 = ((rnd1 + this._x) - this.lmx2) + speed1; this.vy2 = (rnd2 + this._y) - this.lmy2; this.lmx2 = this._x; this.lmy2 = this._y; if (this.hitTest(_root.puck)) { test = true; puck.xmov = paddle2.vx2; puck.ymov = paddle2.vy2; } }; stop(); flag = 0; x = 190; y = 190; rand = 0; GoalSound = new Sound(); GoalSound.attachSound("goal");
Instance of Symbol 74 MovieClip "lgl" in Frame 4
onClipEvent (load) { _root.score2 = 0; this._visible = 0; } onClipEvent (enterFrame) { if (this.hitTest(_root.puck)) { _root.score2 = _root.score2 + 1; _root.puck._x = 350; _root.puck._y = 200; _root.puck.ymov = 0; _root.puck.xmov = 0; } }
Instance of Symbol 82 MovieClip "paddle" in Frame 4
/* no clip actions */
Instance of Symbol 84 MovieClip "paddle2" in Frame 4
onClipEvent (enterFrame) { xx1 = _root.puck._x; yy1 = _root.puck._y; xx2 = _root.paddle2._x; yy2 = _root.paddle2._y; _root.puck.radius2 = _width / 2; _root.paddle2.radius2 = _width / 2; xx = xx2 - xx1; yx = yy2 - yy1; distance2 = Math.sqrt((xx * xx) + (yy * yy)); speed = 7; if (_root.puck._x >= 300) { if ((xx1 && (yy1 != xx2)) && (yy2)) { endX = _root.puck._x; endY = _root.puck._y; _x = (_x + ((endX - _x) / speed)); _y = (_y + ((endY - _y) / speed)); } } if (_root.puck._x <= 300) { endX = 505; endY = 200; _x = (_x + ((endX - _x) / speed)); _y = (_y + ((endY - _y) / speed)); } }
Instance of Symbol 85 MovieClip "rgl" in Frame 4
onClipEvent (load) { _root.score1 = 0; this._visible = 0; } onClipEvent (enterFrame) { if (this.hitTest(_root.puck)) { _root.score1 = _root.score1 + 1; _root.goalSound.start(); _root.puck._x = 260; _root.puck._y = 225; _root.puck.ymov = 0; _root.puck.xmov = 0; } if (_root.score1 >= 9) { _root.gotoAndStop("gameover1"); } }
Instance of Symbol 74 MovieClip "lgl" in Frame 4
onClipEvent (load) { _root.score2 = 0; this._visible = 0; } onClipEvent (enterFrame) { if (this.hitTest(_root.puck)) { _root.goalSound.start(); _root.score2 = _root.score2 + 1; _root.puck._x = 350; _root.puck._y = 225; _root.puck.ymov = 0; _root.puck.xmov = 0; } if (_root.score2 >= 9) { _root.gotoAndStop("gameover"); } }
Frame 5
if (puck.hitTest(frame1)) { trace("hi"); flag = 1; } if (puck.hitTest(frame2)) { trace("hi"); flag = 2; } if (puck.hitTest(frame3)) { trace("hi"); flag = 3; } if (puck.hitTest(frame4)) { trace("hi"); flag = 4; } if (flag == 0) { x = x + rand; y = y + 5; } if (flag == 1) { x = x + 5; y = y - rand; } if (flag == 2) { x = x - 5; y = y - rand; } if (flag == 3) { x = x - rand; y = y + 5; } if (flag == 4) { x = x + 5; y = y - rand; } stop();
Frame 6
gotoAndPlay (5);
Frame 7
stop();
Frame 9
stop();
Symbol 32 MovieClip Frame 14
stop();
Symbol 51 Button
on (release) { gotoAndPlay (4); }
Symbol 57 Button
on (release) { gotoAndPlay (9); }
Symbol 70 Button
on (release) { getURL ("http://www.Flashfunpages.com/", "_top"); }
Symbol 92 MovieClip Frame 60
stop();
Symbol 98 Button
on (press) { gotoAndPlay (2); }
Symbol 115 Button
on (release) { gotoAndPlay (3); }

Library Items

Symbol 1 Sound [hit]
Symbol 2 Sound [goal]
Symbol 3 GraphicUsed by:Timeline
Symbol 4 GraphicUsed by:Timeline
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:7
Symbol 7 MovieClipUses:6Used by:Timeline
Symbol 8 GraphicUsed by:16
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:16
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:16
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClipUses:13Used by:16
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:8 10 12 14 15Used by:Timeline
Symbol 17 GraphicUsed by:23
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:23
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:23
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:17 19 21 22Used by:Timeline
Symbol 24 GraphicUsed by:31
Symbol 25 FontUsed by:26 27 28
Symbol 26 EditableTextUses:25Used by:31
Symbol 27 EditableTextUses:25Used by:31
Symbol 28 EditableTextUses:25Used by:31
Symbol 29 FontUsed by:30 33 42
Symbol 30 EditableTextUses:29Used by:31
Symbol 31 MovieClipUses:24 26 27 28 30Used by:32
Symbol 32 MovieClipUses:31Used by:Timeline
Symbol 33 EditableTextUses:29Used by:Timeline
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:Timeline
Symbol 36 GraphicUsed by:41
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClipUses:37Used by:41
Symbol 39 ShapeTweeningUsed by:41
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:36 38 39 40Used by:Timeline
Symbol 42 EditableTextUses:29Used by:Timeline
Symbol 43 GraphicUsed by:Timeline
Symbol 44 GraphicUsed by:51
Symbol 45 GraphicUsed by:51
Symbol 46 GraphicUsed by:51
Symbol 47 GraphicUsed by:51 98
Symbol 48 FontUsed by:49 56
Symbol 49 TextUses:48Used by:51
Symbol 50 SoundUsed by:51
Symbol 51 ButtonUses:44 45 46 47 49 50Used by:Timeline
Symbol 52 GraphicUsed by:57
Symbol 53 GraphicUsed by:57
Symbol 54 GraphicUsed by:57
Symbol 55 GraphicUsed by:57
Symbol 56 TextUses:48Used by:57
Symbol 57 ButtonUses:52 53 54 55 56Used by:Timeline
Symbol 58 GraphicUsed by:Timeline
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:Timeline
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:Timeline
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:63Used by:Timeline
Symbol 65 GraphicUsed by:Timeline
Symbol 66 GraphicUsed by:70
Symbol 67 GraphicUsed by:70
Symbol 68 GraphicUsed by:70
Symbol 69 GraphicUsed by:70
Symbol 70 ButtonUses:66 67 68 69Used by:Timeline
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:71Used by:Timeline
Symbol 73 GraphicUsed by:74 85
Symbol 74 MovieClipUses:73Used by:Timeline
Symbol 75 GraphicUsed by:Timeline
Symbol 76 FontUsed by:77 78 79 80
Symbol 77 EditableTextUses:76Used by:Timeline
Symbol 78 EditableTextUses:76Used by:Timeline
Symbol 79 EditableTextUses:76Used by:Timeline
Symbol 80 EditableTextUses:76Used by:Timeline
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:Timeline
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:83Used by:Timeline
Symbol 85 MovieClipUses:73Used by:Timeline
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:86Used by:Timeline
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:Timeline
Symbol 90 GraphicUsed by:Timeline
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:Timeline
Symbol 93 GraphicUsed by:98
Symbol 94 GraphicUsed by:98
Symbol 95 GraphicUsed by:98
Symbol 96 FontUsed by:97
Symbol 97 TextUses:96Used by:98
Symbol 98 ButtonUses:93 94 95 47 97Used by:Timeline
Symbol 99 GraphicUsed by:Timeline
Symbol 100 GraphicUsed by:Timeline
Symbol 101 GraphicUsed by:Timeline
Symbol 102 GraphicUsed by:Timeline
Symbol 103 GraphicUsed by:Timeline
Symbol 104 FontUsed by:105 106 107 108 109 110 116
Symbol 105 TextUses:104Used by:Timeline
Symbol 106 TextUses:104Used by:Timeline
Symbol 107 TextUses:104Used by:Timeline
Symbol 108 TextUses:104Used by:Timeline
Symbol 109 TextUses:104Used by:Timeline
Symbol 110 TextUses:104Used by:Timeline
Symbol 111 GraphicUsed by:115
Symbol 112 GraphicUsed by:115
Symbol 113 GraphicUsed by:115
Symbol 114 GraphicUsed by:115
Symbol 115 ButtonUses:111 112 113 114Used by:Timeline
Symbol 116 TextUses:104Used by:Timeline

Instance Names

"frame1"Frame 3Symbol 60 MovieClip
"frame3"Frame 3Symbol 62 MovieClip
"frame4"Frame 3Symbol 64 MovieClip
"frame1"Frame 4Symbol 60 MovieClip
"frame3"Frame 4Symbol 62 MovieClip
"frame4"Frame 4Symbol 64 MovieClip
"frame"Frame 4Symbol 72 MovieClip
"lgl"Frame 4Symbol 74 MovieClip
"paddle"Frame 4Symbol 82 MovieClip
"paddle2"Frame 4Symbol 84 MovieClip
"rgl"Frame 4Symbol 85 MovieClip
"lgl"Frame 4Symbol 74 MovieClip
"frame1"Frame 4Symbol 60 MovieClip
"frame2"Frame 4Symbol 87 MovieClip
"puck"Frame 4Symbol 89 MovieClip
"frame1"Frame 9Symbol 60 MovieClip
"frame2"Frame 9Symbol 87 MovieClip
"frame3"Frame 9Symbol 62 MovieClip
"frame4"Frame 9Symbol 64 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "hit"
ExportAssets (56)Timeline Frame 1Symbol 2 as "goal"

Labels

"gameover"Frame 7
"gameover1"Frame 8

Dynamic Text Variables

score1Symbol 77 EditableText""
score2Symbol 78 EditableText""
score2Symbol 79 EditableText"10"
score1Symbol 80 EditableText"10"




http://swfchan.com/7/30677/info.shtml
Created: 19/5 -2019 06:19:35 Last modified: 19/5 -2019 06:19:35 Server time: 22/12 -2024 10:00:11