# System.security.allowDomain()

#### Availability

Flash Player 6.

#### Usage

    System.security.allowDomain(domain1, domain2, ... domainN)

#### Description

Method; allows movies in the identified domains to access objects and variables in the movie that calls the `allowDomain()` method.

#### Example

The domains can be formatted in the following ways:

`domain.com`, `http://domain.com`

or

`http://IPaddress`

#### Scenario

<http://www.macromedia.com/MovieA.swf> loads <http://www.shockwave.com/MovieB.swf>. MovieA.swf contains the command `System.security.allowDomain("shockwave.com")` . Therefore, MovieB.swf will be able to access the objects and variables of MovieA.swf.