In this article I will be going over a simple and basic game sound class that I whipped up in a matter of hours. This GameSoundClass, I have used this in a bunch of small projects and games. For the purpose of simplicity, code for controlling the sound levels, pitch, pan and volume have been taken out the code. The goal is just to create a basic “Sound Manager Class” for beginners to programming in OOP AS3 and anyone who just needs something quick and dirty for projects that work.
The code is located here https://gist.github.com/1748231
The downside: Using this class, you will have to load all the sounds at once, most likely in your game or programs preloader. This does not matter as much for small projects but when you start using bigger a bigger library of sounds you will notice a long load time. If you have any questions or comments please post them! You can also follow me on twitter @GabeTHEGeek as I plan to write some tutorials using AS3, C++, and C#….or just on something cool I stumbled upon(Get the joke). Enjoy!