<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/08/20/creating-custom-dialog-boxes-using-the-popupmanager-and-titlewindow-classes/ -->
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
		title="Installing Super Awesome Component Set for Flex 3" 
		layout="vertical" 
		width="480" 
		height="240" 
		titleStyleName="titleText" 
		backgroundColor="white" 
		backgroundAlpha="1.0" 
		borderColor="white" 
		borderAlpha="1.0" 
		cornerRadius="0" 
		dropShadowEnabled="false" 
		showCloseButton="true" 
		close="titleWindow_close(event)">

	<mx:Script>
		<![CDATA[
			import mx.controls.Alert;
			import mx.events.CloseEvent;
			import mx.managers.PopUpManager;

			private function titleWindow_close(evt:CloseEvent):void {
				PopUpManager.removePopUp(this)
			}

			private function titleWindow_continue():void {
				Alert.show("Installing...");
				PopUpManager.removePopUp(this);
			}
		]]>
	</mx:Script>

	<mx:Style>
		.titleText {
			fontSize: 14px;
		}
		.headingText {
			paddingTop: 10px;
			paddingBottom: 10px;
			fontSize: 10px;
		}
	</mx:Style>

	<mx:Text text="You must accept the software license terms in order to continue the installation." 
			width="100%" 
			styleName="headingText" />

	<mx:TextArea text="The quick brown fox jumped over the lazy dog" 
			width="100%" 
			height="100%" />

	<mx:HBox width="100%">
		<mx:CheckBox id="checkBox" 
				label="Click here to accept the software license terms." 
				width="100%" />

		<mx:Button label="Continue" 
				enabled="{checkBox.selected}"
				click="titleWindow_continue()" />
	</mx:HBox>

</mx:TitleWindow>
