Volume conflict in actionscript

im having a problem with buttons using actionscript to set the volume for a sound. Here’s what i have
[AS]
on (rollOver){
limit= new Sound(this)
limit.attachSound(“limit”)
limit.start()
limit.setVolume(200)
}
[/AS]
The problem is that the setVolume command sets ALL of the volumes for sounds in that scene to 200%, not just the one sound i want to put at 200% volume. Does anyone know how i can solve this problem?

try this :

on (rollOver){
limit.createEmptyMovieClip("clip", 0);
limit.clip = new Sound(this.limit);
limit.clip.attachSound("limit")
limit.clip.start()
limit.clip.setVolume(200)
}

if it works…
search the explanation on this forum!!

nope this doesnt work, anyone else have any ideas?

ups… sorry what a mess!!
it should be : this.createEmptyMovieClip();

try this, load all your sound at _root first:

this.createEmptyMovieClip("sound01", 1);
sound01.createEmptyMovieClip("clip", 0);
sound01.clip = new Sound(this.sound01);
sound01.clip.attachSound("limit");

the button

on(rollOver){
_root.sound01.clip.start();
_root.sound01.clip.setVolume(200);
}

tell me if it works…
sorry again…

taken from http://www.kennybellew.com/
suggestions for planning your sound objects:
When possible, define all of your sound objects on the _root level. For example, create a layer called “Sound Objects” on the _root level. Define all sound objects in the first frame of this layer. This way, the path to your sound object will never be a mystery. If you’ve ever experienced the madness of trying to determine why a sound will not start or why more sounds are stopping than intended, this will help isolate the problem quickly.

and here’s why use a separate instance of a blank movieclip as the holder http://www.actionscript-toolbox.com/soundobject.php

thanks tons, just 1 more question though. I previously had an onSoundColplete function, but now its a movie clip. What do i change it to?