I understand that a group functions as a pooler as well as a DisplayObject container, but I want to make sure I am understanding this correctly.
If I use addChild, am I only adding the sprite to the DisplayObjectContainer?
For example :
I create a group called enemyPool for my enemies for the purpose of pooling
I create a group called gameLayer that I intend to use as a DisplayObjectContainer for all my active sprites in the game
If I get a sprite from the enemyPool and then use addChild as follows :
gameLayer.addChild(sprite);
Am I correct in assuming that the sprite still exists in the enemyPool for the purposes of pooling?
Am I also correct in assuming that the sprite exists as a child of the enemyLayer DisplayObjectContainer , but is NOT a part of that group in regards to pooling?
If so, does the children property contain group members or DisplayObjectContainer children?
Is there a property that contains only group members? The group members that would be used for forEachExists() and other iterating methods?
Or.... Am I completely understanding this topic incorrectly and the add(child,silent) and addChild(child) method essentially the same thing?