Solved

Loading wav files into flash app

Posted on 2009-05-07
1
356 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 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: 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

Suggested Solutions

Title # Comments Views Activity
Flash player plugin 13 7 347
need a player that can play .d and .i DVR files 9 1,595
Google Chrome Blank White Screens 13 303
can not get an online video to playback in Google Chrome 4 40
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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

726 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