Update TextArea with an ActionScript function when clicking the Button : TextArea « Components « Flex
- Flex
- Components
- TextArea
Update TextArea with an ActionScript function when clicking the Button

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
public function handleClick():void {
text1.text="A";
}
</mx:Script>
<mx:Button id="button1" label="Click here!" width="100" fontSize="12" click="handleClick();" />
<mx:TextArea id="text1" />
</mx:Application>
Related examples in the same category