I added a second page to the motion basics pages.
Here's a link to a project I finished recently. This is a demo of a cell phone interface.
Vodafone Demo
Here's a link to a project I finished recently. This is a demo of a cell phone interface.
Vodafone Demo I updated the Motion page. Hopefully this page will provide some insight into making movieclips move with Actionscript.
Here are a list of the methods available to the Make_3d Class:
Make_3d() The constructor takes no parameters and sets the myX and myY properties to the _x and _y of the clip. The myZ property is set to 0 by default. move_3d( x, y, z ) Moves the object in 3d space the amount passed as x, y and z. move_abs( x, y, z ) Moves the object to the position passed as x, y and z. rotate_3d( x, y, z ) Rotates the object an amount around the origin in 3d space in the x, y and z axis. Provide x, y and z as degrees. rotate_abs( x, y, z ) Sets the rotation of the object on the x, y and z axis to the rotation supplied as x, y and z. renderPoint() Redraws the object in 3d space. You must call this if you set the myX, myY and myZ or the angleX, angleY and angleZ properties directly to redraw the object in 3d space. Properties The Make_3d class provides the following properties: myX myY and myZ These three properties set the poistion of the object in 3d space. After setting any of these properties you must call renderPoint() to redraw the object in 3d. ox and oy These properties set the origin point. This is sets the position on the stage where objects will recede to as they move backin space, the vanishing point. Normally you would want to set these to values that represent half the width and half the height of the height of the stage. If objects using Make_3d are inside of a movieclip you can set ox and oy to 0 and use the registration point of the parent clip as the vanishing point. xAngle, yAngle and zAngle These properties set the rotation of the object around the origin in 3d space. If you set any of these properties you will need to call renderPoint() after to redraw the objects in 3d space. distance Sets the distance to the camera. You can think of this as the camera angle. Different values will more or less extreme perspective. brightness_mult This value sets the amount of change in brightness objects will have as they move back in space. A value of 0 will cause objects to have no change in brightness. Positive values make objects get lighter as they recede, good for light backgrounds, negative values cause objects to get darker as they recede, good for dark backgrounds. The default is .5. Experiment with different values. Next |