Data Binding with Components
September 30, 2009 at 4:19 am 1 comment
Definition:
It is used to tie data in one object to another. That is, it is used to pass data
between different layers of the application. There are three ways to use
DataBinding. They are,
1. {} syntax
2. <mx:Binding> tag
3. BindingUtils static methods
The requirements for this DataBinding are source property, destination
property & an event.
Source Code:
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”absolute”>
<mx:TextInput id=”myText” x=”315″ y=”251″/>
<mx:Label text=”{myText.text}” x=”315″ y=”294″/>
</mx:Application>
With Regards
Hemakumar.S
Entry filed under: Flex. Tags: Hemakumar's Blog, SHK's Blog.
1. Bill Bartmann | October 9, 2009 at 3:47 pm
Hey, I found your blog in a new directory of blogs. I dont know how your blog came up, must have been a typo, anyway cool blog, I bookmarked you. 🙂