| Previous | Next | |
Windows: Flash 8 or 9 AS2.0 SWF + mProjector
3.0; Windows NT Support: Flash 7 SWF + mProjector
2.0;
Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector
1.2.5;
mApplication.getHostAddress(domain:String, target:Object, callbackFunction:String) : Voiddomain - Domain name i.e. "www.screentime.com".
target - Optional object that will be used as this of the callback function.
callbackFunction - The function that will be called periodically during the download.
Nothing.
Method; Returns the IP address for specified host.
This example checks for an internet connection. If it succeeds, the host is reachable and the connection is good.
// Windows Example
var isConnection:Boolean;
onGetHostAddressComplete = function(ipAddress) {
isConnected = false;
myHostAddress = 0;
mApplication.trace("ipAddress "+ipAddress);
if (ipAddress>0) {
isConnected = true;
myHostAddress = ipAddress;
}
};
mApplication.getHostAddress("www.screentime.com", this, onGetHostAddressComplete);mApplication.checkNetConnection()
| Questions or Feedback? | Previous | Next |