<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
title="Flex for a Starter - On AIR with Flex" showStatusBar="false"
backgroundColor="#A01203" backgroundAlpha="1" xmlns:local="*"
xmlns:ns="Example1_Files.*" xmlns:ns1="Example2_Files.*"
xmlns:ns2="Example3_Files.*" xmlns:ns3="Example4_Files.*"
width="512" height="341" viewSourceURL="srcview/index.html">
<fx:Script>
<![CDATA[
import flash.net.navigateToURL;
import mx.core.FlexGlobals;
/** Handle the event for exiting application
*/
protected function lClose_clickHandler(event:MouseEvent):void
{
FlexGlobals.topLevelApplication.close();
}
/** Handle the event for navigating to the blog
*/
protected function linkbutton1_clickHandler(event:MouseEvent):void
{
var URL:URLRequest = new URLRequest("http://blog.immanuelnoel.com/2010/11/02/hello-world-for-a-flex-starter/");
navigateToURL(URL, "_blank");
}
]]>
</fx:Script>
<fx:Declarations>
</fx:Declarations>
<s:BorderContainer width="100%" height="100%" borderAlpha="0.7" backgroundAlpha="0" borderWeight="4" borderColor="#000000">
<s:Label fontSize="36" text="Flex for a Starter" fontWeight="bold" fontFamily="verdana" color="#ffffff" alpha="0.1"/>
<s:Label fontSize="12" text="On AIR with Flex | http://code.immanuelnoel.com" fontFamily="verdana" color="#ffffff" alpha="0.1" x="3" y="31"/>
<ns:Example1 width="100%" height="100%"/>
<s:Label id="lClose" fontSize="14" text="X" buttonMode="true" fontWeight="bold" fontFamily="verdana" color="#ffffff" alpha="0.3" x="488" y="6" click="lClose_clickHandler(event)"/>
<mx:LinkButton label="Flex for a Starter - Blogged" fontSize="10" click="linkbutton1_clickHandler(event)" x="1" y="310" color="#83C2FC"/>
</s:BorderContainer>
</s:WindowedApplication>