how to make text line break in flex textarea

I have a string

var s:String = "This is a line \n This is another line.";
this.txtHolder.text = s; //.text has \n, not a new line

and i want to put it into a text area, but the new line character is ignored. How can i ensure that the text breaks where i want it to when its assigned?


on flex, while coding '\n' is working well.. on mxml or any xml to define a line just use '
' line entity.. i mean :


gives us

lazy fox

Need Your Help

Javascript alert not displaying diacritics in a php contact form

php javascript alert contact-form

Found this simple contact form on the internet. Everything is ok, but the alert can't seem to display some characters that are specific for my language like ā ē š ž ī ļ.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.