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

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

问题描述

Flex 4 中是否有任何事件可用于检测状态更改?

Is there any event in Flex 4 that I can use to detect a state change?

推荐答案

我知道这个问题很老了,但通过谷歌搜索状态更改事件,我仍然在这里为想知道的人提供:

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.oldStateStateChangeEvent.newState 属性.

In your listener function you can then acces the StateChangeEvent.oldState and StateChangeEvent.newState properties.

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

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