Adding Audio to Timeline
Flash CS4 ActionScript 3.0 Tutorial
How to Add Audio to Timeline in a Flash .fla File
Audio can be added to a project using multiple methods. The easiest method is to import the audio the the Library, select a keyframe, then drag it to the stage. Other methods include importing audio from an external mp3 file or importing the audio from the Library with ActionScript. In this example, we will import the audio, then drag it to the stage.
Audio file (mp3) in an external folder
In a new flash document, name the default layer Audio.
Choose File > Import > Import to Library.
Navigate to your mp3 file and choose Import.
Open the Library (Window > Library).
Select the first keyframe of your Audio layer and drag the mp3 file from the Library to the stage.
Publish your movie by pressing Cmd/Return (PC - Ctrl/Enter). The audio starts playing and plays only once.
AIF or MP3
Using this method you can import either .aif files (Mac) or mp3 files (Mac or PC).
How Do I Stop the Music?
This method allows you to start the music. For instructions on stopping your audio, see topic, Stop Audio.