Creating Sound Controls: Instructions from the Action Script Reference Guide:
1. To create buttons that start and stop sounds, show an animated movieclip that plays when sounds play, and create sliders to control volume and pan, go to HELP>Action Script Reference Guide>Creating Sound Controls:
2. Follow the step by step instructions in ÒCreating Sound
ControlsÓ:
3. As the instructions tell you, start by identifying a ÒLinkageÓ for your sound file:
Follow all instructions carefully, substituting your own Identifier name, and making sure all instance names correspond:
Ñyour symbol instances should be named when you create the symbol (i.e. ÒplayButtonÓ or ÒstopButtonÓ or ÒspeakerÓ (speaker is for the movie clip);
Ñyour instance names should also correspond to the instance
name you enter into the Properties box, again, for buttons and movie clip;
The instructions in the ÒCreating Sound ControlsÓ section
tell you how to add action script to the FRAME in the timeline, in order to
create a sound ÒobjectÓ and to control the action of your ÒspeakerÓ movieclip. In order for your movie clip to play, its animation must take place in its own nested timeline.
4. In order to complete the sound controls, you must finish
by adding Behaviors to your ÒplayButtonÓ and ÒstopButton.Ó
Select the playButton on the Stage, go to WINDOW>DEVELOPMENT PANELS>BEHAVIORS. Click the + sign in the Behaviors window and go to SOUND>ÒLoad Sound From LibraryÓ. The Òon (release)Ó mouse event should be automatically inserted. Then Click the + sign and go to SOUND>ÒPlay SoundÓ, to add a second behavior to the play button. Note the dialogs that comes up:
make sure you give the same the instance name in each case:
Repeat this process for the ÒstopButtonÓ, this time adding the ÒStop SoundÓ behavior.