var cl:Class = getDefinitionByName('Snd' + String(index)) as Class; var sound:Sound = new cl() as Sound;