Projects - Flex Builder - Event Handler Application

eventHandler.mxml code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
width="300" height="200"
horizontalAlign="center" verticalAlign="middle"
>
<mx:Script>
<![CDATA[
import flash.events.MouseEvent;

private function clickHandler ( event:MouseEvent ):void
{
myLabel.text = "Hello World!";
}
]]>
</mx:Script>

<mx:Panel
title="Hello World Application" horizontalAlign="center"
paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"
>

<mx:Label id="myLabel" width="180" fontWeight="bold" fontSize="24"/>
<mx:Button id="myButton" label="Click Me!" click="clickHandler(event);" />

</mx:Panel>

</mx:Application>

 

eventHandler.html code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="eventHandler" width="300" height="200">
<param name="movie" value="eventHandler.swf" />
<param name="quality" value="high" />
<embed src="eventHandler.swf" quality="high" bgcolor="#869ca7"
width="300" height="200" name="eventHandler" align="middle"
type="application/x-shockwave-flash"
</embed>
</object>