# The strangest glitch\[?\] giving me a ton of trouble

**URL:** <https://forum.kirupa.com/t/the-strangest-glitch-giving-me-a-ton-of-trouble/330233>\
**Category:** Uncategorized\
**Created:** [December 16, 2012, 6:48pm UTC](https://forum.kirupa.com/t/the-strangest-glitch-giving-me-a-ton-of-trouble/330233 "2012-12-16T18:48:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tubutas](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@Tubutas](https://forum.kirupa.com/u/Tubutas)\
**Post date:** [December 16, 2012, 6:48pm UTC](https://forum.kirupa.com/t/the-strangest-glitch-giving-me-a-ton-of-trouble/330233/1 "2012-12-16T18:48:10Z")

</div>

In my project I have a movieclip called world1. The world1 mc contains all the scenery, all the enemies[Class=Enemy], and all the un-passable terrain[Class=Terrain]. At the moment the world1 mc has 2 enemies and 3 terrain and including the Shape’s used for the scenery that should be a total of 6 children.

> trace(world1.getChildAt(0),world1.getChildAt(1),world1.getChildAt(2),world1.getChildAt(3),world1.getChildAt(4),world1.getChildAt(5))  
> returns

> [object Shape] null null null null null

Keep in mind that nothing in the world1 mc is created dynamically; if you were too look in my .fla in the world1 mc there would be 3 terrain 2 enemies and a shape. The strangest part is that only one of the terrain ends up firing off its New() function. Can anyone help me with this issue?
