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

AS3 | Flash | Tips

This isn’t right… MovieClip nested inside Button throwing null object reference error in Flash CS4

A great thing about teaching is that your students approach problems in ways you haven’t done before and run into problems that you never knew existed. This is one such problem in Flash CS4 and a curious one at that. THE PROBLEM: A Button symbol is placed on the Stage on a frame other than [...]

Read the rest of this entry...
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...
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

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...
Mar 13 2009

AS3 | Flash | Tips

Common Flash Compiler Errors: #1126

This error shows the following in the Compiler Errors window: 1126: Function does not have a body. Quick Answer and Solution By double-clicking on the error it will take you to the offending line of code. This error commonly happens when the end of line designator “;” is placed at the end of a function [...]

Read the rest of this entry...
Feb 26 2009

AS3 | Flash | Tips

Common Flash Compiler Errors: #1009

My students often run into the same kinds of errors, so I thought I would post some info on the more common ones. One very common error to receive in Flash is this one: TypeError: Error #1009: Cannot access a property or method of a null object reference. Quick Answer and Solution Somewhere in your [...]

Read the rest of this entry...
Feb 12 2009

AS3 | Flash | Tools

Flash movie clip transformational properties explorer, manipulate values live!

I created this simulation to visually show the relationships between a movie clip’s (actually any display object’s) transformational properties (x, y, width, height, scaleX, scaleY, rotation, and transformational matrix). Drag the square around the “Stage” and move the sliders to transform it. Each property is prefixed with a dot “.” since in a real application [...]

Read the rest of this entry...
Feb 02 2009

Flash | Tips

Flash CS3 IDE not displaying all coordinate decimal places

Flash CS4 has corrected this issue, but in Flash CS3 the coordinates of a movie clip on the Stage are only displayed to the first decimal place (e.g. 100.5). So an x coordinate value of 100.55 would be displayed in the Properties panel as 100.5, yet still be 100.55 in the x property of the [...]

Read the rest of this entry...
Dec 16 2008

Flash | News

Showcasing my students work

The semester has wrapped up at Marietta College and I’ve posted the grades for my class: “Motion and Interaction.” I was really pleased with the enthusiasm and dedication my students showed throughout the semester, which made teaching the class a rewarding, educational, and enjoyable experience for me. To show my appreciation I will help my [...]

Read the rest of this entry...
Nov 13 2008

Flash | Tips

Imported image renders as big red box in Flash CS3

I was working with one of my students on Tuesday to create a filmstrip-style photo gallery where the user could move to the left or right of the filmstrip center and the line of photos would scroll into view. I was looking at the student’s .fla and when I tested their movie the photos appeared [...]

Read the rest of this entry...