Also known as: dynamically drawn hitarea bug filter applied hitarea bug hitarea no longer works hitarea stops working I recently noticed two weird bugs while handling hitArea’s in Flash (I say bug you might say feature). Situation 1: you have a clip on the timeline, let’s call it dialog you have a large hitarea below […]

image_pdfimage_print

During a partial refactoring process of the Behrloo client system, one of the items on my list was the backend webservice result processing. Without going into a lot of detail how these services are wrapped, it suffices to say that somewhere in the application a couple of webservices are being initialized and utilized through the […]

image_pdfimage_print

Some of the V2 Flash Components are less than intuitive now and then. While working on the new trophy tour for Heineken we had to create an application with a transparent textarea with non selectable non editable text using a non standard (embedded) font with Spanish characters. Oh and the text had to be rendered […]

image_pdfimage_print

When implementing super and subclasses, Flash will call the superclass’ constructor automatically unless you call it yourself. Imagine you have the following code: class Super { public function Super () { trace (“super called”); } } class Sub extends Super { } var myObject:Object = new Sub();

image_pdfimage_print

A piece of code and a demo says more than a thousand words :). This code demonstrates inversion of an alpha channel in Flash8/AS2.

image_pdfimage_print

Imagine you have: var my2dArray:Array = new Array(); my2dArray.push ([1,2,3,4,5]); my2dArray.push ([6,7,8,9,0]); And now you want to access and cast an element of myArray to an array: var firstArray:Array = Array (my2dArray[0]); trace (firstArray.length); Right?

image_pdfimage_print

Also known as: debugging function calls displaying the name of a called function tracing function calls director like Today I finally got to try something I had been wanting to try for a long time: wrapping function calls in a nice way. I had been playing around with function pointers etc, which was ok in […]

image_pdfimage_print

There is an old trick which comes down to drawing a fluid line through controlpoints, by using the average of the controlpoints as anchors. Here is my quick and dirty go at it: You can download the example here:

image_pdfimage_print

A question on the flashcoders list about an hour ago triggered me to put together a very simple example that I have been wanting to put together for ages now. How do you get the name of a function? With function we could refer to: any function a calling function a function being called My […]

image_pdfimage_print

You might stop reading here, everything you need to know is in the provided example:. So you have decided to read on. Yes, it’s 2007 & I’m still doing AS2. I know, it’s sad, and I’m never gonna get my band started (weird purple tentacle sucking noises). But believe or not, I still love it […]

image_pdfimage_print