<?xml version="1.0" encoding="utf-8"?>
<mx:Application
layout="vertical"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:example="sample1.view.*"
xmlns:nav="com.adobe.cairngorm.navigation.*"
xmlns:cairngorm="com.adobe.cairngorm.*"
xmlns:presentation="sample1.presentation.*"
xmlns:sample1="sample1.*"
addedToStage="buildContext()">
<mx:Script>
<![CDATA[
import sample1.LogTarget;
import mx.logging.LogEventLevel;
import org.spicefactory.parsley.core.messaging.MessageProcessor;
import sample1.Sample1Context;
import org.spicefactory.parsley.flex.FlexContextBuilder;
[Inject]
[Bindable]
public var messages:LogTarget;
private function buildContext():void
{
FlexContextBuilder.build(Sample1Context, this);
dispatchEvent(new Event('configureIOC', true));
}
]]>
</mx:Script>
<cairngorm:ParsleyMessageBroker/>
<mx:TraceTarget level="{ LogEventLevel.ALL }">
<mx:filters>
<mx:Array>
<mx:String>com.adobe.cairngorm.*</mx:String>
<mx:String>org.spicefactory.*</mx:String>
<mx:String>sample1.presentation.*</mx:String>
</mx:Array>
</mx:filters>
</mx:TraceTarget>
<cairngorm:CairngormNavigationLib/>
<presentation:NavigationBar width="100%"/>
<mx:HBox
width="100%" height="100%">
<mx:VBox
width="300" height="100%">
<mx:Button
label="Clear"
click="messages.messages = ''"/>
<mx:TextArea
width="100%" height="100%"
text="{ messages.messages }"
editable="false"/>
</mx:VBox>
<presentation:ContentViewStack
width="100%" height="100%"/>
<presentation:SideBarAccordion
width="34%" height="100%"/>
</mx:HBox>
</mx:Application>