Use the ToolTipManager to create a tooltip on your event, like this (from ToolTips chapter of “Flex 2.0 Developer’s Guide”):
 
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="createBigTip(event)">
    <mx:Script><![CDATA[
    import mx.managers.ToolTipManager;
    import mx.controls.ToolTip;
 
    public var myTip:ToolTip;
 
    private function createBigTip():void {
        var s:String = "These buttons let you save, exit, or continue with the
            current operation."
        myTip = ToolTipManager.createToolTip(s,10,10);
        myTip.setStyle("backgroundColor",0xFFCC00);
        myTip.width = 150;
        myTip.height = 200;
    }
 
    private function destroyBigTip():void {
        ToolTipManager.destroyToolTip(myTip);
    }
    ]]></mx:Script>
    <mx:Panel rollOver="createBigTip()" rollOut="destroyBigTip()">
    </mx:Panel>
</mx:Application>

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Ronan Bottini
Sent: Monday, May 29, 2006 9:34 AM
To: [email protected]
Subject: RE: [flexcoders] How to make a components to show its tooltip without point mouse to it?

 

Sam:
When an onchange event in a cell renderer takes place.

 


De: [email protected] [mailto:[email protected]] En nombre de Samuel Reuben
Enviado el: Lunes, 29 de Mayo de 2006 10:20 a.m.
Para: [email protected]
Asunto: Re: [flexcoders] How to make a components to show its tooltip without point mouse to it?

 

do you want the tooltip displayed permanently or displayed when you do something?

 

-sam

 

On 5/26/06, Ronan Bottini <[EMAIL PROTECTED]> wrote:

Hi.
How to make a components to show its tooltip without point mouse to it?

Thanks.

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


SPONSORED LINKS

Web site design development

Computer software development

Software design and development

Macromedia flex

Software development best practice

 

 


YAHOO! GROUPS LINKS

 

 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to