Toggle style button
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Canvas width="100%" height="100%"> <mx:Button id="edit" bottom="10" left="10" label="Edit" toggle="true" /> </mx:Canvas> </mx:Application>