1056 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
SWF file that contains the
allowDomain()
call.
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()
. This is called
cross-domain scripting
. By calling
System.security.allowDomain("mysite.com")
, movieB.swf gives movieA.swf permission
to script movieB.swf.
Modifiers
Signature
Description
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
allowDomain()
call.
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 by means of the HTTPS
protocol.
static
loadPolicyFile
(url:S
tring) : 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)
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...