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>