Click to Show Lecture Notes

Flash MX File Size Considerations

File Size Considerations
The fastest way to lose your audience is to have a page that takes forever to load. If you only decide to target an audience with high-speed connections, it still is a small segment of the Internet population, most now only sport a 56KBs modem or slower.

Calculating Download Times
In reality, you can only estimate how long a file might take to download, since there so many variables influencing the speed. And, that includes Internet traffic at different times during the day. Basically, it's as simple as: file size / rate of download = time to load the page. To sum it up, the bigger the file, the longer the download time. Flash can help with creating smaller pages, but some of the tools can do just the opposite. Tools like Modify, Shape, and Soften Fill Edges, for example will increase file size, so only use them when absolutely needed.

Embedded Fonts can be Large
When you select a block of text and choose Modify > Break Apart, the text turns into a shape. Besides the fact that you won't be able to edit the text after it's broken apart, your file size usually increases because Flash stores all the curves in every character of the text. (The reason you might break apart the text is to create a Shape Tween).

There are times when you don't have a choice between using broken-apart text and Static Text. If you're using Dynamic or Input Text, there isn't an option to break it apart. It's worth mentioning, that you shouldn't embed more font outlines than absolutely necessary because this adds significantly to the file size.

Nested Movie Clips are Smaller Than Nested Graphics
Simply put, Graphic symbols are great if you need to preview their changes in the Timeline. However, Movie Clips (which are nested inside other Movie Clips) will result in a smaller file size. A slight disadvantage of Movie Clips, though, is that all nested frames will download before the movie proceeds whereas a Graphic can stream one nested frame at a time.

Shape Teens Vs. Motion Teens
Basically, you want the fewest keyframes possible. A Motion Tween, however, requires Flash to create in-between keyframes (even though you won't see them). In reality, if you use a Motion Tween to move a circle across the screen with a keyframe on frame 1 and another on frame 10, the effect would be the same as 10 individual keyframes. Basically, frame-by-frame animation and Motion Tweens are about the same, However, using frame-by-frame animation, you may find that you can pull off the same effect with fewer frames! Not only can this make the movement look more believable, but fewer frames are used, which results in a smaller file size. To sum this up, avoid Shape Tweens and (in all cases) look for ways to use fewer frames. But, it's only a suggestion offered by many authors, if you want a Shape Tween to get your point across, then by all means feel free, Flash has other file size saving tricks up it's sleeve.

Sounds and Bitmaps
All the items mentioned so far are a hill of beans compared to Sounds and Bitmaps. Anything you can do to reduce their size will result in a major savings in the file size of your movie.

Flash has several ways to compress audio and bitmaps, some of which can be set via the Publish Settings. For audio, you should always use MP3 or Voice. Remember, stereo sounds are twice as big as mono sounds, consider saving as mono unless it's absolutely critical that it remain stereo. Consider trimming off excessive silence from the beginning and ending of every sound. Sound takes up the same file space for every second they're played, regardless of whether they're audible or not.

You can reduce the file size of bitmaps in several ways, the most important way... don't use them at all! Avoid as many raster graphics as possible, whether they be .jpg, .gif, or .bmp, and try to use vector graphics whenever you can. There is the possibility of using Modify > Trace Bitmap, but only use when the graphic contains bold geometric shapes.

Importing High-Quality Media and Then Compressing.
Use the best sources available to you, then let Flash compress the file for the Web. If you import already compressed graphic files into Flash, it will only try to compress it further upon publishing, resulting in a poorer quality than you expected for the page.

Page Updated on March 2, 2003