MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 58

Server-side actionscript language reference
Table of Contents

Advertisement

Client.readAccess
Availability
Flash Communication Server MX 1.0.
Usage
clientObject.readAccess
Description
Property; a string that provides read-access rights to directories that contain application
resources (shared objects and streams) for this client. To give a client read access to directories
containing application resources, list directories in a string delimited by semicolons.
By default, all clients have full read access, and the
give 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
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 a directory that contains streams can play streams in the specified
access levels. Clients with read access to a directory that contains 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,
changes.
Although you cannot use this property to control access for a particular file, you can
create a separate directory for a file if you want to control access to it.
Example
The following
onConnect
notes, and any files or directories within them:
application.onConnect = function(newClient, name){
newClient.readAccess = "myMedia/mp3s;myData/notes";
};
See also
Client.writeAccess
58
Server-Side ActionScript Language Reference
controls the streams that the connection can play.
controls if the connection can listen to shared object
readAccess
function gives a client read access to myMedia/mp3s, myData/
property is set to slash (
readAccess
). To
/

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents