Method summary
Modifiers
Signature
close() : Void
connect(connectionNa
me:String) : Boolean
domain() : String
send(connectionName:
String,
methodName:String,
[args:Object]) :
Boolean
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
allowDomain (LocalConnection.allowDomain
handler)
allowDomain = function([sendingDomain:String]) {}
Invoked whenever receiving_lc receives a request to invoke a method from a sending
LocalConnection object. Flash expects the code you implement in this handler to return a
Boolean value of true or false. If the handler doesn't return true, the request from the sending
object is ignored, and the method is not invoked.
When this event handler is absent, Flash Player applies a default security policy, which is
equivalent to the following code:
my_lc.allowDomain = function (sendingDomain)
{
return (sendingDomain == this.domain());
}
Description
Closes (disconnects) a LocalConnection object.
Prepares a LocalConnection object to receive
commands from a LocalConnection.send()
command (called the sending LocalConnection object).
Returns a string representing the domain of the
location of the current SWF file.
Invokes the method named method on a connection
opened with the
LocalConnection.connect(connectionName)
command (the receiving LocalConnection object).
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
valueOf
LocalConnection
713
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?