all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

Adjusting the volume of A level


Adjusting the volume of A level habber
4/2/2004 8:08:26 PM
flash actionscript: Is it possible to adjust the volume of music playing on a seperate level in
flash mx?

heres what I mean.

on the first frame of a site I have music start playing in level 15

loadMovieNum("music.swf", 15);

The music is esentialy the only sound I have on the site. But when a user
clicks the ABOUT button I want the music thats playing on level 15 to lower
significantly in order for them to hear a Welcome video. Is this possible?

Usualy I attempt to solve these probs by myself.. but this one has me stumped.
:)

I have tried a bunch of things but I think im missing something. Heres what
ive tried.

on (release) {
_level15.setVolume(50)
}

and variations of the above.

Can anyone help? im using flash MX
-Thanks alot

Re: Adjusting the volume of A level Brajeshwar
4/2/2004 8:18:17 PM
You cannot control the volume of an swf that plays some sound,
you have to control it the sound itself

something like if you have made
mySound = new Sound (this);
then attack the volumn with something like
mySound.setVolume(50);
Re: Adjusting the volume of A level habber
4/2/2004 8:32:23 PM
thanks for your quick response Brajeshwar,

I think ill just use unloadMovie to stop the sound when a user clicks the
button. because if the song is exported with the site the filesize will shoot
through the roof.

thanks again
-habb

Re: Adjusting the volume of A level urami_
4/3/2004 4:35:04 AM


[quoted text, click to view]

Of course you can , why not ?

In fact that's the fun part , by targeting level to control global volume of all
its content w/o wasting time on making separate sound object for each.

on (release) {
mySound = new Sound(_leve15);
mySound.setVolume(50);
}



--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

AddThis Social Bookmark Button