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 ,如需转载请自行联系原作者



相关文章
|
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...
1158 0
|
C++ Windows
<转>Developing Custom Draw Controls in Visual C++
原谅链接:http://msdn.microsoft.com/en-us/library/ms364048(v=vs.80).aspx     Visual Studio 2005 Tom ArcherProgram Manager, Microsoft January 2006 Applie...
1328 0
|
iOS开发
iOS 7 Pushing the Limits Notes - create a layer like notification center&#39;s or control center&#39;s background
Problem: How to create a layer that looks like your notification center's or control center's background   Solution: Using UIImage+ImageEffects to...
797 0
|
XML API Android开发
Creating Apps With Material Design —— Defining Custom Animations
转载请注明 http://blog.csdn.net/eclipsexys 翻译自Developer Android,时间仓促,有翻译问题请留言指出,谢谢 定义动画 在材料设计动画让用户与您的应用程序进行交互时,为他们的行为提供反馈,并提供可视化的连续性。
823 0
|
前端开发 Java 开发工具
43 Hot Flex and ActionScript 3.0 APIs, tips and tools for Autumn 2008
Sean Moore Bio 说道:秋天又一次来临了,是时候回顾一下2008年最热门的Flex和ActionScript 3.0 APIs,技巧和工具了,下面是我的总结,收集的比较全,Flex开发必备,欢迎补充。
1383 0

热门文章

最新文章