EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 438

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
438 Chapter 12: ActionScript Dictionary
Description
Event handler; invoked whenever receiving_lc, which is in a SWF file hosted at a domain
using a secure protocol (HTTPS), receives a request to invoke a method from a sending
LocalConnection object that is in a SWF file that is hosted at a nonsecure protocol. Flash expects
the code you implement in this handler to return a Boolean value of
true or false. If the
handler doesnt return
true, the request from the sending object is ignored, and the method is
not invoked.
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.
Using this method to override the default behavior is not recommended, as it compromises
HTTPS security. However, you may need to do so, for example, if you need to 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 the
LocalConnection.allowDomain event
handler to permit HTTP to HTTPS access. However, because security is implemented differently
in Flash Player 7, you must use the
LocalConnection.allowInsecureDomain() method to
permit such access in SWF files published for Flash Player 7 or later.
See also
LocalConnection.allowDomain
, LocalConnection.connect()
LocalConnection.close()
Availability
Flash Player 6.
Usage
receiving_lc.close
Parameters
None.
Returns
Nothing.
Description
Method; closes (disconnects) a LocalConnection object. Issue this command when you no
longer want the object to accept commands—for example, when you want to issue a
LocalConnection.connect() command using the same connectionName parameter in
another SWF file.
See also
LocalConnection.connect()

Table of Contents

Related product manuals