flex 动画笔记
2024-09-07 07:33:46
1、不涉及到组件宽度和高度变化的
如果类似showEffect等属性不好使的,直接使用hideEffect.end(); showEffect.play();等这样的用法。
2、涉及到组件宽度和高度变化的
在执行动画期间,需要把显示区域的visible设置成false。
<s:Parallel duration="500" id="showEffect" target="{window}" effectEnd="sEffectEnd()">
<s:children>
<s:Move xFrom="{FlexGlobals.topLevelApplication.width-50}" yFrom="50"
xTo="{FlexGlobals.topLevelApplication.width/2-375}" yTo="{FlexGlobals.topLevelApplication.height/2-275}" />
<s:Resize widthFrom="0" widthTo="750" heightFrom="0" heightTo="550"/>
</s:children>
</s:Parallel>
<s:Parallel duration="500" id="hideEffect" target="{window}" effectEnd="hEffectEnd()">
<s:children>
<s:Move xTo="{FlexGlobals.topLevelApplication.width-50}" yTo="50" />
<s:Resize widthTo="0" heightTo="0"/>
</s:children>
</s:Parallel>
protected function basewidget1_creationCompleteHandler():void
{
content.visible=false;
hideEffect.end();
showEffect.play();
}
private function sEffectEnd():void
{
content.visible=true;
}
private function hEffectEnd():void
{
PopUpManager.removePopUp(window);
AppEvent.dispatch(AppEvent.WIDGET_CLOSE,widgetId);
}
private function closeHandler():void
{
content.visible=false;
showEffect.end();
hideEffect.play();
}
最新文章
- 学习一下Fiddler的强大
- React Native 弹性布局FlexBox
- Java-马士兵设计模式学习笔记-责任链模式-模拟处理Reques Response
- 《Linux命令行与shell脚本编程大全》 第二十二章 学习笔记
- iOS9 App Thinning(应用瘦身)功能介绍
- OpenGL: 环境配置和图元的绘制
- HTML5 Web SQL Database 与 Indexed Database 的 CRUD 操作
- Redmine数据库备份及搬家
- Some Error
- 详解ebs接口之客户配置文件导入(一)
- iOS Password AutoFill开发指南
- Spring的IOC注解开发入门1
- Pandas 学习记录(一)
- python入门(二):isinstance、内置函数、常用运算等
- 总结一下搭建简单Web服务器的一些方法
- AngularJS 承诺 Promise
- Open Credit System(UVA11078)
- jsp连接数据库的乱码问题 servlet请求参数编码处理get post
- poj 1274 The Prefect Stall - 二分匹配
- MaxScript调用DotNet时命名空间的问题
热门文章
- iOS 11之Vision人脸检测
- 网页抓取工具Teleport Ultra简介及如何使用
- .Net Framework 与 SQL Server 2005 混乱的时间最大最小值
- 安装Reshaper后Intellisense失效
- Atitit.5gl&#160;第五代语言编程语言&#160;PROLOG教程&#160;&#160;人工智能语言的标准&#160;与实现
- 不同手机根据坐标计算控件、图片的像素,px 与 dp, sp换算公式?
- 在Ubuntu下利用Eclipse开发FFmpeg配置小结
- HDOJ 4923 Room and Moor
- NSIS 变量
- Win7下IIS的安装与配置