Determines whether a visual stimulus is can be dragged and dropped on the screen.
visualstimulus.name.dropSource
Read/Write
boolean
A value of true (or 1) indicates the stimulus is a valid dropSource. A value of false (or 0) indicates it can not be dragged and dropped. Valid drop sources can be dragged and dropped onto other visual stimuli marked as
The following displays the value of dropSource in a text stimulus: The following displays the value of dropSource in an instruction page: The following code shows how to turn on and/or off the dropSource property of a stimulus at the beginning of a trial. In this particular case, only 'dot1' can now be dropped onto the 'target' stimulus even if 'dot2' has been previously set to be a dropSource as well.Examples
<text myText>
/ items= ("dropSource = <% text.myText.dropSource %>")
</text>
<page myPage>
dropsource = <% text.myText.dropSource %>
</page>
<trial foo>
/ inputDevice = dragDrop
/ onTrialBegin = {
shape.dot1.dropSource = true;
shape.dot2.dropSource = false;
}
/ stimulusFrames = [1 = target, dot1, dot2]
/ validResponse = (target)
</trial>