TAILIEUCHUNG - The Ins and Outs of Loading External Assets

Các Ins Và ngoài của Loading Tài sản ngoài Khi bạn tải các tài sản bên ngoài thành một bộ phim, bạn đang tải một file media (như một tập tin MP3, một JPG đồ họa, video, hay ngay cả một SWF) vào một bộ phim Flash vì nó đóng vai . Nói cách khác, bạn đang thêm tài sản cho bộ phim của bạn. | The Ins and Outs of Loading External Assets When you load external assets into a movie you re loading a media file such as an MP3 file a JPG graphic a video or even another SWF into a Flash movie as it plays. In other words you re adding assets to your movie. In fact you can create a Flash movie that contains nothing but script set up to load text animations graphics and sounds from external assets. Media that s loaded dynamically in this fashion can exist on a Web server or on a disk or CD if your project is distributed as a projector therefore a single project can load media from several sources simultaneously. All that s usually required is the directory path to the files. It s that simple No special server technologies required. Sometimes as is the case when loading media files from a disk or CD not even a server is needed. By loading external assets rather than placing all of your project s media in a single SWF your project benefits in a number of ways Your movie downloads faster over the Web. Imagine that you have a site containing four sections Home Services Products and Contact each of which has its own graphic and soundtrack. Together the graphic and soundtrack add 100 KB to each section a total of 400 KB if you place everything in a single SWF. For users connecting via 56 Kbps modems your site will take nearly two minutes to download a sure way to turn viewers away. You re better off loading each section s graphic soundtrack on an as-needed basis or only when a user navigates to that section the approach that most HTML-based sites take. You can view multiple movies in the player window without navigating to different HTML pages. When using a browser to navigate Web sites you don t need to close one window and then open another just to move from page to page. Instead the browser remains open while the window s content changes as pages are loaded and unloaded. The same thing happens when external movies are loaded into Flash s player window The player .

Đã 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.