188
Chapter 10: Working with External Data
There are two different technologies that enable communication between the browser and Flash
Player: LiveConnect (Netscape Navigator 3.0 or later on Windows 95/98/2000/NT or Power
Macintosh) and ActiveX (Internet Explorer 3.0 and later on Windows 95/98/2000/NT).
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 Flash JavaScript methods with Flash Player
Flash Player 6 version 40 and later supports Flash JavaScript methods and FSCommand in
Netscape 6.2 and later. Earlier versions do not support Flash JavaScript methods and
FSCommand in Netscape 6.2 or later.
For Netscape 6.2 and later, you do not need to set
swLiveConnect
to
true
. However, setting
swLiveConnect
to
true
has no adverse effects.
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 cannot access
each other’s objects and variables. 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. Nor can a SWF file served from one domain load data (using
loadVariables()
, 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)
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...