Panel rollOver and rollOut events : Panel Action « Container « 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 » Container » Panel ActionScreenshots 
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,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.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
w___ww__._jav__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.