Sound: setVolume Question

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  02 February 2003
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


 
  02 February 2003
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)
__________________

 
  02 February 2003
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


 
  02 February 2003
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.start();

moviesound1 = new Sound(myMovie);
moviesound1.start();

and then something like
i=0;
on (enterFrame) {
moviesound1.setVolume(i)
moviesound2.setVolume(100-i)
i++}

I don't know if this works but... it should
 
  02 February 2003
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 ;)
 
  02 February 2003
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


 
  01 January 2006
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 04:15 AM.


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