|
|
1.Go to menu :File\Import\Import to library
2.Select the sound file you want
3.Open the library panel (You can also press Ctrl + L)
4.Right-click on the sound you imported
5.Click "Linkage..." from the menu
6.Check "Export for ActionScript" & "Export in first frame".
7.Enter a name for sound in "Identifier" field
(This is the name you will use to address your sound from now on)
For example : "thesound"
8.Press "OK"
9.Choose an action frame of the movie where your button is in
10.In the actions panel of the choosen frame write the following:
CODE
song = new Sound();
song.attachSound("thesound");
11.Select your button and open the actions panel for the button.
CODE
on(press)
{
song.start();
}
Congratulation ! Your flash button with sound is ready to use now .
-----Although this tutorial is quite short, it does contain useful information. I'm going to approve this-----szupie


