Import Audio in Flash

An audio gives additional effect to the flash file and often adds to the viewers interest , audio files can also be used as event sounds , button sounds etc.

Steps

  1. Open Adobe Flash (or Macromedia flash) and select actionscript 2.0 or 3.0 as your version.
  2. Create a new layer.
  3. Then go to "file" menu on the top and select ->"import to library" from the drop down ,browse to the location on to the hard disk and select the audio file.
    • Once selected flash imports the file to the library, open library panel and the audio file will be displayed as a waveform in the library window.
  4. Drag the audio file from the library on to the stage, make sure the layer currently selected is the new blank layer.
  5. Add a new keyframe to the layer after any number of frames, the audio can be clearly seen as a waveform.
  6. Go to "control" menu from the top and select play from drop down ,the play head moves forward and the sound plays.
  7. Go to properties panel and select sound, the option if set to stream plays the sound up to the number of frames in the layer whereas selecting event option plays the whole audio irrespective of number of frames.

Tips

  • Make judicious use of event sounds, stream sounds and loop sounds.
  • In some previous version of flash import to library option may not be present, in that case choose "import to stage".
  • Prefer to edit the sounds in an external application before importing to flash.
  • Prefer to place the audio in a new blank layer, rather than a layer which already contains something; this avoids confusion.

Warnings

  • Avoid audio/video files having large file sizes.
  • Too many audio files can make the application crash , use compressed file formats compared to uncompressed ones.

Related Articles