Allowdomain (Security.allowdomain Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Method summary
Modifiers
Signature
static
allowDomain(domain1:
String) : Void
static
allowInsecureDomain(
domain:String) :
Void
static
loadPolicyFile(url:S
tring) : Void
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
SWF file that contains the
If two SWF files are served from the same domain — for example, http://mysite.com/
movieA.swf and http://mysite.com/movieB.swf — then movieA.swf can examine and modify
variables, objects, properties, methods, and so on in movieB.swf, and movieB.swf can do the
same for movieA.swf. This is called cross-movie scripting or simply cross-scripting.
If two SWF files are served from different domains — for example, http://mysite.com/
movieA.swf and http://othersite.com/movieB.swf — then, by default, Flash Player does not
allow movieA.swf to script movieB.swf, nor movieB.swf to script movieA.swf. A SWF file
gives SWF files from other domains permission to script it by calling
System.security.allowDomain()
System.security.allowDomain("mysite.com")
to script movieB.swf.
1056
ActionScript classes
Description
Lets SWF files and HTML files in the identified
domains access objects and variables in the SWF file
that contains the allowDomain() call.
Lets SWF files and HTML files in the identified
domains access objects and variables in the calling
SWF file, which is hosted by means of the HTTPS
protocol.
Loads a cross-domain policy file from a location
specified by the url parameter.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
allowDomain()
. This is called cross-domain scripting. By calling
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
call.
, movieB.swf gives movieA.swf permission
toString
valueOf

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF