The root
propety of a DisplayObject
becomes a reference to the Document Class once the DisplayObject
is added to the display list. You can continue to use root
but be aware that only objects on the display list will work.
You can read more about root here:
The root property of the Stage object is the Stage object itself. The root property is set to null for any display object that has not been added to the display list, unless it has been added to a display object container that is off the display list but that is a child of the top-most display object in a loaded SWF file.