In my flex application, I m using an event listener for session out in idle state. It s not working for me.
这是我的代码:
我用一种方法 将代码下方的代码
this.systemManager.addEventListener(FlexEvent.IDLE,onUserIDLE);
UserIDLE 上的调用功能
private function onUserIDLE(e:FlexEvent):void
{
if(e.currentTarget.mx_internal::idleCounter == 60000)
{
this.systemManager.removeEventListener(FlexEvent.IDLE,onUserIDLE);
Alert.show("Session time Out");
menuRO.logoutUser();
signOutBtn_clickHandler();
}
}
The above code doesn t work for my application, it s not entering the if(e.currentTarget.mx_internal::idleCounter == 60000)
statement.
Kindly give me suggestions.
提前感谢!