Can I create a node and put all my display content into my node?

Can I create a node and put all my display content into my node?

stage.addChild(node)
Can I put all my content into the node?
Put all the content into your own nodes

不用 Lib.current和 main(雪碧)

Because I don’t want to nest too many layers, it’s said to affect performance

No need for Lib.current and main (Sprite)


trace(this.parent.parent, 2);

03

Main - Sprite
Lib.current - MovieClip
stage - Stage