Volume sliders, multiple tunes!

I’m using the volume slider that can be found in the Macromedia Support Forum. The thing is, I need it to control more than one sound.
e.g. What I want to happen:
snd.tk0 is playing. Use the slider to change the volume to, say, 47%.
Then you stop snd.tk0 playing and start snd.tk1 - at 47%

The problem seems to be in the button’s “onClipEvent (enterFrame)” command, which refuses to recognise a global variable. Can anyone help me with this, please?

Declare each sound object within a different MC instance then target that instance to scope the volume property. The easiest way to do this is to use the onClipEvent (load) property to instantiate the sound object

onClipEvent (load) {
mysound=new Sound()
mySound.attach sound(_name)

If you use this method then you can create multiple instances of a MC using the duplicateMovieClip() function and if you use a incrementing file name which matches the linkage of your sound files (i.e use a for loop from 11 to 21 say and give your soundfile linkages like mc11, mc12, mc13, etc) then you’ll have instantiated and scoped your soundfiles

To control the volume then reference an individual MC instance

mc19.mySound.setVolume(66) etc