Skip to content

Instantly share code, notes, and snippets.

@neilmanuell
Created September 20, 2011 10:50
Show Gist options
  • Save neilmanuell/1228852 to your computer and use it in GitHub Desktop.
Save neilmanuell/1228852 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<fsm:FSMDeclaration
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:fsm="fsm.*"
initial="{s1}">
<fsm:State id="s1"/>
<fsm:State id="s2"/>
</fsm:FSMDeclaration>
<?xml version="1.0"?>
<fsm:FSMDeclaration
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:fsm="fsm.*">
<fsm:states>
<fsm:State id="stateOne"/>
<fsm:State id="stateTwo"/>
</fsm:states>
</fsm:FSMDeclaration>
package fsm {
[DefaultProperty("values")]
public class FSMDeclaration {
public var initial:IState;
public var values:Array = [];
}
}
<fx:Declarations>
<s:Sequence>
<s:children>
<s:Move/>
</s:children>
</s:Sequence>
<s:Sequence>
<s:Move/>
</s:Sequence>
</fx:Declarations>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment