Title: Using FSM with muti-core, Post by: reduxdj on November 10, 2009, 02:23:40 Is there an example of this, I am having issues getting my FSM injected..
multitonKey for this Notifier not yet initialized! How do I register this mediator with the multicore framework in the FSM please. Thanks, Patrick Title: Re: Using FSM with muti-core, Post by: reduxdj on November 10, 2009, 02:59:29 Here's the multicore version: http://puremvc.org/pages/docs/AS3/Utility_AS3_StateMachine/asdoc-multicore/index.html
my bad, however, the FSM doesn't initialize, because in my onRegister method I am trying to send the notification to initiate my FSM and my facade says it's null: // Create and inject the StateMachine var injector:FSMInjector = new FSMInjector( fsm ); injector.inject(); So in line 51 of my FSM it fails: facade.registerMediator( stateMachine ); why would my facade be null after it starts up at this point? Title: Re: Using FSM with muti-core, Post by: reduxdj on November 10, 2009, 03:15:39 However this works for me:
ApplicationFacade.getInstance(MyApp.NAME).registerMediator(stateMachine); Title: Re: Using FSM with muti-core, Post by: puremvc on November 10, 2009, 04:37:09 because in my onRegister method I am trying to send the notification to initiate my FSM and my facade says it's null In the onRegister method of what? I typically use an InjectFSMCommand and I send a notification to trigger it from within my StartupCommand, after registering Proxies and Mediators. -=Cliff> Title: Re: Using FSM with muti-core, Post by: puremvc on November 10, 2009, 04:41:37 And that code that injects the StateMachine needs to be modified slightly in MultiCore:
// Create and inject the StateMachine |