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