Flex的4:状态更改事件 [英] Flex 4: State Change Event

查看:147
本文介绍了Flex的4:状态更改事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在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:

有一个由组件出动<$ ​​C $ C> 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.

这篇关于Flex的4:状态更改事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆