Using AS3’s computeSpectrum
This is a very basic tutorial on how to build a simple spectrum analyzer using SoundMixer.computeSpectrum, which is new to actionscript 3. This is also my first tutorial ever, so feedback is welcome! :)
This is what we will be creating:
Who is this meant for?
Well, if you’re familiar with AS3, this probably isn’t for you. My aim is to introduce AS3 to people familiar with AS1 or AS2. If you’re not at all familiar with actionscript, I’m not sure this is for you, but you might follow along, and see how simple it actually is (for a rather complex example).
What do I need to know?
Basic knowledge of flash is required and some knowledge in oop and actionscript will help, but I’ll go thru every aspect anyway, so you’ll get it to work with copy-paste, if nothing else ;) Still, if you want to learn something new, I suggest you read what I’m saying here, look at the examples, and do it yourself. Some knowledge of trigonometry & math will help you understand what I’m doing with the data (how i output it visually).
Package and File Organization - Flash 9
Well I said there would be more Flash 9 Tutorials, and well here you go! This is on (as if you have’nt guessed) the Package keyword and file organization in Flash 9. A few people I’ve talked to have had a abit of trouble trying to get this working so it warrants a Tutorial. So anyway lets get in to it!
A New Beginning - From Flash 8 to Flash 9
Well incase you have been living in a cave for the last month, you should already know that Flash 9 Alpha is out. Now with it comes along Actionscript 3.0 with many many changes, and so it is a new beginning for pretty much all Flash Developers.
Javascript Browser Detection Revisited
You’ve all seen them before. Javascript browser detection scripts. There are extremely large and ugly ones out there, ignoring the fact that browser detection in itself is an ugly thing having to resolve to. Our suggestion is based on not trusting the user agent string delivered by the browser. Instead we use a combination of object detection and bad voodoo to be 100% sure what browser and what version is served. Updated for IE7!