User Guide

214 Chapter 6: Components Dictionary
Binding class (Flash Professional only)
ActionScript Class Name mx.data.binding.Binding
The Binding class defines an association between two endpoints, a source and a destination.
It listens for changes to the source endpoint and copies the changed data to the destination
endpoint each time the source changes.
You can write custom bindings by using the Binding class (and supporting classes), or use the
Bindings tab in the Component inspector.
Note: To make this class available at runtime, you must include the data binding classes in your FLA
document. For more information, see “Making data binding classes available at runtime (Flash
Professional only)” on page 213.
For an overview of the classes in the mx.data.binding package, see “Classes in the mx.data.binding
package (Flash Professional only)” on page 213.
Method summary for the Binding class
The following table lists the methods of the Binding class.
Constructor for the Binding class
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
new Binding(source, destination, [format], [isTwoWay])
Parameters
source
A source endpoint of the binding. This parameter is nominally of type
mx.data.binding.EndPoint, but can be any ActionScript object that has the required Endpoint
fields (see “EndPoint class (Flash Professional only)” on page 224).
EndPoint class (Flash
Professional only)
Defines the source or destination of a binding.
TypedValue class (Flash
Professional only)
Contains a data value and information about the value’s data type.
Method Description
Binding.execute() Fetches the data from the source component, formats it, and
assigns it to the destination component.
Class Description