The Move3D effect is used for moving the component in the x, y and z coordinate system.
The Move3D effect is used for moving the component in the x, y and z coordinate system.The Move3D effect is used for moving the component in
the x, y and z coordinate system. If you specify the moving in z direction the
effect will look like a Zoom effect.
The tag of Move3D effect is <s:Move3D>. The syntax of Move3D effect is
following:
<s:Move3D
id=""
xBy=""
yBy=""
duration=""
target=""
/>
In this example you can see how we can use a Move3D effect in your application.
|
<?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">xBy=" 300"zBy=" 300"yBy=" 100"duration=" 500"autoCenterTransform=" true"target=" {vbox}"repeatCount=" 2"repeatBehavior=" reverse"easer=" {linearEasing}"autoCenterProjection=" true"/> </fx:Declarations> <s:Panel title="Spark Move3D effect Example"chromeColor=" #000000"color=" #CCCCCC"width=" 398"height=" 258"> <mx:ApplicationControlBar width="396"horizontalAlign=" center">color=" #000000"fontFamily=" Verdana"/>width=" 136"height=" 81"horizontalAlign=" center"verticalAlign=" middle"x=" 27" y="54"backgroundColor=" #555555"borderStyle=" solid">id=" btn"cornerRadius=" 10"fontFamily=" Verdana"click="{move3dEffect.end();move3dEffect.play();}" /> <mx:filters>angle=" 45"distance=" 5"color=" #808080"/> </mx:filters> </mx:VBox></s:Application> |

To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.