I have this code to check teh network connectivity. The API used here
is ServiceMonitor. And My Application is based on Adobe Flex 3.0
**************************************************************************************************************
import air.net.ServiceMonitor;
import flash.events.StatusEvent;

socketMonitor = new SocketMonitor('www.adobe.com',6667);
socketMonitor.addEventListener(StatusEvent.STATUS,
socketStatusChange);
socketMonitor.start();

function announceStatus(e:StatusEvent):void {
    trace("Status change. Current status: " +
socketMonitor.available);
}
**************************************************************************************************************
At run time, execution of socketMonitor.start(); is giving this error:
ReferenceError: Error #1065: Variable flash.desktop::NativeApplication
is not defined.

Any idea ?

Adi

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to