How to mute sounds on a movie with a button. Help!

Started by: Kodoku | Replies: 0 | Views: 355

Kodoku
2

Posts: 1,610
Joined: Dec 2012
Rep: 10

View Profile
Feb 3, 2014 11:11 AM #1152097
Here's the thing: I need an AC2 code for muting sounds with a button, but only the sounds of the scene that button is.
For example: I have a preloader in the first scene of an animation, with a small music loop playing on that scene. But when you press "play", that loop is still playing on the next scene and mixes with the rest of the animation's music and it's really annoying.
So what I need is a button to stop playing that loop, but that doesn't affect the rest of the animation. Is that possible?

I don't know anything about AC2 (except for "stop();" lol) and I'd really love to learn, but I need this quick. If anyone can give me a code, I'll be really thankfull!♥

Also, I'll make a free super-sweet awesome weapon to anyone who does this for me. c:



Nevermind, I found it out. If someone needs this, put this code on the "play" button of your preloader.

code (Click to Show)


That will stop all sounds in the scene the button is in, but it will NOT affect the rest of the animation.

I can't believe it was that easy.