New Content in Flash cs4: 3D effect

Source: Internet
Author: User

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.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.