Recipe 17.10. Starting and Stopping Sounds with ButtonsProblemYou want users to be able to start and stop a sound using buttons. SolutionCreate two buttons. On the Down frame of each button, add the same sound. On the Start button, synchronize the sound to Start. On the Stop button, synchronize the sound to Stop. DiscussionFlash offers a convenient way to start and stop sounds by using the Start and Stop synchronization settings, respectively. You can readily create buttons that start and stop a sound when you know how to use the Start and Stop synchronization settings properly:
That is all there is to starting and stopping a sound with buttons. When you click on the start button, the sound should begin to play, and when you click on the stop button, the sound should stop. You can use the Stop synchronization setting to stop a sound whether it was started by the playhead entering a timeline keyframe or by the user pressing a button. Regardless of the way in which the sound was started, the Stop synchronization stops all instances of that particular sound that are playing. |
Tripod >> 3pod Tips & Learning and manuals for educations