Finding onSoundComplete
i wondering if there way determine if sound still playing once frame in movie.
what doing loading , streaming sound in 1 frame , letting play while other events take place. stop events @ 1 point , wait sound clip stop before continuing. works if sound still playing when last frame. @ last frame use onsoundcomplete function go next frame. however, sometimes, though not every time, sequence takes longer play duration of mp3. if happens, last frame, , nothing happens, because sound no longer playing.
if there way determine if sound still playing or not, use if-then argument continue playing next sequence.
maybe there's different way go this. suggested forcing sequence match frame rate, don't want go route.
thanks.
what doing loading , streaming sound in 1 frame , letting play while other events take place. stop events @ 1 point , wait sound clip stop before continuing. works if sound still playing when last frame. @ last frame use onsoundcomplete function go next frame. however, sometimes, though not every time, sequence takes longer play duration of mp3. if happens, last frame, , nothing happens, because sound no longer playing.
if there way determine if sound still playing or not, use if-then argument continue playing next sequence.
maybe there's different way go this. suggested forcing sequence match frame rate, don't want go route.
thanks.
major seven,
> wondering if there way determine if
> sound still playing once frame
> in movie.
check out sound class entry of actionscript 2.0 language
reference. of useful value in flash can described
by object, , classes define objects. properties show
characteristics; methods things can do; events things
they can react to. see, example, comparing sound.position
property against sound.duration property given sound instance.
this means you'll have use actionscript generate sound, rather
than timeline.
> if there way determine if sound
> still playing or not, use if-then argument
> continue playing next sequence.
set arbitrary timeline variable -- say, soundisplaying --
to false default. set true when sound starts, use
sound.onsoundcomplete event set false again. check variable in
order make decision.
david stiller
adobe community expert
dev blog, http://www.quip.net/blog/
"luck residue of design."
> wondering if there way determine if
> sound still playing once frame
> in movie.
check out sound class entry of actionscript 2.0 language
reference. of useful value in flash can described
by object, , classes define objects. properties show
characteristics; methods things can do; events things
they can react to. see, example, comparing sound.position
property against sound.duration property given sound instance.
this means you'll have use actionscript generate sound, rather
than timeline.
> if there way determine if sound
> still playing or not, use if-then argument
> continue playing next sequence.
set arbitrary timeline variable -- say, soundisplaying --
to false default. set true when sound starts, use
sound.onsoundcomplete event set false again. check variable in
order make decision.
david stiller
adobe community expert
dev blog, http://www.quip.net/blog/
"luck residue of design."
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment