Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
 
 

<fx:Binding> tag implemented by the compiler


You use the <fx:Binding> tag to tie the data in one object to another object. When you use the <fx:Binding> tag, you provide a source property and a destination property. You can use the <fx:Binding> tag to completely separate the view, or user interface, from the model. the <fx:Binding> tag also lets you bind different source properties to the same destination property.

MXML Syntax

The <fx:Binding> tag has the following syntax:

    <fx:Binding 
        source="No default."
        destination="No default"
    />
            

For example, you might bind the text property of the name field of one form to the text property of the name field of another form, as follows:

        <fx:Binding 
            source="billForm.name.text"
            destination="shipform.name.text"
        />