Limit the number of lines in an input textfield


/ Published in: ActionScript 3
Save to your folder(s)

I made one adjustment to the code because I was getting one scrolling extra line.

inputfield.textHeight > inputfield.height
to:

inputfield.textHeight >= inputfield.height

URL: http://blog.designreact.co.uk/2010/06/as3-limit-the-number-of-lines-in-an-input-textfield/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.