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中危险的HTML代码
    一个老总的语录
    php如何优化压缩的图片
    php时间函数time(),date(),mktime()区别
    php中获取网站访客来源的关键词方法
    php获取QQ头像并显示的方法
    php一些常规动态设置与获取
    xss过滤函数
    php获取当月的第一天以及最后一天
    php eval函数一句话木马代码
  • 原文地址:https://www.cnblogs.com/taobataoma/p/1037095.html
Copyright © 2011-2022 走看看