Reply LinkBack Thread Tools Search this Thread
Old 08-06-2009, 04:31   #1 (permalink)
TricksForMoney
Registered User
 
TricksForMoney's Avatar
 
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.
  Reply With Quote
Old 08-06-2009, 04:52   #2 (permalink)
Arties
Graphic Motion Webdesign
 
Arties's Avatar
 
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.
  Reply With Quote
Old 08-06-2009, 06:39   #3 (permalink)
TricksForMoney
Registered User
 
TricksForMoney's Avatar
 
Join Date: Jan 2009
Posts: 22
Quote:
Originally Posted by Arties
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.

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.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet, vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet