MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 1344

Actionscript 2.0 language reference
Table of Contents

Advertisement

When
is executed, the XML object property
load()
data finishes downloading, the
is invoked. The XML data is not parsed until it is completely downloaded. If the XML object
previously contained any XML trees, they are discarded.
If
XMLSocket.connect()
successful; later, the
XMLSocket.onConnect
final connection succeeded or failed. If
could not be established.
When using this method, consider the Flash Player security model.
For Flash Player 8, the XMLSocket.connect() method is not allowed if the calling SWF
file is in the local-with-file-system sandbox.
For Flash Player 7 and later, websites can permit access to a resource from requesters in
different domains by deploying a cross-domain policy file.
For more information, see the following:
Chapter 17, "Understanding Security," in Learning ActionScript 2.0 in Flash
The Flash Player 8 Security white paper at http://www.macromedia.com/go/fp8_security
The Flash Player 8 Security-Related API white paper at http://www.macromedia.com/go/
fp8_security_apis
Availability: ActionScript 1.0; Flash Player 5 - Behavior changed in Flash Player 7.
Parameters
- String; a fully qualified DNS domain name or an IP address in the form
url:String
aaa.bbb.ccc.ddd. You can also specify
resides. If the SWF file issuing this call is running in a web browser,
domain as the SWF file; for details, see the information about domain restrictions for SWF
files in the main description of this method.
- A number; the TCP port number on the host used to establish a connection.
port:Number
The port number must be 1024 or greater.
Returns
-
if the connection is successful;
Boolean
true
1344
ActionScript classes
property is set to
loaded
returns a value of
true
method is invoked to determine whether the
XMLSocket.connect()
to connect to the host server on which the SWF file
null
is set to
loaded
, and the
true
, the initial stage of the connection process is
returns
host
otherwise.
false
. When the XML
false
event handler
onLoad
, a connection
false
must be in the same

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents