<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:layout>
<s:BasicLayout/>
</s:layout>
<fx:Declarations>
<!-- 将非可视元素(例如服务、值对象)放在此处 -->
<!-- 使用Parallel将两个特效打包执行 -->
<s:Parallel id="transformer" target="{button}">
<!-- 让按钮移动100个像素 -->
<s:Move id="mover" xFrom="50"
xTo="150" autoCenterTransform="true"/>
<!-- 以按钮的中心作为顶点沿Y轴选装360度 -->
<s:Rotate3D id="rotate" angleYTo="360"
autoCenterTransform="true"/>
</s:Parallel>
</fx:Declarations>
<s:Button id="button" x="50" y="100" label="你好!"
click="transformer.play()"/>
</s:WindowedApplication>
Flex中的3D效果
最新推荐文章于 2012-12-13 16:31:11 发布