AS3 Prevent Multiline in TextArea Component


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

There is no built-in way of preventing the user pressing the Enter Key in a TextArea Component (in a standard TextField you can set multiline = false). Instead, you need to listen for the CHANGE event and then remove the Carriage Retun (\r) character.

URL: http://stackoverflow.com/questions/1239891/as3-textarea-component-disallow-user-to-enter-a-line-break

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.