  | |  | sensitive timing in Flash ? | sensitive timing in Flash ?
2004-06-17 - By Thomas Klepl
Back 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/
|
|
 |