Sets value for a public variable and bind to TextInput : TextInput Data Binding « Components « Flex
- Flex
- Components
- TextInput Data Binding
Sets value for a public variable and bind to TextInput

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="white">
<mx:TextInput text="{defaultValue}">
<mx:Script>
[Bindable]
public var defaultValue:String = "";
</mx:Script>
</mx:TextInput>
</mx:Application>
Related examples in the same category