eg:i want a error tooltip showing with a fade in effect.then i found 
some solutions about how to apply effects with tooltip in the help 
document as below:

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; width="600" 
height="600" initialize="app_init();">
    <mx:Script><![CDATA[
        import mx.managers.ToolTipManager;
        public function app_init():void {
            ToolTipManager.showEffect = fadeIn;
        }
    ]]></mx:Script>
    <mx:Fade id="fadeIn" alphaFrom="0" alphaTo="1" duration="1000"/>
    <mx:Button id="b1" label="Click me" toolTip="This is a ToolTip."/>
</mx:Application>

it works for sure,then i try the error tooltip which just show up 
without the fade in effect,the below lines show how i create a error 
tooltip,are they relevent to the failure of the fade in effect?
 
tt=ToolTipManager.createToolTip
('hello',ti.x,ti.y+ti.height,'errorTipBelow');
tt.setStyle('styleName','errorTip');

those lines execute in a button's click handler event function;
and there 's another problem with a normal tooltip effect,the strings 
in a tooltip often show before the effect ended,is there a solution 
to this problem?
thank u for ur precious time and any replies will be greatly 
appreciated.

Reply via email to