Bind variable to a TextInput : TextInput Data Binding « Components « Flex
- Flex
- Components
- TextInput Data Binding
Bind variable to a TextInput

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:Script>
var myText:String = "test";
</mx:Script>
<mx:TextInput id="myName" />
<mx:Label text="{myText}" id="myLabel" />
</mx:Application>
Related examples in the same category