NOTE: Sadly I am no longer updating this blog. You can go to my homepage instead.
Jun 20 2009

AS3 | Flash | Tutorial

How to build an Object-Oriented ActionScript 3 Preloader in Flash CS4: 2 Methods

The magic of creating a preloader in ActionScript 3 lies in the LoaderInfo class. Every instantiated DisplayObject instance (all objects that appear on the stage, plus the stage itself) have a loaderInfo property that returns a LoaderInfo instance that contains information about the loading progress of that particular display object. Creating a preloader for the [...]

Read the rest of this entry...
May 05 2009

News

Learning Flash CS4 Professional published

Once again I had the pleasure of working as a technical editor with O’Reilly Media and author Rich Shupe on his latest title, Learning Flash CS4 Professional. It has just recently been published. Check it out!

Read the rest of this entry...
May 01 2009

Commentary | News

Lessons from 1 year of blogging

This blog just turned 1 year old today, how neat! In celebration of one year of blogging, here are 5 reasons why you should start a blog: It helps you clarify your thoughts – Nothing makes something clearer in your own head than writing it down for others to read. It is your public portfolio [...]

Read the rest of this entry...
Apr 30 2009

News

FITC Toronto 2009 Recap

My third pilgrimage to Toronto to attend FITC has come and gone. Knowing the routine of the conference made this the best one yet for me. I finished off my deck of old business cards from last year and filled my wallet with a stack of cards from others. Here are few notes and links: [...]

Read the rest of this entry...
Apr 21 2009

JavaScript | Tips

Object-Oriented JavaScript Tip: Implementing the Singleton Pattern

The Singleton design pattern is a development approach that ensures only a single instance of a particular class is available in a system. Imagine building the game of chess, you would only want there to be one instance of the board floating around—say an instance of a class called ChessBoard. The Singleton pattern ensures that [...]

Read the rest of this entry...
Apr 09 2009

JavaScript | Tips

Object-Oriented JavaScript Tip: Creating static methods, instance methods

Custom JavaScript objects can have instance methods (function that are associated with a particular JavaScript object), but like other Object-Oriented languages, they can also have static methods, that is functions that are associated with the JavaScript class that created an object, as opposed to the object itself. This is useful in cases where a function [...]

Read the rest of this entry...
Apr 05 2009

JavaScript | Tips

Object-Oriented JavaScript Tip: Overriding toString() for readable object imprints

JavaScript has a core Object class that contains a toString() method that is called whenever a request is made to convert an object to a string (like related ECMAScript-based ActionScript). This is often done during debugging to check that a variable actually contains a reference to a certain object. Most likely alert(myObj) or console.log(myObj) would [...]

Read the rest of this entry...
Mar 25 2009

AS3 | Flash | Tips

Common Flash Compiler Errors: #1046

This error shows the following in the Compiler Errors window: 1046: Type was not found or was not a compile-time constant: [Class name]. Quick Answer and Solution Where I have “[Class name]” above you will have any number of names listed, for example it may say Event, Sprite, TextField, etc. What this means is you [...]

Read the rest of this entry...
Mar 19 2009

Commentary | News

The ever-evolving interactive web space: Microsoft’s Silverlight initiative, Google’s love of JavaScript, Adobe’s comfortably massive Flash Platform

Microsoft’s Web design and development conference, MIX09, is currently happening in Las Vegas, Nevada. As is tradition with major corporate-backed events such as this one, a slew of new products were released. Of note is the Silverlight 3 beta (available here, but it sounds like it is very much a preview). The new features are [...]

Read the rest of this entry...
Mar 19 2009

AS3 | Flash | Tips

Common Flash Compiler Errors: #1042

This error shows the following in the Compiler Errors window: 1042: The this keyword can not be used in static methods. It can only be used in instance methods, function closures, and global code. Quick Answer and Solution Most likely you are you using the keyword “this” inside a class file, but it is not [...]

Read the rest of this entry...