This evening, I will take some time to write the content related to flash cs4. I have no time to access the Internet recently, so I can only take some time to record the content at night. Flash CS3 to flash cs4 is a qualitative overflight. Due to compatibility issues, we have not studied the content related to flash cs4. Flash cs4 has been improved and improved in the as3 language. In the displayobject class, Adobe designers have added some attributes and methods for this class, such as the introduction of Z axis, rotationx, with the introduction of rotationy rotaitionz and other attributes, it is easier to use only the Z axis and rotationx in the past.
I. Z axis Introduction
Flash cs4 introduced the concept of Z axis. in three dimensions, the previous method used to express the Z axis through the trigonometric transformation formula, and now it has become quite easy. Since the displayobject class is transformed in cs4, that is to say, when inheriting its class, like Sprite and movieclip, the Z axis can be used. With the Z axis, pivoting becomes easier. By changing the size of the Z axis of the display object, the perspective becomes more obvious.
For example:
VaR MC: movieclip = new video name (); // assume this is the case
MC. z = 50;
In this case, the Z axis is referenced.
II. Introduction of Rotation
Here, note that I like these attributes very much. With these rotation attributes, you can easily rotate the coordinates around the X Y Z axis. Rotationx, rotationy, and rotationz rotate on the X, Y, and Z axes respectively. For example, I have a 3D human-shaped image. After being imported to flash, I can use the mouse to rotate the image.