Bind a source to TextArea : TextArea « Components « Flex
- Flex
- Components
- TextArea
Bind a source to TextArea

<?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>
Related examples in the same category