The Scale3D effect is used for change the size of component or target along x, y and z-axis.
The Scale3D effect is used for change the size of component or target along x, y and z-axis.The Scale3D effect is used for change the size of
component or target along x, y and z-axis. You can change the scaling in x, y
and z directions. The tag of Scale effect is <s:Scale3D>. The syntax of Scale
effect is following:
<s:scale3D
id=""
scaleXFrom=""
scaleXto=""
scaleYFrom=""
scaleYTo=""
scaleZFrom=""
scaleZTo=""
duration=""
/>
In this example you can see how we can use a Scale3D effect With components.
|
<?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">autoCenterTransform=" true"duration=" 500"scaleXFrom=" 1.0"scaleXTo=" 2.0"scaleYFrom=" 1.0&"scaleYTo=" 2.0"scaleZFrom=" 1.0/font>&"scaleZTo=" 2.0"target=" {globe}"easer=" {bounce}"/> <s:Scale3D id="scale3dEffect1"autoCenterTransform=" true"duration=" 500"scaleXFrom=" 2.0"scaleXTo=" 1.0"scaleYFrom=" 2.0"scaleYTo=" 1.0"scaleZFrom=" 2.0"scaleZTo=" 1.0/font>"target=" {globe}"easer=" {bounce}"//>chromeColor=" #000000"color=" #CCCCCC"width=" 467"height=" 334">horizontalAlign=" center"> <s:Label text="Mouse over on image for showing the effect/font>"color=" #000000"fontFamily=" Verdana"/> </mx:ApplicationControlBar>source=" @Embed(source='file:/C:/work/bikrant/image/ball2.png')"x=" 169" y="101"rollOverEffect=" {scale3dEffect}"rollOutEffect=" {scale3dEffect1}"> <mx:filters>angle=" 45"distance=" 5"color=" #808080"/> </mx:filters> </mx:Image>&</s:Application> |

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