Welcome to my blog. Some of these posts can also be viewed as a series. Due to my teaching & game development activities it has been sort of empty here lately ;).

Flag effect in ActionScript 3

What better image to use for a flag effect than an image by Derek Riggs (which you already have on your living room wall right? Not?) Click on the flag ! Anyway, in this example I’ve experimented with using perlin noise as a displacementmap, and overlaying the same displacement map for a lighting effect. The […]

Wrapping BitmapData in Actionscript 3

Sometimes you overlook the easiest solutions. I had implemented a wrapping bitmap in actionscript 2, by some complex copyPixels code, which would cut 1 to 4 pieces from the original image and put them together again, providing you with a bitmap that wraps. Then I realized that there is a much easier solution, with more […]

Visual Reflections in ActionScript 3

I migrated the of my reflection class some time ago, but hadn’t gotten to posting it yet. I managed to whip up some examples of this new as 3 version. It’s not as feature rich as the as 2 version due to some changes between as 2 and as 3, but just as easy to […]

Why are there 360 degrees in a circle?

Although you might not expect it, we need to answer another question first. Why are there 60 seconds in a minute & 60 minutes in an hour? The origin of 60 seconds per minute, 60 minutes per hour and 360 degrees per circle has to do with the Babylonians. For beginners they used 60 as their […]

Visual Reflections in ActionScript 2

Making a reflection is not that hard, but getting it to work right with scaled clips with weird registration points out of the box was a little harder. Anyway I think I came up with something nice, and it performs quite well: You can download the source and a bunch of demo’s here .

Injection Swf Class hook

Also known as: keeping your sources out of the injection swf decoupling your main class from your injection swf If you are developing your actionscript 2 apps in FlashDevelop, in a lot of cases this means you are using an injection swf. This injection swf contains all your assets. There are two options to start […]

Grabbing bitmap data from external swf in ActionScript 2

Also known as: alternative localization method grabbing bitmap data from a loaded swf in actionscript 2 linkageExportForAS in JSFL not working for bitmaps For Heineken, one of TriMM’s clients, I had to work on a project called the photomodule. Originally written by Paul de Jong, it required some adaptions for another site. One of the […]

Iterating properties creates unwanted side-effects

Also known as: iterating properties in actionscript 2 causes getter setter to execute I was working on our AS2 logger today. In particular I was creating a setup where you could simply drop in a couple components in your fla and ‘tada’, you would have a reflecting logger at your disposal. I’ll go into the […]

Finding character positions in ActionScript 2

Also known as: finding the position of a character in a dynamic textfield with embedded fonts using actionscript 2 One of current projects involves some texteffects and I am loath to do anything on the timeline that can be done quicker by code. So my basic idea was (keeping the designer in me happy): Doing […]

JSFL FLfile.listFolder archive bit bug

Today I ran into a nasty ‘feature’ of FLfile.listFolder in Flash 8 on Windows XP. FLfile.listFolder doesn’t list files that don’t have the archive flag enabled. Workaround: none except enabling the archive flag for all files you are searching for.