I'm having a slight problem with changing sound volumes in AS, maybe someone can troubleshoot.
There is a certain sound effect that I want to be able to lower and raise the volume of during the course of the movie. I have assigned a sound to a variable in the following manner, as advised in the BBS...
myVariable = new Sound();
myVariable.attachSound("Soundfile");
Later I start the sound:
myVariable.start(0,100); [note: it's not really going to play 100 times, just loop until I stop it manually with another AS.]
Then at the appropriate time in the movie, I control the volume like so:
myVariable.setVolume(30);
As mentioned before I am also utilizing :
myVariable.stop();
THE PROBLEM IS: I also have various one-time-hit sound effects and a looped mp3 as background music. Even though I am calling the AS on the named variable only, it is setting the loop to the same volume level. I haven't done anything with the music loop's linkage, so as far as I understand it theoretically it shouldn't be affected. I want the music loop to remain constant volume throughout. It is even starting and stopping with the named variable. Even though I haven't "noticed" it per se, I'm pretty certain that the one-time sound effects are also having their volume altered.
Has anyone run into this problem in the past? What am I doing wrong and how can I fix it?
Thanks in advance.
S