What a Nightmare!

January 22, 2009 by · 4 Comments
Filed under: Actionscript 3, Tutorials 

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

January 18, 2009 by · Leave a Comment
Filed under: Actionscript 3, FlashDevelop, Tutorials 

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;

Read more

Singletons in AS3

January 17, 2009 by · Leave a Comment
Filed under: Actionscript 3, Tutorials 

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.

Read more

Playing Sounds and Music in AS3

January 16, 2009 by · Leave a Comment
Filed under: Actionscript 3, Tutorials 

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:

  1. Sound: Plays a sound, and handles the loading/buffering.
  2. SoundChannel: Pauses or Stops a sound.
  3. SoundTransform: Volume and Panning.

Read more

« Previous Page