PureMVC Architects Lounge

PureMVC Manifold => Bug Report => Topic started by: creacog on August 14, 2009, 09:22:15



Title: [WILL FIX] state machine 1.1 bug? puremvc.tv content error? or me
Post by: creacog on August 14, 2009, 09:22:15
I'm using the Utility_AS3_MultiCore_StateMachine_1_1.swc and learning to use state machine utility I've been mainly using the PureMVC TV slides...

I'm thinking there may be an error on this slide describing the StateMachine.CHANGED notification, or in the state machine itself (v1.1) or in my understanding...

PureMVC TV : http://puremvc.tv/#P003/T360

States that Notification body (from the ACTION notificatation) is passed through the body of the StateMachine.CHANGED notification. But I see a State object not my data object...

notification   org.puremvc.as3.multicore.patterns.observer.Notification (@193cc831)   
   body   org.puremvc.as3.multicore.utilities.statemachine.State (@3031f701)   
      changed   null   
      entering   null   
      exiting   null   
      name   "VideoComponent/states/configureFaulting"   
      transitions   Object (@1943e449)   
   name   "StateMachine/notes/changed"   
   type   "VideoComponent/states/configureFaulting"   


and pertinent extract from the transitionTo method of class StateMachine...

*** begin extract ***

// Notify the app generally that the state changed and what the new state is
sendNotification( CHANGED, currentState, currentState.name );


*** end extract ***

Of course I can work around this using a state specific changed announcement.


VERSIONS - Should the current version information and SWCs be updated to 1.2 ?

Download page states current version 1.1. The download zip expands to (trimmed)...

Utility_AS3_StateMachine_1_2
|-- asdoc-multicore
|-- asdoc-standard
|-- bin
|   |-- Utility_AS3_MultiCore_StateMachine_1_1.swc
|   `-- Utility_AS3_StateMachine_1_1.swc
|-- lib-multicore
|-- lib-standard
|-- license.txt
|-- src-multicore
|-- src-standard
`-- version.txt


in which version.txt reads Version: 1 Revision: 2, and so i guess the source is v1.2?


Thanks

--
Paul Evans
http://www.creative-cognition.co.uk/
http://blog.creacog.co.uk/


Title: Re: Demos Utils / multicore / state machine 1.1 bug? puremvc.tv content error? or me
Post by: puremvc on August 15, 2009, 08:06:30
Good catch(s), Paul!

As for the slide, it is does erroneously say that the notification body from the original ACTION note will be passed and in direct conflict with the narration where I say that it will contain a reference to the new State.

For the code, yes, the code is version 1.2 but the swcs haven't been updated to 1.2. Eeek! Will take care of this ASAP!

Thanks for pointing these out.
-=Cliff>