Flash 8 Documentation |
|||
| Using Flash > Data Integration (Flash Professional Only) > Data binding (Flash Professional only) > A simple binding example | |||
The following procedure provides a simple illustration of how data binding connects one UI component to another. In the example, the value properties of component instances stepper1_nm and stepper2_nm are bound to each other, and the value properties of stepper3_nm and myInput_txt are bound to each other. In a real-world application, you would most likely import a schema, define additional bindable component properties, and create multiple bindings between data components and UI components.
stepper1_nm.stepper2_nm.stepper1_nm selected, open the Component inspector, and click the Bindings tab.stepper2_nm under Component Path, and click OK. stepper1_nm. Each time you click the buttons on stepper1_nm, the value property of stepper1_nm is copied to the value property of stepper2_nm. Each time you click the buttons on stepper2_nm, the value property of stepper2_nm is copied to the value property of stepper1_nm.
stepper3_nm.myInput_txt. value property of stepper3_nm to the text property of myInput_txt.Each time you enter a new value, the text property of myInput_txt is copied to the value property of stepper3_nm. When you click the Up and Down buttons on stepper3_nm, the value property of stepper3_nm is copied to the text property of myInput_txt.
For more tutorials that show you how to create data bindings, see www.macromedia.com/devnet/mx/flash/data_integration.html.
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00000761.html