Updated Sound and Music Manager for AS3

January 27, 2009 by · 1 Comment
Filed under: Actionscript 3, Tutorials 

Sorry about the lack of updates over the past few days. A project at work is demanding all of my attention, and will probably continue to keep me busy for the next few weeks. What free time I do manage to find, I am continuing work on Catface Games’ first fully-featured game.

Last night while implementing some background music and menu features, I noticed a few bugs within the Sound Manager class posted earlier. I also wanted to add muteSound and muteMusic functionality. Here’s the updated code: Read more

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

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