| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > button OVER state sound effect also plays in DOWN state? |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2009
Posts: 22
|
button OVER state sound effect also plays in DOWN state?
This is for CS3, ActionScript 3.0 I created a Flash file with a PLAY button and a STOP button. I then added a sound effect on the OVER state of each button only. Problem is, the same sound is also playing in the DOWN (click) state as well. It's a quick sound (1/4 of a second) so it's not as though it's lingering from one state to the next. It's clearly initiated by both OVER and DOWN. Just for the hell of it I tried inserting a blank keyframe into the DOWN state on each button, but that didn't fix anything. Googling the problem uncovered several other people who had the same issue, but none of them seemed to get straight answers. So here I am. All help is appreciated. |
|
|
|
|
|
#2 (permalink) |
|
Graphic Motion Webdesign
Join Date: Sep 2007
Location: Belgium
Posts: 269
|
Try adding something like this to the downstate: stopall(); or flash.media.SoundMixer.stopAll() So you commanded the sound to play, now you have to command it to stop as wel. Adding a blanc to the downstate will not stop your music it wil only add a blanc to the sound. |
|
|
|
#3 (permalink) | |
|
Registered User
Join Date: Jan 2009
Posts: 22
|
Quote:
Unfortunately I'm not on a computer with Flash right at this moment so I can't test it, but I will try it. Thanks. However, my initial guess is that this isn't the solution to the kind of issue I'm experiencing. I don't need to stop the sound from the OVER state (it's only 1/4 of a second long and set to play just one time). The problem is that the DOWN state also triggers the sound effect. |
|
|
![]() |
|