Packageshell
Classpublic class Domain
InheritanceDomain Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The Domain class is a container for discrete groups of class definitions.



Public Properties
 PropertyDefined By
  currentDomain : Domain
[static] [read-only] Gets the current program domain in which your code is executing.
Domain
  domainMemory : ByteArray
Gets and sets the ByteArray object on which global memory operations will operate within this ApplicationDomain
Domain
  MIN_DOMAIN_MEMORY_LENGTH : uint
[static] [read-only] Gets the minimum length of a ByteArray required to be used as ApplicationDomain.globalMemory
Domain
  parentDomain : Domain
[read-only]
Domain
Public Methods
 MethodDefined By
  
Domain(base:Domain = null)
Creates a new domain.
Domain
 Inherited
_init():*
[static]
_init
  
AVM-only getClass(className:String):Class
Gets a class definition from the specified program domain.
Domain
  
Gets a public definition from the specified program domain.
Domain
  
Checks to see if a public definition exists within the specified program domain.
Domain
 Inherited
AS3
 Inherited
init():*
[static]
init
 Inherited
AS3
  
load(filename:String, swfVersion:uint = 0):*
[load description]
Domain
  
AVM-only loadBytes(byteArray:ByteArray, swfVersion:uint = 0):*
[loadBytes description]
Domain
 Inherited
AS3
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
 Inheritedlength : int = 1
[static]
length
Property Detail
currentDomainproperty
currentDomain:Domain  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Gets the current program domain in which your code is executing.


Implementation
    public static function get currentDomain():Domain
domainMemoryproperty 
domainMemory:ByteArray

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5

Gets and sets the ByteArray object on which global memory operations will operate within this ApplicationDomain


Implementation
    public function get domainMemory():ByteArray
    public function set domainMemory(value:ByteArray):void
MIN_DOMAIN_MEMORY_LENGTHproperty 
MIN_DOMAIN_MEMORY_LENGTH:uint  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, AVM 0.4, Flash Player 10

Gets the minimum length of a ByteArray required to be used as ApplicationDomain.globalMemory


Implementation
    public static function get MIN_DOMAIN_MEMORY_LENGTH():uint
parentDomainproperty 
parentDomain:Domain  [read-only]


Implementation
    public function get parentDomain():Domain
Constructor Detail
Domain()Constructor
public function Domain(base:Domain = null)

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Creates a new domain.

Parameters
base:Domain (default = null) — If no parent domain is passed in, this program domain takes the system domain as its parent.
Method Detail
AVM-only getClass()method
public function getClass(className:String):Class

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Gets a class definition from the specified program domain.

Parameters

className:String — The name of the definition.

Returns
Class — The class associated with the definition.
getDefinition()method 
public function getDefinition(name:String):Object

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Gets a public definition from the specified program domain.

The definition can be that of a class, a namespace, or a function.

Parameters

name:String — The name of the definition.

Returns
Object — The object associated with the definition.
hasDefinition()method 
public function hasDefinition(name:String):Boolean

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Checks to see if a public definition exists within the specified program domain.

The definition can be that of a class, a namespace, or a function.

Parameters

name:String — The name of the definition.

Returns
Boolean — A value of true if the specified definition exists; otherwise, false.
load()method 
public function load(filename:String, swfVersion:uint = 0):*

[load description]

Parameters

filename:String — [description]
 
swfVersion:uint (default = 0) — [description]

Returns
* — [description]
AVM-only loadBytes()method 
public function loadBytes(byteArray:ByteArray, swfVersion:uint = 0):*

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

[loadBytes description]

Parameters

byteArray:ByteArray — [description]
 
swfVersion:uint (default = 0) — [description]

Returns
* — [description]