Bind with Binding tag
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> public function aMethod():String { return "food"; } </mx:Script> <mx:Binding source="'The dog ate my '+ aMethod()" destination="field1.text" /> <mx:TextArea id="field1" /> </mx:Application>