I'm looking for help finding the right event to listen for, if there actually is one.
My application has several states, with a custom component that displays in each of the individual states. In one of the components, I have a webview that shows a google map with a list next to it. Webviews are always on top in the z-order, so when I move to another state, I actually have to change the visibility of the map to false because it doesn't disappear when I leave the state where the map exists. The problem is that when I leave the state where the map exists, the map disappears first, then the rest of the state transition happens which makes it look very clumsy and lazy. What I would like to do is find an event that fires when the transition from one state to the other is complete. Then I could immediately react to that and change the map visibility. This would make the state and the map disappear at the same time. Is there an event that fires when a state change is 100% complete, or when the displaylist is done updating for a new state??? I already tried reacting to the stateChangeComplete event in my main application where the states are defined, but it is firing long before the display list is actually updated. So is there an event that fires when the display list is actually done generating the display after a state is entered??? Thanks!! -- Sent from: http://apache-flex-users.2333346.n4.nabble.com/