I have these navagational buttons with sounds on them on my website and every time you load a page the buttons play and I would like to stop them from doing that because they have sounds on them and it getting annoying to here them all play at once every time you load a new page. I tried putting a stop action on the first frame of the button’s movie clip but that messes it up and puts the sound out of sync with the roll over.
Make an empty movieClip anywhere. I usually put mine right off to the side of the stage. Call it ‘soundOne’. Edit ‘soundOne’ and put a stop(); action in the first (empty) keyframe. Make a second keyframe and put in your clicking sound. Now, on your first (home) button, put this action:
[AS]
on(rollOver){
_root.soundOne.gotoAndPlay(2);
}
[/AS]
Since your sound is the same for all four buttons, you can just put that action above on all four of your buttons. If you use different sounds, you’ll need different movieClips. Tadaa!!