|
AS3 Utility Classes
SelectiveBitmapDraw,
SelectiveBitmapDraw3D
Ever wanted to capture a bitmap of a Sprite or PaperVision3D scene, but not capture everything inside,
just some specific elements? Now you can.
The included examples show which parts of the display list are rendering, but don't give any real-world
examples. Basically, this util can be really handy in situations where you want your bitmap
to capture nested containers from a flat top-down perspective, but you're really just interested
in capturing one or more of the nested child objects when there are more than one.
These classes specifically address nested objects and containers. If your sprites
or display objects are already at a top level, you can simply capture them directly or use
a BitmapEffectLayer in PaperVision3D. Once you have a container sprite or DisplayObject3D
that contains several physical objects, but you only want to capture certain ones, try these classes.
Download
Zip (can be imported into Flex directly as an archive project)
InteractivePNG
Like magic, transparent parts of a PNG in your MovieClip are ignored during mouse interactions! Demo
Docs Download Zip
Go ActionScript Animation Platform (GoASAP)
Go is a lightweight, portable codebase for building AS3 animation tools. It offers
structure and core functionality, but leaves the details to you.

www.goasap.org
AS2 Utility Classes

- ZigoEngine + Fuse Kit
Powerful script-driven animation & event-sequencing tools.
Home of the latest official updates to Ladislav 'Laco' Zigo's lmc_tween package.
Visit Fuse site >
- CallbackDispatcher 2.0 Updated January, 2006 Download
Scopes all standard MC, Button, and TF callbacks (onRollOver, onScroller, etc.) back to
your class using easy syntax like:
my_mc.addEventListener ('onRollOver', this);
function onRollOver(o:Object)... // handler in this scope
This easy system keeps you from having to write a bunch of references and callbacks into
simple button clips.
When used with Delegates it also enables the grouping of callbacks into a single uniquely
named event handler.
If non-Delegated callbacks are scoped back to a class that extends MovieClip, easily avoid
overlap by setting the PREFIX class property. For example,
CallbackDispatcher.PREFIX = 'event_';
function event_onRollOver(o:Object)...
- BadassXML Download
Define an evtXMLLoad handler into a listener object or in your working scope, then create & load
an XML object with just one single line of code. The event object received includes:
target: (the XML object),
type:'evtXMLLoad',
path: (the path to the file loaded),
success: (Boolean),
timeout: (Boolean - you can set the timeout property per instance, default is 5 sec.)
A progress event, evtXMLProgress is also fired off every 33ms with the params:
target: (the XML object),
type: 'evtXMLProgress',
bytesLoaded: (Number),
bytesTotal: (Number),
percent: (Number 0-100 but never NaN or undefined)
Other AS2 utilities you'll find invaluable
|