I am trying to write actionscript 3 code to play short sounds from a library using a dynamically generated line to load it.
In AS2, I could do something like this:
mySound = new Sound();
mySound.attachSound("any concatenated string" + foo);
In AS3, however, an identifier is a class whose name seems to be already known. Is there an easy way to “attach” a sound using a string identifier in actionscript 3?
source
share