By default, all clients have full read access, and the
a client read access, specify a list of access levels (in URI format), delimited by semicolons. Any
files or directories within a specified URI are also considered accessible. For example, if
is specified as an access level, then any files or directories in the myMedia directory are also
accessible (for example, myMedia/mp3s). Similarly, any files or directories in the myMedia/mp3s
directory are also accessible, and so on.
Clients with read access to streams can play streams in the specified access levels. Clients with read
access to shared objects can subscribe to shared objects in the specified access levels and receive
notification of changes in the shared objects.
•
For streams,
readAccess
•
For shared objects,
Example
The following
onConnect
and any files or directories within them:
function application.onConnect(newClient, name){
newClient.readAccess = "myMedia/mp3s;myData/notes";
}
See also
Client.writeAccess
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
window indicating the origin of the new client when that client connects to the application:
function application.onConnect(newClient, name){
trace("New user connected to server from" + newClient.referrer);
}
Client.__resolve
Availability
Flash Communication Server MX.
Usage
Client.__resolve = function(propName){
// insert code here
};
controls which streams can be played by the connection.
controls if the connection can listen to shared object changes.
readAccess
function gives a client read access to myMedia/mp3s, myData/notes,
onConnect
property is set to slash (
readAccess
callback function that sends a trace to the Output
Server-Side Communication ActionScript
). To give
/
myMedia
31
Need help?
Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?
Questions and answers