Created
November 8, 2010 18:55
-
-
Save joelhooks/668089 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- Parsley Configuration --> | |
<mx:Object xmlns:mx="http://www.adobe.com/2006/mxml" | |
xmlns:chain="http://spicefactory.org/parsley/chain"> | |
<mx:Script><![CDATA[ | |
import events.* | |
import commands.*; | |
]]> | |
</mx:Script> | |
<chain:Chain firstLink="{startup}"> | |
<chain:Link id="startup" commandClass="{StartupCommand}"> | |
<chain:LinkConnection onMessage="{LoadDefaultEnvironmentEvent.LOAD}" toLink="{loadDefaultEnvironment}"/> | |
<chain:LinkConnection onMessage="{LoadSpecialEnvironmentEvent.LOAD}" toLink="{loadSpecialEnvironment}"/> | |
<chain:LinkConnection onMessage="{StartupErrorEvent.ERROR}" toLink="{startupError}"/> | |
</chain:Link> | |
<chain:Link id="loadDefaultEnvironment" commandClass="{LoadDefaultEnvironmentModuleCommand}"> | |
<chain:LinkConnection onMessage="{EnvironmentLoadedEvent.LOADED}" toLink="{loadLocalConfiguration}"/> | |
<chain:LinkConnection onMessage="{StartupErrorEvent.ERROR}" toLink="{startupError}"/> | |
</chain:Link> | |
<chain:Link id="loadSpecialEnvironment" commandClass="{LoadSpecialEnvironmentModuleCommand}"> | |
<chain:LinkConnection onMessage="{EnvironmentLoadedEvent.LOADED}" toLink="{loadLocalConfiguration}"/> | |
<chain:LinkConnection onMessage="{StartupErrorEvent.ERROR}" toLink="{startupError}"/> | |
</chain:Link> | |
<chain:Link id="initializeServices" commandClass="{InitializeServicesCommand}"> | |
<chain:LinkConnection onMessage="{ServicesInitializedEvent.INITIALIZED}" toLink="{startupComplete}"/> | |
<chain:LinkConnection onMessage="{StartupErrorEvent.ERROR}" toLink="{startupError}"/> | |
</chain:Link> | |
<chain:Link id="startupComplete" commandClass="{StartupCompleteCommand}"/> | |
<chain:Link id="startupError" commandClass="{StartupErrorCommand}"/> | |
</chain:Chain> | |
</mx:Object> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment