What a Nightmare!
Sorry about the downtime. This transfer to a new host will be worth it in the long haul, but getting things transferred over has been a complete nightmare. Please bear with me while I work to get the site back up and running…
Using Embedded Images in AS3 in FlashDevelop
A major difference between the Adobe Flash IDE and FlashDevelop is that FlashDevelop does not contain the graphical side of Flash development. I will show you how to emulate the functionality of Flash IDE”s “Library” using only AS3.
Here is an example of how to embed an image directly into your .swf
1 2 | [Embed(source="myImage.png")] public var myImage:Class; |
Singletons in AS3
I am still in the process of building a game framework in actionscript 3. Back in my C/C++ days, I used singletons for my management classes, and I wanted to implement something similar in this framework. Things like an InputManager, a SoundManager, and an AnimationManager were the first few that came to mind.
For those that are not familiar with the Singleton pattern, basically it is used to restrict instantiation of a class to one object. Check out http://en.wikipedia.org/wiki/Singleton_pattern if you would like a more detailed explanation of what a Singleton is and it”s primary usage.
Playing Sounds and Music in AS3
Actionscript 3 has what I (and some others) have considered to be a rather clunky way of handling Sounds. In this article, I discuss how I tried to simplify the process by wrapping everything up into a SoundManager class.
In Actionscript 3, there are three classes that handle controlling sounds:
- Sound: Plays a sound, and handles the loading/buffering.
- SoundChannel: Pauses or Stops a sound.
- SoundTransform: Volume and Panning.

