News

Freelacer again! In Auckland, New Zealand!

08.14.11 | Permalink | 13,670 Comments

I’ve taken the big jump and moved across several ponds to New Zealand! Not only does this mean lots of freelancing on small projects and hiding from the daily rainstorms in Internet cafés in beautiful but wet Auckland, it also means I once again have time to write my blog!

Hello Kiwis!

News

Liquid Interfaces in AS3

06.23.09 | Permalink | 22,221 Comments

I’ve had to answer this at least three times in the last month so I’m assuming it’s a useful piece of code.

When creating liquid interfaces in ActionScript 2 you simply let your object listen to the stage for changes, like so:

1
2
3
4
5
6
7
Stage.addListener(this);
 
...
 
private function onResize() {
   this.mc_background._y = Stage.height
}

In ActionScript 3 the stage is accessible as a property in all classes inheriting from DisplayObject. Useful, but here is where the trouble begins for most people. If you…

ActionScript 3

Copying Objects in AS3, part2

05.13.09 | Permalink | 16,539 Comments

So, last time we looked at how to run an objects constructor to create a duplicate – which is what Adobe recommends as a replacement for duplicateMovieClip.

The problem is that even tho this solves a majority of the situations it does not let us copy an Objects state (such as a Display Objects position, graphics property or the content of an Array).

Flash copies primitive data types such as String and Int when they are assigned to a variable:

1
var…

ActionScript 3

Copying a MovieClip in AS3

04.29.09 | Permalink | 14,562 Comments

Copying a Movie Clip in ActionScript 3. Can’t be done. Right? Wrong.

Well, duplicateMovieClip is certainly gone, but there are still ways of making copies – running an objects constructor for example.

The basic way of doing this (which you no doubt know) is running the constructor of an object directly:

1
2
3
4
5
private var _circle = new customCircleClass
 
// "copy"
 
private var _circle2 = new customCircleClass

This, however, requires you to know the name of the constructor you are running. In many cases…

News

Laying plans

09.28.07 | Permalink | 14,673 Comments

I guess I should apologize for the agonizingly slow pace at with I update. It’s not to do with malice, I’m just swamped with freelance work and it eats away at the little free time I have to write in. It’s a pleasant problem, though; the demand for Flash developers is higher than ever.

Next week I’ll be writing two more articles on the principles of animation, and after that I’ll try to go a little deeper and touch upon…

Flash Animation

The basics of cartoon animation in Flash

09.18.07 | Permalink | 13,702 Comments

Flash cartoon having crached from the top of this page

There are more than a few tricks to animating in Flash, and a lot of them has to do with character design and how to make Flash do the animating for you. But some have to do with the way you handle frames.

The traditional approach when animating is to draw the most important keyframes first. These would be the start of the animation, important turning points and of course how it all ends. When this is done one of your…

Flash Animation

The secret of tweening: When and when not to

09.07.07 | Permalink | 14,035 Comments

One of the biggest problems with animation in Flash is that it’s so easy to cheat. You’ve got motion tweens and shape tweens and timeline effects and the Spaghetti Monster knows what else that all books on Flash demonstrates as “how you animate in Flash”. But these things are just tools; little helpers to speed up work, the bulk of animation (and especially character animation) has to happen with your hands, drawing till you…

News

The lonely Flash developer

08.31.07 | Permalink | 14,945 Comments

First of all, thanks to everyone who has taken the time to visit this page and write to me. There aren’t many large development teams where there is more than one Flash expert – the one I’m on is no exception – so I take any chance I can get to get to know colleagues around the world.

I know it says on the front page that this site is about development as well as animation, but I’m still working…

Flash Animation

Drawing for animation: five useful tips

08.29.07 | Permalink | 14,544 Comments

 Merged sketch of a cartoon

There are obviously a lot more to drawing cartoons than what I wrote in my last tutorial, 9 tips for drawing in flash, but it was a good place to start. Today I thought we might go deeper in and even approach animation a little.

Before we even consider starting to animate I would like to give you a few tips. Most of the animation made in Flash is incredibly bad, and this is not only due to lazy animators.…

Flash Animation

Nine tips for drawing in Flash

08.23.07 | Permalink | 17,316 Comments

 Cat gone bad. This is what we are drawing 

Drawing has always been a well hidden non-talent of mine but every now and then comes a project that requires me to face my demons. Using a mouse to draw is a new experience and if you are not familiar with programs like Illustrator and don’t own a Wacom board Flash is a very easy place to start learning. I will use a popular cat gone bad to demonstrate some of the tricks I use to get around my lack…

« Previous Entries