Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
sensitive timing in Flash ?

sensitive timing in Flash ?

2004-06-17       - By Thomas Klepl

 Back
Reply:     1     2     3     4  

You could use the getTimer() function, which is supposed to have millisecond
precision (1/1000 second).

ie.

startTime = getTimer();
// show your images
button.onRelease = function() {
elapsedTime = (getTimer()-startTime);
trace (elapsedTime);
}

Not sure how much it is dependent on CPU or other factors but it should be
close...

Tom


-- --Original Message-- --
From: flashpro-bounces@(protected) [mailto:flashpro-bounces@(protected)] On
Behalf Of frederic
Sent: June 17, 2004 2:25 PM
To: flashpro@(protected)
Subject: [flashpro] sensitive timing in Flash ?

Hello
I need to present two images and then time in how long it takes for someone
to press yes or no. Then have the data put into a database.
How sensitive can the timing be? I would need to be able to measure seconds
at the .00001 level, and it would have to be the same for every person who
takes the survey.
Is this possible to do that in Flash?
Thanks,
Fred


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
send message to the list: mailto:flashpro@(protected)
[FlashPro] list info, subscribe, archive: http://flash-list.com/
There 's also a WebPro mailing list: http://webdesign-list.com/
cutting-edge sounds for flash: http://flash-sounds.com/



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
send message to the list: mailto:flashpro@(protected)
[FlashPro] list info, subscribe, archive: http://flash-list.com/
There 's also a WebPro mailing list: http://webdesign-list.com/
cutting-edge sounds for flash: http://flash-sounds.com/