Button控件的creationCompleteEffect样式.
示例:
刷新查看效果.
代码:

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white">

<mx:Button id="button"
            label="Button"
            creationCompleteEffect="Zoom" />

</mx:Application>

你也可以通过css设置:

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white">

<mx:Style>
        Button {
            creationCompleteEffect: Zoom;
        }
    </mx:Style>

<mx:Button id="button"
            label="Button" />

</mx:Application>

也可以通过as的方法设置:

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/06/17/setting-a-creation-complete-effect-on-a-button-control-in-flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();">

<mx:Script>
        <![CDATA[
            import mx.controls.Button;
            import mx.effects.Zoom;

private var button:Button;

private function init():void {
                button = new Button();
                button.label = "Button";
                button.setStyle("creationCompleteEffect", Zoom);
                addChild(button);
            }
        ]]>
    </mx:Script>

</mx:Application>

设置Button控件创建完毕时触发的事件.相关推荐

  1. Button控件的基本使用(初识封装、减少代码冗余性、代码优化)

    Button是程序用于和用户进行交互的一个重要控件,它的配置属性和TextView差不多,这里我们可以注意观察一下Button众多属性中的两种: 1.属性名android:textAllCaps    ...

  2. [MFC]MFC的BUTTON控件响应鼠标按下和抬起

    有效方法: BOOL CButtontestDlg::PreTranslateMessage(MSG* pMsg) {  // TODO: Add your specialized code here ...

  3. ConstraintLayout中依赖的控件为GONE时,如何保持距离

    背景: 在ConstraintLayout中,如果设置了一个控件(A)依赖于另一个控件(B),当控件B设置为GONE时,A控件的位置就会发生变化.为了保持适当的效果,需要设置此种情况下A控件相对于父控 ...

  4. UI基础控件创建(UILabel、UITextField、UIButton)

    UI基础控件创建(UILabel.UITextField.UIButton) UILabel //UILabel;UILabel *nameLabel = [[UILabel alloc] init] ...

  5. 【第3版emWin教程】第55章 emWin6.x按钮Button控件自定义回调函数,实现各种按钮效果

    教程不断更新中:链接 第55章       emWin6.x按钮Button控件自定义回调函数,实现各种按钮效果 本章节为大家讲解按钮控件自定义回调函数,通过其回调函数就可以实现各种按钮效果.这方面的 ...

  6. 【第3版emWin教程】第53章 emWin6.x的按钮Button控件

    教程不断更新中:链接 第53章       emWin6.x的按钮Button控件 本章节为大家讲解emWin支持的按钮控件,按钮控件还是非常实用的,实际项目中用到的地方很多,控件的本质就是窗口,或者 ...

  7. Python Tkinter教程(二)——Label控件、Frame控件、Button控件的完整参数和所有方法及详细用法

    >>>[上节回顾:tkinter编程基本步骤.窗口基本属性及Toplevel控件的使用]<<< Python Tkinter教程(二)         这篇博客将详 ...

  8. 使用 HTML 控件创建出色的 Metro 风格应用

    原文来自:http://www.devdiv.com/home.php?mod=space&uid=6998&do=blog&id=11370 使用 Windows 8,您可以 ...

  9. SAP UI5 进阶 - XML 视图里定义的 UI 控件,运行时实例化的技术细节剖析试读版

    一套适合 SAP UI5 初学者循序渐进的学习教程 作者简介 Jerry Wang,2007 年从电子科技大学计算机专业硕士毕业后加入 SAP 成都研究院工作至今.Jerry 是 SAP 社区导师,S ...

最新文章

  1. Linux 空格转换行
  2. 程序员微信头像_这才是程序员的内心独白
  3. cocos label html文本,【cocos2dx】创建简单的文字Label——BMFont
  4. vscode新建文件的快捷键_Mac怎么创建txt文件?如何设置新建txt的快捷键?
  5. Python程序设计学习笔记-语句与格式化输出
  6. 常见浏览器bug以及解决方法
  7. ADAS工程师的成长之路——ACC法规(ISO 15622-2018 — Adaptive cruise control systems)
  8. pdf转换成word转换器免费下载
  9. GIN日志和日志格式
  10. selenium实例登陆拉勾网 外加手动验证验证码
  11. 编程经验:关于如何在自己的网站或博客添加CNZZ站长统计功能
  12. Linux_加密和安全详细介绍
  13. 《软技能-代码之外的生存指南》————第二篇 自我营销
  14. Android控制wifi开关
  15. 域格4G模块专网设置说明
  16. 计算机一级b和小高考,小高考B是几分相关内容
  17. 【测试】软件测试岗位与职业发展
  18. java程序员22年终总结以及23年展望
  19. python 绘制函数曲线图
  20. 树莓派从选购到入门一条龙

热门文章

  1. iOS之runtime详解api(三)
  2. SpringMVC 返回json
  3. LAMP搭建phpMyadmin管理平台以及wordpress个人博客系统
  4. RSA遭骇 Token 换?不换?
  5. Python基础02-Python基础
  6. github pages_使用GitHub Pages和Lighthouse增强您的开发人员产品组合
  7. gulp-sass_如果您是初学者,如何使用命令行设置Gulp-sass
  8. ECMAScript 6 模板字面量的常见用法
  9. js 实现精确加减乘除运算之BigDecimal.js
  10. SpringMvc+ajax实现文件跨域上传