2 Replies Latest reply on Mar 14, 2008 2:57 AM by Peter Lorent

    AS for sound


      I was wondering if someone could tell me the AS for making music fade out once a button is pressed.

      Thanks for your time,

        • 1. Re: AS for sound
          clbeech Level 3
          sure - what you need here is to execute a method that slowly reduces the 'setVolume()' property of the Sound Object. If you don't have your sound brought in by 'script' you can still use a 'global' Sounds Object to accomplish this, but it wil effect all sounds within the swf file. so from your button you would call the method, and it will use an onEnterFrame event to reduce the volume over time. something like this:
          • 2. Re: AS for sound
            Peter Lorent Level 2
            Or, use the fusekit.