<HTML dir=ltr><HEAD><TITLE>Problems with key press interaction in Decision icon</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16850" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText91385 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>you should handle rootIcon.onKeyDown, don't try and handle it from individual icons.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Paul Swanson<BR><B>Sent:</B> Fri 17/07/2009 19:03<BR><B>To:</B> xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> [Xerte] Problems with key press interaction in Decision icon<BR></FONT><BR></DIV>
<DIV>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>I</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>’</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>m having problems using</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us> <FONT face=Calibri>an</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us> <FONT face=Calibri>onKeyDown</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri> event to move to the next page of a Decision icon. It works on the first page, but on the second page, when you press a key, the Decision icon goes wacko and</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us> <FONT face=Calibri>zips</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri> instantly through the rest of the pages and then seems to loop on the icons that follow</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us> <FONT face=Calibri>the Decision icon.</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us> <FONT face=Calibri>I haven</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>’</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>t even put onKeyDown events yet on the Decision icon pages that zip through</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us> <FONT face=Calibri>–</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri> those have timed events (which I am attempting to change to</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us> <FONT face=Calibri>“</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>press any key to continue</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>”</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri> onKeyDown events</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>)</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>.</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>Properties of my Decision icon:</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<UL dir=ltr>
<UL dir=ltr>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>id: displayPrompts</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>repeat: all</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>branch: sequence</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>pause: 1</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>erase: 0</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>eraseOnExit: 0</FONT></SPAN></P></UL></UL>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>The keypress interaction is NOT perpetual.</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>Properties of the event response:</FONT></SPAN></P>
<UL dir=ltr>
<UL dir=ltr>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>eventName: onKeyDown</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>icon: rootIcon</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>erase: 1</FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us><FONT face=Calibri>exit: 0</FONT></SPAN></P></UL></UL>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>Contents of script icon attached to event response:</FONT></SPAN></P>
<UL dir=ltr>
<UL dir=ltr>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>displayPrompts.nextPage();</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P></UL></UL>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri>Is there some way to set KeyDown to FALSE or something? Any advise appreciated.</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face="Courier New" color=#808080 size=2>_____________________________</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face="Times New Roman"> </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri color=#808080 size=2> </FONT><FONT face="Courier New" color=#808080 size=2>Paul Swanson</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri><BR></FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri color=#808080 size=2> </FONT><FONT face="Courier New" color=#808080 size=2>Instructional Designer</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri><BR></FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri color=#808080 size=2> </FONT><FONT face="Courier New" color=#808080 size=2>Harland Financial Solutions</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri><BR></FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri color=#808080 size=2> </FONT><FONT face="Courier New" color=#808080 size=2>Paul.Swanson@harlandfs.com</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri><BR></FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face="Courier New" color=#808080 size=2>_____________________________</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><FONT face=Calibri> </FONT></SPAN></P>
<P dir=ltr><SPAN lang=en-us></SPAN></P></DIV></BODY></HTML>