One of the most powerful and convenient features of Flex is data binding. Data binding is the process of tying the data in one object (the source) to another object (the destination). Data binding can be used at compile time via the [Bindable] meta data tag and at runtime via the mx.bindings.utils API.
The mx.bindings.utils API provides a mechanism for dynamically applying data binding to an object. However, it does not provide a means for managing a specific data binding chain as a single unit.
The DynamicBindingChain API provides developers with a basic, yet robust API which allows multiple objects in a data binding chain to be managed. It provides a wrapper interface into the mx.bindings.utils API allowing objects to be added to a data binding chain, removed from the chain, validated against the property criteria in the chain as well as other methods for working with a managed data binding chain.
I have provided an example demonstrating some of the features available in the DynamicBindingChain API. In the example, four TextArea objects text properties are dynamically bound and unbound to a TextInput objects text value.
Click here to view an example of the DynamicBindingChain. You can also view the source as well as the accompanying ASDoc.
{Sorry, Comments are currently Closed! }