LocalConnection
713
Method summary
Methods inherited from class Object
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());
}
Modifiers
Signature
Description
close
() : Void
Closes (disconnects) a LocalConnection object.
connect
(connectionNa
me:String) : Boolean
Prepares a LocalConnection object to receive
commands from a
LocalConnection.send()
command (called the
sending LocalConnection object
).
domain
() : String
Returns a string representing the domain of the
location of the current SWF file.
send
(connectionName:
String,
methodName:String,
[args:Object]) :
Boolean
Invokes the method named
method
on a connection
opened with the
LocalConnection.connect(connectionName)
command (the receiving LocalConnection object).
addProperty (Object.addProperty method)
,
hasOwnProperty
(Object.hasOwnProperty method)
,
isPropertyEnumerable
(Object.isPropertyEnumerable method)
,
isPrototypeOf (Object.isPrototypeOf
method)
,
registerClass (Object.registerClass method)
,
toString
(Object.toString method)
,
unwatch (Object.unwatch method)
,
valueOf
(Object.valueOf method)
,
watch (Object.watch method)
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...