-
Flex动画效果的用法--Resize
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
- <s:layout>
- <s:BasicLayout/>
- </s:layout>
- <fx:Declarations>
- <!-- 将非可视元素(例如服务、值对象)放在此处 -->
- <mx:Resize id="expand" target="{img}" widthTo="200" heightTo="200"
- duration="10000" effectEnd="endEffectHandler();"/>
- </fx:Declarations>
- <mx:Image id="img" width="30" height="60"
- source="@Embed(source='source/img1.jpg')"/>
- <mx:Button id="button1" label="启动" click="expand.play();" x="103" y="197"/>
- <mx:Button label="暂停" click="expand.pause();" x="188" y="197"/>
- <mx:Button label="继续播放" click="expand.resume();" x="269" y="198"/>
- <mx:Button label="逆序播放" click="expand.reverse();" x="355" y="198"/>
- <mx:Button label="结束" click="expand.end();" x="434" y="197"/>
- <fx:Script>
- <![CDATA[
- import mx.controls.Alert;
- private function endEffectHandler():void {
- Alert.show("Effect 结束!");
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ]]>
- </fx:Script>
- </s:Application>
-
相关阅读:
如何用VSCode编写Java程序
使用Xcode + Python进行IOS运动轨迹模拟
聚类(Clustering)
异常值(outlier)
线性回归(regression)
自适应增强(Adaptive Boosting)
决策树(Decision Trees)
支持向量机(SVM)
朴素贝叶斯(Naive Bayesian)
ItChat与图灵机器人的结合
-
原文地址:https://www.cnblogs.com/jzm53550629/p/3246625.html
Copyright © 2020-2023
润新知