Skip to main content
Inspiring
June 28, 2006
Answered

Help with Sound!

Hi,

I have a FLA file with 2 audio clips. In the FLA file, I have multiple movieclips, each referencing the same audio clips at multiple points in their timelines. I have these audio clips as "streams", loaded on a keyframe.

It seems as though when I export the FLA to SWF, it's exporting the audio clips multiple times. I was hoping to be able to only have the audio clips exported once, with the multiple timelines referencing the audio -- to reduce the file size.

Is this possible?

Thanks,
Neal.
This topic is closed to new replies. Start a new post to keep the conversation going.
MacGyver_971Correct answer
Inspiring
June 29, 2006
Thanks a lot! That worked!

My SWF file reduced in size by half...

Much appreciated,
Neal.

2 replies

Inspiring
June 28, 2006
With actionscript, it is, but I'm not sure with what you're doing.

If you post your FLA file, I'll do it for you, but here's what you have to do:

In the library, right click the audio file > Linkage...
Check the "Export for Actionscript" and for the Identifier, put like "sound1" or whatever name you want.
Do that to the second audio clip.

At the first frame of everything, put:
sound=new Sound();

at each place you want to stream the sound, put:
sound.attachSound("[the identifier name of the sound]")
sound.start()

This will export it once, I'm not sure how to do it your way though.
Hope this helps.
Translate
MacGyver_971AuthorCorrect answer
Inspiring
June 29, 2006
Thanks a lot! That worked!

My SWF file reduced in size by half...

Much appreciated,
Neal.
Translate