Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Loading wav files into flash app

Posted on 2009-05-07
1
Medium Priority
?
359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
rascalpants earned 1500 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
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…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

610 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