Be a Supporter!

Button sound issue please help

  • 223 Views
  • 1 Reply
New Topic Respond to this Topic
Hero101
Hero101
  • Member since: Dec. 13, 2005
  • Offline.
Forum Stats
Supporter
Level 22
Game Developer
Button sound issue please help 2008-04-18 22:51:29 Reply

I made a button that makes a sound when you put your cursor over it. I test it out by pressing
Ctrl + Alt + B and then rolling my cursor over the button and it works, the sound is played. But when I test the .swf with Ctrl + Enter or Publish Preview - Html the sound won't play when I roll over the button.

I placed the sound within the button on a new layer at the top and it's placed in the Over keyframe.

Any ideas why it won't play?

Thanks you in advance guys.


BBS Signature
Matt-Porter
Matt-Porter
  • Member since: Aug. 9, 2004
  • Offline.
Forum Stats
Member
Level 41
Game Developer
Response to Button sound issue please help 2008-04-19 00:29:37 Reply

Not sure what's wrong, but I do know your trying to make a button play a sound when you press it so,

check this out, it's some action script to attach sounds and play them using code rather then putting the code on the frames, you can also adjust volumes, decide which speaker the sound will play in and how much in each as well as stop just that one sound rather then all sounds with stopAllSounds()

Sound AS Tutorial
I
I'll check back in like an hour if your still having trouble. Give that a try though, I know it works, use it all the time :)