Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 315

P Note: You can also add sound to the Over state of a button symbol, and the sound will play whenever the mouse cursor just hovers over the button. 6 Select the Down keyframe in the sounds layer. 7 In the Properties inspector, choose Start for the Sync option. A Start sync option triggers the sound whenever the playhead enters that particular keyframe. 8 Choose Control > Test Movie > in Flash Professional. Test the first button to hear the monkey, and then close the preview window. 9 Edit the sound_button2 and the sound_button3 to add the Lion.wav and the Elephant.wav sounds to their Down states. understanding Sound Sync options Sound sync refers to the way the sound is triggered and played. There are several options: Event, Start, Stop, and Stream. Stream ties the sound to the Timeline so you can easily synchronize animated elements to the sound. Event and Start are used to trigger a sound (usually a short sound) to a specific event, like a button click. Event and Start are similar except that the Start sync does not trigger the sound if it is already playing (so there are no overlapping sounds possible with Start sync). The Stop option is used to stop a sound, although you’ll use it rarely, if ever. If you want to stop a sound with a Stream sync, simply insert a blank keyframe. understanding Flash Video P Note: Flash can actually play back any video encoded in H.264, so your video file doesn’t have to have the .f4v extension. For example, a video with a .mov extension encoded by QuickTime Pro with H.264 is compatible with Flash. 306 Lesson 8 Flash makes it very easy to deliver video over the Web. Combining video, interac- tivity, and animation can create a very rich and immersive multimedia experience for your viewers. There are two options to display video in Flash. The first option is to keep the video separate from your Flash file and use a playback component from Flash to play the video. The second option is to embed the video in your Flash file. Both methods require that the video be formatted correctly first. The appro- priate video format for Flash is Flash Video, which uses the extension .flv or the extension .f4v. F4V supports the H.264 standard, a state-of-the-art video codec that delivers high quality with remarkably efficient compression. A codec Working with sound and Video