以<mx:Button>为例 第一种方式:可以在标签中直接添加click事件处理程序如下代码: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"……