Recording user reaction time in Flash

I am running several visual cognition experiments using
Flash. See there here:
http://vacognition.wjh.harvard.edu
Experiments are by definition interactive, in that I am
recording data from the people who participate. Currently, I just
record accuracy (did they answer a question correctly or not). Many
experiments require getting reaction time -- that is, how long did
it take them to respond. How accurate can I expect my measurements
to be? In the lab, they would be accurate to about 2-5
milliseconds. I know it won't be that good with Flash over the
Internet, but does anybody have any idea *how* accurate?
Oh, and please participate in the experiments that are
currently running. I need many, many people to participate,
especially for
this
experiment

to be a bit more precise i would use the Date object. the
following is from flash help:
Date.getTime();
"Returns the number of milliseconds since midnight January 1,
1970, universal time, for the specified Date object. Use this
method to represent a specific instant in time when comparing two
or more Date objects."
the number of milliseconds!!! so it is pretty accurate,
isn't it? :)
as you start an exercise you create a Date. as the user
finishes with the answer you create another Date. after it you can
substract the two Dates then you get the passed time in
milliseconds!
(at start)
startTime = new Date();
(when the user finishes)
endTime = new Date();
duration = endTime.getTime()-startTime.getTime() //and this
is in milliseconds
hope it's clear and accurate enough... ;)
adam

Similar Messages

  • Recording video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http.

    As titled, what is the way to record video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http?
    What I am trying to do, is to record a user's microphone's input and save it to the server. Afterwards, I would like other users to be able to access the recorded files and mainuplating the audio data, by computeSpectrum(), to do some visualization of the audio. As I know computeSpectrum() cannot work on streaming files, so I think I need to access the recorded files using http instead of rmtp. Is that true?
    How can I redirect the http request to the files I was recorded into my applications/appName folder? Or I need to somehow moved the recorded files to the /webroot folder?
    Thanks!

    I probably have asked a stupid question.
    My recorded streams are still saved in the applications/appName/streams folder.
    And I redirect the www.mydomain.com/streams to point to the applications/appName/streams folder.
    And the rmtp recorded streams are abled to connect through http now.

  • Record Reaction Time... Questoin

    Hello everyone! I have a quick question... What are the main advantages of a HD-SD or HD-HDD camcorder over a HD Mini DV?
    I am hoping but cannot find anything on it that the SD or HDD are quicker to start recording than the Mini DV version? is this correct? so in other words which is quicker to start recording once the record button is pressed? I need the fastest reaction time.

    You can just ignore button reads until the time is right.
    Here's a simple rewrite, see if it makes sense.
    Notes:
    Make sure that all controls have labels. You can hide the label on the front panel, but don't make it an empty string. It makes assigning event, etc. nearly impossible. All controls need a label for code readability.
    Don't maximize the diagram to the screene. That's very annoying.
    Don't trap event structures insude case structures.
    Don't use right-to-left wiring (e.g. for the status)
    Mind your representations. Look at all your red coercion dots. The numbers should be Integers of the same type.
    Watch out for mechanical actions. Your start button is "switch until released" (like a car horn!), making detecting a press hit and miss, epsecially in the presence of long waits.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ControlTest_MODCA.vi ‏12 KB

  • Master_detail for more than one record at a time

    Hi,
    How can i display master_detail records for more than one records at a time, for example, i have two tables A and B , A has username and role and B has username and profile. here i wanted to display 10 users at a time on my 6i form with username, role and profile.
    i have created a master-detail relation ship with these tables when i'm executing F8 on blcok A , it displays 10 records on BlockA but, only one at a time on block B, how can i display all corresponding records on block B at a time.
    Thanks for your help.Bcj

    Thanks Roberts, that was realy informative due to some doubts i would like to confirm my requirements , i have two blocks A and B and each master record has only one detail record. but i wanted to display at least 10 master_detail relationships(records) on the form at a time, i would like to know is it possible to do without creating any table or view for example,
    data in table A,
    username role
    AAA R1
    BBB R2
    CCC R3
    data in table B,
    username profile
    AAA P1
    BBB P2
    CCC P3
    i wanted to display it on form like below,
    username role profile
    AAA R1 P1
    BBB R2 P2
    CCC R3 P3
    Also would like to know that how can i select data from dba_users, any restriction is there on forms 6i, i can select it on sqlplus.
    Thanks Again, Bcj

  • How to Insert more than one record at a time- with fixed set of values in one field

    Can someone guide as to how to insert multiple records at a time using ASP VBScript in Dreamweaver CS4 or ADDT.
    If someone can guide then the exact problem is given below.
    I have a MS access database with one table. The table has three fields. The first field is an autonumber field for ID number.
    The second field contains string values- One out of 7 predefined values. One set of records consists of 7 records containing all the seven types of predefined values in fields no 1.
    The third field is a numeric field and can contain integers.
    I want that the user can enter data for the table using an ASP form in such a way that he enters one set of records at a time in one single screen. This way he will not have to remember that he has /has not entered all the seven set of values for the field no 1.
    I am not creating fields with the 7 types of field1value as their names as it will increase the number of fields drastically.
    Please help for dreamweaver ASP VBScript.

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • How to Insert more than one record at a time

    How to insert multiple records at a time?
    If someone can advise on this, then the actual problem is described below:
    I have a MS access database with one table. The table has three fields. The
    first field is an autonumber field for ID number.
    The second field contains string values- One out of 7 predefined values. One
    set of records consists of 7 records containing all the seven types of
    predefined values in fields no 1.
    The third field is a numeric field and can contain integers.
    I want that the user can enter data for the table using an ASP form in such
    a way that he enters one set of records at a time in one single screen. This
    way he will not have to remember that he has /has not entered all the seven
    set of values for the field no 1.
    I am not creating fields with the 7 types of field1value as their names as
    it will increase the number of fields drastically.
    Please help with inserting multiple records at a time.

    I have successfully inserted seven records in one form submit operation by looping through the command object execute method.
    However, the data that is being inserted by the command object is repetition of the first record and the command object is not taking any data from the text boxes for the second record onwards. In this I had used the isert record behavious generated by DW CS4 and modified it to suit my requirement. However, the data inserted in the first row is getting repeated in all the seven rows.
    Please help.
    Also advise if there are any free dreamweaver server side validation extensions available.

  • How to save multiple records at a time?

    Hi
    Can any one help me to save the multiple rows using ADF 11g?
    I have the requirement something like, Dragged the VO as a ADF table on the screen, Added the CreateInsert operation and commit operations on to the screen. User have the abliity to add multiple rows and then what is the best way to save all the records at a time instead of one by one.
    the commit operations allows to store single row at a time.
    Thanks

    Actually, the commit action will commit all outstanding rows. Add a bunch of rows, fill in the data, press commit -> all of the rows are saved. Perhaps you could be more explicit in what you are trying and the results.
    Best,
    John

  • Pulling out two records at a time

    I have a TABLE with multiple records in it, of which i want to pull out two records at a time (as if they were one record), of those records that meet the WHERE criteria. Order is not important. Basically, i have a TABLE of things that wither need processing or have been processed already. I can process two at a time. (In a related search, that i am not up to yet, i can do 20 at a time.) How would i go about doing that?
    My first thought was a CTE with ROW_NUMBER() RN, using CONNECT BY RN = PRIOR RN + 2, and have a sub-query (or joined TABLE) pull out the second record:
    WITH Moo (SELECT ... ROW_NUMBER RN FROM Table WHERE ...)
    SELECT ..., (SELECT ... FROM FROM Moo Moo2 WHERE Moo2.Id = Moo.Id + 1)
    FROM Moo CONNECT BY Id = PRIOR Id + 2;
    Or a join. Is there a better way to approach it?

    Pretty much everything you just said is wrong.
    >
    I generally keep away from CURSORs, as i want the DB to handle the set processing for me, as opposed to a CURSOR which tells the DB how to do it's job.
    >
    If you do any DB queries then you are using cursors. You have the wrong idea about them. All result sets are obtained using a cursor. A cursor does NOT tell a DB how to do a job; that is what the query and execution plan do.
    >
    (And, Tom Kyt's mantra of "You should do it in a single SQL statement if at all possible") But that's just a rule of thumb.
    >
    No - that isn't a rule of thumb. That is exactly what you should do if possible which is what I said. But I also said
    >
    Well the general use is to use SQL instead of PL/SQL but since you already need to use a function you might as well make that function as efficient as possible.
    >
    If you are already using a function then you should get the most bang for the buck from it and make it as efficient as possible.
    >
    If the CURSOR is the most efficient, so be it. But as you point out, if i'm already going to use a CURSOR, i might as well do all the work in the CURSOR LOOP. Why bother switching contexts.
    >
    All queries are done using cursors. It isn't a question of whether they are more efficient; it is the only way possible. I think you are referring to a user creating an explicit cursor and performing explicit manipulation of that cursor. That isn't normally what you want to do.
    A cursor loop is the slowest way to process results especially if all you are doing is row-by-row processing to perform essentially SQL-related work. PL/SQL should be used for the transactional part of the processing. In your case that transactional use is consolidating two records together for specialized processing.
    As for context switches if you perform any PL/SQL you are going to have a context switch: functions, procedures, triggers. The function you already planned to use would have caused a context switch. What I am saying is that if you are going to perform a context switch then you want to maximize the amount of work (transactional work) done in the PL/SQL engine so that you minimize the context switching.
    You still haven't explained exactly why 2 records at a time is any more ideal than 1 or if you could also process 50, 100, or 10000 at a time. Is the limit what needs to be passed somewhere else? What is the reason for a max of two? What exactly are you doing with the data to prepare it before you have to pass it on?
    Bulk collect processing is more efficient, with fewer context switches, if you process 20, 50, or 100 records in the loop at a time.
    See Chap 13 Using Pipelined and parallel Table Functions in the Data Cartridge Dev Guide
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28425/pipe_paral_tbl.htm

  • Return only one record at a time

    I am new to crystal reports so any help would be appreciated.  I have a .net app that is a order processing system.  When the user is in a record, they want to be able to click on a button an open a crystal report showing only that orders details.  I created a crystal report that has the following fields:
    Order ID, Product ID, Unit Price, Sell Price, Hours.
    The Order ID is the primary key in the database.  The report runs fine when clicking the report button in the app, but returns the details for every order in the database.  We just need the details of the order that the user is processing.  How do I setup the report to only show that order's details?  I am using VB 2005 and Crystal v9.
    Edited by: sking on Mar 6, 2009 1:12 AM

    Brian,
    Thank you for all your help.  I have been able to setup the report to return only one record at a time. In my app, when I click the report button the PDF opens perfectly with only one record.  However, when I go to another record and open the PDF it returns the information from the record id that was set as the default parameter value (crReportDocument.SetParameterValue("Orders", 67).  How do I get it to return the report for a different record?  Here is the code I'm using.  I think I'm really close with your suggestions but I'm just missing one step. 
    #Region "CrystalReport"
         ''' <summary>
         '''Override the CrystalReportButton_Click and call DisplayReportAsPDF_CrystalReportButton function
         ''' </summary>
         Public Sub CrystalReportButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
          Dim crReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument
          Dim fileName As String = "test.rpt"
          Try
              If fileName.Substring(1).StartsWith(":\") Then
              crReportDocument.Load(fileName)
          Else
              crReportDocument.Load(Me.Page.MapPath(fileName))
          End If
          Catch ex As Exception
              Dim errMsg As String = ex.Message.Replace(Chr(13).ToString(), "").Replace(Chr(10).ToString(), "")
              errMsg += " Please make sure the dlls for Crystal Report are compatible with the Crystal Report file."
              BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", errMsg)
          End Try
          Try
    Dim paramValue As CrystalDecisions.Shared.ParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue()
               paramValue.Value = "67"
               crReportDocument.SetParameterValue("Orders", 67)
    DisplayReportAsPDF_CrystalReportButton(crReportDocument)
          Catch ex As Exception
              Dim errMsg As String = ex.Message.Replace(Chr(13).ToString(), "").Replace(Chr(10).ToString(), "")
              errMsg += " If this is a deployment machine, make sure network service has permissions to read or write to the windows\temp folder."
              BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", errMsg)
          End Try

  • Getting only a few records at a time.

    Using a Select * from. Is there an option where I get only so many records. This is for a console application. I wanted some thing where it will display only 3 records at a time. And then I have the option of viewing the next 3 and then the next 3 records
    and so on.
    Any one have any ideas.
    Merry Christmas EVERY ONE and thanks to all the members on msdn forums for helping me with my code.
    Joe Moody
    http://www.starfiresoft.com
    Pro-Forums
    Delta Force Barracks
    On the Frontlines

    Thanks. It doesn't matter as long as I can get it to work. The idea is to display 3 records at a time. Then the user should be able to go backward or forward in the list. Let me show you what I have. This will give you some idea on how I have it displaying
    the info.
    SqlCeCommand cm = new SqlCeCommand("SELECT * FROM users", cn);
    //cm.Parameters.AddWithValue("@tooid", num);
    //cm.Parameters.AddWithValue("@fromid", Id);
    SqlCeDataReader rd = cm.ExecuteReader();
    try
    while (rd.Read())
    Door.CursorRight(10);
    Door.WriteLn("|0C___________________________________________________");
    Door.CursorRight(10);
    Door.WriteLn("|0FId |04: |03" + rd["Id"].ToString() + " |0FName |04: |03" + rd["username"].ToString());
    Door.CursorRight(10);
    Door.WriteLn("|0FStatus |04: |03" + rd["status"] + " |0FDate Jointed |04: |03" + rd["joindate"]);
    Door.CursorRight(10);
    Door.WriteLn("|0C___________________________________________________");
    catch (Exception e)
    throw new Exception(e.Message);
    cn.Close();
    This is inside of a do loop. and at the bottom I have it waiting for user input. or the user can quit and return to the main menu.
    Door.WriteLn();
    Door.Write("|07Page |0F<|04||0F> |0FQ|09)|0BQuit |07Choice |04: |0C");
    cc = Char.ToUpper(Door.ReadKey());
    Above is my prompt. This waits for user input. and I use a switch to tell the software what to do. Any way if you want to know what Door.writeLn() is, Think of it like this "Console.Writeline()". This is just a library I use for the kind of programming I
    do.Any help would be great. Thanks and have a safe Xmas.
    Joe.
    http://www.df-barracks.com Delta Force Barracks
    http://www.starfiresoft.com Starfire Software

  • Inserting more data records at a time to a portaldatabase

    Dear SDN's,
    I am working with sql server on JAVA side i.e., as a portal web database.
    I want to insert a level of some 100 records at a time to a database.
    what is the best way of inserting other than entering all the values manually/using a insert program.
    Is there anyway of uploading a data from txt file/Excel  to portal database.
    your help will be appriciated.
    Regards,
    Sireesha.

    Hello Sireesh,
      I am not sure if you are referring to the importing of user details .If that is the case ,then it is possible by using a text file in which you can enter everything
    at a time and do a single import of the file.Pls revert in case of any clarifications  on this.
    Regards
    Vineeth

  • 8 records at a time to table

    Hi All,
    I have to insert 8 records at a time in oracle table using 1 jsp All values come from a single form.every value in a form is a record in table.So even if user does not fill any of field it goes as a null record to oracle .i want to rectify this also .
    Iam using batch statement for that.
    what can be more convinient way for it.
    Thanks in advance

    just to keep it up

  • How To insert Day And Time In flash AS2?

    I want to display Day and time in flash with AS2
    not only that i want to put certain event on certain date and time
    that means
    i have a movie clip with object on it ,when i run it,
    it changes its position
    BUT now i want to change movie clip position on certain date and time
    for eg;
    I have made a simple move clip of firework i want it auto play when it is
    (01.01.2012) (12:00 AM)
    Help Me.....

    user time is easiest.  the following checks if it's between 12am and 1am jan 1, 2012.
    var d:Date=new Date();
    if(d.getMonth()==0&d.getDate()==1&&d.getFullYear()==2012&&d.getHours()<1){
    // fireworks

  • Showing 10 records at a time in a multirecord block

    Hello,
    I have a requirement to show 10 records at a time,consider a table in which
    there are 100 records which is associated to a multirecord block,in order to have a web look and feel I need to show first 10(1 to 10) record on load,when the user presses the button "Next 10 records", I need to replace the first 10 records with new set of 10 records(11 - 20),
    Please note that no of records to be displayed at a time will be 10 and our requirement is avoid scroll bar.
    Any suggestions as to how I need to accomplish the task above.
    Thanks and Regards
    Mohan

    You don't need a special button for this because the user can already navigate using the cursor keys and page up/down keys.
    For cursor keys use the key-up, key-down, key-nxtrec and key-prvrec triggers.
    For page up/down use the key-scrup and key-scrdown triggers.
    I suppose the menu option "Query > Fetch Next Set" (key-nxtset) should operate the same as page down.
    An example of the key-scrdown trigger is thisdeclare
         numrecs integer := get_block_property('EMP',records_displayed);
         toprec integer := get_block_property('EMP',top_record);
         thisrec integer := :system.trigger_record;
    begin
         go_record(toprec + (2 * numrecs) - 1);
         go_record(thisrec + numrecs);
    end;This will advance by as many records are in the block and leave the cursor positioned on the same record relative to the top of the block. Eg if there are 10 rows in the block and you're on the first set then the top record will be 1 and you want to make the new top record 11. So you need to call go_record(20), which makes that the bottom record and 11 the top one.
    You'll need to work out how the form should behave when the number of records in the block is not exactly divisible by the number of records in the data because forms won't allow blank records to pad out the bottom of the block and records_displayed isn't a settable property at runtime. So if there are 10 rows in the block and 103 rows of data then the penultimate page will show records 91-100 and the last page will show records 94-103. Should scrolling back up show record 91 at the top, or 84?
    For the key-down/key-nxtrec trigger you'll probably want something like thisdeclare
         numrecs integer := get_block_property('EMP',records_displayed);
    begin
         if :system.last_record != 'TRUE' then
              if mod(:system.cursor_record,numrecs) = 0 then
                   -- last record in this set
                   go_record(:system.cursor_record + numrecs);
                   go_record(:system.cursor_record - (numrecs - 1));
              else
                   next_record;
              end if;
         end if;
    end;If you're at the bottom of one set it will show the next set and go to the top record, otherwise it will just go to the next record. But again, this breaks down when the number of rows in the block and in the data don't divide up evenly.
    I hope this is enough to get you started.

  • How to record user action?

    Dear All,
    I am trying to build a performance testing tool like jmeter. I want to know how jmeter or any HTTP performance tool records user action. I don't know how to write the action recording code. If anybody knows please help me out.
    The following are the logic behind the jmeter action recording
    1. Turn on the proxy (HTTP in this case). Jmeter starts listening to HTTP traffic to/from the specified URL. It basically acts like a sniffer for the traffic between your client (the browser) and the server IP address.
    2. User starts performing his business process (the activities/requests to the server).
    3. When a request is sniffed/captured by the tool, it immediately creates a code to send the same request (basically an HTTP GET/POST method created).
    4. At the same time it monitors the response from the server and creates a checking code for verifying that the response obtained is correct (This is used further by the tool when we run the test). The response includes the complete HTML data including the Header and Body sections.
    5. All the requests and corresponding responses are captured by the tool and the corresponding code generated automatically.
    6. Once the recording ends, it puts together these snippets to create a complete code which could be further modified by the users so that they can run it in a multi-threaded environment.
    7. Users run the code specifying the number of users (basically threads) to perform a load test on the server. (The code generated would be thread-safe so that there are no overlaps)
    Thanks & regards

    So why not using Jmeter and make you own modification when required
    This is the great benefit of open source community
    Regards,
    Alan Mehio
    London,UK

Maybe you are looking for