Panel rollOver and rollOut events : Panel Action « Container « Flex






Panel rollOver and rollOut events

Panel rollOver and rollOut events
            
<?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,10) as 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.Panel mouse down effectPanel mouse down effect
2.Register an event handler for the Panel containerRegister an event handler for the Panel container
3.Panel drag and dropPanel drag and drop
4.logs the change event to flashlog.txt each time the user changes panelslogs the change event to flashlog.txt each time the user changes panels