costa
August 3rd, 2007, 11:07 AM
Dear all,
I want to know if it is possible to attach a sound using a variable as the name of the class. For example
Normal way
var mySound:embeddedSound = new embeddedSound ()
What I need
var newSound:string = “embedded Sound”
var mySound:newSound = new mySound()
Is this possible?
Thanks in advance
I want to know if it is possible to attach a sound using a variable as the name of the class. For example
Normal way
var mySound:embeddedSound = new embeddedSound ()
What I need
var newSound:string = “embedded Sound”
var mySound:newSound = new mySound()
Is this possible?
Thanks in advance