MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 678

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

In Flash Player 7 and later, if a version 6 (or earlier) SWF file attempts to load data from a
server that resides in another domain, and that server doesn't provide a policy file that allows
reading from that SWF file's domain, the Macromedia Flash Player Settings dialog box
appears. The dialog box asks the user to allow or deny the cross-domain data access.
If the user clicks Allow, the SWF file can access the requested data; if the user clicks Deny, the
SWF file cannot access the requested data.
To prevent this dialog box from appearing, you should create a security policy file on the
server providing the data. For more information, see
on page
702.
Flash Player 7 and later do not allow cross-domain access without a security policy file.
Flash Player 8 changed the way it handles
file that calls
System.security.allowDomain
uses the wildcard (
) value, permits access only to itself. There is now support for a wildcard
*
(
) value, for example:
*
System.security.allowInsecureDomain("*")
System.security.allowDomain
argument other than wildcard (*), this will affect all SWF files of version 7 or lower in the
calling SWF file's domain, as it did in Flash Player 7. However, this kind of call does not
affect any Flash Player 8 (or later) SWF files in the calling SWF file's domain. This helps
minimize legacy content breaking in Flash Player.
For more information, see
on page
694, allowDomain (security.allowDomain method), and
allowInsecureDomain (security.allowInsecureDomain method).
Flash Player 8 does not allow local SWF files to communicate with the Internet without a
specific configuration on your computer. Suppose you have legacy content that was published
before these restrictions were in effect. If that content tries to communicate with the network
or local file system, or both, Flash Player 8 stops the operation, and you must explicitly
provide permission for the application to work properly. For more information, see
local file security and Flash Player" on page 679
678
Understanding Security
System.security.allowDomain
System.security.allowDomain("*")
or
System.security.allowInsecureDomain
"About domains, cross-domain security, and SWF files"
"Allowing cross-domain data loading"
with any argument, or any other SWF file that
and
. If a SWF file of version 7 or earlier calls
. A Flash 8 SWF
with an
"About

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents