Server-Side Communication ActionScript > Client.referrer |
![]() ![]() ![]() |
Client.referrer
Availability
Flash Communication Server MX.
Usage
Client.referrer
Description
Property (read-only); a string object whose value is set to the URL of the SWF file or the server in which this connection originated.
Example
The following example defines an onConnect
callback function that sends a trace to the Output window indicating the origin of the new client when that client connects to the application:
application.onConnect = function(newClient, name){ trace("New user connected to server from" + newClient.referrer); };
![]() ![]() ![]() |