Use button click event to update Label text : Button Event « Components « Flex
- Flex
- Components
- Button Event
Use button click event to update Label text

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Label id="myLabel"/>
<mx:Button label="Click Me" click="myLabel.text='You clicked the button'"/>
</mx:Application>
Related examples in the same category