MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 440

Actionscript language reference
Table of Contents

Advertisement

System.security object
Availability
Flash Player 6.
Description
This object contains methods that specify how SWF files in different domains can communicate
with each other.
Method summary for the System.security object
Method
System.security.allowDomain()
System.security.allowInsecureDomain()
System.security.loadPolicyFile()
System.security.allowDomain()
Availability
Flash Player 6; behavior changed in Flash Player 7.
Usage
System.security.allowDomain("domain1":String, "domain2", ... "domainN") : Void
Parameters
domain1, domain2, ... domainN
variables in the file containing the
formatted in the following ways:
"domain.com"
"http://domain.com"
"http://IPaddress"
Description
Method; 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 parameter(s) 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");
440
Chapter 6: ActionScript Core Classes
Description
Lets SWF 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.
Lets SWF files in the identified domains access objects
and variables in the calling SWF file, which is hosted
using the HTTPS protocol.
Loads a cross-domain policy file from a specified
location.
Strings that specify domains that can access objects and
System.Security.allowDomain()
ActionScript Core Classes
call. The domains can be
CHAPTER 6

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents