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();
}

最新文章

  1. 学习一下Fiddler的强大
  2. React Native 弹性布局FlexBox
  3. Java-马士兵设计模式学习笔记-责任链模式-模拟处理Reques Response
  4. 《Linux命令行与shell脚本编程大全》 第二十二章 学习笔记
  5. iOS9 App Thinning(应用瘦身)功能介绍
  6. OpenGL: 环境配置和图元的绘制
  7. HTML5 Web SQL Database 与 Indexed Database 的 CRUD 操作
  8. Redmine数据库备份及搬家
  9. Some Error
  10. 详解ebs接口之客户配置文件导入(一)
  11. iOS Password AutoFill开发指南
  12. Spring的IOC注解开发入门1
  13. Pandas 学习记录(一)
  14. python入门(二):isinstance、内置函数、常用运算等
  15. 总结一下搭建简单Web服务器的一些方法
  16. AngularJS 承诺 Promise
  17. Open Credit System(UVA11078)
  18. jsp连接数据库的乱码问题 servlet请求参数编码处理get post
  19. poj 1274 The Prefect Stall - 二分匹配
  20. MaxScript调用DotNet时命名空间的问题

热门文章

  1. iOS 11之Vision人脸检测
  2. 网页抓取工具Teleport Ultra简介及如何使用
  3. .Net Framework 与 SQL Server 2005 混乱的时间最大最小值
  4. 安装Reshaper后Intellisense失效
  5. Atitit.5gl&#160;第五代语言编程语言&#160;PROLOG教程&#160;&#160;人工智能语言的标准&#160;与实现
  6. 不同手机根据坐标计算控件、图片的像素,px 与 dp, sp换算公式?
  7. 在Ubuntu下利用Eclipse开发FFmpeg配置小结
  8. HDOJ 4923 Room and Moor
  9. NSIS 变量
  10. Win7下IIS的安装与配置