Something Wrong with the System

A Flash/Actionscript blog

FadeSound AS3 – A class which fades sounds in and out automatically

Get Adobe Flash player

Recently I was working on a project that required me to fade a sound in and out dynamically. Here is the result:

FadeSound (clever name, huh?) is an AS3 class that extends Flashs built in Sound class and includes fading in and fading out (including auto-fade out on sound completion).

Here is the source:

You can probably just dive in and figure it out based on the examples, but I’ll do a write-up after the break.

Read the rest of this entry »

December 27th, 2010 by Peter Organa
Posted in AS3, Programming, Source Code | Comments Off