Code: Fade to Volume Level
Monday, July 26th, 2010If you want to gradually fade out the audio in your .SWF file, it can be done using Actionscript. It isn’t always necessary to provide an actual volume control bar, and in some cases you might simply want to fade the audio out during some other event (such as fading out the background audio while a video plays). The code snippet below will help you do just that.
The source .SWI file for the example above can be downloaded, here: fade-to-volume_v1
You will need SWiSH Max3 (build 2009.11.30 or higher) in order to open/edit the sample file.
Note: The code can also be used in SWiSH Max2 SWI files (you just can’t open the sample file with it).


