kramchel
05-21-2009, 06:06 AM
Hello Pals -
I'm trying to handle the net connection drop and provide some kind of visual cue to user. For this I'm listening to NetConnection.Connect.Closed event and when its triggered, I take further steps. The events are triggered in Vista FF3(window mode)/IE7 but in Vista FF3 full screen mode, the event is not triggered. I forcefully disconnect the network cable to see the NetConnection.Connect.Closed event is triggered.
I have following piece of code to listen to the event,
.
.
nc = new NetConnection;
nc.addEventListener(NetStatusEvent.NET_STATUS, onStatus, false, 0, true);
nc.connect();
.
.
public function onStatus(event:NetStatusEvent):void {
trace("Status " + event.info.level + " : " + event.info.code);
.
.
The function onStatus should be called whenever there is a status change in net connection. The events are not triggered in Vista FF3 full screen mode. Please share your views/ideas about this here. Thanks in advance. Please let me know incase more information is required.
I'm trying to handle the net connection drop and provide some kind of visual cue to user. For this I'm listening to NetConnection.Connect.Closed event and when its triggered, I take further steps. The events are triggered in Vista FF3(window mode)/IE7 but in Vista FF3 full screen mode, the event is not triggered. I forcefully disconnect the network cable to see the NetConnection.Connect.Closed event is triggered.
I have following piece of code to listen to the event,
.
.
nc = new NetConnection;
nc.addEventListener(NetStatusEvent.NET_STATUS, onStatus, false, 0, true);
nc.connect();
.
.
public function onStatus(event:NetStatusEvent):void {
trace("Status " + event.info.level + " : " + event.info.code);
.
.
The function onStatus should be called whenever there is a status change in net connection. The events are not triggered in Vista FF3 full screen mode. Please share your views/ideas about this here. Thanks in advance. Please let me know incase more information is required.