<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Transition between States in PureMVC StateMachine Utility</title>
	<atom:link href="http://mariusht.com/blog/2009/07/14/transition-between-states-in-puremvc-statemachine-utility/feed/" rel="self" type="application/rss+xml" />
	<link>http://mariusht.com/blog/2009/07/14/transition-between-states-in-puremvc-statemachine-utility/</link>
	<description>A blog about Flex Development.</description>
	<lastBuildDate>Mon, 17 Oct 2011 22:40:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mariush T.</title>
		<link>http://mariusht.com/blog/2009/07/14/transition-between-states-in-puremvc-statemachine-utility/comment-page-1/#comment-153</link>
		<dc:creator>Mariush T.</dc:creator>
		<pubDate>Tue, 28 Jul 2009 14:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://mariusht.com/blog/?p=1177#comment-153</guid>
		<description>The StateMachine is different than the Flex View States. The Flex View States manages states of view components where the StateMachine manages states of your application(not just a view). &lt;a href=&quot;http://puremvc.tv/#P003/T315&quot; rel=&quot;nofollow&quot;&gt;http://puremvc.tv/#P003/T315&lt;/a&gt;
 
Look at the &lt;a href=&quot;http://mariusht.com/blog/2009/07/14/puremvc-statemachine-lockable-door-demo/&quot; rel=&quot;nofollow&quot;&gt;PureMVC StateMachine lockable door demo&lt;/a&gt;. For simplicity&#039;s sake LockableDoor demo manages only visible states of application. You can find more advanced example of FSM in StateMachine overview presentation by Cliff Hall. &lt;a href=&quot;http://puremvc.tv/#P003/T365&quot; rel=&quot;nofollow&quot;&gt;http://puremvc.tv/#P003/T365&lt;/a&gt;


&lt;strong&gt;Step by Step FSM Setup:&lt;/strong&gt;
You need to download StateMachine Utility. http://trac.puremvc.org/Utility_AS3_StateMachine 
Select which version you want to use:singlecore or multicore. 
Add .swc to your project library. 
Create FiniteStateMachine XML in &lt;a href=&quot;http://mariusht.com/files/blog/lockable_door/demo/srcview/source/com/mariusht/lockableDoor/controller/InjectFSMCommand.as.html&quot; rel=&quot;nofollow&quot;&gt;InjectFSMCommand&lt;/a&gt;. 
Add InjectFSMCommand into &lt;a href=&quot;http://mariusht.com/files/blog/lockable_door/demo/srcview/source/com/mariusht/lockableDoor/controller/StartupCommand.as.html&quot; rel=&quot;nofollow&quot;&gt;StartupCommand&lt;/a&gt;. 

&lt;strong&gt;Application-&gt;StateMachine&lt;/strong&gt;
To communicate with StateMachine from application send StateMachine.ACTION notification - sendNotification(StateMachine.ACTION, null, event.type), example &lt;a href=&quot;http://mariusht.com/files/blog/lockable_door/demo/srcview/source/com/mariusht/lockableDoor/view/ApplicationMediator.as.html&quot; rel=&quot;nofollow&quot;&gt;ApplicationMediator&lt;/a&gt;.
&lt;strong&gt;NOTE&lt;/strong&gt;: Only Mediators and Commands should send StateMachine.ACTION, not Proxies.

&lt;strong&gt;StateMachine-&gt;Application&lt;/strong&gt;
StateMachine communicates with the application completely via notifications. You can listen for notifications in two ways: register commands with specific notification, example &lt;a href=&quot;http://mariusht.com/files/blog/lockable_door/demo/srcview/source/com/mariusht/lockableDoor/ApplicationFacade.as.html&quot; rel=&quot;nofollow&quot;&gt;ApplicationFacade&lt;/a&gt; or listen for notifications within mediators.

View &lt;a href=&quot;http://mariusht.com/files/blog/lockable_door/demo/srcview/index.html&quot; rel=&quot;nofollow&quot;&gt;full source code for LockableDoor demo&lt;/a&gt;

Good luck!</description>
		<content:encoded><![CDATA[<p>The StateMachine is different than the Flex View States. The Flex View States manages states of view components where the StateMachine manages states of your application(not just a view). <a href="http://puremvc.tv/#P003/T315" rel="nofollow">http://puremvc.tv/#P003/T315</a></p>
<p>Look at the <a href="http://mariusht.com/blog/2009/07/14/puremvc-statemachine-lockable-door-demo/" rel="nofollow">PureMVC StateMachine lockable door demo</a>. For simplicity&#8217;s sake LockableDoor demo manages only visible states of application. You can find more advanced example of FSM in StateMachine overview presentation by Cliff Hall. <a href="http://puremvc.tv/#P003/T365" rel="nofollow">http://puremvc.tv/#P003/T365</a></p>
<p><strong>Step by Step FSM Setup:</strong><br />
You need to download StateMachine Utility. <a href="http://trac.puremvc.org/Utility_AS3_StateMachine" rel="nofollow">http://trac.puremvc.org/Utility_AS3_StateMachine</a><br />
Select which version you want to use:singlecore or multicore.<br />
Add .swc to your project library.<br />
Create FiniteStateMachine XML in <a href="http://mariusht.com/files/blog/lockable_door/demo/srcview/source/com/mariusht/lockableDoor/controller/InjectFSMCommand.as.html" rel="nofollow">InjectFSMCommand</a>.<br />
Add InjectFSMCommand into <a href="http://mariusht.com/files/blog/lockable_door/demo/srcview/source/com/mariusht/lockableDoor/controller/StartupCommand.as.html" rel="nofollow">StartupCommand</a>. </p>
<p><strong>Application->StateMachine</strong><br />
To communicate with StateMachine from application send StateMachine.ACTION notification &#8211; sendNotification(StateMachine.ACTION, null, event.type), example <a href="http://mariusht.com/files/blog/lockable_door/demo/srcview/source/com/mariusht/lockableDoor/view/ApplicationMediator.as.html" rel="nofollow">ApplicationMediator</a>.<br />
<strong>NOTE</strong>: Only Mediators and Commands should send StateMachine.ACTION, not Proxies.</p>
<p><strong>StateMachine->Application</strong><br />
StateMachine communicates with the application completely via notifications. You can listen for notifications in two ways: register commands with specific notification, example <a href="http://mariusht.com/files/blog/lockable_door/demo/srcview/source/com/mariusht/lockableDoor/ApplicationFacade.as.html" rel="nofollow">ApplicationFacade</a> or listen for notifications within mediators.</p>
<p>View <a href="http://mariusht.com/files/blog/lockable_door/demo/srcview/index.html" rel="nofollow">full source code for LockableDoor demo</a></p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://mariusht.com/blog/2009/07/14/transition-between-states-in-puremvc-statemachine-utility/comment-page-1/#comment-150</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Mon, 27 Jul 2009 14:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://mariusht.com/blog/?p=1177#comment-150</guid>
		<description>I&#039;m sorry... you do have examples... I will check them out... Thanks.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry&#8230; you do have examples&#8230; I will check them out&#8230; Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://mariusht.com/blog/2009/07/14/transition-between-states-in-puremvc-statemachine-utility/comment-page-1/#comment-149</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Mon, 27 Jul 2009 14:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://mariusht.com/blog/?p=1177#comment-149</guid>
		<description>Thanks for this post.  I am so confused by the State Machine as to its use.  Does this manage states in the Flex app as in the different visual states?  What needs to be done to get this set up?  Most of the stuff i have read takes for granted that the person knows how to set this up.  I may just be a little slow... but more detail would be great!  Thanks for your time.</description>
		<content:encoded><![CDATA[<p>Thanks for this post.  I am so confused by the State Machine as to its use.  Does this manage states in the Flex app as in the different visual states?  What needs to be done to get this set up?  Most of the stuff i have read takes for granted that the person knows how to set this up.  I may just be a little slow&#8230; but more detail would be great!  Thanks for your time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

