swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] sound in sprites


From: Pablo Rodríguez
Subject: Re: [Swftools-common] sound in sprites
Date: Sat, 28 Feb 2009 15:14:20 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090114)

Chris Pugh wrote:
2009/2/25 Pablo Rodríguez <address@hidden>:
Thanks, Matthias, for your reply and your excellent work.

Matthias Kramm wrote:
On Mon, Feb 23, 2009 at 06:26:38PM +0100, Pablo Rodríguez <address@hidden>
wrote:
?The main timeline of a SWF file can only have a single streaming sound
playing at a time, but each sprite can have its own streaming sound (see
Sprites and Movie Clips).?

Does that it mean that sprites or movieclips cannot contain event sounds?
Not sure what you mean with "event sound", but if you mean sound effects
which are triggered e.g. by a user action, then sprites can definitely
contain those. Only thing is (as with all Define* tags) that the sound
is only *started* in the sprite but not *defined*, in order to be
compliant with
the spec.
(That said, the Flash Player actually doesn't care about whether tags
 are inside a sprite or not. But it's still good practice to define
characters
 and sounds on the main level, not inside the sprite)
You're the Flash expert, but event sounds seem to be the ones that aren't
streamed.

I thought it was impossible to add them.

Are you sure you are not gettng confused between streaming and embedding?
Flash will only stream certin types of audio file.

I hope I'm not ;-). I think that the Flash specification is clear in that point (since I think this was the only point I understood when I read it first).

My question on whether sprites can contain event sounds was grounded on my lack of knowledge on how ActionScript can load this sounds (because of that I wondered whether this was impossible).

But thanks to your script for preloading images (http://lists.gnu.org/archive/html/swftools-common/2009-02/msg00086.html), I discovered a new way to load sound embedded in external files and in sprites.

Thanks for all,


Pablo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]