MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Uživatelský manuál Strana 58

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 172
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 57
55
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Note: A legal key cannot contain the characters “*” and “:”.
Availability
Flash Media Server 2
Client.writeAccess
clientObject.writeAccess
Provides write access to directories that contain application resources (such as shared objects and streams) for this
client. To give a client write access to directories that contain application resources, list directories in a string delimited
by semicolons. By default, all clients have full write access, and the
writeAccess property is set to slash (/). For
example, if
myMedia is specified as an access level, then any files or directories in the myMedia directory are also
accessible (for example, myMedia/myStreams). Similarly, any files or subdirectories in the myMedia/myStreams
directory are also accessible, and so on.
For shared objects, writeAccess provides control over who can create and update the shared objects.
For streams, writeAccess provides control over who can publish and record a stream.
You cannot use this property to control access to a single file. To control access to a single file, create a separate
directory for the file.
Don’t precede the stream path with a leading slash (/) on the client side.
Note: You cannot set this property in the application.onPublish() event.
Availability
Flash Communication Server 1
Example
The following example provides write access to the /myMedia/myStreams and myData/notes directories:
application.onConnect = function(newClient, name){
newClient.writeAccess = "/myMedia/myStreams;myData/notes";
application.acceptConnection();
};
The following example completely disables write access:
application.onConnect = function(clientObj){
clientObj.writeAccess = "";
return true;
};
See also
Client.readAccess
File class
The File class lets applications write to the server’s file system. This is useful for storing information without using a
database server, creating log files for debugging, and tracking usage. Also, a directory listing is useful for building a
content list of streams or shared objects without using Flash Remoting.
Zobrazit stránku 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 171 172

Komentáře k této Příručce

Žádné komentáře