MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifiche Pagina 331

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 369
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 330
Server-Side Communication ActionScript 31
By default, all clients have full read access, and the readAccess property is set to slash (/). To 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
myMedia
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 controls which streams can be played by the connection.
For shared objects, readAccess controls if the connection can listen to shared object changes.
Example
The following onConnect function gives a client read access to myMedia/mp3s, myData/notes,
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 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:
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
};
Vedere la pagina 330
1 2 ... 326 327 328 329 330 331 332 333 334 335 336 ... 368 369

Commenti su questo manuale

Nessun commento