ActionScript Code:
function DeclareSound(Sound_ID:String, mc:String):Void {
trace(Sound_ID);
var s:Sound = _root[Sound_ID] = new Sound(mc);
s.attachSound("Blues Guitar");
s.start(0,1000);
}
this creates a variable at root .. and assigns it to a variable that is declared into the function so 's' in effect is '_root[Sound_ID]'.. i mainly did this to save me from typing '_root[Sound_ID] three times.. just looks cleaner..
but then now you have a sound variable at the _root level that you can access at any time after the the function creates the sound object..