Forum Topic: AS Sound volume trouble

(245 views • 3 replies)

This topic is 1 page long.

<< < > >>
Questioning

Satis

Reply To Post Reply & Quote

Posted at: 3/8/06 10:46 PM

Satis LIGHT LEVEL 05

Sign-Up: 01/18/06

Posts: 8

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


None

23450

Reply To Post Reply & Quote

Posted at: 3/8/06 11:32 PM

23450 LIGHT LEVEL 27

Sign-Up: 05/28/03

Posts: 7,297

At 3/8/06 10:46 PM, Satis wrote: Has anyone run into this problem in the past? What am I doing wrong and how can I fix it?

If you watch
this submission, by me, i had the same problem. He is running around the tree, and i wanted the foot steps to constantly get lower and higher as we cam close and farther from the screen. But like you, it made all my sounds go lower and higher, making it sound like crap.

But alas, i have no clue as of how to fix it. Someone should though, i hopes.

Halo 3 GamerTag: XCornDawgX


None

raitendo

Reply To Post Reply & Quote

Posted at: 3/9/06 03:11 AM

raitendo NEUTRAL LEVEL 22

Sign-Up: 02/19/01

Posts: 408

I had this problem before as well, and though I never tried doing it I learnd it is possible, by attaching the new sound to an "attached" movieclip (i.e. one created with the AS command "attacheMovieClip", or maybe something like CreateEmptyMovieClip, not sure if that's a command though).

So something like

CreateEmptyMovieClip (mc_name)
mc_name.MyVariable = newSound

I think that should work but you could also check through my old posts, I think Inglor was the one replying exactly how to.


None

Satis

Reply To Post Reply & Quote

Posted at: 3/11/06 01:31 PM

Satis LIGHT LEVEL 05

Sign-Up: 01/18/06

Posts: 8

Ok yeah I am not quite up to speed enough yet to understand the intracacies of the MC method (although I'll work on that later) but I found it easier to use the sound envelope controls under "custom" editing and lower/raise the volumes that way. But it is a simple movie and I'm only controlling 2-3 sounds. I also have digital audio editing experience so that interface is somewhat familiar.

I wish someone would do a small tutorial on these types of controls (not just on sound) and the entire MC method, unless I've missed it and perhaps a kind person can point it out.

Thanks for pointing me to the right places guys.


All times are Eastern Standard Time (GMT -5) | Current Time: 12:53 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!