zoukankan      html  css  js  c++  java
  • Adding animations and effects to Flex tool tips (转载)

    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>

     
  • 相关阅读:
    L3-1 二叉搜索树的结构 (30 分)
    L3-2 森森快递 (30 分)(贪心+线段树/分块)
    三分(凸函数)
    (三分入门)(凹函数)
    Print Article(斜率DP入门+单调队列)
    PTA 逆散列问题 (30 分)(贪心)
    二叉树遍历相关
    7-5 堆中的路径 (25 分)
    Grouping ZOJ
    D
  • 原文地址:https://www.cnblogs.com/wuhenke/p/1642755.html
Copyright © 2011-2022 走看看