Adding animations and effects to Flex tool tips (转载)

news/2024/7/6 1:58:42
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 >

 
转自: http://www.cnblogs.com/taobataoma/archive/2008/01/13/1037095.html

转载于:https://www.cnblogs.com/wuhenke/archive/2010/01/09/1642755.html


http://www.niftyadmin.cn/n/4303175.html

相关文章

递规法遍历xml树的属性和节点值

注&#xff1a; function xml2javascript(xml_name, data) //参数xml_name: xml文档文件名,data&#xff1a;存储数据的数组对象名 转换成功后调用数组&#xff0c;基本按照dom的调用方法&#xff0c;只不过将()转换为[] <SCRIPT LANGUAGE"JavaScript"> /*** …

Android This view is not constrained, it only has designtime positions 解决办法(不同版本AS)

在Android studio中使用ConstraintLayout布局时&#xff0c;再次使用其他的控件时&#xff0c;会报异常&#xff0c;控件下有红色的波浪线&#xff0c;问题是View没有被约束&#xff0c;需要添加约束。   这个时候要注意的是&#xff0c; 当你的AS版本是3.X以前的版本时&…

android.view.InflateException: Binary XML file line #0: Error inflating class unknown 解决办法

项目跑成功了&#xff0c;打开后进入一个activity时出问题&#xff0c;崩溃&#xff0c;报错   可以将问题定位在XML文件出了问题。   出错误的地方大概率是下面几种情况&#xff0c;可以根据错误日志进行排查。 首先重构一下项目&#xff0c;rebuild project&#xf…

[C#]c#面试笔试题(一)

一.填空题 1.c#中的三元运算符是_____? 2.当整数a赋值给一个object对象时&#xff0c;整数a将会被_____? 3.类成员有_____种可访问形式&#xff1f; 4.public static const int A1;这段代码有错误么&#xff1f;是什么&#xff1f; 5.float f-123.567F; int i(int)f; …

MapReduce数据流(三)

额外的MapReduce功能 图4.6 插入了Combiner的MapReduce数据流  Combiner&#xff1a;前面展示的流水线忽略了一个可以优化MapReduce作业所使用带宽的步骤&#xff0c;这个过程叫Combiner&#xff0c;它在Mapper之后Reducer之前运行。Combiner是可选的&#xff0c;如果这个过程…

[C#]c#面试笔试题(二)

一、选择填空题&#xff08;每空2分&#xff0c;共60分&#xff09; 1.在对SQL Server 数据库操作时应选用&#xff08;&#xff09;。 a)SQL Server .NET Framework 数据提供程序&#xff1b; b)OLE DB .NET Framework 数据提供程序&#xff1b; c)ODBC .NET Framework 数据提…

Android Edittext 关掉软键盘自动弹出

在开发中&#xff0c;遇见了在这样的需求&#xff0c;打开一个页面有一个EditText&#xff0c;进入都还没加载利索就自动打开了软键盘&#xff0c;不能够第一眼看到整个页面的设计&#xff0c;感觉很不友好&#xff0c;需要将软键盘的自动打开关掉。      法&#xff11;…

[C#]C#面试题笔试题(三)

1、C#中 property 与 attribute的区别&#xff0c;他们各有什么用处&#xff0c;这种机制的好处在哪里&#xff1f; property和attribute汉语都称之为属性。不过property是指类向外提供的数据区域。而attribute则是描述对象在编译时或运行时属性的。这两者是有本质区别的。 2…