InteractivePNG – AS3 Class to handle hit areas for transparent PNG's

Moses Gunesch, creator of Fuse Kit and ZigoEngine , has developed an AS3 Class which handles mouse interactions when dealing with transparent PNG’s.

Here is the theory:
If you have a PNG (one that contains transparent areas) embedded inside of a MovieClip button, the rectangle of the image acts as the hitArea of the MovieClip. In order for the hitArea to only be defined by visible areas of the image, you would normally have to create a custom mask in order to hide the transparent areas of the PNG. This AS3 Class allows you to specify an alpha tolerance (0=transparent, 255=completely opaque), that will allow you to selective exclude the transparent areas from your hitArea based on the value that you give it. This is a very simple concept, but an intricate implementation.

The project is open-sourced under the MIT  Open Source License. Go and check it out:

Date
February 2, 2009
Time
5:27 pm
Category
Uncategorized
Tags
Tags: , , ,


Setting up Eclipse + FDT for CS4 Authoring

Here are the swc paths that you’ll need to setup FDT for writing Flash 10 code.

Base Flash CS4 Class Path
$(AppConfig)/Common/Configuration/ActionScript 3.0/FP10

Class Path for ik.swc
$(AppConfig)/Common/Configuration/ActionScript 3.0/libs/ik.swc

Class Path for player.swc
$(AppConfig)/Common/Configuration/ActionScript 3.0/libs/flash.swc

Where $(AppConfig) = /Applications/Adobe CS4/Adobe Flash CS4

Date
October 10, 2008
Time
11:27 pm
Category
Uncategorized
Tags
Tags: , , , , ,


Flashcamp 10 San Francisco – Day 1

We got our copies of Flash CS4. The UI is pretty sweet. They now have some pretty decent presets for workspaces. Here are screenshots of the six workspaces that come out of the box.

Animator
Flash CS4 Workspace: Animator
(more…)

Date
Time
11:12 pm
Category
Uncategorized
Tags
Tags: , , ,


ActionScript 3 Workshop Slides

This is a great slideshow on ActionScript 3 development from Grant Skinner.
ActionScript 3 Workshop Slides

Date
July 1, 2008
Time
12:57 pm
Category
Uncategorized
Tags
Tags: , , ,