TAILIEUCHUNG - Loading and Communicating with Inline Images and SWFs

Tải và Giao tiếp với Inline Hình ảnh và văn bản file SWF gì không thể được spruced dựng và tăng cường với một giật gân của nội dung đồ họa ở dạng một hình ảnh, hoặc thậm chí một bộ phim Flash? Mặc dù việc đặt văn bản và nội dung đồ họa với nhau là chắc chắn có thể với phiên bản trước của Flash | Loading and Communicating with Inline Images and SWFs What text can t be spruced up and enhanced with a splash of graphical content in the form of an image or even a Flash movie Although placing text and graphical content together was certainly possible with previous versions of Flash there wasn t a way of embedding an image or Flash movie within the text so that text flowed around it. Flash MX 2004 changes all that with built-in support of the HTML image tag img within text fields. When a text field has been set to accept and interpret HTML using the img tag embeds the specified graphic at the location you choose within the text. Let s look at a simple example var myText String p b Hello b img width 100 height 100 Do you like this picture of my doggie p This script creates a string using some simple HTML tags. The next step is to render this HTML snippet in a text field which is done with the following bit of code myText This line sets the htmlText property of the myTextField_txt text field to the string that was just created. As a result the text field displays the text formatted as shown and loads the specified JPG image between the first bit of text and the last. For a text field to have the capability to render HTML loaded into it its html property must be set to true. This can be accomplished by selecting the text field in the authoring environment and clicking the Render Text as HTML button on the Property Inspector or via ActionScript true NOTE Currently Flash can load only non-progressive JPG images. Progressive JPGs GIFs and PNGs are not supported. If you thought loading a JPG was great it gets even better because Flash can also load SWFs into a text field in the same way using the img tag. Look at this revised example var myText String p b Hello b img src id myDogMovie_mc width 100 height 100 Do you like this picture of my doggie p myText NOTE For an SWF .

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.