<?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" 
					   xmlns:rtc="http://ns.adobe.com/rtc" 
					   xmlns:coreUI="http://ns.adobe.com/coreUI"
					   creationComplete="windowedapplication1_creationCompleteHandler(event)">
	<fx:Script>
		<![CDATA[
			import mx.events.FlexEvent;

			protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
			{
				cSession.login();
			}
		]]>
	</fx:Script>
	<fx:Script source="userData.as" />
	<fx:Declarations>
		<rtc:AdobeHSAuthenticator id="auth" userName="{username}" password="{password}" />
		<rtc:ConnectSession id="cSession" authenticator="{auth}" roomURL="https://collaboration.adobelivecycle.com/cocoryan/codeworks2010" />
		<!-- Place non-visual elements (e.g., services, value objects) here -->
	</fx:Declarations>
	<s:HGroup width="100%" height="100%">
		<rtc:SharedWhiteBoard id="wb" width="80%" height="100%" />
		<s:VGroup width="20%" height="100%">
			<rtc:WebCamera id="webCam" width="100%" height="50%" />
			<rtc:SimpleChat id="chat" width="100%" height="50%" />
		</s:VGroup>
	</s:HGroup>
</s:WindowedApplication>
