GreenSock


TweenLite (AS2) - A Lightweight (3k) and FAST Tweening Engine

Posted in Tweening by jack on the October 18th, 2007

Tweening. We all do it. Most of us have learned to avoid Adobe’s Tween class in favor of a more powerful, less code-heavy engine (Tweener, Fuse, MC Tween, etc.). Each has its own strengths & weaknesses. A few years back, I created TweenLite because I needed a very compact tweening engine that was fast and efficient (I couldn’t afford the file size bloat that came with the other tweening engines). It quickly became integral to my work flow. I figured others might be able to benefit from it, so I released it publicly.

More...

TweenFilterLite (AS2 Version) - Easily Tween Filters & Image Effects

Posted in Tweening by jack on the October 18th, 2007

TweenFilterLite extends the extremely lightweight (about 3k), powerful TweenLite “core” class, adding the ability to tween filters (like blurs, glows, drop shadows, bevels, etc.) as well as image effects like contrast, colorization, brightness, saturation, hue, and threshold (combined size: 6k). The syntax is identical to the TweenLite class.

More...

TextMetrics - Find substring coordinates, line widths, and much more

Posted in Text by jack on the August 7th, 2007

Have you ever needed to find out where the line breaks occur in a dynamic TextField? How about the precise x/y coordinates of a particular phrase/string along with its width & height so that you could highlight it somehow? Or maybe the width of each line of text? That’s all possible with the gs.utils.text.TextMetrics class.

More...

PreloadAssetManager - An Intelligent Preloading Queue

Posted in Preloading by jack on the July 13th, 2007

Provides an easy way to invisibly preload SWFs, FLVs, or images and optionally trigger a callback function when preloading has finished. It also provides _width and _height information for all successfully preloaded SWFs or images, and duration information for FLVs (assuming they were encoded properly and have MetaData).

More...

TransformManager Updated - Scale/Rotate/Move any MovieClip

Posted in Transforming by jack on the June 18th, 2007

This class works with the TransformItem class to give the user the ability to scale, rotate, and/or move any MovieClip on the stage using an intuitive interface (similar to most modern drawing applications). When the user clicks on the TransformItem’s MovieClip, a selection box will be drawn around it along with four handles for scaling. When the user places their mouse just outside of any of the scaling handles, the cursor will change to indicate that they’re in rotation mode. Hold down shift to constrain scaling proportions or to limit rotation to 45 degree increments. This TransformManager class will handle multiple TransformItem instances, switching the selection boxes (so that only one is selected at a time) as well as updating the properties with a single call. See the TransformItem class for more details about features.

More...

XMLParser - Painless XML Translation

Posted in XML by jack on the February 6th, 2007

This class provides an easy way to load and/or send an XML file and parse the data into a format that’s simple to work with. Every node becomes an array with the same name. All attributes are also easily accessible because they become properties with the same name.

More...

« Previous Page