0 Replies Latest reply on Mar 31, 2010 3:23 AM by _konkere

    entering/exiting a hierarchy of states


      suppose i have a hierarchy of states:


           <mx:State name="State1" enterState="Alert.show("entered","1");">
           <mx:State name="State2" basedOn="State1" enterState="Alert.show("entered","2");" >     
           <mx:State name="State3" basedOn="State2" enterState="Alert.show("entered","3");" >


      what i see is when State3 is entered for the first time, all three alerts are shown. but when from State3 i move to State2, nothing happens. when i move back from State2 to State3, only the third alert is shown.


      is it a bug or a feature? is it possible to trigger "enterState" each time a state is entered regardless of the hierarchy?