User Guide

Constructor for the Binding class 209
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 220).
destination The destination 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.
format An optional object that contains formatting information. The object must have the
following properties:
cls An ActionScript class that extends the class mx.data.binding.DataAccessor.
settings An object whose properties provide optional settings for the formatter class
specified by
cls.
isTwoWay An optional Boolean value that specifies whether the new Binding object is
bidirectional (
true) or not (false). The default value is false.
Returns
Nothing.
Method Description
Binding.execute() Fetches the data from the source component, formats it, and
assigns it to the destination component.