
LocalConnection.onStatus() Event Handler
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
596
|
ActionScript Language Reference
The domain( ) method is used by LocalConnection objects communicating across domains.
It lets us specify the subdomain of a sender or receiver movie without knowing its name
beforehand. For example, the following code allows messages from a sender at either
oreilly.com or the same domain as the receiver (whatever that domain happens to be):
receiveConn.allowDomain = function (domain) {
return domain = = "oreilly.com" || domain = = this.domain();
}
See Also
LocalConnection.allowDomain( ), LocalConnection.send( ), MovieClip._url, System.security.
allowDomain( )
LocalConnection.onStatus() Event Handler
callback indicating initial status of a send() invocation
Flash 6
sendConn.onStatus(infoObject)
Arguments
infoObject An object indicating the status of the most recent send( ) operation.
Description
The onStatus( ) event is triggered whenever LocalConnection.send( ) is invoked by sendConn.
It tells us whether the send( ) operation found a valid connection that matched the speci-
fied
connectionName. The onStatus( ) callback receives a single argument, infoObject, whose
level property will have the value “error” if the specified connectionName was not found, or
“status” if it was found. This handler is used for debugging ...