Search code examples
cssapache-flexhalo

Flex - Custom tooltip style for a single component


How can we customize the background and font color of a single instance of a tooltip for one component? (Without changing all tooltips in the application.)

This is needed for the HALO component set (4.1 SDK), not Spark (css methods preferred).


Solution

  • Created a named style, using styles that are applicable to the ToolTip component; and when you create the ToolTip specify that style.

    You can read these instructions for customizing a ToolTip.

    Basically, listen to the toolTipShown event and set the styleName on the toolTip.