running accuracy display

18 views
Skip to first unread message

Tyler Peckenpaugh

unread,
Jul 26, 2014, 4:30:05 PM7/26/14
to scrip...@googlegroups.com
Is it possible to access the participant's current accuracy up to a given point? That is, I want to display my participants' accuracy on a secondary task to them as they continue forward, e.g. on each slide, "You are at XYZ% accuracy."

I'm not sure how to access response data within my mxml markup.

Thanks for any advice.

Thomas Schubert

unread,
Aug 12, 2014, 10:17:33 AM8/12/14
to scrip...@googlegroups.com
maybe this examples helps: http://reactiontimes.wordpress.com/2013/03/26/counterbalancing-in-scriptingrt-and-new-version-0352/

the example uses items.correct and items.total. in addition, you can access

items.incorrect, items.miss, items.sum, items.avg, items.count

if I remember correctly....

t
--
You received this message because you are subscribed to the Google Groups "scriptingrt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scriptingrt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
thomas schubert
department of psychology, university of oslo 
schu...@igroup.org
http://www.igroup.org/schubert/

Tyler Peckenpaugh

unread,
Aug 12, 2014, 11:44:22 AM8/12/14
to scrip...@googlegroups.com

Awesome, thank you!!!

You received this message because you are subscribed to a topic in the Google Groups "scriptingrt" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scriptingrt/IJW3tx4R4zQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scriptingrt...@googlegroups.com.

Tyler Peckenpaugh

unread,
Sep 15, 2014, 5:14:40 PM9/15/14
to scrip...@googlegroups.com
Hi again,

I am hoping to use something like the following function to set the width of a canvas object: 

// return value is a percentage of 300px width
private function checkAcc(items:Object):Number{
var acc:Number;
if(items.total > 0){
acc = (Math.round((items.correct / items.total)*100))*3;
}else{
acc = 300;
}
return acc;
}


However, I am having trouble getting it to work. Specifically, I don't know what to pass as a parameter to the function so that I can access item.total and item.correct. For example:

<mx:Canvas id='feedbackbar' width="{checkAcc(param)}" height="20" verticalCenter="280" horizontalCenter="0" backgroundColor="0x00FF00"/>

Thanks for any advice,
Tyler

--
You received this message because you are subscribed to a topic in the Google Groups "scriptingrt" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scriptingrt/IJW3tx4R4zQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scriptingrt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages