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
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.