GDT 260 Animation for the Web: Winter 2003

Notes & Handouts March 13

Optimizing

Bandwidth

Bandwidth: amount of data tranferred over time. bits or bytes per second. Bandwidth depends on slowest point in connection.

Users won’t wait longer than 10-15 seconds with nothing interesting happening

Streaming

Streaming: Flash movie starts playing before completely downloaded. Doesn’t speed downloading, just downloads in an intelligent manner. Download what’s needed first before everything else.

When flash movie loads, two things need to be sent and loaded:

Flash begins loading timeline, then loads symbols as they are encountered on the timeline.

During streaming there are 2 important points in the movie: the streamer and the playhead. The streamer marks what has been downloaded and is ready to be played. The playhead is the frame that is playing. The distance between the two is the streaming buffer. If the playhead catches up to the streamer, the movie pauses because the animation is not loaded.

Bandwidth Profiler

View > Bandwidth Profiler when testing movie (Command + Return). Shows the amount of data that needs to be loaded in each frame and how fast it will load under ideal network conditions.

Show Streaming

View > Show Streaming to see how the movie will stream across the web.

Optimizing Files

Preloaders

A preloader is a scene at the beginning of the movie that entertains the viewer while important symbols load. Most preloaders have a simple animation, or even a simple game (pong). Symbols only load once, so load them at the beginning, and they’ll be reused later.

Loading Multimedia on Demand

By storing multimedia and other content in external files, initial download time can be reduced, and the user given a choice whether to download particular content or not. External content can be loaded into levels of a movie, or into a movieclip on the stage.

.SWF’s

Video and JPEG’s

targetClip.loadMovie("path_to_file");

MP3’s

target = new Sound();
target.loadSound("path_to_sound.mp3", true);
target.start();

Components

Components are generic prebuilt elements that can be modified to work in specific situations. Flash provides a set of interface elements stored in the Components panel.