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 >

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



相关文章
|
7天前
【echarts报错】: ‘normal‘ hierarchy in itemStyle has been removed since 4.0.
【echarts报错】: ‘normal‘ hierarchy in itemStyle has been removed since 4.0.
|
图形学
unity报错之Material doesn‘t have a texture property ‘_MainTex
Material doesn‘t have a texture property ‘_MainTex
unity报错之Material doesn‘t have a texture property ‘_MainTex
very important tip - when to add / in binding path Fiori
very important tip - when to add / in binding path Fiori
very important tip - when to add / in binding path Fiori
|
Web App开发
How to trouble shoot if there is no entityset available when creating a tile
How to trouble shoot if there is no entityset available when creating a tile
How to trouble shoot if there is no entityset available when creating a tile
使用工具快速找出custom work center使用的ui component
使用工具快速找出custom work center使用的ui component
108 0
使用工具快速找出custom work center使用的ui component
|
C#
Beginner’s Tutorial: 3D Line and Border Effects in XAML
This mini-tutorial might be for you if you’re having troubles finding the right line colors to achieve simple 3D effects like these:   The solutio...
1110 0