How to check for and remove a newline (\n) in the first line of a text field in actionscript?
Posted
by Steven
on Stack Overflow
See other posts from Stack Overflow
or by Steven
Published on 2010-06-17T01:16:23Z
Indexed on
2010/06/17
1:22 UTC
Read the original article
Hit count: 231
In the script, sometimes a newline is added in the beginning of the text field (am using a textArea in adobe flex 3), and later on that newline might need to be removed (after other text has been added). I was wondering how to check if there is a newline at the beginning of the text field and then how to remove it. Thanks in advance.
© Stack Overflow or respective owner