I have some MovieClips in my library, each with a class name and exported for actionscript. What I want to do is add the movieclips to my stage by having the user click on a relevant button. To keep things simple, I have named each individual button after the movieclip I want to load… but obviously, the ‘e.target.name’ is a string.
So when I call my function createItem(e.target.name)… I need a want to turn that string into a reference for my movieclip class
Can anyone tell me how this is done?