Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: StateMachine with Sub Components State  (Read 6190 times)
polykrom
Jr. Member
**
Posts: 18

 - polykrom@flashcodeurs.com
View Profile WWW Email
« on: August 13, 2009, 12:43:37 »

Hi all !

I'm developping a RIA based on PureMvc Framework.. I have a main Application that already use StateMachine to swap from state to state.
But in each state, i have components that have also states, so kind of sub states...
Is it possible to define these sub states in the injected fsm definition or have i to redefine a fsm for each component ?
I try to get examples here and on google it without success.

Thanks a lot

Logged
polykrom
Jr. Member
**
Posts: 18

 - polykrom@flashcodeurs.com
View Profile WWW Email
« Reply #1 on: August 13, 2009, 04:52:11 »

MMmhh... watching http://forums.puremvc.org/index.php?topic=859.0 and it seems sub states isn't possible without subClassing FMSInjector.
Is there any example of that way ?
Have i to create facade for each of my components ?

thanks

:::Poly:::
Logged
polykrom
Jr. Member
**
Posts: 18

 - polykrom@flashcodeurs.com
View Profile WWW Email
« Reply #2 on: August 13, 2009, 05:48:45 »

Ok... sorry for that post,

I've finally found my answer in a previous post ... One stateMachine per Core...

http://forums.puremvc.org/index.php?topic=1318.0

and the Pipes philosophy is what i need ;) (the PipeWork demo is a great source of inspiration)
« Last Edit: August 13, 2009, 06:25:33 by polykrom » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #3 on: August 15, 2009, 06:20:13 »

Sorry I didn't catch this one quick enough to save you the rummaging around. But it looks like you're on the right track now.

Cheers
-=Cliff>
Logged
polykrom
Jr. Member
**
Posts: 18

 - polykrom@flashcodeurs.com
View Profile WWW Email
« Reply #4 on: August 15, 2009, 06:35:21 »

Hi Cliff,

Don't worry about that, i can imagine you have a lot of work to give us such fantastics stuffs !

I've successfully implemented StartupManager,AsynchCommand,StateMachine and Pipes in my MultiCore PureMvc application. And it rocks !!!

Everything is clear now and will help me to win a lot of time and made my applications more robust and extensible.

Keep the good job

regards

:::Poly:::
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #5 on: August 15, 2009, 07:44:26 »

Right on! Glad to hear it's all coming together for you!

-=Cliff>
Logged
Pages: [1]
Print