Allowdomain (Security.allowdomain Method); Allowinsecuredomain - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Method summary
Modifiers
Signature
static
allowDomain(domain1:String) :
static
allowInsecureDomain(domain:String) :
Void
static
loadPolicyFile(url:String) :
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

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");
570
ActionScript classes
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
Description
Lets SWF files and HTML files in
Void
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 and HTML 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
Void
from a location specified by the url
parameter.
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
valueOf

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 2

Table of Contents