Sheetal :
Try this , Might be useful , This is how i do to check the Internet
connectivity .
Event :
networkChange="networkChangeHandler(event)"
private function networkChangeHandler(event:Event):void {
checkConnectionStatus();
}
private function checkConnectionStatus():void {
var urlReq:URLRequest = new URLRequest("
www.google.com");
var loader:URLLoader = new URLLoader();
loader.load(urlReq);
loader.addEventListener(Event.COMPLETE,onConnectionStatusResult);
loader.addEventListener
(IOErrorEvent.IO_ERROR,onConnectionStatusFault);
}
private function onConnectionStatusResult(event:Event):void {
Alert.show("online");
}
private function onConnectionStatusFault(event:Event):void {
Alert.show("offline");
}
Thanks,
Satish