|
Project Information
Featured
Downloads
|
IntroductionSound is one of the areas in Flash that seems to cause the most frustration. The included sound classes are adequate for basic playback but don't provide enough capability on their own for larger projects. The area we found to be most lacking is in organization and management of lots of sounds. In order to get the level of control we have needed for client projects we created our SoundManager system. The SoundManager is a system designed to simplify working with sound in Flash. SoundManager enables you to work with sound individually, in groups or globally. This makes dealing with large numbers of sounds much easier. SoundManager is built in Actionscript 3 and works with Flash Player 9 and above. Getting StartedThe 3 main classes are SMSound, SoundController and SoundManager. These provide you with the multiple levels of control. The system operates as a basic hierarchy with the SoundManager Singleton acting as the global sound control, and calling methods on its list of SoundControllers, which in turn call methods on their SMSounds. All of these objects can work together or individually. A SMSound can be created and used on its own. Likewise the SoundController does not need the SoundManager to function. SMSound is an object that represents the actual sound object in the library. This manages the states and access to the embedded sound object. This wraps flash.media.Sound to provide easier control. It is recommended that all SMSound objects be controlled through a SoundController. However, SMSound objects can function on their own in a limited capacity. SoundController is intended to manipulate individual SMSounds or groups of SMSounds. Each SoundController contains a list of SMSound objects that can be controlled. This provides the ability to controls groups of sounds. SoundManager is the global controller for all sounds. The SoundManager is used to manage a list of SoundController objects. Methods called on the SoundManager will be applied to all of the contained SoundControllers. SoundManager makes use of the Greensock Tweening Platform for fading effects. You can find documentation and licensing information for that here. SoundManager currently supports the ability to set volume but not panning. That will be supported in a later version. This project is licensed under GPLv3. This project makes us of the GreenSock Tweening Platform. |