# addChild(object);

**URL:** <https://forum.kirupa.com/t/addchild-object/291054>\
**Category:** flash\
**Created:** [June 24, 2009, 2:43am UTC](https://forum.kirupa.com/t/addchild-object/291054 "2009-06-24T02:43:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick23](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@Nick23](https://forum.kirupa.com/u/Nick23)\
**Post date:** [June 24, 2009, 2:43am UTC](https://forum.kirupa.com/t/addchild-object/291054/1 "2009-06-24T02:43:48Z")

</div>

Hello,  
This may sound like a stupid question, but when I use:  
var a = parent.addChild(cloud);  
a.x=10;  
a = parent.addChild(cloud);  
a.x=100;  
I only get one cloud made at the position (100,y) (or, the last cloud I declare is the only one to show).

How do I add multiples of a movie clip ?

EDIT: I tried using addChild(new cloud) but the compiler says “Call to a possibly undefined method cloud.”

Thanks
