User Guide

Data binding classes (Flash Professional only) 229
Description
Property; specifies a property name of the component instance specified by
EndPoint.component that contains the bindable data.
Note: EndPoint.component and EndPoint.property must combine to form a valid ActionScript object/
property combination.
Example
This example binds the text property of one TextInput component (text_1) to the same
property in another TextInput component (
text_2).
var sourceEndPoint = {component:text_1, property:"text"};
var destEndPoint = {component:text_2, property:"text"};
new Binding(sourceEndPoint, destEndPoint);
ComponentMixins class (Flash Professional only)
ActionScript Class Name mx.data.binding.ComponentMixins
The ComponentMixins class defines properties and methods that are automatically added to any
object that is the source or destination of a binding, or to any component that’s the target of a
ComponentMixins.initComponent() method call. These properties and methods do not affect
normal component functionality; rather, they add functionality that is useful with data binding.
Note: To make this class available at runtime, you must include the data binding classes in your FLA
document.
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 ComponentMixins class
The following table lists the methods of the ComponentMixins class.
Method Description
ComponentMixins.getField() Returns an object for getting and setting the value of a
field at a specific location in a component property.
ComponentMixins.initComponent() Adds the ComponentMixins methods to a component.
ComponentMixins.refreshDestinations() Executes all the bindings that have this object as the
source endpoint.
ComponentMixins.refreshFromSources() Executes all bindings that have this component as the
destination endpoint.
ComponentMixins.validateProperty() Checks to see if the data in the indicated property
is valid.