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>

  • 相关阅读:
    PHP数组的升序降序函数
    overflow样式修改插件——jscrollpane
    li标签之间的空隙问题(转)
    纯CSS制作三角(转)
    图片放大插件——elevatezoom
    git常用命令笔记
    求数组子序列和最大值
    Vim快速入门
    C++求两个整数的最大公约数和最小公倍数
    实验楼-4-Linux文件权限
  • 原文地址:https://www.cnblogs.com/taobataoma/p/1037095.html
Copyright © 2011-2022 走看看