PDA

View Full Version : without using attachSound


project-09
06-14-2007, 11:01 PM
I am currently working on a project with multiple sound files that come in at various points of the animation. I have to make a mute/unmute button. I can do that pretty easily for one sound, but I have 12 sound files in all.

I don't think its possible, but...can I do this without using attachSound. Right now the only way I know that you can do that is by putting the sound file right on the time line and setting it to Stream instead of Event, and using the play(); and stop();

But thats a problem because if the user turns off the audio, and back on, it will be playing audio from a previous segment of the presentation.

:confused:

- Minh

atomic
06-14-2007, 11:15 PM
You can use a global volume soundObject.

project-09
06-14-2007, 11:40 PM
Right after I posted this topic I found something that worked well. I think this is what you meant right?

on(release){
//below controls voice overs
var movie_sound:Sound = new Sound(voBOX);
movie_sound.start();
movie_sound.setVolume(100);
}

I'm really against attachSound at the moment because of the linkage on first frame. Its a pain to do a preloader for that.

This case is solved! Thanks for suggestion.

atomic
06-14-2007, 11:49 PM
;)