A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Start and Stop Sound Button

  1. #1
    Senior Member
    Join Date
    Aug 2003
    Posts
    142

    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!

  2. #2
    Member
    Join Date
    Dec 2003
    Posts
    45
    Just right-click on the link and select save as...

    MaX_BoY

  3. #3
    Senior Member
    Join Date
    Aug 2003
    Posts
    142
    Nope, i downloaded it but when i open it, it said cannot open file

  4. #4
    Senior Member
    Join Date
    Apr 2003
    Location
    Seattle
    Posts
    177
    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...

  5. #5
    Senior Member
    Join Date
    Aug 2003
    Posts
    142
    Ephmmm.... thanks but i cant understand it, can you show me a work or something?

  6. #6
    climbing shoots and ladders feigner's Avatar
    Join Date
    Jun 2003
    Location
    IOP
    Posts
    263
    Have a look at this:
    FEIGNER
    Before you post, do you search?

  7. #7
    Senior Member
    Join Date
    Aug 2003
    Posts
    142
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center