MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifikace Strana 331

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
};
Zobrazit stránku 330
1 2 ... 326 327 328 329 330 331 332 333 334 335 336 ... 368 369

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

Žádné komentáře