Cause a TextInput to modify the Label : TextInput Data Binding « Components « Flex
- Flex
- Components
- TextInput Data Binding
Cause a TextInput to modify the Label

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Label id="myLabel" text="The TextInput will change my text" />
<mx:TextInput id="myTextInput" change="myLabel.text = myTextInput.text" />
</mx:Application>
Related examples in the same category