Stage and Root

Source: Internet
Author: User

Stage is the top-level Display object. BecauseCodeAddchild (a) is equivalent to this. addchild (a). This is the code written on the timeline, which is equivalent to writing in the document class. This points to the document class instance, so your A is actually added to the document class instance, that is, the second layer Display object.
Remember: stage is the stage, the first layer, root is a document instance, and the second layer.

Note: In Flex, because SWF is generated, root. Stage = stage

 

Root: [object _ main_mx_managers_systemmanager] stage: [object stage]

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.