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

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

REACTION_TIME04.swf

This is the info page for
Flash #163173

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


Text
00.00

00.00

ActionScript [AS1/AS2]

Frame 1
stop(); onEnterFrame = function () { var _local1 = _root.getBytesLoaded() / _root.getBytesTotal(); preloader_mc.value = _local1; if (_local1 == 1) { delete onEnterFrame; play(); } };
Frame 2
function reqBorderChange() { Timer.play(); } function calcReactionTime(clickTime) { reactionTime = (clickTime - startTime) / 1000; reactionTime = Math.round(reactionTime * 100) / 100; setMessage(reactionTime); reactionTime = reactionTime + " sec"; return(undefined); } function setMessage(rt) { var _local1 = rt; if (_local1 == 0) { gotoAndStop ("homer"); } else if ((_local1 <= 0.1) && (_local1 > 0)) { gotoAndStop ("homer"); } else if ((_local1 <= 0.18) && (_local1 > 0.1)) { gotoAndStop ("homer"); } else if ((_local1 <= 0.22) && (_local1 > 0.18)) { gotoAndStop ("hit"); } else if ((_local1 <= 0.26) && (_local1 > 0.22)) { gotoAndStop ("hit"); } else if ((_local1 <= 1) && (_local1 > 0.26)) { gotoAndStop ("miss"); } else if ((_local1 <= 10) && (_local1 > 1)) { gotoAndStop ("miss"); } else { gotoAndStop ("miss"); } } b5Sound = new Sound(this); b5Sound.attachSound("click"); b6Sound = new Sound(this); b6Sound.attachSound("hotdog"); b7Sound = new Sound(this); b7Sound.attachSound("charge"); b7Sound.stop(); b7Sound.start(0, 99); stop();
Instance of Symbol 15 MovieClip in Frame 2
on (release) { _root.reqBorderChange(); _root.gotoAndStop("begin"); _root.b5Sound.start(0, 1); }
Instance of Symbol 27 MovieClip in Frame 2
on (rollOver) { this.gotoAndStop(2); } on (rollOut) { this.gotoAndStop(1); } on (press) { _root.play(); _root.b5Sound.start(0, 1); }
Frame 5
stop();
Frame 8
stop();
Frame 10
stop();
Frame 14
b1Sound = new Sound(this); b1Sound.attachSound("crowd"); b1Sound.stop(); b1Sound.start(0, 99); b2Sound = new Sound(this); b2Sound.attachSound("batter"); b2Sound.start(0, 1); b4Sound = new Sound(this); b4Sound.attachSound("strike"); b3Sound = new Sound(this); b3Sound.attachSound("hit");
Frame 25
startTime = getTimer(); stop();
Frame 36
b4Sound.start(0, 1);
Instance of Symbol 45 MovieClip in Frame 36
on (release) { _root.reqBorderChange(); _root.gotoAndStop("begin"); _root.b5Sound.start(0, 1); }
Frame 41
b3Sound.start(0, 1);
Frame 45
b3Sound.start(0, 1);
Frame 52
b6Sound.start(0, 1);
Frame 63
startTime = getTimer(); stop();
Instance of Symbol 45 MovieClip in Frame 63
on (release) { _root.reqBorderChange(); _root.gotoAndStop("begin"); }
Symbol 11 MovieClip Frame 1
var value = 0; var radius = 50; var startAngle = -1.5707963267949; var fillColor = 16777215; var lineColor = 0; this.createEmptyMovieClip("pie_mc", 0); pie_mc.onEnterFrame = function () { var _local1 = this; _local1.clear(); var _local2 = startAngle + ((Math.PI*2) * (1 - value)); _local1.lineStyle(2, lineColor, 100); _local1.beginFill(fillColor, 100); _local1.lineTo(Math.cos(startAngle) * radius, 0); _local1.circleSegmentTo(0, 0, startAngle, _local2, radius, -1); _local1.lineTo(0, 0); _local1.endFill(); }; pie_mc.circleSegmentTo = function (x, y, a1, a2, r, dir) { var _local1 = a1; var _local2 = a2; var diff = Math.abs(_local2 - _local1); var divs = (Math.floor(diff / (Math.PI/4)) + 1); var span = ((dir * diff) / (2 * divs)); var rc = (r / Math.cos(span)); this.moveTo(x + (Math.cos(_local1) * r), y + (Math.sin(_local1) * r)); var _local3 = 0; while (_local3 < divs) { _local2 = _local1 + span; _local1 = _local2 + span; this.curveTo(x + (Math.cos(_local2) * rc), y + (Math.sin(_local2) * rc), x + (Math.cos(_local1) * r), y + (Math.sin(_local1) * r)); _local3++; } return(this); }; nextFrame(); onEnterFrame();
Symbol 16 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 2
if (!init) { startDelay = getTimer(); init = true; delay = Math.floor(Math.random() * 1200) + 1000; } if ((getTimer() - startDelay) > delay) { init = false; _parent.play(); this.gotoAndStop("hang"); }
Symbol 16 MovieClip Frame 6
gotoAndPlay ("begin");
Symbol 27 MovieClip Frame 1
stop();
Symbol 39 Button
on (press) { _root.gotoAndStop("early"); }
Symbol 42 Button
on (press) { calcReactionTime(getTimer()); }

Library Items

Symbol 1 Sound [strike]
Symbol 2 Sound [hotdog]
Symbol 3 Sound [hit]
Symbol 4 Sound [crowd]
Symbol 5 Sound [click]
Symbol 6 Sound [charge]
Symbol 7 Sound [batter]
Symbol 8 BitmapUsed by:9 12 58
Symbol 9 GraphicUses:8Used by:Timeline
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:Timeline
Symbol 12 GraphicUses:8Used by:Timeline
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:15
Symbol 15 MovieClipUses:14Used by:Timeline
Symbol 16 MovieClipUsed by:Timeline
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:Timeline
Symbol 19 BitmapUsed by:20
Symbol 20 GraphicUses:19Used by:Timeline
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:27
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:27
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:27
Symbol 27 MovieClipUses:22 24 26Used by:Timeline
Symbol 28 BitmapUsed by:30
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:28 29Used by:Timeline
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:Timeline
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:Timeline
Symbol 35 BitmapUsed by:37
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:35 36Used by:Timeline
Symbol 38 GraphicUsed by:39 42
Symbol 39 ButtonUses:38Used by:Timeline
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:40Used by:Timeline
Symbol 42 ButtonUses:38Used by:Timeline
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:45
Symbol 45 MovieClipUses:44Used by:Timeline
Symbol 46 BitmapUsed by:47 54
Symbol 47 GraphicUses:46Used by:Timeline
Symbol 48 FontUsed by:49 55
Symbol 49 EditableTextUses:48Used by:Timeline
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:Timeline
Symbol 52 BitmapUsed by:53 54
Symbol 53 GraphicUses:52Used by:Timeline
Symbol 54 GraphicUses:52 46Used by:Timeline
Symbol 55 EditableTextUses:48Used by:Timeline
Symbol 56 BitmapUsed by:57
Symbol 57 GraphicUses:56Used by:Timeline
Symbol 58 GraphicUses:8Used by:Timeline

Instance Names

"preloader_mc"Frame 1Symbol 11 MovieClip
"Timer"Frame 2Symbol 16 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "strike"
ExportAssets (56)Timeline Frame 1Symbol 2 as "hotdog"
ExportAssets (56)Timeline Frame 1Symbol 3 as "hit"
ExportAssets (56)Timeline Frame 1Symbol 4 as "crowd"
ExportAssets (56)Timeline Frame 1Symbol 5 as "click"
ExportAssets (56)Timeline Frame 1Symbol 6 as "charge"
ExportAssets (56)Timeline Frame 1Symbol 7 as "batter"

Labels

"instructions"Frame 2
"begin"Frame 14
"red"Frame 25
"miss"Frame 36
"hit"Frame 41
"homer"Frame 45
"early"Frame 52
"hang"Symbol 16 MovieClip Frame 1
"begin"Symbol 16 MovieClip Frame 2

Dynamic Text Variables

reactionTimeSymbol 49 EditableText"00.00"
reactionTimeSymbol 55 EditableText"00.00"




http://swfchan.com/33/163173/info.shtml
Created: 19/10 -2018 22:58:43 Last modified: 19/10 -2018 22:58:43 Server time: 02/05 -2024 05:37:52