# Renaming movieclip

**URL:** https://forum.kirupa.com/t/renaming-movieclip/304672
**Category:** flash
**Created:** [February 11, 2010, 4:15pm UTC](https://forum.kirupa.com/t/renaming-movieclip/304672 "2010-02-11T16:15:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![akram85s](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@akram85s](https://forum.kirupa.com/u/akram85s)
#### Post date: [February 11, 2010, 4:15pm UTC](https://forum.kirupa.com/t/renaming-movieclip/304672/1 "2010-02-11T16:15:58Z")

</div>

i’m doing this

var Length:Number=10;

for (var i:uint=0; i\<Length; i++) {  
var Box:Table= new Table();  
Box.x=i\*Box.width;  
Box.PersonName.text=TreeXML.Table.Na…  
addChild(Box);

}

/\* every thing is fine till now, but how to call any of these boxes later im thinking of:  
Box.name=(‘Table’+i);  
it gives no errors , but also i can’t do any thing with  
this[‘Table’+i].x for example  
\*/  
my question is:how to rename the movieclips while i’m adding them (in the foor loop)  
and to be able to control that mc whenever i want.  
any solutions ?
