TAILIEUCHUNG - Creating a Sound Object

Tạo ra một âm thanh Object Để kiểm soát âm thanh tự động, bạn phải sử dụng các đối tượng âm thanh. Một trong những điểm quan trọng nhất để nhận về đối tượng âm thanh là bạn liên kết với mỗi một trong một thời gian cụ thể trong phim của bạn tại thời điểm bạn tạo ra các âm thanh. | Creating a Sound Object To control sounds dynamically you must use Sound objects. One of the most important points to realize about Sound objects is that you associate each one with a particular timeline in your movie at the time you create the sound. To dynamically control sound on the root timeline you would need to create a Sound object and associate it with the root timeline. To dynamically control sound in a movie clip instance you would have to create a Sound object associated with that timeline. Sound objects are also used to control sounds in movies loaded into levels. Because Flash projects can contain multiple timelines projects can contain several Sound objects each controlling the sound in a different timeline. NOTE Although a particular timeline may contain several layers of sounds it should be understood that when a Sound object is created and associated with a particular timeline all sounds in that timeline will be controlled equally using that single Sound object. Setting the volume of that timeline s Sound object to 50 will relatively decrease all sounds on all layers of that timeline by 50 percent. The syntax used to create Sound objects is quite simple var soundObjectName Sound new Sound Target Let s break it down soundObjectName denotes the name of your new Sound object. You can assign any name you want just make sure the name describes the sounds that it controls and that you follow the same rules for naming your Sound object as you would for naming variables no spaces punctuation marks or numbers as the first character of the name. The syntax new Sound is ActionScript s way of creating a new Sound object. Target is where you indicate to the timeline which target path will be associated with this Sound object. After you ve created a timeline-associated Sound object you control that timeline s sound for example volume and panning by referencing in your scripts the name of the Sound object not the target path or instance name of the timeline. Let

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.