Sound: setVolume Question

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 02 February 2003   #1
Sound: setVolume Question

Is it possible to have two independent setVolume for two different tracks?

As of right now, I have one sound object on tow different movieclip's timelines. As I drag a movie clip on the Y-axis I want one sound to increase in volume while the second decreases in volume. And then vise versa.

So far, both increase and decrease at the same time. Is it impossible in Flash to have two setVolume actions simultaneously? I thought I could seperate them into two different timelines, while avoiding the root timeline. Again this doesn't work (atleast not for me).
Form and Space
art and theory by matthew l. stoehr

Old 02 February 2003   #2
I think it's possible. However you have to create different sound objects. (something like that ... I'm not too sure myself, but I know it's possible)

Old 02 February 2003   #3
I have two sound objects. I'm trying to dig up more information about this.
Form and Space
art and theory by matthew l. stoehr

Old 02 February 2003   #4
you must adress the proper object in order to do that.

for examle
globalsound.setVolume(50); will set the globalsound volume to 50%

if you would have something like this:

moviesound1 = new Sound(myMovie);

moviesound1 = new Sound(myMovie);

and then something like
on (enterFrame) {

I don't know if this works but... it should
Old 02 February 2003   #5
one MC can't have two sound objects, so if you need two independant sounds you need two movieclips you can assign them to
sound1 = new Sound(movieclip1)
sound2 = new Sound(movieclip2)

then you can access their volume values via sound1.setVolume(X)
character WIP: c&c please ;)
Old 02 February 2003   #6
Thanks Virusescu and Knebbes.

I do have two seperate objects with seperate sound objects, I guess I'll try it again with Virusescu's idea.
Form and Space
art and theory by matthew l. stoehr

Old 01 January 2006   #7
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
  share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 10:58 AM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.