|
-
Start and Stop Sound Button
http://www.flashkit.com/movies/Basic...dex.php?chk=no
I want to learn how to make a button to start sound or stop sound, however, i were unable to download .fla from the link above, can you show me how to make it? Please and thanks!
-
Just right-click on the link and select save as...
MaX_BoY
-
Nope, i downloaded it but when i open it, it said cannot open file
-
Like everything in flash there are a few ways to skin a cat, so I hereby offer a garden variety start/stop sounds button:
To start a sound you can go double click on the button's instance -be sure it is named- and then add key frames to each of the four states up, down, over and hit. Then highlight the down state by clicking on the down keyframe and go down to the properties inspector to where it says 'sound' and click on the arrow next to where it says 'none'. If you have imported your sound file to the .fla library you should see it in the drop down menu. Just select it and that's it. When the button is pressed, the sound will start.
Now to stop the sound: Highlight the button instance on the stage and in the actions library under 'movie actions' -the very first category- double click on the word 'on'. In the window to the right you will see the script appear and you then have the option to select what event will trigger whatever action you will assign-ie. on rollover, release, down, rollout et al. By default it will say 'on release' but you can unclick 'on release' and click 'on down' for example if you'd rather. After this you need to go back to the actions library to your left and at the very bottom of the 'movie actions' select 'stopAllSounds'. Double click on it and you're done.
Hope this helps...
-
Ephmmm.... thanks but i cant understand it, can you show me a work or something?
-
climbing shoots and ladders
FEIGNER
Before you post, do you search?
-
Woww, i dun quite understand the action script but i will try to figure it out, thank you very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|