[Xerte] Flash - that way lies madness

Dave Burnett d_b_burnett at hotmail.com
Wed Dec 1 16:56:32 GMT 2010



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?







 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101201/09b37ba7/attachment.html


More information about the Xerte mailing list