Click to See Complete Forum and Search --> : flash problem ON/OFF sound
maxramass
09-21-2007, 01:33 PM
Hello, I am new on this forum, I hope to find answers for my questions here.
I am a graphic designer and here is one of my first web page.
http://www.phiphiresatrianon.fr
I got a problem with the sound of my flash animation. How can I make a button wich switch ON & OFF the sound, do I have to create 2 buttons?
Please can you help me ?
Thanks
Max
chri5ty
09-21-2007, 02:22 PM
I think I know what you want;
It is not easy, but once you understood how to do it, it's easy.
I will explain you how to make the button change from OFF to ON, in flash.
>Make a movie clip with two frames.
>In Actionscript, select the first frame and write stop();
This will affect only the movie clip. Do the same for the second frame.
>In the first frame, place the button OFF
>In the second frame, place the button ON
>In Actionscript, in the first frame, select the button, and write:
on(release){
this.GotoAndStop(2); // this will send you to the second frame
StopAllSounds();
}
>Go to the second frame, select the button ON and look at it's properties.
You may see a dropdown menu where you select the imported sound to be played when clicked. If I am wrong, then go to frame 1 and look at it's properties and select the sound. However, if I'm still wrong (I haven't used flash for some time) make your sound start, just like you did at the movie start.
>Replace your button with the movie clip you've made.
>If the sound starts twice, then delete the action script at the movie start. The button ON/OFF starts the sound.;)
Hope I've haven't given wrong information. Make a safe copy of your movie.
I haven't used flash for some time.:(
maxramass
09-25-2007, 09:21 PM
thank you so much it works but finally I will use this for an other animation.. my customer do not want me to change it.
Thank you again.
Sorry but Can I edit my old message to erase the name of my web page or can we delete this thread because that disturb the search result in google... hehe.. :o )