<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="init()"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <fx:Script> <![CDATA[ private function init():void{ button3.addEventListener(MouseEvent.CLICK , handleClick); } private function handleClick(event:MouseEvent):void{ if(event.target==button2){ label.text+='Button 2 clicked\n'; } else if(event.target==button3){ label.text+='Button 3 clicked\n'; } } ]]> </fx:Script> <s:VGroup x="0" y="0" width="100%"> <s:Button id="but