<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/10/13/3d-rotating-objects-in-flex-using-the-fxrotate3d-effect-and-flash-player-10/ -->
<FxApplication name="FxRotation3D_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        viewSourceURL="srcview/index.html">
    <layout>
        <BasicLayout />
    </layout>

    <Declarations>
        <FxRotate3D id="fxRotate3DX"
                target="{image}"
                xFrom="0"
                xTo="360"
                duration="2000" />

        <FxRotate3D id="fxRotate3DY"
                target="{image}"
                yFrom="0"
                yTo="360"
                duration="2000" />

        <FxRotate3D id="fxRotate3DZ"
                target="{image}"
                zFrom="0"
                zTo="360"
                duration="2000" />
    </Declarations>

    <VGroup id="vGroup" left="10" top="10">
        <FxButton id="fxButtonX"
                label="FxRotate3D X-axis"
                click="fxRotate3DX.play();" />
        <FxButton id="fxButtonY"
                label="FxRotate3D Y-axis"
                click="fxRotate3DY.play();" />
        <FxButton id="fxButtonZ"
                label="FxRotate3D Z-axis"
                click="fxRotate3DZ.play();" />
    </VGroup>

    <Image id="image"
            source="@Embed('assets/fx_appicon.jpg')"
            horizontalCenter="0"
            verticalCenter="0"
            width="100"
            height="100" />

</FxApplication>