Solved

Loading wav files into flash app

Posted on 2009-05-07
1
355 Views
Last Modified: 2013-11-11
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) {
			theSound.start();
			status_txt.text = "Sound loaded";
		} else {
			status_txt.text = "Sound failed";
		}
	};
theSound.loadSound(_global.picturesArray.childNodes[picIndex].attributes["sound"],false);
 
}

Open in new window

0
Comment
Question by:yaron89
1 Comment
 
LVL 22

Accepted Solution

by:
rascalpants earned 500 total points
ID: 24326390

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...

http://www.kirupa.com/forum/showthread.php?p=2461044



rp / ZA



0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question