(AS3) 3D functions basic

| No Comments | No TrackBacks
Let's examine the 3D functions newly introduced to Flash CS4.
The first example is quite simple, which shows how the 3D-related properties added to DisplayObject work.
- A gray plane with a red dot on its top rotates according to the place of the mouse on the stage, which shows how the rotationX and rotationY properties work.
- Dragging the mouse on the stage background changes the z-coordinate and rotationZ of the square
- Dragging the square itself changes the x and y coordinates of the square. Note that the object moves along the plane that it is on according to its rotationX/Y property.




download sample

Install flash player 10 or later if you don't see the sample movie.

No TrackBacks

TrackBack URL: http://www.kynd.info/cp-bin/mt/mt-tb.cgi/12

Leave a comment