EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Allowdomain (Localconnection.allowdomain Handler)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 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...
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)

Table of Contents

Related product manuals