Understanding File Size and Loading
When you place content on a web page, you need to make considerations about how content loads, how much content you load, when it happens, and unloading content that you no longer need. When you buil101 websites, you have to be conscious about how much information you load onto a single page or whether the visitor has to wait a long time until the entire page loads. It's the same with a SWF file. If you try to load too much data into the SWF at the same time, your visitor has to wait a long time until the file loads.Therefore, you should try to break up large files into separate files and load them in when necessary, or when the user requests them. For example, when you built the gallery in Chapter 10, you load images in from the server when the SWF file plays. Therefore, you don't need to store all the thumbnails in the SWF file and make the visitor wait while you load them before the gallery appears. Also, you load the full size image when the visitor requests to see it (when they click the thumbnail). Therefore, the visitor doesn't have to download all the full-size images unless they actually want to see theAppendix D for good resources of information and further tutorials on ActionScript and building SWF files, which elaborate on this subject.