MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 47

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 46
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
44
<!-- You can create as many Key elements as you need.-->
<Key from="WIN 7,0,19,0" to="WIN 9,0,0,0">A</Key>
</VirtualKeys>
Using the previous Vhost.xml file, if a Flash Player 8 client connected to the server, its Client.virtualKey value
would be
A.
Note: A legal key cannot contain the characters “*” and “:”.
Use this property in conjunction with
Stream.setVirtualPath() to map stream URLs to physical locations on the
server. This allows you to serve different content to different versions of Flash Player. For more information, see
Stream.setVirtualPath().
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.
Dont 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
Vedere la pagina 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 154 155

Commenti su questo manuale

Nessun commento