MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manuale Utente Pagina 39

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 80
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 38
Server-Side Communication ActionScript 39
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 controls which streams can be played by the connection.
For shared objects, readAccess controls if the connection can listen to shared object changes.
Tip: 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 function gives a client read access to myMedia/mp3s, myData/notes,
and any files or directories within them:
application.onConnect = function(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:
application.onConnect = function(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
};
Parameters
propName The name of an undefined property.
Vedere la pagina 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 79 80

Commenti su questo manuale

Nessun commento