| here is a nice little bit of code i use.
In your main page inset a new layer, and create a button on this layer. In the first frame of this new layer, also insert the action script
soun = new Sound();
Now, click on the created button and in its action script type:
on (release) {
if (_root.sto == 1) {
Soun.setVolume(100);
_root.sto = 0;
{
gotoAndStop(1);
}
} else {
Soun.setVolume(0);
_root.sto = 1;
{
gotoAndStop(5);
}
}
}
This will switch the volune off and on, but will not stop the sound and replay it, so it will allow sound effects to not be affected.
There is more you can do here, attaching images to change also, i can send you these on file if you like, but try this first to see if its ok.
regards
Richard
Respond to this post • Return to posts index | |