A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Anyone know how to stop a sound on release under a button?

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    25

    Anyone know how to stop a sound on release under a button?

    I tried using stopSound ("mysound.wav") as the help file instructs me to

    but it has absolutely no effect at all.

    You can hear what I mean here: http://www.thedailysearch.com/testing.html

    The only thing that works is stopAllSounds ();

    as it stops the roll over echo under the button

    But it unfortunately stop a page transition effect sound that initiates when any menu button is clicked.

    I just want to stop the sound under the button on release and leave the other sounds in the scene alone.

    thanks!
    Last edited by banned; 12-16-2009 at 06:46 PM.

  2. #2
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    How is the sound initiated?
    is it a button or in the timeline?

    It is the norm to provide the .swi when you make a post requiring futher investigation.
    Having the .swi allows someone to "look under the hood" otherwise it's just speculation.

  3. #3
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    How is the sound initiated?
    is it a button or in the timeline?

    It is the norm to provide the .swi when you make a post requiring futher investigation.
    Having the .swi allows someone to "look under the hood" otherwise it's just speculation.

  4. #4
    Junior Member
    Join Date
    Nov 2009
    Posts
    25
    hi,

    well i'm not on my computer with the swi but here is the swf file for now.

    http://www.thedailysearch.com/recklessy.swf

    the sound is under a button and not the time line.

    to help you picture it...the mouse over sound is under a movie in each menu buttons "over state"...

    in your estimation, should stopSound ("mysound.wav") work?

    another route to fixing this is, if you have created your own buttons with hover sounds in swishmax3, that don't repeat the sound when clicked or released is to send me the swi file and i can just copy what you did...thank you...

  5. #5
    Junior Member
    Join Date
    Nov 2009
    Posts
    25
    Okay, I copied the button and put it in its own swi file and attached an object with an effect to it.

    As you can hear, there is the hover over sound (which I want to keep) and there is the on release repeat sound (which i want to get rid of).

    And I want to do this without interfering with the sound attached to the rectangle object.

    Maybe you could just create a one button example and I could copy it?

    Thank you.

    http://www.thedailysearch.com/buttoncontact.swi

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