TAILIEUCHUNG - Học Actionscript 3.0 - p 38

Captions Providing Captions in Multiple Languages Feature-rich DVD titles frequently have multiple caption programs available, each in a different language. This broadens the reach of the title across cultures and supports a wider audience with accessibility needs. It’s possible to achieve the same thing using the FLVPlaybackCaptioning component. All you need to do is prepare multiple Timed Text files, one for each language, and switch among them when needed. Off the shelf, however, the FLVPlaybackCaptioning component does a couple of things that make this an odd experience. First, if you change the caption content between times specified in a Timed Text document,. | Captions Providing Captions in Multiple Languages Feature-rich DVD titles frequently have multiple caption programs available each in a different language. This broadens the reach of the title across cultures and supports a wider audience with accessibility needs. It s possible to achieve the same thing using the FLVPlaybackCaptioning component. All you need to do is prepare multiple Timed Text files one for each language and switch among them when needed. Off the shelf however the FLVPlaybackCaptioning component does a couple of things that make this an odd experience. First if you change the caption content between times specified in a Timed Text document the component will overwrite the caption field only if the current caption is empty or contains only white space tab return or space . If that s not the case such as when switching captions from one language to another at any moment it adds the new text to the existing caption. Only when the next Timed Text caption time comes along will the field contents be replaced correctly Second the method it uses to determine whether or not the Timed Text file has already been loaded results in no immediate change. Therefore you must wait for the next caption to come along to see a language update. Fortunately there s an easy workaround. All you have to do is turn off caption display before making the caption source switch and then turn the display back on again. The example file demonstrates this using the Button component to toggle the caption source files. 15 import 16 var capsLangBtn Button new Button 17 English Spanish 18 20 19 20 addChild capsLangBtn 21 switchTTCaps 22 false 0 true 23 24 function switchTTCaps evt MouseEvent void 25 false 26 if 27 28

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.