In the example below, data binding in flex is demonstrated. Here data binding means binding or connecting the properties or attributes of flex controls to each other. In the example the text property of flex control Text contains a single pair of curly brace and in the braces the value of text property of TextInput control is invoked. In this way, the data binding is done in flex and due to this whenever the generated swf file is executed in a web browser, the text attribute properties of both the flex controls Text and TextInput respectively will possess the same value.
Syntax for binding: <mx:Text text = { id_value.text }/>
Bind.mxml
<?xml version = '1.0' encoding = 'utf-8'?>
|
Bind.swf


If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Flex data binding example
Post your Comment