Groups | Blog | Home
all groups > macromedia players flash > february 2005 >

macromedia players flash : Audio doesn't stop with Javascript StopPlay()


aeon-solutions
2/23/2005 1:53:29 PM
We are using JavaScript Play() and StopPlay() functions to control the playback
of Flash files embedded in a web page in Mozilla. We also embed the flash file
with the play=false option. When we use flash files with no audio everything is
working as expected. However, when we use flash files with audio, the audio
begins to play, even though the flash file is stopped. When we call StopPlay()
the visual part of the flash file stops but the audio continues to play. If we
load a flash file with audio and don't call JavaScript Play() on irregular
occasions the entire system freezes or crashes X.

Is there a known issue or bug relating to this? Is there an alternative set of
JavaScript functions that will control both the visual and audio aspects of
flash playback?

Environment:
- Redhat 9
- Mozilla 1.7.3
- Flash Player 7.0.25.0

Jeckyl
2/24/2005 7:46:03 AM
If the sound is a synchronised streaming sound track, embedded in the main
movie timeline, then it should stop when the movie stops. If it is in a
clip, or loaded dynamically, or is an event sound, then the playback of the
sound is independent of the playback of the main movie timeline, so stopping
that won't affect the sound (just like it won't affect any clips in the
movie, or any movies in other levels). There is no simple method that will
stop ALL animation and ALL audio.
--
All the best,
Jeckyl

AddThis Social Bookmark Button