Mega Code Archive

 
Categories / Flex / Data Model
 

Wrap the whole string with {} during Binding

<?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="field2.text" />   <mx:TextArea id="field2" /> </mx:Application>