# addChild

**URL:** <https://forum.kirupa.com/t/addchild/251724>\
**Category:** flash\
**Created:** [February 12, 2008, 1:47am UTC](https://forum.kirupa.com/t/addchild/251724 "2008-02-12T01:47:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fs\_tigre](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Post date:** [February 12, 2008, 1:47am UTC](https://forum.kirupa.com/t/addchild/251724/1 "2008-02-12T01:47:46Z")

</div>

I am adding a child when a button is clicked, everything is working fine but it keeps adding a new child every time the button is clicked. How can I prevent this if I only want one child on the stage?

Thanks,  
fs\_tigre
