Create Tooltip with ToolTipManager : ToolTipManager « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » ToolTipManagerScreenshots 
Create Tooltip with ToolTipManager
Create Tooltip with ToolTipManager
      
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    import mx.managers.ToolTipManager;
    import mx.controls.ToolTip;
    public var myTip:ToolTip;

    private function createBigTip():void {
       var s:String = "tooltip";
       myTip = ToolTipManager.createToolTip(s,10,10as ToolTip;
       myTip.setStyle("backgroundColor",0xFF0000);
       myTip.width = 200;
       myTip.height = 200;
    }
    private function destroyBigTip():void {
       ToolTipManager.destroyToolTip(myTip);
    }
  </mx:Script>
    <mx:Panel rollOver="createBigTip()" rollOut="destroyBigTip()">
        <mx:Button label="OK" toolTip="this is a test"/>
    </mx:Panel>
</mx:Application>

   
    
    
    
    
    
  
Related examples in the same category
1.Enable tooltip with ToolTipManagerEnable tooltip with ToolTipManager
2.Set tooltip show delay with ToolTipManagerSet tooltip show delay with ToolTipManager
3.Set tooltip hide delay with ToolTipManagerSet tooltip hide delay with ToolTipManager
4.Change value of ToolTipManager.currentToolTip.text to a valueChange value of ToolTipManager.currentToolTip.text to a value
5.Remove a tooltip with ToolTipManagerRemove a tooltip with ToolTipManager
6.Use ToolTipManager to create an error tipUse ToolTipManager to create an error tip
7.Set time that a tool tip is visible with ToolTipManagerSet time that a tool tip is visible with ToolTipManager
8.Use Application's initialize event to set the starting values for the ToolTipManagerUse Application's initialize event to set the starting values for the ToolTipManager
www__._j___a_v__a___2__s___.__c_o___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.