RE: [Flashcoders] htmlText and maxscroll

2006-10-19 Thread Jason Lutes
PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Joe Cutting > Sent: Thursday, October 19, 2006 7:29 AM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] htmlText and maxscroll > > Hello, > > I'm trying to restrict text input into a field s

[Flashcoders] htmlText and maxscroll

2006-10-19 Thread Joe Cutting
Hello, I'm trying to restrict text input into a field so that you can only enter as much as will fit into the field and the rest gets cut off. I was using code like textBox.onChanged = function() { while (this.maxscroll>1) { this.text = this.text.substr(0,-1);