Archive for the ‘ActionScript’ Category

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

Monday, February 2nd, 2009

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:

Setting up Eclipse + FDT for CS4 Authoring

Friday, October 10th, 2008

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

Flashcamp 10 San Francisco – Day 1

Friday, October 10th, 2008

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…)

ActionScript 3 Workshop Slides

Tuesday, July 1st, 2008

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