Mega Code Archive

 
Categories / Flex / Components
 

Use an initialization function to set the text property to a string that contains these characters

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"     initialize="initText()">     <mx:Script>         public function initText():void {              myText.text=" \n, \t, &lt;, greater than, &gt;, ampersand, &amp;, and apostrophe, ',    characters.";          }     </mx:Script>     <mx:Text width="450" id="myText" initialize="initText();" /> </mx:Application>