Groups | Blog | Home
all groups > flash actionscript > november 2006 >

flash actionscript : seamless audio looping


David Stiller
11/16/2006 4:24:07 PM
FlashChump,

[quoted text, click to view]

Yeah, that TechNote is right. I have the O'Reilly book on MP3 encoding,
but it's been a while since I looked into it. I believe the problem is do
to the way audio is "chunked" (my non-technical term) in MP3 files. There
really isn't a way to fix it ... there are pros and cons to any file format,
and that's a con to MP3s (though the pros outweigh in the case of MP3s, I
believe).

[quoted text, click to view]

You got it. You can attach, but not load.

[quoted text, click to view]

I think the best you can do is create a bunch of audio-only SWFs and use
those as your external "music files." For each WAV, import it into its own
FLA, let it span the timeline as long as it needs to, then export the SWF.
In your mail project, load that SWF instead.

To be honest, I'm not even sure that would work, but it's what I would
try.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

FlashChump
11/16/2006 7:51:47 PM
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15854
This will explain how mp3s do not loop seamlessly.

However the solution calls for using wav files, which I am not able to load
with the sound class. I rather not embed large wav files inside my swf.

Does anybody have a way to either load wav files dynamicly with the sound
class?

Or a fix for looping mp3s seamlessly?

Thanks ahead.
FlashChump
11/16/2006 9:45:07 PM
AddThis Social Bookmark Button