flash audio issues

Soldato
Joined
19 Oct 2002
Posts
3,480
hi guys, got a couple of problems with audio in flash and i'm sure there is just a small technicality i am overlooking so would appreciate some advice :)

the first problem is syncing, there is a sound which needs to be exactly in sync with the visuals, and i was under the impression that the way to do this was setting the play option to 'Stream' - this however is a good 10 frames off accurate (which is still a bit better than just set to 'Event') so i need to offset it manually which is obviously not the way forward, anyone shed any light?

secondly, i have some audio playing at the start of the move, about halfway through the movie stops (just a stop() command which halts all the graphics) - however a sound which plays shortly after the stop still plays :confused: - it is on its own layer and also set to Stream so i have no idea why the whole movie stops but that one layer decides it wont :(

if anyone can help me with these two points it would be greatly appreciated :)
 
My suggestion would be to use movie clips inside the main stage instead of running it all on a long movie.

Also - try preloading the files before playing, to make sure no lag in the audio.
 
QuiKsiLVeR said:
i have no idea why the whole movie stops but that one layer decides it wont :(

stopAllSounds();

The answer above was for your other post too, got confused!


Edit.
Sounds like you are very new to flash, have a look at the tutorials on flash, also a good resource is actionscript.org and flashkit.com
 
i have used the stopAllSounds() actionscript, it was on its own timeline with a few other actions so thought that might be why the sound still works, but i've even put it into the same layer as the audio and it still persists to play :(

in the actions layer on a keyframe i have:

Code:
stop();
stopAllSounds();
the movie DOES stop, the sounds dont :confused:

any ideas?

with regards to the audio sync issue, it is a bug which has somehow permeated through to CS3... the solution incase anyone else gets stuck is to set the stream encoding options (in publish settings) to override ;)
 
Back
Top Bottom