# Child variables

**URL:** https://forum.kirupa.com/t/child-variables/289921
**Category:** flash
**Created:** [June 7, 2009, 10:38am UTC](https://forum.kirupa.com/t/child-variables/289921 "2009-06-07T10:38:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stupidsaint](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@stupidsaint](https://forum.kirupa.com/u/stupidsaint)
#### Post date: [June 7, 2009, 10:38am UTC](https://forum.kirupa.com/t/child-variables/289921/1 "2009-06-07T10:38:25Z")

</div>

I have started as3 two days ago and havnt been able to work this one out.

I have set a for statement that will attach movie clip to the stage. Now all i want to do is link the movieclip to an id.

for(var i=0;i\<5;i++){  
var movier = new cliper()  
movier.idNumber = i//\<\<\<\<\<\< this doesnt work  
addChild(movier)  
}

later on i added a click listener and wanted to recall its id number but couldn’t.

Is there anyway to do this
