Adding animations and effects to Flex tool tips

  1. 云栖社区>
  2. 博客>
  3. 正文

Adding animations and effects to Flex tool tips

技术小胖子 2018-03-24 17:57:17 浏览2033 评论0

摘要: The following example shows how you can add custom animation and effects when displaying a tool tip in Flex <?xml version="1.

The following example shows how you can add custom animation and effects when displaying a tool tip in Flex
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout
="vertical"
        verticalAlign
="middle"
        backgroundColor
="white"
        creationComplete
="init()">

    
<mx:Script>
        
<![CDATA[
            import mx.managers.ToolTipManager;

            private function init():void {
                ToolTipManager.hideDelay = 2000;
                ToolTipManager.showEffect = rotate;
                ToolTipManager.hideEffect = zoom;
            }
        
]]>
    
</mx:Script>

    
<mx:Style>
        @font-face {
            src: url("./fonts/arial.ttf");
            fontFamily: "ArialEmbedded";
        }

        ToolTip {
            fontFamily: ArialEmbedded;
        }
    
</mx:Style>

    
<mx:Rotate id="rotate" />
    
<mx:Zoom id="zoom" />

    
<mx:Button label="Roll over me to see tool tip"
            toolTip
="The quick brown fox" />

</mx:Application>

    本文转自 OldHawk  博客园博客,原文链接:http://www.cnblogs.com/taobataoma/archive/2008/01/13/1037095.html,如需转载请自行联系原作者



【云栖快讯】阿里巴巴小程序繁星计划,20亿补贴第一弹云应用立即开通购买,限量从速!  详情请点击

网友评论