box-o-sand/PracticingFlex/03g1-debugging/Debugging.mxml

19 lines
563 B
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
creationComplete="initApp()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function initApp():void
{
trace("Hello from Flex Debugging!");
var myVar:Number = 9;
trace("The value of myVar is " + myVar);
}
]]>
</mx:Script>
<mx:Button label="Click Me" click="Alert.show('Hello from Flex');"/>
</mx:Application>