|
Adobe Flash Actionscript Flex Examples
|
|
|
|
|
|
Flash CS3 Actionscript 3 Papervision3D 2 (Great White)
3D Cube Rotation Example Controls for Animation and Camera Position JavaScript and the latest version of the Adobe Flash Player are required. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here. The Papervision3D 2 (Great White) library is use to create an x rotation 3D cube. The example also include a Plane object with a grass texture as a back wall. The Plane is 2048 x 1024. The Flash Movie is 800 x 600. Actually it is more a front wall as we are looking into the scene from the monitor from the back. As you move the camera you will begin to see the edges of the grass plane. The reason for the Plane is so we can move the camera and see the perspective change of the cube relative to the plane. Without the plane, moving the camera give more of the impression of moving towards and away from the cube. The camera is targeted on the Plane so we can actually get the camera between the cube and the plane if you like. I used the Flash UI Button, NumericStepper and Label components for the testing interface. The Timer class was used to control the animation rotation. This allows control over the animation speed with a bit less programming than the traditional setInterval approach.
All source files for Flash CS3: Download
Actionscript - Alh_Papervision3d_Ex02.as: View
|
|
|
|
|
|
|
|