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: is this what the state machine would be good for  (Read 6928 times)
kdowd
Newbie
*
Posts: 1


View Profile Email
« on: August 02, 2010, 09:40:27 »

I am creating a demo of a mobile USSD application - it mean that depending on what the user selects, certain button will change their onscreen text and mouseclicks will do different things

There are a lot of possible routes through and it is getting out-of-hand.

I am thinking that maybe the state machine will help me create a more robust and
scalable application?

Has anyone got experience of using the state machine utility - will it help?
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: August 03, 2010, 05:52:28 »

The State Machine can definitely help with this, but if your app is already built, it might be a pretty radical refactor. When employing this utility, it becomes the a prominent actor for your whole app. Thus its a good thing to build in from the start.

That said, I've had great luck with it. It is at the heart of the Zarqon AIR app (http://zarqon.net), which has a fairly involved FSM for starting up, checking for connectivity, capturing and validating license and S3 info, checking for updates, and different user interactions at runtime. It works like a charm.

-=Cliff> 
Logged
Pages: [1]
Print