ITeye博客

Flex中的3D效果

convolute · 2010-06-17 16:22 · Flex · Web前端 · Markdown

<?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>

评论(1)

  1. #1 楼 · Alex丿 · 2012-05-30 09:13

    .。。。。。。。。。。。

评论功能维护中,当前仅展示历史评论。