<font size=2 face="sans-serif">Hi Patrick,</font>
<br>
<br><font size=2 face="sans-serif">thanks for your answer. So I think everything
that is located inside an interaction icon is considered as a response?!</font>
<br><font size=2 face="sans-serif">I'm not sure about responses.status,
where comes this from?</font>
<br>
<br><font size=2 face="sans-serif">Peter</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Patrick Lockley <Patrick.Lockley@nottingham.ac.uk></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">"Xerte discussion list" <xerte@lists.nottingham.ac.uk></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">02/17/2009 04:20 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">RE: [Xerte] How to use the judge function
correctly</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">xerte-bounces@lists.nottingham.ac.uk</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 color=blue face="Verdana">Hello</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Verdana">I don't know how this function
works, but I can possibly help as thus</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Verdana">INTERACTION.prototype.judge
= function() {<br>
//check that each response whose correct is not undefined<br>
//has the same status as correct<br>
for (var i = 0; i<this.responses.length; i++) {<br>
if (this.responses[i].correct != undefined) {<br>
//trace(this.responses[i].correct +" " +this.responses[i].status);<br>
if (this.responses[i].correct != this.responses[i].status) {<br>
//doesn't match - user cannot have matched all correctly<br>
return false;<br>
}<br>
}<br>
}<br>
return true;<br>
};</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Verdana">That is the flash source code
of the function, so it looks like you need to set responses for the interactions
for a judge to work.</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Verdana">Pat</font>
<br>
<br>
<hr><font size=2 face="Tahoma"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk
[</font><a href="mailto:xerte-bounces@lists.nottingham.ac.uk"><font size=2 face="Tahoma">mailto:xerte-bounces@lists.nottingham.ac.uk</font></a><font size=2 face="Tahoma">]
<b>On Behalf Of </b>Peter Huppertz<b><br>
Sent:</b> 17 February 2009 15:07<b><br>
To:</b> xerte@lists.nottingham.ac.uk<b><br>
Subject:</b> [Xerte] How to use the judge function correctly</font><font size=3><br>
</font>
<br><font size=2 face="sans-serif">Hi List,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
another beginner's question. Imagine the following structure:</font><font size=3>
</font><font size=2 face="sans-serif"><br>
-- page 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
---- interaction: id=question1</font><font size=3> </font><font size=2 face="sans-serif"><br>
-------- button 1: correct=0</font><font size=3> </font><font size=2 face="sans-serif"><br>
-------- button 2: correct=0</font><font size=3> </font><font size=2 face="sans-serif"><br>
-------- button 3: correct=1</font><font size=3> </font><font size=2 face="sans-serif"><br>
-- page 2</font><font size=3> </font><font size=2 face="sans-serif"><br>
---- script: question1.judge()</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
The script returns undefined, regardless of what the user clicks. I also
tried false and true instead of 0 and 1. What's wrong?</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Peter Huppertz</font><tt><font size=2>_______________________________________________<br>
Xerte mailing list<br>
Xerte@lists.nottingham.ac.uk<br>
</font></tt><a href=http://lists.nottingham.ac.uk/mailman/listinfo/xerte><tt><font size=2>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>