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

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

Dodging Circles.swf

This is the info page for
Flash #60751

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


Text
Game 001: Dodging circles
In this game, simply hover over the green circle
to gain points, but make sure you don't touch
the red circles. Otherwise, the game will end
and you'll have to start over again.
This was made whilst I was learning about using action-script to
create motion. I tried to make what I learnt into a fun wee game
and hope you enjoy it. :)

TOP
SCORES

high score :

last score :

score :

SUBMIT

DON'T
SUBMIT

<name>

enter your name
(to be shown next to your high score)

<your e-mail>

enter your e-mail
(optional - this will be used to tell you
about future games or check high scores.)

your score

Should your e-mail be public?
(If your e-mail is public, everyone can see it.
Otherwise, only I can see it.)

yes

no

enter your name
(to be shown next to your high score)

ActionScript [AS1/AS2]

Frame 2
stop();
Frame 3
var lastscore = 0; var score = 0; var highscore = 0; var hhiigghhssccoorree = 200; var hhhiiiggghhhssscccooorrreee = 0; var playerhighscore = 0; var ppllaayyeerrhhiigghhssccoorree = 0; var ppplllaaayyyeeerrrhhhiiiggghhhssscccooorrreee = 0; var name = 0; var nnnaaammeee = 0; var email = 0; var eeemmmaaaiiilll = 0; var ppuubblliicc = 0; var ggaammeennuummbbeerr = 1; var error = 0; var ppaasssswwoorrdd = "sfdx7463";
Instance of Symbol 17 MovieClip "greenball" in Frame 3
onClipEvent (load) { } onClipEvent (enterFrame) { maxdx = (maxdy = _root.score / 125); if (maxdx < 2) { maxdx = (maxdy = 2); } if (_root.score == 0) { dx = (dy = 0); if (_root.hhiigghhssccoorree < _root.highscore) { tellTarget ("_root") { gotoAndStop ("submit"); }; } else { tellTarget ("_root") { gotoAndPlay ("start"); }; } } else if ((((dy < 2) && (-2 < dy)) && (dx < 2)) && (-2 < dx)) { dx = dx + (Math.random() / 5); dy = dy + (Math.random() / 5); } _x = (_x + dx); _y = (_y + dy); if (_x < 75) { _x = 75; dx = dx * -1; dx = dx + (Math.random() / 2); } else if (475 < _x) { _x = 475; dx = dx * -1; dx = dx - (Math.random() / 2); } if (_y < 75) { _y = 75; dy = dy * -1; dy = dy + (Math.random() / 2); } else if (325 < _y) { _y = 325; dy = dy * -1; dy = dy - (Math.random() / 2); } myX = _root._xmouse; myY = _root._ymouse; if (maxdx < dx) { dx = dx - 0.1; } if (maxdy < dy) { dy = dy - 0.1; } if (this.hitTest(myX, myY, true) == true) { _root.score++; if (_root.highscore < _root.score) { _root.highscore = _root.score; } } }
Instance of Symbol 25 MovieClip in Frame 3
onClipEvent (enterFrame) { if (50 < _root.score) { tellTarget ("_root") { gotoAndPlay ("1st enemy"); }; } }
Frame 5
stop();
Instance of Symbol 26 MovieClip in Frame 6
onClipEvent (load) { dx = Math.random() * 2; dy = Math.random() * 2; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 80 / (4 * _root.score)); maxdy = (maxdx = _root.score / 100); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (enterFrame) { if (100 < _root.score) { tellTarget ("_root") { gotoAndPlay ("2nd enemy"); }; } }
Frame 7
stop();
Instance of Symbol 28 MovieClip in Frame 8
onClipEvent (load) { dx = Math.random() * 2; dy = Math.random() * 2; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 0.2); maxdy = (maxdx = 10); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 29 MovieClip in Frame 8
onClipEvent (enterFrame) { if (200 < _root.score) { tellTarget ("_root") { gotoAndPlay ("3rd enemy"); }; } }
Frame 9
stop();
Instance of Symbol 30 MovieClip in Frame 10
onClipEvent (load) { dx = Math.random() * 2; dy = Math.random() * 2; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 0.25); maxdy = (maxdx = 10); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 31 MovieClip in Frame 10
onClipEvent (enterFrame) { if (300 < _root.score) { tellTarget ("_root") { gotoAndPlay ("4th enemy"); }; } }
Frame 11
stop();
Instance of Symbol 32 MovieClip in Frame 12
onClipEvent (load) { dx = Math.random() * 2; dy = Math.random() * 2; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 0.3); maxdy = (maxdx = 5); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 33 MovieClip in Frame 12
onClipEvent (enterFrame) { if (400 < _root.score) { tellTarget ("_root") { gotoAndPlay ("5th enemy"); }; } }
Frame 13
stop();
Instance of Symbol 34 MovieClip in Frame 14
onClipEvent (load) { dx = Math.random() * 2; dy = Math.random() * 2; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 0.4); maxdy = (maxdx = 4); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 35 MovieClip in Frame 14
onClipEvent (enterFrame) { if (500 < _root.score) { tellTarget ("_root") { gotoAndPlay ("6th enemy"); }; } }
Frame 15
stop();
Instance of Symbol 36 MovieClip in Frame 16
onClipEvent (load) { dx = Math.random() * 2; dy = Math.random() * 2; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 0.5); maxdy = (maxdx = 5); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 37 MovieClip in Frame 16
onClipEvent (enterFrame) { if (600 < _root.score) { tellTarget ("_root") { gotoAndPlay ("7th enemy"); }; } }
Frame 17
stop();
Instance of Symbol 38 MovieClip in Frame 18
onClipEvent (load) { dx = Math.random() * 5; dy = Math.random() * 5; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 0.2); maxdy = (maxdx = 10); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 39 MovieClip in Frame 18
onClipEvent (enterFrame) { if (700 < _root.score) { tellTarget ("_root") { gotoAndPlay ("8th enemy"); }; } }
Frame 19
stop();
Instance of Symbol 40 MovieClip in Frame 20
onClipEvent (load) { dx = Math.random() * 5; dy = Math.random() * 5; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 1); maxdy = (maxdx = 2); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 41 MovieClip in Frame 20
onClipEvent (enterFrame) { if (800 < _root.score) { tellTarget ("_root") { gotoAndPlay ("9th enemy"); }; } }
Frame 21
stop();
Instance of Symbol 42 MovieClip in Frame 22
onClipEvent (load) { dx = Math.random() * 2; dy = Math.random() * 2; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 0.5); maxdy = (maxdx = 7); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Instance of Symbol 43 MovieClip in Frame 22
onClipEvent (enterFrame) { if (900 < _root.score) { tellTarget ("_root") { gotoAndPlay ("10th enemy"); }; } }
Frame 23
stop();
Instance of Symbol 44 MovieClip in Frame 24
onClipEvent (load) { dx = Math.random() * 5; dy = Math.random() * 5; } onClipEvent (enterFrame) { _x = (_x + dx); _y = (_y + dy); myX = _root._xmouse; myY = _root._ymouse; if (this.hitTest(myX, myY, true) == true) { _root.lastscore = _root.score; _root.score = 0; } ddy = (ddx = 0.7); maxdy = (maxdx = 3); if (_x < 0) { _x = 0; dx = dx * -1; dx = dx - (dx / 5); } else if (550 < _x) { _x = 550; dx = dx * -1; dx = dx + (dx / 5); } if (_y < 0) { _y = 0; dy = dy * -1; dy = dy - (dy / 5); } else if (400 < _y) { _y = 400; dy = dy * -1; dy = dy + (dy / 5); } if (_x < myX) { dx = dx + ddx; } else { dx = dx - ddx; } if (_y < myY) { dy = dy + ddy; } else { dy = dy - ddy; } if (maxdx < dx) { dx = maxdx; } else if (dx < (-maxdx)) { dx = -maxdx; } if (maxdy < dy) { dy = maxdy; } else if (dy < (-maxdy)) { dy = -maxdy; } }
Frame 25
stop();
Frame 32
hhiigghhssccoorree = highscore; score = highscore; if (ppuubblliicc == 1) { gotoAndStop (33); }
Instance of Symbol 69 MovieClip in Frame 32
onClipEvent (enterFrame) { if (_root.error == 1) { _x = 172.9; _y = 99; } else { _x = -200; _y = -50; } }
Symbol 7 Button
on (release) { gotoAndPlay (3); }
Symbol 13 Button
on (release) { getURL ("http://bezman.deedz.net/scores.php?game=1", "_blank"); _root.score = 0; gotoAndPlay (4); }
Symbol 26 MovieClip Frame 61
stop();
Symbol 28 MovieClip Frame 61
stop();
Symbol 30 MovieClip Frame 61
stop();
Symbol 32 MovieClip Frame 61
stop();
Symbol 34 MovieClip Frame 61
stop();
Symbol 36 MovieClip Frame 61
stop();
Symbol 38 MovieClip Frame 61
stop();
Symbol 40 MovieClip Frame 61
stop();
Symbol 42 MovieClip Frame 61
stop();
Symbol 44 MovieClip Frame 61
stop();
Symbol 49 Button
on (release) { if (_root.nnaammee != "<name>") { getURL ("http://bezman.deedz.net/scores.php", "_blank", "POST"); _root.score = 0; _root.error = 0; gotoAndPlay (4); } else { _root.error = 1; } }
Symbol 53 Button
on (release) { gotoAndStop (35); }
Symbol 63 MovieClip Frame 15
stop();
Symbol 65 Button
on (press) { _root.ppuubblliicc = 1; gotoAndStop (33); }
Symbol 70 Button
on (press) { _root.ppuubblliicc = 0; gotoAndStop (32); }

Library Items

Symbol 1 FontUsed by:2 54 55 56 57 58 59 60 66 67 68
Symbol 2 TextUses:1Used by:Timeline
Symbol 3 GraphicUsed by:7
Symbol 4 GraphicUsed by:7
Symbol 5 GraphicUsed by:7
Symbol 6 GraphicUsed by:7
Symbol 7 ButtonUses:3 4 5 6Used by:Timeline
Symbol 8 GraphicUsed by:Timeline
Symbol 9 GraphicUsed by:13
Symbol 10 FontUsed by:11 47 51
Symbol 11 TextUses:10Used by:13
Symbol 12 GraphicUsed by:13
Symbol 13 ButtonUses:9 11 12Used by:Timeline
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:17 26 28 30 32 34 36 38 40 42 44
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:15 16Used by:Timeline
Symbol 18 FontUsed by:19 20 21 22 23 24
Symbol 19 EditableTextUses:18Used by:Timeline
Symbol 20 TextUses:18Used by:Timeline
Symbol 21 EditableTextUses:18Used by:Timeline
Symbol 22 EditableTextUses:18Used by:Timeline
Symbol 23 TextUses:18Used by:Timeline
Symbol 24 TextUses:18Used by:25 27 29 31 33 35 37 39 41 43 45
Symbol 25 MovieClipUses:24Used by:Timeline
Symbol 26 MovieClipUses:15Used by:Timeline
Symbol 27 MovieClipUses:24Used by:Timeline
Symbol 28 MovieClipUses:15Used by:Timeline
Symbol 29 MovieClipUses:24Used by:Timeline
Symbol 30 MovieClipUses:15Used by:Timeline
Symbol 31 MovieClipUses:24Used by:Timeline
Symbol 32 MovieClipUses:15Used by:Timeline
Symbol 33 MovieClipUses:24Used by:Timeline
Symbol 34 MovieClipUses:15Used by:Timeline
Symbol 35 MovieClipUses:24Used by:Timeline
Symbol 36 MovieClipUses:15Used by:Timeline
Symbol 37 MovieClipUses:24Used by:Timeline
Symbol 38 MovieClipUses:15Used by:Timeline
Symbol 39 MovieClipUses:24Used by:Timeline
Symbol 40 MovieClipUses:15Used by:Timeline
Symbol 41 MovieClipUses:24Used by:Timeline
Symbol 42 MovieClipUses:15Used by:Timeline
Symbol 43 MovieClipUses:24Used by:Timeline
Symbol 44 MovieClipUses:15Used by:Timeline
Symbol 45 MovieClipUses:24Used by:Timeline
Symbol 46 GraphicUsed by:49
Symbol 47 TextUses:10Used by:49
Symbol 48 GraphicUsed by:49
Symbol 49 ButtonUses:46 47 48Used by:Timeline
Symbol 50 GraphicUsed by:53
Symbol 51 TextUses:10Used by:53
Symbol 52 GraphicUsed by:53
Symbol 53 ButtonUses:50 51 52Used by:Timeline
Symbol 54 EditableTextUses:1Used by:Timeline
Symbol 55 TextUses:1Used by:Timeline
Symbol 56 EditableTextUses:1Used by:Timeline
Symbol 57 EditableTextUses:1Used by:Timeline
Symbol 58 TextUses:1Used by:Timeline
Symbol 59 TextUses:1Used by:Timeline
Symbol 60 TextUses:1Used by:Timeline
Symbol 61 GraphicUsed by:65 70  Timeline
Symbol 62 GraphicUsed by:63 65 70
Symbol 63 MovieClipUses:62Used by:65 70
Symbol 64 GraphicUsed by:65 70
Symbol 65 ButtonUses:62 63 61 64Used by:Timeline
Symbol 66 TextUses:1Used by:Timeline
Symbol 67 TextUses:1Used by:Timeline
Symbol 68 TextUses:1Used by:69
Symbol 69 MovieClipUses:68Used by:Timeline
Symbol 70 ButtonUses:62 63 61 64Used by:Timeline

Instance Names

"greenball"Frame 3Symbol 17 MovieClip

Labels

"setup"Frame 3
"start"Frame 4
"1st enemy"Frame 6
"2nd enemy"Frame 8
"3rd enemy"Frame 10
"4th enemy"Frame 12
"5th enemy"Frame 14
"6th enemy"Frame 16
"7th enemy"Frame 18
"8th enemy"Frame 20
"9th enemy"Frame 22
"10th enemy"Frame 24
"submit"Frame 32
"public"Frame 33
"error1"Frame 34
"warning1"Frame 35

Dynamic Text Variables

highscoreSymbol 19 EditableText""
scoreSymbol 21 EditableText""
lastscoreSymbol 22 EditableText""
nnaammeeSymbol 54 EditableText"<name>"
hhiigghhssccoorreeSymbol 56 EditableText""
eemmaaiillSymbol 57 EditableText"<your e-mail>"




http://swfchan.com/13/60751/info.shtml
Created: 16/4 -2019 00:22:02 Last modified: 16/4 -2019 00:22:02 Server time: 22/12 -2024 02:20:39