Solved

measure a user’s reaction time

Posted on 2004-09-28
2
297 Views
Last Modified: 2013-11-15
I’m looking for something to measure a user’s reaction time. Say I had a yellow dot on the screen and when it changed to green the user would click on a button and display there reaction time to the change in this format 0.000 sec but if the user clicked before the dot changed to green the dot turns red.  
0
Comment
Question by:blnukem
  • 2
2 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 12168607
create a timer - countdown function which gets called when turns green, gets stopped on press of the thing, convert seconds to milliseconds.
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 12168807
if you need the code, it will be something along these lines

(if you choose to use the approach i described earlier)

on the root.
function callback() {
      valuer = valuer+1;
}
stop_btn.onRelease = function() {
      clearInterval(id);
      trace(valuer add " end");
      //convert
      toSec = valuer/1000;
      trace(toSec);
};

then, when it changes colour, //where it must start counting.
//note i'm assuming inside a movieclip thus the _root pathing.
//i'm using 1 as 1 millisecond, and there's 1000 milliseconds in 1 second (apparently).

_root.id = setInterval(_root.callback, 1);

and that's it.
the toSec part would give you seconds.milliseconds.

blu

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Free employee timeclock 7 54
Replace Adobe Acrobat XI with what? 2 92
SpiceWorks - help desk system 2 66
physical application forms to digital format 2 27
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now