HomeAbout

WindowBlur

Blurs a background (MovieClip or Sprite) behind a transparent window (MovieClip or Sprite). Based on Pixelfumes AS2 class.

From the site:

I was checking out a website yesterday when it suddenly reminded me of a Pixelfumes experiment I remembered seeing many moons ago. After finding it with a quick Google search, just for kicks, I decided to play around and update the idea to AS3.

http://blog.onebyonedesign.com/?p=81

as3xls

Read and write excel files in Flex.

From the site:

Some time ago I was working on a little project for which I wanted to read and write Excel files in Flex. I Googled hither and yon but sadly I could only find a sample someone tossed out there sans code. So, I put together a little package to read and write Excel files. So far it supports reading text, numbers, formulas, and dates from Excel version 2.x-2003 and writing text, numbers, and dates. Formulas also update to reflect changes in cells they reference.

The API is intended to be straightforward and easy to use. There are some samples to play with and the obligatory ASdocs.

http://code.google.com/p/as3xls/

SimpleScrollBar

From the site:

Here’s an AS3 class that creates a simple scroll bar. Set this as the Base Class for any movie clip. The container clip must have two movie clips named drag_mc and track_mc. These clips act as the dragger and track for the scroll bar

Add an event listener to call a handler when the scroll bar is dragged. SimpleScrollBar dispatches the ScrollBarEvent.UPDATE which includes the property scroll_value. This property holds a value from 0 to 1 representing the position of the dragger.

http://www.webdevils.com/?p=84

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