# When to use setChildren / or numchildern?

**URL:** <https://forum.kirupa.com/t/when-to-use-setchildren-or-numchildern/326359>\
**Category:** flash\
**Created:** [December 8, 2011, 3:50pm UTC](https://forum.kirupa.com/t/when-to-use-setchildren-or-numchildern/326359 "2011-12-08T15:50:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TalonStart](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@TalonStart](https://forum.kirupa.com/u/TalonStart)\
**Post date:** [December 8, 2011, 3:50pm UTC](https://forum.kirupa.com/t/when-to-use-setchildren-or-numchildern/326359/1 "2011-12-08T15:50:32Z")

</div>

Okay this came to my attention on Depth swapping,  
and reading some tutorials were cause my brains to go smooshie…

When and were is the best time. . to setChildren…

or an example of it?..

Should it go on the Main.as ?

Under its function… or load?..

anyone give me a good thought on this… or example…  
Cause i seem to be failing when ever i try to use it…

Does it need like an object container?
