b3ta.com talk
You are not logged in. Login or Signup
Home » Talk » Message 25503

Why in flash
when i press test movie do the sound and animation go out of sync? and is there an esay way to fix it?
(, Wed 8 Sep 2004, 23:26, archived)
Oh, they're probably not the same length
/no idea
(, Wed 8 Sep 2004, 23:28, archived)
it all
matches up perfectly in the time-line,

the sound gets about 20 frames ahead of the pictures.
(, Wed 8 Sep 2004, 23:30, archived)
publish it
then view the result, it's long winded but more accurate

bloody test obviously doesn't work
(, Wed 8 Sep 2004, 23:30, archived)
hmm
nope, stil out of sync, sound ahead of pictures.
(, Wed 8 Sep 2004, 23:32, archived)
ah
now you need to fiddle about with the frame rate and add in frames

getting the timing right, is a pain in the arse, I have a half finished animation I need to sort
(, Wed 8 Sep 2004, 23:38, archived)
bah,
right, i'll do the rest of the picturyness, and then worry about the sync. It's odd how the longer it goes on the more out of sync it seems to get.
(, Wed 8 Sep 2004, 23:39, archived)
I noticed that as well
it's probably the best plan
(, Thu 9 Sep 2004, 0:00, archived)
Ignore that
set the sound to 'stream' in the property box, not 'event' and it'll force the animation timeline to keep up.

The difference happens because it takes a little longer to render a frame of graphics than it does to play a sound, so unless the framerate is forced to keep up it eventually lags behind. Setting it to streaming forces it to keep pace.

EDIT: this is why it gets worse further on. The more frames to render, the more the slight lag gets. If it's trying to run at 20 fps, but it takes .06 of a second to render a frame rather than the proper .05 then soon a lag will accumulate and continue getting bigger. Geddit?
(, Thu 9 Sep 2004, 1:41, archived)