HomeAbout

Color

From the site:

One small thing I’ve always found a bit handy with CSS in XHTML is the ability to type familiar names for colors rather than the hex value.

Unfortunately, Flash’s StyleSheet does not support color names at all and Flex’s StyleManager only supports the 16 basic VGA color names.

I decided to write a class that adds static properties for all of the color names defined by SVG 1.0 (The colors in SVG 1.0 include the X11 colors with the addition of gray/grey variants. X11 includes the 16 basic VGA, or HTML4, colors as well). This class also adds two static convenience methods for returning a Color* object by passing in the color name or hexadecimal color value.

http://www.digitalflipbook.com/archives/2008/06/color_name_clas.php

Scale9Mask

From the site:

I ran into another quirk with Flash today. I couldn’t get Flash to apply Scale9Grid correctly on sprites/movieclips that were being used as Masks. After searching for help it seems as though the two features are not compatible (please correct me if I am wrong). Therefore, I threw a class together this afternoon that creates a Rectangle with rounded corners that automatically scales according to the scale9Grid rules. The class allows you to use the rounded rectangle as a mask without having the corners distort when it scales.

http://blog.ickydime.com/2008/06/scale9grid-class-for-masking-in-as3.html

NpContextMenu

From the site:

The NpContextMenu Class is a fairly simple ActionScript 3 class for creating and interacting with Contextual Menus.

The class simply redispatches the ContextMenuEvent.MENU_ITEM_SELECT event to any parties interested in responding to menu events outside of the actual class. This allows for a little more flexibility with how events are handled and how the menu itself is set up. By using this approach the menu can be a a little more dynamic.

http://www.blog.noponies.com/archives/103

FlashVarsUtil

Util class to access FlashVars in Flex. From the site:

…I would share a little Util class I wrote a while back to make your lives easier. It uses the [Mixin] tag to make sure variables are available before the application creation is complete.

http://blog.xsive.co.nz/archives/271

CronJob

From the site:

I wrote a cronjob class in actionscript 3 during my flight back to Lima from San Francisco. This could help you manage repetitive or single tasks in the future using a cron task syntax.

http://blog.funciton.com/en/2008/07/actionscript_3_cronjob_beta.html

QueueLoader - AS2

From the site:

I’ve written a helper class for loading and monitoring resources which is based upon an AS3 library called Queueloader located at Google Code. My version is written in AS2 and has the following features:

Individual monitoring
Overall queue monitoring
Image loading
SWF loading
MP3 loading

http://fboyle.com/blog/?p=17

ColorMatrix

Quasimondo’s ColorMatrix class upgraded to AS3, with new features. From the site:

Compared to the AS2 version I have added several new methods and of course tried to use optimizations wherever possible. Two new methods that are especially interesting are:

rotateHue() which tries to preserve the luminance whilst changing the hue (which means this is the “correct” but calculation wise more complicated way of doing it).

applyColorDeficiency() which I ported back from the Javascript version that the guys at NoFunc created from my Actionscript version and which allows to preview images the way colorblind people would see it.

http://www.quasimondo.com/archives/000671.php

InteractivePNG

From the site:

Like magic, transparent parts of a PNG in your MovieClip are ignored during mouse interactions. Check it out!

Normally the clear areas of a PNG are treated as solid, which can be especially frustrating when dealing with a lot of images that overlap each other because they tend to block mouse interactions on the clips below them.

This utility fixes that so that mouse events don’t occur until you bump against a solid pixel, or a pixel of any transparency value besides totally clear. InteractivePNG lets you set an alphaTolerance level to determine what transparency level will register as a hit.

http://blog.mosessupposes.com/?p=40

ArrayBinder for Flash CS3

From the site:

I’ve written a class that can help separate the view from the model in Flash projects. It is by no means equivilent to data binding available in Flex (and far from it!) but I’ve used bind in the title because it does effectively bind the values held in an ArrayBinder instance to object properties that have subscribed to refer to those values. The specific use that I have in mind for ArrayBinder is in assisting with localising interfaces for applications that are developed in Flash CS3.  

 

http://fboyle.com/blog/?p=10 

Inflector

From the site:

The Inflector allows for pluralizing,singularizing,camel casing, underscoring, and humanizing words. I did search for and find an existing inflection class but I decided to port the CakePHP inflector which is more extensive and more accurate. 

 

http://ak33m.com/?p=43Â