# addChild question

**URL:** <https://forum.kirupa.com/t/addchild-question/319437>\
**Category:** Uncategorized\
**Created:** [February 20, 2011, 10:30pm UTC](https://forum.kirupa.com/t/addchild-question/319437 "2011-02-20T22:30:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbowk](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@kbowk](https://forum.kirupa.com/u/kbowk)\
**Post date:** [February 20, 2011, 10:30pm UTC](https://forum.kirupa.com/t/addchild-question/319437/1 "2011-02-20T22:30:11Z")

</div>

Hello there, I am fairly new to Actionscript 3 and am struggling with an issue that seems relatively simple.

I have a main class that calls and removes screens with addChild and removeChild, these screens are movie clips.

My issue lies in these movie clips, each clip is linked to a class - e.g. confidence.as links to my confidence screen.

I am trying to add buttons and pieces of text from this class file onto the confidence screen, so essentially adding more movieclips on top of a movieclip that has already been added. I keep getting this error:

TypeError: Error #2007: Parameter child must be non-null.

I could do with some help figuring out how to add objects to my screens, as I am trying to prevent having everything in one class.

Sorry if this is confusing, help would be appreciated.

Kbowk
