Настройка Air 2.5 Целевой выход в CS5 - это способ получения IP-адреса.
import flash.net.InterfaceAddress;
import flash.net.NetworkInfo;
import flash.net.NetworkInterface;
function findIPAddress():void
{
var networkInfo = NetworkInfo.networkInfo;
var interfaces = networkInfo.findInterfaces();
var interfaceObj;
var address;
//Get available interfaces
for (var i = 0; i < interfaces.length; i++)
{
interfaceObj = interfaces[i];
for (var j = 0; j < interfaceObj.addresses.length; j++)
{
address = interfaceObj.addresses[j];
trace(address.address + "\n");
}
}
}
findIPAddress();