GDT 260 Animation for the Web: Winter 2003

Notes & Handouts March 11

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.

Video

Video that has been edited in other software can be imported into Flash. Flash doesn’t have video editing capabilities—it can play it back and it can treat it like any other symbol.

Example: PBS American Experience Zoot Suit Culture

Formats

Additionally, certain codecs (compression-decompression methods) will only work if you have the codec installed on your machine. Some codecs can be downloaded for free, some are quite expensive.

Using Video in Flash

COMPRESS! COMPRESS! COMPRESS!

Importing

File > Import

Options

Flash will ask if you want to extend the timeline to match your video clip once it’s imported.

Working with Video

You can convert the video clip into any type of symbol, nest it within other symbols, apply any type of color effect to it, and control it with actionscript. The video timeline is tied to the timeline that it’s sitting on, so if the timeline is playing, the will be playing, too.