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

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

1264592308.swf

This is the info page for
Flash #13505

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


Text
topscore:

ActionScript [AS1/AS2]

Frame 1
function addballs() { var _local2; _root.createEmptyMovieClip("balls", 1); var _local3 = 0; while (_local3 < 15) { _local2 = "ball" + _local3; balls.attachMovie("enemy", _local2, _local3 + 10); balls[_local2]._x = (Math.random() * (Stage.width - 10)) + 4; balls[_local2]._y = (Math.random() * (Stage.height - 10)) + 4; balls[_local2].dx = Math.random() * 5; balls[_local2].dy = Math.random() * 5; _local3++; } Mouse.hide(); } function calcMotion(bname) { var _local2 = tb.fps_txt.text; balls[bname]._x = balls[bname]._x + (balls[bname].dx * (50 / _local2)); balls[bname]._y = balls[bname]._y + (balls[bname].dy * (50 / _local2)); } function calcCollisions(bname) { if (start_mc._visible == false) { if (balls[bname]._x < 17) { balls[bname]._x = 17; balls[bname].dx = balls[bname].dx * -1; } if (balls[bname]._x > (Stage.width - 17)) { balls[bname]._x = Stage.width - 17; balls[bname].dx = balls[bname].dx * -1; } if (balls[bname]._y < 17) { balls[bname]._y = 17; balls[bname].dy = balls[bname].dy * -1; } if (balls[bname]._y > (Stage.height - 17)) { balls[bname]._y = Stage.height - 17; balls[bname].dy = balls[bname].dy * -1; } if ((dist2(bname) <= 34) && (Math.ceil((scoreTimeB - scoreTimeA) / 1000) > 2)) { eg_mc._visible = true; Mouse.show(); setScore(); var _local3 = getHighScore(); if ((_local3 == undefined) || (_local3 < Math.ceil((scoreTimeB - scoreTimeA) / 1000))) { eg_mc.hs_txt.text = Math.ceil((scoreTimeB - scoreTimeA) / 1000); saveHighScore(Math.ceil((scoreTimeB - scoreTimeA) / 1000)); } else { eg_mc.hs_txt.text = _local3; } var _local1 = 0; while (_local1 < 15) { bname = "ball" + _local1; balls[bname]._visible = false; _local1++; } } } } function setScore() { var _local1 = " ....? Uhh...wana try that again?"; eg_mc.final_txt.text = Math.ceil((scoreTimeB - scoreTimeA) / 1000) + _local1; } function dist(xdist, ydist) { return(Math.sqrt(Math.pow(xdist, 2) + Math.pow(ydist, 2))); } function dist2(bname1) { var _local2; var _local1; _local2 = Math.abs(balls[bname1]._x - player_mc._x); _local1 = Math.abs(balls[bname1]._y - player_mc._y); return(dist(_local2, _local1)); } function saveHighScore(score) { myHighScore = SharedObject.getLocal("highScore"); myHighScore.data.score = score; myHighScore.flush(); } function getHighScore() { myHighScore = SharedObject.getLocal("highScore"); return(myHighScore.data.score); } Mouse.hide(); var timeA = getTimer(); var timeB; var scoreTimeA; var scoreTimeB; eg_mc._visible = false; time_mc.time_txt._visible = false; var j = 0; start_mc.onEnterFrame = function () { if (start_mc._currentframe == 200) { addballs(); this._visible = false; start_mc.gotoAndStop(1); scoreTimeA = getTimer(); time_mc.time_txt._visible = true; } }; _root.onEnterFrame = function () { var _local2; if ((eg_mc._visible == false) && (start_mc._visible == false)) { var _local1 = 0; while (_local1 < 15) { _local2 = "ball" + _local1; calcMotion(_local2); calcCollisions(_local2); _local1++; } } timeB = getTimer(); if (j == 5) { tb.fps_txt.text = Math.ceil(1000 / (timeB - timeA)); j = 0; } j++; timeA = getTimer(); scoreTimeB = getTimer(); if (eg_mc._visible == false) { time_mc.time_txt.text = Math.ceil((scoreTimeB - scoreTimeA) / 1000); } }; player_mc.onEnterFrame = function () { if ((((_xmouse < 17) or (_xmouse > (Stage.width - 17))) or (_ymouse < 17)) or (_ymouse > (Stage.height - 17))) { if (Math.ceil((scoreTimeB - scoreTimeA) / 1000) > 2) { eg_mc._visible = true; Mouse.show(); setScore(); var _local1 = 0; while (_local1 < 15) { var _local2 = "ball" + _local1; balls[_local2]._visible = false; _local1++; } } } else { player_mc._x = _xmouse; player_mc._y = _ymouse; } }; eg_mc.onRelease = function () { this._visible = false; start_mc.gotoAndPlay(1); start_mc._visible = true; scoreTimeA = getTimer(); };

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [enemy]Uses:1
Symbol 3 FontUsed by:4
Symbol 4 EditableTextUses:3Used by:Timeline
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:Timeline
Symbol 7 GraphicUsed by:10
Symbol 8 FontUsed by:9 11
Symbol 9 EditableTextUses:8Used by:10
Symbol 10 MovieClipUses:7 9Used by:Timeline
Symbol 11 EditableTextUses:8Used by:12
Symbol 12 MovieClipUses:11Used by:Timeline
Symbol 13 ShapeTweeningUsed by:17
Symbol 14 ShapeTweeningUsed by:17
Symbol 15 ShapeTweeningUsed by:17
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:13 14 15 16Used by:Timeline
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:Timeline
Symbol 20 GraphicUsed by:25
Symbol 21 FontUsed by:22 23 24
Symbol 22 EditableTextUses:21Used by:25
Symbol 23 EditableTextUses:21Used by:25
Symbol 24 TextUses:21Used by:25
Symbol 25 MovieClipUses:20 22 23 24Used by:Timeline

Instance Names

"fps_txt"Frame 1Symbol 4 EditableText
"time_mc"Frame 1Symbol 10 MovieClip
"tb"Frame 1Symbol 12 MovieClip
"start_mc"Frame 1Symbol 17 MovieClip
"player_mc"Frame 1Symbol 19 MovieClip
"eg_mc"Frame 1Symbol 25 MovieClip
"time_txt"Symbol 10 MovieClip Frame 1Symbol 9 EditableText
"fps_txt"Symbol 12 MovieClip Frame 1Symbol 11 EditableText
"final_txt"Symbol 25 MovieClip Frame 1Symbol 22 EditableText
"hs_txt"Symbol 25 MovieClip Frame 1Symbol 23 EditableText

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 2 as "enemy"




http://swfchan.com/3/13505/info.shtml
Created: 4/6 -2019 17:42:35 Last modified: 4/6 -2019 17:42:35 Server time: 05/11 -2024 09:23:15