Avg. Rating 3.5

Problem

the ToolTip can't support HtmlText

Solution

override protected function commitProperties to set the textField.htmlText

Detailed explanation

package sjd.controls
{
    import mx.controls.ToolTip;

    public class HtmlToolTip extends ToolTip
    {
        override protected function commitProperties():void
        {
            super.commitProperties();
   
            textField.htmlText = text
        }
    }
}


after load the application, set the HtmlToolTip into using:

ToolTipManager.toolTipClass = HtmlToolTip;


Report abuse

Related recipes