有没有在Flex 4中任何情况下,我可以用它来检测状态更改?
Is there any event in Flex 4 that I can use to detect a state change?
我知道这个问题是旧的,但通过使用Google的状态变化的事件我还是到这里来所以人们想知道:
I know this question is old but by googling for state change events I still get here so for people that want to know:
有一个由组件出动 StateChangeEvent.CURRENT_STATE_CHANGE 事件,这样你的应用程序还可以侦听。
There is a StateChangeEvent.CURRENT_STATE_CHANGE
event that is dispatched by the component, so your application can also listen for that.
在你的监听功能,您就可以存取权限的 StateChangeEvent.oldState
和 StateChangeEvent.newState
属性。
In your listener function you can then acces the StateChangeEvent.oldState
and StateChangeEvent.newState
properties.