-- Lingo syntax _player.netPresent // JavaScript syntax _player.netPresent;
Player property; determines whether the Xtra extensions needed to access the Internet are available but does not report whether an Internet connection is currently active. Read-only.
If the Net Support Xtra extensions are not available, netPresent will function properly, but netPresent() will cause a script error.
This statement sends an alert if the Xtra extensions are not available:
-- Lingo syntax
if (not(_player.netPresent)) then
_player.alert("Sorry, the Network Support Xtras could not be found.")
end if
// JavaScript syntax
if (!(_player.netPresent)) {
_player.alert("Sorry, the Network Support Xtras could not be found.");
}