User Guide

570 ActionScript classes
Method summary
Methods inherited from class Object
allowDomain (security.allowDomain method)
public static allowDomain(domain1:String) : Void
Lets SWF files and HTML files in the identified domains access objects and variables in the
calling SWF file or in any other SWF file from the same domain as the calling SWF file.
In files playing in Flash Player 7 or later, the parameters passed must follow exact-domain
naming rules. For example, to allow access by SWF files hosted at either www.domain.com or
store.domain.com, both domain names must be passed:
// For Flash Player 6
System.security.allowDomain("domain.com");
// Corresponding commands to allow access by SWF files
// that are running in Flash Player 7 or later
System.security.allowDomain("www.domain.com", "store.domain.com");
Modifiers Signature Description
static allowDomain(domain1:String) : Void Lets SWF files and HTML files in
the identified domains access
objects and variables in the calling
SWF file or in any other SWF file
from the same domain as the calling
SWF file.
static allowInsecureDomain(domain:String) :
Void
Lets SWF files and HTML files in
the identified domains access
objects and variables in the calling
SWF file, which is hosted using the
HTTPS protocol.
static loadPolicyFile(url:String) : Void Loads a cross-domain policy file
from a location specified by the url
parameter.
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)