Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.net 
InterfaceAddress 
Packageflash.net
Classpublic class InterfaceAddress
InheritanceInterfaceAddress Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The InterfaceAddress class reports the properties of a network interface address.

See also



Public Properties
 PropertyDefined By
  AIR-only address : String
The Internet Protocol (IP) address.
InterfaceAddress
  AIR-only broadcast : String
The broadcast address of the local network segment.
InterfaceAddress
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  AIR-only ipVersion : String
The IP address type (IPv4 or IPv6).
InterfaceAddress
  AIR-only prefixLength : int
The prefix length for this address.
InterfaceAddress
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
AIR-only 

address

property
address:String

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The Internet Protocol (IP) address.



Implementation
    public function get address():String
    public function set address(value:String):void
AIR-only 

broadcast

property 
broadcast:String

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The broadcast address of the local network segment.



Implementation
    public function get broadcast():String
    public function set broadcast(value:String):void
AIR-only 

ipVersion

property 
ipVersion:String

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The IP address type (IPv4 or IPv6).



Implementation
    public function get ipVersion():String
    public function set ipVersion(value:String):void
AIR-only 

prefixLength

property 
prefixLength:int

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The prefix length for this address.

For IPv4 addresses, this is the subnet mask. Examples of the prefix length for IPv4 values include: 8 (255.0.0.0), 16 (255.255.0.0) and 24 (255.255.255.0). Example IPv6 prefix length values include 128 (::1/128) and 32 (2001:db8::/32)

Note: If the prefix length for this address is not available, the value of prefixLength is -1. A prefix value is not always returned by the network implementation of a specific client computer.



Implementation
    public function get prefixLength():int
    public function set prefixLength(value:int):void