- Event.ADDED_TO_STAGE only gets dispatched once an object has beenadded to a displayList, and also all its parents have been added.
- Event.REMOVED_FROM_STAGE is dispatched when a DisplayObject, or any of its parents are removed from the display list.
- Event.ADDED gets dispatched when a DisplayObject is added to a displaylist, but it doesn’t mean it has been added to the stage, as itsparent, or parents parent etc. might not have been added.
- Event.REMOVED gets dispatched when a DisplayObject is removed from thedisplay list, but if it’s parent or parents parent etc. was removed wewouldn’t have known.
ADDED_TO_STAGE REMOVED_FROM_STAGE Event.ADDED Event.REMOVED 区别
最新推荐文章于 2024-07-17 19:31:11 发布