User Guide

288 Chapter 11: Working with External Data
There are two technologies that enable communication between the browser and Flash Player:
LiveConnect (Netscape Navigator 3.0 or later on Windows 95/98/2000/NT/XP or Power
Macintosh) and ActiveX (Internet Explorer 3.0 and later on Windows 95/98/2000/NT/XP).
Although the techniques for scripting are similar for all browsers and languages, there are
additional properties and events available for use with ActiveX controls.
For more information, including a complete list of Flash Player scripting methods, use the
keywords Flash method to search the Flash Support Center at www.macromedia.com/support/
flash.
About using JavaScript to control Flash applications
Flash Player 6 (6.0.40.0) and later supports certain JavaScript methods that are specific to Flash
applications, as well as
FSCommand, in Netscape 6.2 and later. Earlier versions do not support
these JavaScript methods and
FSCommand in Netscape 6.2 or later. For more information, see the
Macromedia Support Center article, “Scripting With Flash” at www.macromedia.com/support/
flash/publishexport/scriptingwithflash/.
For Netscape 6.2 and later, you do not need to set the
swliveconnect attribute to true.
However, setting
swLiveConnect to true has no adverse effects on your SWF file. For more
information, see the
swLiveConnect attribute in “Parameters and attributes” in Using Flash.
Flash Player security features
By default, Flash Player 7 and later prevents a SWF file served from one domain from accessing
data, objects, or variables from SWF files that are served from different domains. In addition,
content that is loaded through nonsecure (non-HTTPS) protocols cannot access content loaded
through a secure (HTTPS) protocol, even when both are in exactly the same domain. For
example, a SWF file located at http://www.macromedia.com/main.swf cannot load data from
https://www.macromedia.com/data.txt without explicit permission; neither can a SWF file served
from one domain load data (using
loadVars(), for example) from another domain.
Identical numeric IP addresses are compatible. However, a domain name is not compatible with
an IP address, even if the domain name resolves to the same IP address.
The following table shows examples of compatible domains:
The following table shows examples of incompatible domains:
www.macromedia.com www.macromedia.com
data.macromedia.com data.macromedia.com
65.57.83.12 65.57.83.12
www.macromedia.com data.macromedia.com
macromedia.com www.macromedia.com
www.macromedia.com macromedia.com
65.57.83.12 www.macromedia.com (even if this domain resolves to 65.57.83.12 )
www.macromedia.com 65.57.83.12 (even if www.macromedia.com resolves to this IP)