Category Archives: Action Script

Building a Better Bitmap Button in AS3

building-a-better-bitmap-button-in-as3

Building a button from a bitmap can be bothersome. If you’re using the Flash IDE, you can create a mask to determine which pixels are part of the button and which aren’t, but in any other workflow, the entire rectangle containing the bitmap – including any transparent pixels – will be clickable. In this Tutorial, you’ll learn how to automatically make all transparent pixels unclickable, with just a few lines of code.

Make a Tower Defense Game in AS3: Aim and Fire

make-a-tower-defense-game-in-as3-aim-and-fire

Hey Flash developers! In this Tutorial series we are going to go through the process of developing a very basic Tower Defense game. In this first part of the series, we’ll learn how to deploy turrets on the game field, give them the ability to aim at an object (in this case, the mouse) and make them fire particles.

Easy, Fluid Keyboard Movement in AS3 With the Input Class

easy-fluid-keyboard-movement-in-as3-with-the-input-class

There are a lot of games out there with jerky, unrealistic movements and that can do only one thing to your product: make it unappealing to the audience. But smooth movement is not hard to achieve – let’s get to work!

Quick Tip: Collision Detection Between a Circle and a Line Segment

We covered collision detection between an infinite line and circle in our previous Quick Tip. However, the issue that arose was that the line extends further than the visible line segment; in fact, it extends into a hyperplane. In this Quick Tip, we shall limit our collision detection to that of a line segment only.

How to Add Mouse Gesture Control to Your Flash Projects: Multi-Stroke Gestures

In the first part of this series, I introduced a class to handle single mouse stroke detection: MGesture. This Tutorial takes it a step further, by detecting a sequence of strokes.

We’ll be using the class GManager for this, in tandem with MGesture. After briefing through GManager functionality, an application demonstrating its use will be developed.

Monitoring the Loading Process in Flash With the Loader Class

In AS3 projects, you often need to load external assets like images and other SWFs. While loading these assets you have to keep track of several events for successful execution of your application. You might have been using some of these events like ProgressEvent, COMPLETE event. This Tutorial shows you how to get info about the assets you’re loading with Loader.load(), using its associated events, all in one place. So if you’re having difficulty loading such assets, or you have less time in hand to debug, take a look at this.

Squeezing More Juice Out of the Flash Player

In this Tutorial you’ll build an extreme particle system whilst learning how to squeeze more efficient goodness out of the Flash Player than you ever thought possible!

Create a QR Code Generator in Flash Using AS3

create-a-qr-code-generator-in-flash-using-as3

QR codes are everywhere these days: magazine advertisements, billboards, even TV commercials. Chances are you have a phone in your pocket that can read a QR code and decode the URL or message contained within. In this Tutorial, you’ll learn how to create a SWF that can reverse the process: create a QR code from a URL or message. Read on!

Quick Tip: Create a Simple Points System Using AS3

graphics_on_stage_image

In this Quick Tip you will learn how to make a simple points system that can be extended into your own games. This Tutorial is for total beginners, and in it you’ll learn how to create a set of buttons that the player can click to add or subtract points to or from their score. Simple!