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

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Re: StateMachine Action Notification Chains Problem on: April 28, 2010, 01:06:11
For question #3:
Avoid such chaining if the transition occurs many times without an asynchronous break.
This is to avoid an ever growing call stack, which piles up every transition made until the next asynchronous request. I'm assuming here that the calling stack must terminate before the flash engine can fire the listener of an asynchronous call. Is this right?
In any case such situation would certainly mean a misuse of a state for something too transient.
2  PureMVC Manifold / Demos and Utils / Re: Pipes - A PureMVC AS3 MultiCore Utility on: April 27, 2010, 12:42:58
Any reason why we don't have such methods on IPipeAware?

:
function disconnectInputPipe(name:String):Void;
function disconnectOutputPipe(name:String):Void;

These would be useful when a module needs to be disconnected but still kept on the side for later reuse.
For example, one application could have a 3D rendering module and a 2D rendering module. Only one of them would need to be active, but because the user can switch between 2D and 3D at any time, it's best to keep each version of the module at hand.
Unless someone can suggest me a better approach than the above 2 methods...
3  PureMVC Manifold / Demos and Utils / Re: Pipes - A PureMVC Haxe MultiCore Utility on: April 27, 2010, 12:11:12
TeeSplit.disconnectFitting() is missing from the haXe version...
4  Announcements and General Discussion / Architecture / Re: StateMachine Action Notification Chains Problem on: April 25, 2010, 10:28:16
I'll just give my own hint with question #2:
A case where this chaining is necessary is when the next state in the chain can also be triggered by some other event, most notably an async event such as user interaction, thereby requiring its encapsulation and reuse. So in the case of SOA if some user interaction were to require a new xml config, the CONFIGURING state will need to stand on its own while STARTING and PLUMBING could be merged.
5  Announcements and General Discussion / Architecture / Re: StateMachine Action Notification Chains Problem on: April 25, 2010, 09:06:48
So in the case of the SeaOfArrows web site, which code is available at http://seaofarrows.com/srcview/ and which is described in the puremvc.tv, the shell states STARTING and PLUMBING and CONFIGURING should be merged into one state.

I say this because STARTED is just the initial state with no associated commands. The action STARTED is sent by the initial command after the FSM is injected, thus jumping to PLUMBING. And the last thing the shell PlumbCommand does is trigering the transition to the CONFIGURING state with:
sendNotification( StateMachine.ACTION, null, ShellFacade.PLUMBED );

So the call stack will look like this:
sendNotification( StateMachine.ACTION, null, ShellFacade.STARTED );
  PlumbCommand.execute()
    sendNotification( StateMachine.ACTION, null, ShellFacade.PLUMBED );
      ConfigureCommand.execute()
        async loading of xml
    sendNotification( CHANGED, currentState, ShellFacade.CONFIGURING );
  sendNotification( CHANGED, currentState, ShellFacade.PLUMBING );


As you say earlier it does make things a lot more complicated. So I'd be curious to know about:
1. What are the benefits in the case of SOA/MediaTurbine?
2. Any advice with this practice of chaining states without async break?
3. Any constraints in the use of this practice besides avoiding the use of the CHANGED notifications (these are sent in LIFO order)?
6  Announcements and General Discussion / General Discussion / Re: PureMVC TV on: April 16, 2010, 03:04:39
Yeah, sorry I meant the loadup utility which I ported to haxe. It compiles but I still need to validate it...
7  Announcements and General Discussion / General Discussion / Re: PureMVC TV on: April 15, 2010, 03:23:58
What's going on with MediaTurbine?
I'm developing something roughly similar but being new to flash, haxe, and puremvc I'm kind of slow!
Right now I've just finished porting StartupManager to haxe but there's more plumbing and testing needed before I could release it.
Having MediaTurbine as an example would really help for the plumbing!
Cheers for all your work.
Pages: [1]