TAILIEUCHUNG - Using FlashVars

FlashVars bằng cách sử dụng Bạn có bao giờ có một tình huống mà, ngoài tạo ra một ứng dụng Flash độc tăng cường sử dụng Flash Studio Pro và FSCommands. Trước khi tiếp tục, bạn cần phải cài đặt Flash Studio Pro phiên bản dùng thử (Windows only) trên máy tính của bạn bằng cách làm theo các bước như hình | Using FlashVars Have you ever had a situation where aside from simple tweaks a single Flash movie could be used in a number of different ways For example imagine having a Flash movie that loads and plays external MP3 files. To use this movie to play 10 different MP3 files would require you to open the original FLA manually edit a small section of the code that specifies the MP3 to load and export 10 different SWFs. Or you might have to script the movie to load the information from a database. The first option is too much work and has the potential of turning into a bandwidth nightmare. Even if each SWF contained only a single line that was different you would still have 10 different SWFs. If each file was 30 KB in size placing them all on a single page would result in a 300 KB download. The second option setting up your movie to load data from a database is generally fine but might be too complex a solution in some situations. Fortunately there s a third option that fits nicely in the middle the FlashVars parameter. FlashVars introduced in Flash MX is an HTML object and embed parameter attribute that provides a quick and easy way to pass data into a movie embedded in an HTML page. Immediately upon loading the movie the data passed in can tell the movie to do something. This essentially provides a means to configure an SWF via HTML without having to physically open the original FLA and edit its code. In other words a single SWF can be used for multiple purposes. For example suppose that a particular SWF plays MP3s. If you embed that SWF in an HTML page with a few adjustments to the FlashVars parameter in the object and embed tags you can easily define which MP3 file that particular instance of the SWF should play. The greatest benefit about this functionality is that a single SWF can be repurposed multiple times throughout your entire site and your visitor only needs to download it once. Your site s overall performance is enhanced. As mentioned earlier FlashVars is

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.