Volume Control

I read through the Volume Control Tutorial but I am wondering how I can get the volume to start off at something other than 0.

Has anyone addressed this problem or not?

well, my solution would be to create an empty movieclip with:

onClipEvent(load){
myvolume.setvolume = 0;
}

something like that, I didn’t take the tutorial…

anyway, should work if you play with it.

onClipEvent(load){
        myvolume.setVolume = 0;
}

:sure:

oh, so it is right. (except for the typo)

oh, just read whole thread - i’d do it like this:


loop = new Sound(_root);
_root.loop.setVolume = 0;

no need to make MC, but it isn’t wrong!

It doesn’t seem to be working. I’ve tried it in the final version download and the version I put the code in.

This line:
mySound.setVolume(_root.volume);

seems like it would be the answer but I set the root.volume to 50 and ive tried replacing _root.volume with the number 50 with no luck

Any other ideas?

give me your AS

and welcome to the forum :beam:

Pasted below and thanks!


onClipEvent (load) {
mySound = new Sound();
mySound.loadSound(“sound2.mp3”, false);
}
onClipEvent (enterFrame) {
downloaded = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
if (downloaded != total) {
_root.dl = “downloading song…”;
} else {
complete = 1;
_root.dl = “”;
}
mySound.setVolume(_root.volume);
}

onClipEvent (load) {
mySound = new Sound();
mySound.loadSound("sound2.mp3", false);
_root.vol = 0
}
onClipEvent (enterFrame) {
downloaded = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
if (downloaded != total) {
_root.dl = "downloading song...";
} else {
complete = 1;
delete(_root.dl);
}
mySound.setVolume(_root.vol);
}

ok, its actually quitting time for me… I will check your progress in the morning. I appreciate everything!