HomeAbout

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

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

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

APDF – Export PDF from Flex

The APDF class enables to create and export PDF documents from Flex.

http://candymandesign.blogspot.com/2008/06/exporting-pdf-from-flex.html

TweenMax

TweenMax extends the extremely lightweight, FAST TweenLite engine, adding many useful features like pause/resume, timeScale, AS3 Event listeners, reverse(), restart(), setDestination(), yoyo, loop, rounding, and the ability to jump to any point in the tween using the “progress” property. It also activates many extra plugins by default, making it extremely full-featured. Since TweenMax extends TweenLite, it can do ANYTHING TweenLite can do plus much more. Same syntax. There are plenty of other tweening engines out there to choose from, so here’s why you might want to consider TweenMax:

  • SPEED – I’m not aware of any popular tweening engine with a similar feature set that’s as fast as TweenMax. See the speed comparisons yourself.
  • Feature set – In addition to tweening ANY numeric property of ANY object, TweenMax can tween filters, hex colors, volume, tint, frames, saturation, contrast, hue, colorization, brightness, and even do bezier tweening, orientToBezier, pause/resume, reverse(), restart(), round values, jump to any point in the tween with the “progress” property, automatically rotate in the shortest direction, plus LOTS more. Overwrite management is an important consideration for a tweening engine as well which is another area where the GreenSock tweening platform shines. You have options for AUTO overwriting or you can manually define how each tween will handle overlapping tweens of the same object.
  • Expandability – With its new plugin architecture, you can activate as many (or as few) features as your project requires. Or write your own plugin if you need a feature that’s unavailable. Minimize bloat, and maximize performance.
  • Management featuresTweenGroup makes it surprisingly simple to create complex sequences and groups of TweenLite/Max tweens that you can pause(), resume(), restart(), or reverse(). You can even tween a TweenGroup’s “progress” property to fastforward or rewind the entire group/sequence.
  • Ease of use – Designers and Developers alike rave about how intuitive the GreenSock tweening platform is.
  • Updates – Frequent updates and feature additions make the GreenSock tweening platform reliable and robust.
  • AS2 and AS3 – Most other engines are only developed for AS2 or AS3 but not both.

www.TweenMax.com

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