Differences among movieclip, Sprite, and shape

Source: Internet
Author: User

Below comesSprite, We have dealt with the most containers in this 3.0. In a word, it removes the movieclip (that is, the castrated movieclip) of the timeline ). As I mentioned in the example at the beginning, if we only want to create a containerSpriteIs the first choice. We can even say that more than 90% of our code-writing developers only needSpriteDeal. Movieclip with timeline is generally created by Flash tools and can be loaded only. To be accurate,SpriteThere is more than one timeline less than movieclip in ActionScript 2, such as loading.SpriteIt also contains graphic objects, which means that it can also be directly drawn in the code.

But we always need to remember,SpriteDifferent fromShape,DifferencesLies inSpriteIs a container, andShapeNo.

From the code point of view, that is,SpriteYou can addchild (),ShapeNo.

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.