Use ActionScript String to insert a newline character : Spark component « Components « Flex
- Flex
- Components
- Spark component
Use ActionScript String to insert a newline character

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[Bindable]
public var myText:String = "A" + "\n" + "B";
</mx:Script>
<mx:TextArea width="100%" text="{myText}" />
</mx:Application>
Related examples in the same category