Working with Sound & Audio in Flash
Importing sounds should be done by File > Import > Import to Library since this is where they will be called from. You can import multiple sounds at a single time if you want.
You can drag a sound to a layer on the time line. This will have the sound play when the playback head reaches that location on the timeline. (Note: I could not drag like the book says on Windows. I had to go to the property panel and select the sound for the frame.)
Sound in the Property Panel
Sound has several properties that can be adjusted when they are in a time line. For example:
- Fade sound (left to right, in, out, etc)
- How to play sound (stream, event, etc)
- How long to play the sound (loop, once, repeat "x" times)
You can edit the effect to clip the end of the sound if need be.
Adding Sound to Buttons
You can apply sounds to the button time line to have audio play when the user rolls over, or clicks a button.
Button sounds should generally be short.
Start and Event as the Sound Sync options are similar. Event will allow the stream to play if it is already playing. Start will only play if the audio is not already playing. Stream allows you to syncronize the playback with the time line.
Flash Video
Flash is still the most common method for delivering video over the web.
You can either embed a Flash Video file, or keep it seperate, and import it at run time (what should normally be done).
Adobe Media Encoder will encode many video formats so they can play in the Flash player.
To import video select File > Import > Import Video -- this will bring up a special window which will allow you to change the imported settings.