Danh mục

Flash CS4 Professional in 24 Hours- P9

Số trang: 30      Loại file: pdf      Dung lượng: 1.04 MB      Lượt xem: 11      Lượt tải: 0    
Hoai.2512

Phí tải xuống: 6,000 VND Tải xuống file đầy đủ (30 trang) 0
Xem trước 3 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Flash CS4 Professional in 24 Hours- P9: The creation of this book could not have happened without the skill and patience of many,many people at Sams Publishing. Most of all, I want to thank Mark Taber for offering methis opportunity and Philip Kerman for writing such a great book. I also greatly appreciatethe efforts of Songlin Qiu for keeping me on track and organized, not an easy task.
Nội dung trích xuất từ tài liệu:
Flash CS4 Professional in 24 Hours- P9 Importing Sounds 231Rights Management (DRM) technology that make them difficult or impos-sible to copy. Some CDs don’t even play in your CD player.Fortunately, you can usually use sound in your animation without worry-ing about all these details, as you see in the next task. The process of importing sounds into Flash is simple. Follow these steps: TRY IT YOURSELF ▼ 1. In a new file, select File, Import, Import to Library, and then select an Import a Sound audio file to import. In Windows, you are likely to find a few WAV files in the folder C:WindowsMedia or My DocumentsMy Music, or you can search for *.wav and *.mp3; Macintosh (Mac) users can use Find for Files of Type: Sound. You can filter the files shown in the Import di- alog box by setting the Files of Type drop-down list to All Sound For- mats, as shown in Figure 13.1. If you simply can’t find any audio files, you can download some from the publisher’s website. FIGURE 13.1 When importing audio or any me- dia type, you can filter the types of files listed to include only the formats you are seeking. 2. After you select an audio file and click OK in the Import dialog box, you don’t see anything on the Stage or Timeline. However, the sound has been imported and now resides in the Library. Open the Library window by pressing Ctrl+L to see it. Now that the movie contains the sound file, you can use the sound. 3. Although we’re not covering how to use sounds in depth until the next section, it’s easy. There are two basic ways to use the sound in a232 HOUR 13: Including Sound in Animations ▼ TRY IT YOURSELF keyframe. One way is to drag the sound from the Library window onto Import a Sound the Stage. This method requires an editable frame, which is located in an unlocked layer marked as editable with a pencil and with the cur- rent-frame marker in a non-tweened frame. The other method requires you to select a keyframe by clicking under 1 in the Timeline, and then in the Properties panel, select the sound you imported from the drop- down list, as shown in Figure 13.2. This list displays all the sounds previously imported into the movie. In our example, we import a sound named Ooooh.wav. 4. Test the movie, and you should hear the sound. Of course, your com- puter speakers and sound card must be functioning. FIGURE 13.2 When a keyframe is selected, the imported sound appears in both the Library and the Properties panel. Using Sounds Now that you’ve imported sounds into a movie, you need to make them play at the correct time. Without using ActionScript, the one place you can use sounds in Flash is in keyframes. With ActionScript, you can add sounds dynamically by using the Sound object, for which we provide the starter code after this hour’s “Summary” section. If you want a sound to play whenever the user places his or her cursor over a button, you still need to place the sound in a keyframe; it’s just a keyframe in the button. (Never fear, we get to buttons in Hour 16, “Basic Interactivity.”) Using Sounds 233Knowing that sounds go in keyframes is fine, but you need a way to putthem there. When you select a keyframe, the Properties panel provides away to control what sounds play when you reach the selected keyframe.Flash provides other clues for you to see where sounds have been placed.For example, if your Timeline is long enough, you see a waveform or a vi-sual represent ...

Tài liệu được xem nhiều: