PDA

View Full Version : How can i load Sound-Symbols on Demand?



mediaholic
November 14th, 2005, 09:16 AM
Hi, i want to do following:

1. Create sound.fla, import some wave as Sound-Symbol in the Lib and set the linkage to “s1”
2. export that swf as sound.swf.
3. Create main.fla, load the sound.swf with loadMovie or LoadMovieNum
and than use that “s1” in my main movie

I tried like this but this doesn’t work

loadMovieNum("sound.swf",10);// inside sound.swf is Sound-Symbol with the linkage id= “s1”
_level10.s = new Sound();
_level10.s.attachSound("s1");
_level10.s.start();

i know that this is not going to function i a "regular" way but i'm asking for possible workarounds?
the whole point is that i have about 100 sounds and i dont wont to load the all at once.
Hence they wont be used a same time. So i want the user to choose which ones he want to use and then load them .

Is there a way to do this in FlashMx2004Pro?
any help very appreciated

Mirandir
November 14th, 2005, 09:59 AM
I would recommend that you convert your sounds to mp3-files instead. Then you will be able to easily load and play them on demand with the Sound Object. Even stream them if needs be.

/Mirandir

Barn
November 14th, 2005, 11:31 AM
I would recommend that you convert your sounds to mp3-files instead. Then you will be able to easily load and play them on demand with the Sound Object. Even stream them if needs be.
I concur.