# Dynamic Variable Name

**URL:** <https://forum.kirupa.com/t/dynamic-variable-name/300121>\
**Category:** Uncategorized\
**Created:** [November 16, 2009, 3:41pm UTC](https://forum.kirupa.com/t/dynamic-variable-name/300121 "2009-11-16T15:41:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eagle1](https://avatars.discourse-cdn.com/v4/letter/e/eb8c5e/32.png) [@Eagle1](https://forum.kirupa.com/u/Eagle1)\
**Post date:** [November 16, 2009, 3:41pm UTC](https://forum.kirupa.com/t/dynamic-variable-name/300121/1 "2009-11-16T15:41:25Z")

</div>

Hello !

First some explanation of my problem :

I have a xml file with some elements. I need to create a movieclip for each of these element.  
The name of the movieclip should be different for each.

```auto

var lists:XML = new XML( evt.target.data );
    var forums:XMLList = lists.elements();
    
      var forum_name = 0;
      var container_name:Array = new Array();
      for each(var forum:XML in forums)
      {
        forum.TITLE = new MovieClip();
      }

```

and of course, this don’t work ! Try to find some tips on the web, but nothing…

Thanks !
