Hi,

You could compile the wav files into SWF's that you load as runtime libraries - then you could still instanciate your sounds the same way as Kenneth said.

You have to use a Loader class load the external SWF in and wait for the Loader's INIT event before accessing library items. You may also have to set the Loader's application domain to the same as your application in order to instanciate the sounds:

    Search for "runtime library" in flash.

    Glen

On 29/04/2010 12:25, Jim Andrews wrote:
Sorry. I should have been more specific. What I'd like to do is create an external file that contains a bunch of wav files. Perhaps a bunch of such such groups of wav files. And then, at run-time, the user may select one of those groups of wav files. And then the program should download that particular file.

Is that sort of thing supported in Flash?

In Director, such groups of wav files (and/or other media) can be stored in .cst files and downloaded at run-time.

ja
http://vispo.com

----- Original Message ----- From: <[email protected]>
To: "Flash Coders List" <[email protected]>
Sent: Thursday, April 29, 2010 3:47 AM
Subject: Re: [Flashcoders] libraries of wav files?


If you are talking about sound imported into the Library in IDE, you
can assign a Class name to it and instantiate it as normal:

var snd:Sound = new LibaraySound();
snd.play();
...etc.
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 29 April 2010 10:35, Jim Andrews <[email protected]> wrote:
i know you can load external mp3 files in flash, but is it possible to load
a library (if that is the right term) of wav files in flash?

the app i want to make involves loops, and mp3 files are not real good for
loops.

ja
http://vispo.com

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to