Set HTMLText With Initialize event : Event « Event « Flex
- Flex
- Event
- Event
Set HTMLText With Initialize event

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#ffffff">
<mx:Script>
private function initText():void
{
htmlLabel.htmlText = "This text <b>is bold</b>";
}
</mx:Script>
<mx:Label id="htmlLabel" initialize="initText()"/>
</mx:Application>
Related examples in the same category