TAILIEUCHUNG - Attaching Sounds and Controlling Sound Playback

Âm thanh và Kiểm soát chú Sound Playback Trong các dự án không năng động, âm thanh được đặt trực tiếp trên và kiểm soát từ timeline. Nếu bạn muốn có một âm thanh để chơi trong phim của bạn, bạn phải kéo nó từ thư viện vào thời gian và sau đó chỉ ra khi nào và bao lâu nên chơi, cũng như bao nhiêu lần nó phải vòng về phát lại | Attaching Sounds and Controlling Sound Playback In non-dynamic projects sounds are placed directly on and controlled from the timeline. If you want a sound to play in your movie you must drag it from the library onto the timeline and then indicate when and how long it should play as well as how many times it should loop on playback. Although this may be a fine way of developing projects for some we re ActionScripters we want control That s why in this exercise we show you how to leave those sounds in the library and call on them only when you need them. Using other methods available to Sound objects you ll learn how to add sounds and control their playback on the fly. When you create a Sound object in Flash one of the most powerful things you can do with it is attach a sound in essence pulling a sound from the library that can be played or halted anytime you want. To do this you must assign identifier names to all the sounds in the library. After these sounds have identifier names you can attach them to Sound objects and control their playback and even their volume and panning as we discussed earlier in this lesson. For example let s assume that there s a music soundtrack in the project library with an identifier name of rockMusic. Using the following code you could dynamically employ this sound in your project and control its playback var music Sound new Sound ound rockMusic 0 5 When executed the first line of this script creates a new Sound object named music. The next line attaches the rockMusic sound in the library to this Sound object. The third line starts the playback of this Sound object which in effect starts the playback of the rockMusic soundtrack because it s attached to this Sound object. The 0 in this action denotes how many seconds into the sound to start playback. For example if the rockMusic soundtrack includes a guitar solo that begins playing 20 seconds into the soundtrack setting this value to 20 would cause the sound .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.