Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sound

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
What must i do to make the sound clip begin playing after you hit a certain button. I want the sound on my page to be off as a default. Please help if you can, thanks.
Sham.
 
Import the sound into your movie and put it an the second frame of an mc. Put a 'stop' action in the first frame.

Create your button and insert the follwoing actions:

on (release) {
_root.yoursoundmc.gotoAndPlay( 2);
}

This assumes you drag the sound mc onto the main timeline and that it is not a quick 'event' sound.

If the sound is a basic 'click' sound or something which tells the user they have clicked the button, then follow the following from the Help section:

Adding sounds to buttons

You can associate sounds with the different states of a button symbol. Because the sounds are stored with the symbol, they work for all instances of the symbol.

To add sound to a button:

1 Select the button in the library.

2 Choose Edit from the Library Options menu.

3 In the button's Timeline, add a layer for sound.

4 In the sound layer, create a regular or blank keyframe to correspond to the button state to which you want to add a sound. For example, to add a sound that plays when the button is clicked, create a keyframe in the frame labeled Down.

5 Click the keyframe you have just created.

6 Choose Window > Panels > Sound.

7 In the Sound panel, choose a sound file from the Sound pop-up menu.

8 Choose Event from the Synchronization pop-up menu. To associate a different sound with each of the button's keyframes, create a blank keyframe and add another sound file for each keyframe. You can also use the same sound file and apply a different sound effect for each button keyframe.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top