
The Flight framework is an AS3 utilities library aimed at simplifying development. I have become fondly attached to the Binding utility provided by Flight. Binding is something I thought belonged in the realms of Flex, but its crossed over and is now available from the flight framework git repository
repository http://goo.gl/UFdA3
I got acquainted with Flight whilst using Robotlegs and haven’t looked back. It allows the binding of two variables, if value A changes value B is updated, this can be set one way or both ways updating value A when B is changed. The Bind class also provides the means to listen for this change.
Here is a simple example
/**
* this creates a one way bind. If source.myName is changed then
* target.yourName will be updated as long as both myName and
* yourName are both publicly accessible variables and have the
* meta data tag [Bindable] above them or their getters
*
* [Bindable]
* public var myName:String
*
*/
Bind.addBinding( target, 'yourName', source , 'myName', false );
/**
* listen for changes to a value
* when source.myName is changed this.changeHandler is called
*/
Bind.addListener( this, changeHandler, source, 'myName' );
for more resources with Flight Binding check out the Flight Framework google group.
http://goo.gl/7JLMf
see the blog post by Tyler http://xtyler.com/code/177 it goes into some detail about binding and its performance gain over the native Flex binding. Includes some good code examples.
check out the home page of the Flight Framework http://flightxd.com/ also introduces the fuselage application framework and stealth component framework. Both worth checking out!