S > System.security.allowDomain |
![]() ![]() ![]() |
System.security.allowDomain
Availability
Macromedia Flash MX.
Usage
System.security.allowDomain(domain1, domain2,....domainN)
Description
Method; allows Flash MX movies in the identified domains to access objects and variables in the Flash MX movie that calls the allowDomain
command.
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.
![]() ![]() ![]() |