积少成多Flash(11) - Flex 3.0 动画效果(effect)
2009-11-28 00:00:00 来源:WEB开发网9、Dissolve.mxml
<?xml version="1.0" encoding="utf-8"?>
<!--
演示 对控件做alpha修改 的动画效果
-->
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"
title="Effect - Dissolve (溶解, 变换 alpha 的效果)">
<mx:Dissolve id="dissolveOut" duration="1000" alphaFrom="1" alphaTo="0" />
<mx:Dissolve id="dissolveIn" duration="1000" alphaFrom="0" alphaTo="1" />
<mx:Image source="@Embed('images/logo.png')"
x="24" y="24" width="48" height="48"
visible="{chk.selected}" hideEffect="{dissolveOut}" showEffect="{dissolveIn}"
/>
<mx:ControlBar horizontalAlign="center">
<mx:CheckBox id="chk" label="显示" selected="true"
textRollOverColor="blue"
textSelectedColor="red"
/>
</mx:ControlBar>
</mx:Panel>
10、Glow.mxml
<?xml version="1.0" encoding="utf-8"?>
<!--
演示 对控件做周边发光 的动画效果
-->
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"
title="Effect - Glow (发光)">
<mx:Glow id="glowImage" duration="1000"
alphaFrom="1" alphaTo="0.3"
blurXFrom="0" blurXTo="50" blurYFrom="0" blurYTo="50"
color="0x22aa55"
/>
<mx:Glow id="unglowImage" duration="1000"
alphaFrom="0.3" alphaTo="1"
blurXFrom="50" blurXTo="0" blurYFrom="50" blurYTo="0"
color="0x3388dd"
/>
<mx:Image source="@Embed('images/logo.png')"
x="24" y="24" width="48" height="48"
rollOverEffect="{glowImage}" rollOutEffect="{unglowImage}"
/>
</mx:Panel>
- ››FLASH不等于运算符!=的使用实例
- ››FLASH不全等运算符!==
- ››FLASH字符串分隔符运算符
- ››FLASH% 模运算符
- ››Flash+、++、+= 加法运算符
- ››Flash, 逗号运算符
- ››flash中的-、--、-=减法运算符
- ››Flash的-Infinity 常数、.点运算符、/ 除法运算符...
- ››Flash两种注释方法/*..*/ 和// 注释行分隔符运算符...
- ››Flash的/=除法赋值运算符、=赋值运算符、== 等于运...
- ››Flash之?: 条件运算符、^ 按位 XOR 运算符、^= 按...
- ››Flash的_framesloaded代码示例
更多精彩
赞助商链接