AS3 Multiline Input Textfields contain one default newline.

 Oct, 24 - 2008   1 comment   Uncategorized

Weird note of the day. If you place a multiline input Textfield on the stage (as opposed to creating it with the class constructor), it will contain a newline by default rather than the expected null. Simply reset it to proceed normally:
myTextField.text = ""

Related articles

 Comments 1 comment

  • Aditya says:

    was looking on how to detect the newline in the first place
    found out its hard return ‘\r’while i stumbled upon this.

    Thats a neat bit of info to know.



  • Leave a Reply

    Your email address will not be published. Fields with * are mandatory.