dcsimg
A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 40

Thread: Button for background music

Hybrid View

  1. #1
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74

    Button for background music

    How can I set up a button to turn off background music on my flash site? Now my whole site is going to be flash so will this be a problem?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

  3. #3
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    I’m read threw all the different ways to do this and I’m not seeing my way. What I want to do is “When my site is clicked on I have a background loop that starts right when site comes up and when end user is tired of hearing this loop I need a button to stop or pause”. Can’t seem to find this on this page.

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Everything's there!

  5. #5
    Senior Member
    Join Date
    Nov 2002
    Location
    Maryland, USA
    Posts
    428
    just simply have the sound start when the movie first loads.

    Then have a button set to

    stopAllSounds();

  6. #6
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    With this stopallsoounds will this stop all other sounds like button clicks, and sounds in different pages?

  7. #7
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    stopAllSounds() does just that, stop all playing sounds. If Flash encounters a new sound (such as a sound on a button pressed after the stopAllsounds() command was issued), then you should hear that sound, and any others Flash will encounter.

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

  9. #9
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    Ok one more question. Now I am getting the picture on this. Now where do I put this action script? I was trying to put in on the button but it won’t let me put action scripts on a button symbol.

  10. #10
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Check the tutorial!

  11. #11
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    I went over and over tutorial and I’m still not getting results. Even when I copy and paste code I get errors in action script. What am I doing wrong? Can’t be this hard!

  12. #12
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    I was trying to upload site so someone can see what I’m doing wrong but it was to big. If anyone has Remote assistance or maybe I can e-mail site to you will do that. MSN ID is acidblue0@hotmail.com Can you do my button for me? Ok I finally gave up on this. Can someone check out my fla file and add the sound buttons for me? Use the buttons red and green in common library. So far I only have one sound imported so look in Sounds folder for heysong.wav I need background to start playing when movie is loaded and those buttons to turn off and on. NOTE this is a looping sound. Please don’t judge site this is my first one I try to build.

  13. #13
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    I really need for someone to show me how to do this before I break me MX cd-rom in half. I have try everything and I know it is one thing I am missing to make this work. READ ABOVE^

  14. #14
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    I've e-mailed you an address.

  15. #15
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    ok sending file now

  16. #16
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Waiting! Waiting! But not all night!
    Last edited by oldnewbie; 05-22-2003 at 09:01 PM.

  17. #17
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    I sent file? Maybe I sent it to wrong address.
    Last edited by acidblue0; 05-22-2003 at 10:42 PM.

  18. #18
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Check your PMs!

  19. #19
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Your .fla is empty! What do you want me to do?

  20. #20
    Member
    Join Date
    May 2003
    Location
    Lafayette. La
    Posts
    74
    I just check zip file and all 3 files are in there?????

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