High Tech Tutorials

Flash - Adding Audio

Description
This tutorial will teach you how to add audio to a Flash document. You will learn two methods in this tutorial: Embedded and Action script. After doing both methods you will learn the strengths and weaknesses of each of the methods. (Audio file is available for download.) With the action script method you will use the following script, where audio_file.mp3 is replaced by your audio file’s name. (Make sure you keep the quotes around the file name and you have the audio file in the same folder as your Flash.)
var my_sound:Sound = new Sound();
my_sound.loadSound("audio_file.mp3", true);

Video Tutorial

High Res. Video
View Video - 7:45


 

Low Res. Video
View Video - 7:45


Associated Files

f9-actionscript.fla
File Size: 23 kb
File Type: fla
Download File

f9-actionscript.swf
File Size: 0 kb
File Type: swf
Download File

f9-adding_audio.html
File Size: 1 kb
File Type: html
Download File

f9-audio_actionscript.doc
File Size: 0 kb
File Type: doc
Download File

f9-embedded_audio.fla
File Size: 2208 kb
File Type: fla
Download File

f9-embedded_audio.swf
File Size: 24 kb
File Type: swf
Download File

audio_file.mp3
File Size: 247 kb
File Type: mp3
Download File