Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.net.dns 
MXRecord 
Packageflash.net.dns
Classpublic class MXRecord
InheritanceMXRecord Inheritance ResourceRecord Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The MXRecord class represents a Domain Name System (DNS) MX resource record containing a mail exchange server address.

MX resource records are returned by a DNSResolver object as a result of a DNS lookup on a domain name. More than one record can be returned by a single lookup if more than one mail exchange is available.

See also



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  AIR-only exchange : String
The host name of a mail exchange service.
MXRecord
 InheritedAIR-only name : String
The query string used to look up this resource record.
ResourceRecord
  AIR-only preference : int
The priority of the mail exchange identified by this record.
MXRecord
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 InheritedAIR-only ttl : int
The resource time-to-live (ttl) value.
ResourceRecord
Public Methods
 MethodDefined By
  
Creates an MX resource record.
MXRecord
 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 

exchange

property
exchange:String

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The host name of a mail exchange service.



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

preference

property 
preference:int

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The priority of the mail exchange identified by this record.

Lower values are higher priority.



Implementation
    public function get preference():int
    public function set preference(value:int):void
Constructor Detail
AIR-only 

MXRecord

()Constructor
public function MXRecord()

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

Creates an MX resource record.

MX records are obtained from a DNS lookup using the DNSResolver class. Application code should not create MXRecord objects.