Using sounds with Sound objects
You can use the Sound object in ActionScript to add sounds to a document and to control sound objects in a document. Controlling sounds includes adjusting the volume or the right and left balance while a sound is playing. See Creating sound controls.
To use a sound in a Sound action, you assign an identifier string to the sound in the Symbol Linkage dialog box.
- Select the sound in the Library panel.
- Do one of the following:
- Select Linkage from the options menu in the upper right corner of the panel.
- Right-click (Windows) or Control-click (Macintosh) the sound name in the Library panel, and select Linkage from the context menu.
- Under Linkage in the Symbol Linkage Properties dialog box, select Export for ActionScript.
- Enter an identifier string in the text box, and then click OK.