A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: sound off with fade

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    160

    sound off with fade

    but with a twist ....

    I have a a pile of flv movies that may or may not be playing. When the user releases a specific button I want to fade out the sound of whatever flv happens to be playing. So, I am looking for a universal sound on off button.

    Thanks,
    sumsum

  2. #2
    </hate> dtone314's Avatar
    Join Date
    Jun 2005
    Location
    CA
    Posts
    262
    You could try using:
    code:
    on(release) {
    stopAllSounds();
    }


    It will enable you to turn off your sound, although it doesn't fade out... Hope this is of some help.
    -dtøne-
    Flash CS4 | AS2
    Life is a journey, not a destination.

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    160
    Thanks dtone,
    that is the code I am using now ... what I am really looking for is

    stopAllSounds...slowly():

    hmmm - maybe that will work ...

  4. #4
    </hate> dtone314's Avatar
    Join Date
    Jun 2005
    Location
    CA
    Posts
    262
    Hey sumsum...did some searching and found how to adjust the volume with intervals, AKA fading in and out. check it out: http://www.actionscripts.org/tutoria...de/index.shtml
    -dtøne-
    Flash CS4 | AS2
    Life is a journey, not a destination.

  5. #5
    Senior Member
    Join Date
    Sep 2000
    Posts
    160
    Hi dtone,

    Thanks again! My difficulty is that there is no sound clip to attach. the sound is part of any one of many externally loaded flv files tha play in a flv player component. Thats what makes this tricky - I can't just say fade out "mySound".

    What I need is a method for fading "whateverSound" happens to be playing. Just like "stopAllSounds" - I need "fadeAllSounds"

    Cheers,
    sumsum

  6. #6
    Senior Member
    Join Date
    Sep 2000
    Posts
    160
    good sleuthing BTW!

  7. #7
    Member
    Join Date
    Oct 2004
    Location
    manchester, england
    Posts
    55
    hi sumsum

    did you ever find a solution to this?

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