Loading wav files into flash app

I'm trying to load a wav file into my AS2 application which is a desktop application. It doesn't seem to work. Is there a solution to this?

P.S. - It has to be a wav file
function loadSound(picIndex) {
	var theSound:Sound = new Sound();
	theSound.onLoad = function(success:Boolean) {
		if (success) {
			status_txt.text = "Sound loaded";
		} else {
			status_txt.text = "Sound failed";

Open in new window

Who is Participating?
rascalpantsConnect With a Mentor Commented:

you can't load wav files in dynamically in Flash...  it needs to be converted to an MP3 for this or load the wav into the library...

this guy has an example of how to do that...


rp / ZA

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.