MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 572

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

See also
,
onLoadComplete (MovieClipLoader.onLoadComplete event listener)
_parent
,
,
(MovieClip._parent property)
_url (MovieClip._url property)
allowInsecureDomain (security.allowInsecureDomain method)
allowInsecureDomain (security.allowInsecureDomain
method)
public 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 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.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- An exact domain name, such as www.myDomainName.com or
domain:String
store.myDomainName.com.
572
ActionScript classes

Advertisement

Table of Contents
loading

Table of Contents