Be a Supporter!

Music stop script

  • 295 Views
  • 3 Replies
New Topic Respond to this Topic
spritezero
spritezero
  • Member since: Mar. 19, 2009
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Music stop script 2009-03-19 04:31:01 Reply

i have a video that i have a sound effect in that starts a bout half way through, and at the end when you click the "replay" button, the music stays on throughout the whole clip. I was wondering if anyone could post a code for the music to stop at the end of the animation, thanks

Denvish
Denvish
  • Member since: Apr. 25, 2003
  • Offline.
Forum Stats
Member
Level 46
Blank Slate
Response to Music stop script 2009-03-19 06:10:59 Reply

At 3/19/09 04:31 AM, spritezero wrote: i have a video that i have a sound effect in that starts a bout half way through, and at the end when you click the "replay" button, the music stays on throughout the whole clip. I was wondering if anyone could post a code for the music to stop at the end of the animation, thanks

stopAllSounds();should do the job


- - Flash - Music - Images - -

BBS Signature
Xeptic
Xeptic
  • Member since: May. 12, 2005
  • Offline.
Forum Stats
Member
Level 32
Game Developer
Response to Music stop script 2009-03-19 06:18:38 Reply

Or you could set your sound to stream.


BBS Signature
starownage3
starownage3
  • Member since: Apr. 22, 2008
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to Music stop script 2009-03-19 07:00:38 Reply

At 3/19/09 06:18 AM, Xeptic wrote: Or you could set your sound to stream.

thats makes it sound worse when you export.
i use the script.


My friend's sister plays wizard 101....
she's 17.....
wtf?