Examples

[updated 23/02, wrong link to flashvars.mxml fixed]

Demo

A very simple demo, without any time measurement, just switching letters.

demo.html, demo.swf, demo.mxml

compiled with flex4.6 and scriptingrt034

Intro

A very simple scriptingRT file which can be used as a starting point for new experiments.

intro.html, intro.swf, intro.mxml

compiled with flex 4.5.1 and scriptingrt034

Doubletest

demonstrates setting a maximal time for answering

doubletest.html, doubletest.swf, doubletest.mxml

compiled with flex 4.6 and scriptingrt034, corrected and updated 6.2.12

Feedback

demonstrates adding feedback

feedback.html, feedback.swf, feedback.mxml

compiled with flex4.1 and scriptingrt034. Note that compiling with flex4.6 shows a bug: the first feedback is not correctly located.

JavaScript External Interface

shows how to access JavaScript from ScriptingRT

saveTest.html, saveTest.swf, saveTest.mxml

Note that because of security restrictions, this will probably not run correctly when executed locally, only when stored on a server.

compiled with flex4.6 and scriptingrt034

Flashvars

flashvars.html, flashvars.swf, flashvars.mxml

shows getting data from html to scriptingRT using flashvars. see also running example with qualtrics code

compiled with flex4.6 and scriptingrt034

MTurk-Qualtrics Template

very similar to the flashvars example, taking in mtwid (mturkworkerid) and mturkcode (to be given back to worker by qualtrics).

mturk.html, mturk.swf, mturk.mxml

qualtrics survey that accepts the workerID in the URL: http://isctecis.us2.qualtrics.com/SE/?SID=SV_bOVwgxx4d2aFvJG&mtwid=99999

both mturk.html and the qualtrics survey use swfobject for embedding the swf.

compiled with flex4.6 and scriptingrt034

Branching

shows how to implement branching (still very complicated, will be easier in future versions)

branching.html, branching.swf, branching.mxml

compiled with flex4.6 and scriptingrt034

IAT

iat_test.html, iat_test.swf, iat_test.mxml

by Claudía Simão

Note: This iat is merely meant as a demo. The mxml does not comply with the latest version of scriptingrt syntax. In particular, type is now a property of item, not of frame. Before compiling this mxml with scriptingrt034.swc, you would have to change this for each item.

2 thoughts on “Examples

  1. [...] project – We develop and use tools for online psychological research. HomeBugsDownloadExamplesForumTeamWorkshop2012 Feb 07 2012 Leave a comment By thomaswolfgangschubert [...]

  2. [...] project – We develop and use tools for online psychological research. HomeBugsDownloadExamplesForumTeamWorkshop2012 Feb 08 2012 Leave a comment By thomaswolfgangschubert [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 167 other followers