If you need the timeline animation to match its ending to the sounds
ending, you will need to script your sound and not put it on a actual
frame.
Then have a function that matches the beginning of your animation to
the beginning of your sound and not play anything till both are loaded.
Also your sound and your animation have to be the same as far as length.
Try timing your animation and sound separately on your desktop. See
if they match.
Script your sound as an imported sound, create a Loader so that the
animations frames are already loaded before your start playing anything.
something like, but not exactly.. just for example
if(sound.loaded = complete && frames.loaded = compete) {
play();
}
HTH
Karl
On Oct 21, 2009, at 9:02 PM, Karl DeSaulniers wrote:
Actually you have to put a "stopAllsounds" on the frame that is
after the end of your animation. Or you can set the frame to sync
to the event instead of the stream. Flash does not sync the stream
of an animation and a sound well because of the difference in
compression ratios. This has been my experience and that is my
solution.
Hth
Karl
Sent from losPhone
On Oct 21, 2009, at 7:58 PM, "Kurt Dommermuth"
<[email protected]> wrote:
Hi Kerry,
I'm not the original poster, but I'll add myself to the list of
people
who've experienced this.
It's definitely a bug and it's been around for some time.
More details than that would take too long for a family man to put
together,
but it's not hard to reproduce.
In the typical scenario you have a timeline based animation. You
put a stop
at the end of it. In the next frame, in a different layer, add a
keyframe
and put a sound from the libray on it. Set it to stream.
Let you're animation play. It will stop at the correct frame, but
the sound
will play even though it is located after the frame where you put
your
stop().
Fix it by adding more frames between the frame where the stop() is
and where
the streaming sound is.
Take care.
Kurt
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kerry
Thompson
Sent: Monday, October 19, 2009 5:28 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Timeline Streaming Sounds Playing Early?
Dave Dev wrote:
I have a frame with a stop actionscript command. The next frame
has a
streaming sounds and a frame label. At runtime, Flash stops at
the stop
command frame, but then plays a very brief portion of the
streaming sound
in
the next frame. Placing some frames in between the sound and
command seems
to fix(?) the problem. This occurs on Windows XP, but not Mac OS
X using
Flash Player 8.
Hmm... which version of Flash are you using? Is the sound in the
library, or
in an external audio file? Is the sound played with an AS command,
or is it
on the time line?
Sorry to ask so many questions. The way you describe it, it sounds
like a
bug in Flash, but something like that should have been found and
fixed long
ago. I suspect there's more going on--possibly something you don't
know
about, or that treats the audio in a way you haven't thought of.
Cordially,
Kerry Thompson
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders