![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
If you import an image or a sound while you author a document in Macromedia Flash MX 2004 or Macromedia Flash MX Professional 2004, the image and sound are packaged and stored in the SWF file when you publish it. In addition to importing media while authoring, you can load external media at runtime. There are several reasons you might want to keep media outside a Flash document.
Reduce file size By keeping large media files outside your Flash document and loading them at runtime, you can reduce the initial download time for your applications and presentations, especially over slow Internet connections.
Modularize large presentations You can break up a large presentation or application into separate SWF files and then load those separate files as needed at runtime. Not only does this reduce initial download time, but it also makes maintaining and updating the contents of the presentation easier.
Separate content from presentation This a common theme in application development, especially data-driven applications. For example, a shopping cart application might display a JPEG image of each product. By loading the JPEG files for each image at runtime, you can easily update a product's image without modifying the original FLA file.
Take advantage of runtime-only features Some features, such as streaming FLV and MP3 playback, are only available at runtime through ActionScript.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |