If using {result} instead of {this.result}, the binding mechnism can't work. I didn't find any doc describing the thing. I am using Flex3.5. Do you know the reason?
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:Script>
<![CDATA[
[Bindable]
public var result:String ="b";
function confirm():void{
result = "changed text";
}
]]>
</mx:Script>
<mx:TextInput text="{this.result}"/>
<mx:Button label="Confirm" buttonDown="{confirm();}"/>
</mx:Panel>