A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Backgrounds Sounds vs. Button Sounds

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    12

    Backgrounds Sounds vs. Button Sounds

    Hi!

    I have tried browsing briefly through the forum, but failed locating anything similar to my issue.

    I have a background music playing, and buttons that makes different noises when you roll over them. The issue is that I can't stop ONLY the buttonsound when you scroll away from the button.

    The code looks like this:
    ------------------------------
    on (press, release) {
    gotoAndStop(215);
    }
    on (rollOut)
    {stopAllSounds();}
    ------------------------------

    I'm aware that it is the stopAllSounds that makes all sounds stop, the key is to make a code that stops only the button sound.

    Cheers!

    -David
    Last edited by DBygnes; 05-13-2005 at 01:45 AM.

  2. #2
    Can't Re-Member madzigian's Avatar
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    2,662
    you need to define the sound objects first. then you can control them independently...

    check out this site it will give you all the info you need about defining sound objects and controlling them independently:

    http://www.kennybellew.com/tutorial/

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