Hey guys,
I have a simple question…
I want to create a sound variable depending on the numeric value of another int variable…
meaning: automatize the currentSnd variable depending of the soundValue
example:
var soundValue:int;
soundValue = 3;
var currentSnd:Sound = new this["snd" + soundValue] (); //<--- not working, but something like this
//instead of the working code:
// var currentSnd:Sound = new snd3 ();
(snd1, snd2, snd3, etc…are already exported to actionscript with those names…)
Thanks a lot in advance!
Cheers,