GDT 260 Animation for the Web: Fall 2003

Notes & Handouts October 20

Download Chapter 11 files

Sound

Key to sound in Flash: optimization, reuse, and separation from main content.

Getting Sounds

Rules of thumb for audio

Importing Sounds into Flash

Flash can import many audio formats: AIFF, WAV, MP3, etc.

File > Import, choose "All Sound Formats". Sounds will appear in library once imported

Optimizing Sounds

  1. Double-click on sound in library to open sound properties window
  2. From Compression drop-down, choose a format
  3. Click Test to hear the results
  4. Look at compression info at bottom of screen to see file size
  5. Change options for chosen format and test to compare results: lower bitrates yield smaller file size, lower quality
  6. Choose the compression settings that yield best compromise between quality and file size

Flash Sound Formats

Working with Sound in Flash

To attach sound to timeline: insert keyframe, select it, and choose a sound from the drop-down menu on the sound palette

Sound Options

Effect

From the Effects menu on Sound palette, choose an effect, click “Edit…”. Edit Envelope window opens

Edit Envelope window controls volume/ mix of stereo channels.

Synch

Looping

Flash Audio Oddities

Soundtracks

It’s a good idea to keep soundtracks as a separate .fla from your main content. That way, you can use a loadMovie action to load the soundtrack in the background after the content has loaded. That way, it doesn't interefere with someone getting at your information.

To create a soundtrack:

  1. Create 3 new layers, named “comments,” “kicker,” and the name of the sound
  2. Add a keyframe in the kicker layer and attach your kicker sound
  3. Add a blank keyframe right after the kicker
  4. Insert a keyframe on your sound layer at the frame after the kicker
  5. Attach the sound to the keyframe
  6. Extend the frames as long as the waveform shows up in the timeline
  7. Add a label to a comments layer, so you can tell what's going on
  8. Make any volume adjustments
  9. Add a layer for each new sound

Most pop/ rock consists of 4 bar patterns. The samples from the book are 2 bars, so double each one up.

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.