442
Chapter 6: ActionScript Core Classes
Returns
Nothing.
Description
Method; 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. It also lets the SWF files in the
identified domains access any other SWF files in the same domain as the calling SWF file.
By default, SWF files hosted using the HTTPS protocol can be accessed only by other SWF files
hosted using the HTTPS protocol. This implementation maintains the integrity provided by the
HTTPS protocol.
Macromedia does not recommend using this method to override the default behavior because it
compromises HTTPS security. However, you might need to do so, for example, if you must
permit access to HTTPS files published for Flash Player 7 or later from HTTP files published for
Flash Player 6.
A SWF file published for Flash Player 6 can use
System.security.allowDomain()
to permit
HTTP to HTTPS access. However, because security is implemented differently in Flash Player 7,
you must use
System.Security.allowInsecureDomain()
to permit such access in SWF files
published for Flash Player 7 or later.
Note:
It is sometimes necessary to call
System.security.allowInsecureDomain()
with an argument
that exactly matches the domain of the SWF file in which this call appears. This is different from
System.security.allowDomain()
, which is never necessary to call with a SWF file’s own domain as an
argument. The reason this is sometimes necessary with
System.security.allowInsecureDomain()
is
that, by default, a SWF file at http://foo.com is not allowed to script a SWF file at https://foo.com,
even though the domains are identical.
Example
In the following example, you host a math test on a secure domain so that only registered students
can access it. You have also developed a number of SWF files that illustrate certain concepts,
which you host on an insecure domain. You want students to access the test from the SWF file
that contains information about a concept.
// This SWF file is at https://myEducationSite.somewhere.com/mathTest.swf
// Concept files are at http://myEducationSite.somewhere.com
System.security.allowInsecureDomain("myEducationSite.somewhere.com");
See also
System.security.allowDomain()
,
System.exactSettings
System.security.loadPolicyFile()
Availability
Flash Player 7 (7.0.19.0)
Usage
System.security.loadPolicyFile(
url:String
)
: Void
Содержание FLEX
Страница 1: ...Flex ActionScript Language Reference ...
Страница 8: ......
Страница 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Страница 76: ......
Страница 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Страница 135: ...case 135 See also break default strict equality switch ...
Страница 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Страница 229: ...while 229 i 3 The following result is written to the log file 0 3 6 9 12 15 18 See also do while continue for for in ...
Страница 808: ...808 Chapter 7 ActionScript for Flash ...
Страница 810: ...810 Appendix A Deprecated Flash 4 operators ...
Страница 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Страница 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Страница 822: ...822 Index ...