
System.security.allowDomain() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
818
|
ActionScript Language Reference
Description
The capabilities property is an object reference to the built-in Capabilities object. See the
Capabilities object entry (under “C”) in this Language Reference for complete details.
Although, technically,
System.capabilities is writable, it should not be overwritten in your
movies.
See Also
The Capabilities object
System.security.allowDomain() Method
sets cross-domain movie permissions
Flash 6
System.security.allowDomain(domain1, domain2,...domainn)
Arguments
domain1, ...domainn
A list of one or more domains for which access to the movie should be
granted.
Description
The security property is a reference to the built-in Security object, which defines a single
important method, allowDomain(). We use allowDomain() to grant movies at other
domains access to the current movie. Though security limitations have been a part of the
Flash Player since version 4, Flash 6 formalizes the concept of the security sandbox. Under
the rules of the sandbox, a movie hosted at one domain cannot:
• Invoke methods or functions in a movie loaded from another domain
• Access data (user-defined variables, user-defined properties, and nested movie clips) in
a movie loaded from another domain
• Load XML or variables from another domain