Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

two sound "button" questions...??

Status
Not open for further replies.

Jennyucf

Instructor
Jun 22, 2001
215
US
I was just wondering if you knew off the top of your head the answer to this question. . . . .I had a programmer work on this and he couldn't crack it.

In Flash, I have a .fla file with multiple scenes in it. Each scene is sort of like a separate "slide" if you will.
On each "slide" there is a .wav file that starts to play narration. I have made a sound button that toggles the sound off and on for each slide. This works. But when I press the NEXT button to go to the next scene, the next wav file plays when I want it to be quiet too.

Here is the problem. . . .I don't know how to go about making a global sound on/off button. So that from scene to scene it knows to check to see if the sound is off on previous scene, then don't play sound in current scene.

Does this make sense?
It's easy to do in Director.
I am wondering if I would have to keep all the scenes in the main timeline.

Any ideas?
 
Probably a few workarounds...

What are you using to toggle sound on & off? Regards,

new.gif
 
I used the simple script: play sound and stop sound...

Thanks a lot!!

Regards
 
Thanks....but since the content is sort of classified, I can't post it...Would you give me an idea of what the problem would be?? Thank you!!
 
Are you starting each sound on the first frame of each scene? Outside of that toggle button, I mean! Regards,

new.gif
 
The button is set on the first frame and when I click on it, the sould plays. When I click again, it stops..but when the scene changes, the sound won't stop if I don't click on the button for a stop....

Regards
 
Can't help you further without seeing how you're coding all of this! Can't you recreate a 2 scenes test .fla with just a text line as graphics, with your sounds buttons and 2 test sounds, coded eaxctly as you have it in this "classified content" movie! Regards,

new.gif
 
Going out for the rest of the day...

One thing you could maybe try, is putting your sound in movie clips, and control the playing or not, of these movie clips through your toggle buttons. Regards,

new.gif
 
Thanks for your suggestions, Oldnewbie

I will keep trying and find the solution.

Have a nice day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top