[Xerte] Flash - that way lies madness

Dave Burnett d_b_burnett at hotmail.com
Wed Dec 1 19:36:28 GMT 2010



I can use something other than rootIcon for onKeyDown?
I've tried the INT id and the TE id and rs with onKeyDown but get nothing.



From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 1 Dec 2010 18:05:02 +0000
Subject: RE: [Xerte] Flash - that way lies madness











handle onKeyDown for the text field and do
 
if (Key.isDown(Key.ENTER))
{
  //add one to your count
}
 
You' ll have to handle the rest of the response in the event handler.
 
Should work I think.
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 01 December 2010 16:56

To: Xerte list

Subject: [Xerte] Flash - that way lies madness







Regular text entry set to multi-line.



Goal: determine when user has hit return 3 times.



debug:

debug('length ' + icon.parentNode.clip().text.length);

debug('split ' + icon.parentNode.clip().text.split(chr(13)).length);



If I simply hit return 3 times:



length 1

split 2

length 2

split 3

length 3

split 4



// as expected.



If I type a letter each time, then hit return each of those 3 times:



length 1

split 1

length 3

split 2

length 5

split 3



// it will not register that 3rd return *until I type a character* on that 4th line.





sigh.

Any ideas?















 






This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101201/b40c5b11/attachment.html


More information about the Xerte mailing list