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, <, greater than, >, ampersand, &, and apostrophe, ', characters.";
}
</mx:Script>
<mx:Text width="450" id="myText" initialize="initText();" />
</mx:Application>
Related examples in the same category