# Convert as2 to as3 issue dynamic identifier

**URL:** <https://forum.kirupa.com/t/convert-as2-to-as3-issue-dynamic-identifier/320847>\
**Category:** Uncategorized\
**Created:** [April 3, 2011, 2:26pm UTC](https://forum.kirupa.com/t/convert-as2-to-as3-issue-dynamic-identifier/320847 "2011-04-03T14:26:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meester](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@meester](https://forum.kirupa.com/u/meester)\
**Post date:** [April 3, 2011, 2:26pm UTC](https://forum.kirupa.com/t/convert-as2-to-as3-issue-dynamic-identifier/320847/1 "2011-04-03T14:26:43Z")

</div>

I’m trying to remake a project that i did earlier in as2.  
Now i’m trying to build it in AS3.

It was a simple tool to convert text to hieroglyps.  
In the library I have all the different hieroglyfs and they are exported for actionscript with identifiers a,b,c,d,…

When i used AS2 i could accomplish this with this simple function

```auto

function convertWord(word){
 for(i=0;i<word.length;i++){
     mc = this.attachMovie(word.substr(i,1), "char"+i,i)
     mc._x = 25 + (i*15)
  }
}

```

But i don’t find such an easy way in as3.  
How can i use a string variable as identifier to put a symbol on the stage.
