Are you experiencing this issue with AIR2 Beta2 or AIR 1.5.3?
Its AIR 1.5.3.
I tried reproducing the issue, but it works fine for me, both when using only the wireless connection and when alternating between wired and wireless.
Could you please detail a little more your network setup / what are you trying to achieve?
I used in my testing the attached sample. Each time, about 10-15 seconds after changing the network state (plug/unplug ethernet cable, turn on/off wireless network), the proper events are thrown:
- NetworkChange event (Event.NETWORK_CHANGE), whenever a network interface changes its state
- StatusChange event (StatusEvent.STATUS), whenever resource changes its availability
At application start a StatusChange event is dispatched (due to the call to the start() method of the monitor object). Then, as ethernet cable is plugged/unplugged and wireless is turned on or off, NetworkChange events and StatusChange events are dispatched, with a delay of 10 up to 20 seconds.
Hope this helps,
wirelessMonitoring.zip 455.0 K
Thanks for your inputs.
However I resolved the issue. The problem was with my code. I somehow missed the "requestCompleteHandler" function and hence when the request was completed the status was not refreshing. Its working fine now.