Audio
From AUWiki
Contents |
[edit] Audio on the Timeline
- Import audio files into the Library in Flash
- Drag onto the timeline(need a keyframe)
- Set the Sync in the Properties window instance on the timeline
- Set to Event for short sounds, Stream for long sounds
- Stream doesn't wait for complete download from the web to start playing
- Stream is better for syncing to animation
- Optionally use Edit(in Properties) to customize volume for each channel
[edit] Play Audio with Action Script
- Create a Sound object instance
var screamSound = new Sound();
[edit] Using Sounds from the Library
- Create sound object
- attach sound from library
- give sound commands
carCrash = new Sound();
carCrash.attachSound("Boom"); //"Boom" must match the linkage name in the library
carCrash.start();

