Button Demo
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html"> <mx:Script> import mx.controls.Alert; </mx:Script> <mx:Button label="Click Me" click="Alert.show('You clicked')"/> </mx:Application>