Hello,
I have a Flash site I'm developing which has a section with various flv movies. When I click on the section, the 1st movie starts automatically and plays fine but if I navigate to another area of the website before it finishes, the sound still plays in the background. If I click on a different movie thumb, the sound stops as it should.
Can anyone help me with how to code this in AS 3?
I'm learning it right now but still very green and I have no idea of how to make the music stop.
Any help would be much appreciated.
Thanks,
Mike
Need help with stopping movie sounds...if you're using an flvplayback component (with instance name flv), use:
flv.stop();
before navigating away from that frame.
if you don't understand how to do that you can always use:
SoundMixer.stopAll();
to stop all sounds.
Need help with stopping movie sounds...Hello,
Thanks very much for the helpful advice. I was able to stop the sounds while navigating away from the movie section to various parts of the website.
I placed SoundMixer.stopAll(); above each of my sections (except for the movies of course) in the actions timeline and it works perfectly.
Thank you again.
Best regards
Michael
you're welcome.
No comments:
Post a Comment