[As3 Study Notes] Summary of as3 display list

Source: Internet
Author: User

Stage

______ | ______

|

Displayobject container

______ | ______

|

Displayobject container

.............

This is an overall structure of as3 display list. All objects to be displayed depend on the stage, like a global scenario. Of course, in big scenarios, there must be some local scenarios-container or some fragmented items-displayobject;


All the objects to be displayed must be added to the display scenario by calling addchild (objece). At the above level, all objects must be added to the stage at the end, some items will be added to a container as a small whole; then, the addchild operation of the display list is similar to the stack, first-out ---- add first rendering; therefore, sub-objects are rendered before the parent object, which is also reasonable, because only when all small objects are ready can there be a decent overall.


Therefore, if some objects are displayed in overlapping positions, they will be added in the order of adding, and the latter will be pressed;


At the same time, there is a way to set the location where the add operation is, that is, addchildat (objece, index). By specifying the location, you do not need to consider who is the first when adding, because the positions are all set.


Well, the descriptive terms are not professional. Do not spray them for new users ------ lqg1122

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.