Testing Download Time

If you're planning to publish your animation on the Web, you need to know about how long it takes your animation to download from a Web server to somebody's computer. Chapter 14 gives you several optimization techniques, including tips for preloading content and reducing your animation's file size; but before you begin to optimize your animation, you need to know just how bad the situation is and where the bottlenecks are. The following sections show you how.

Simulating Downloads

You could set up a bank of test machines, each connected to the Internet at a different transfer speed, to determine the average download time your audience will eventually have to sit through. But Flash gives you an easier option: simulating downloads at a variety of transfer speeds with the click of a button. The simulation takes into consideration any additional, non-Flash media files that you've included in your animation, such as sound and video clips.

To simulate different download speeds:

  1. Choose Control → Test Movie.

    The Flash Player (test window) appears.

  2. In the test window, select View → Download Settings (Figure 13-6) and then, from the submenu, select the connection speed you expect your audience to be running.

    Your choices range from 14.4 (1.2 kbps) to T1 speed (131.2 kbps). If you need to simulate a faster speed, check out Figure 13-7.

    If you're used to testing your animation inside the Flash development environment, you'll be shocked when you see how long it takes to download and play your animation over the Web. Flash automatically adjusts for standard line congestion to give you a more realistic picture. So, for example, when you choose the 14.4 kbps setting, Flash actually simulates the transfer at the slightly lower rate of 12.0 kbps.

    Figure 13-6. If you're used to testing your ...

Get Flash CS3: The Missing Manual now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.