MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 333

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 332
Server-Side Communication ActionScript 33
Client.writeAccess
Availability
Flash Communication Server MX.
Usage
Client.writeAccess
Description
Property; provides write-access rights to application resources (shared objects, streams, and so on)
for this client. To give a client write access to directories containing 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/mp3s). Similarly, any files or directories in the myMedia/mp3s directory are also
accessible, and so on.
For shared object, 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.
Example
The following example provides write access to the /myMedia/mp3s and myData/notes
directories.
function application.onConnect(newClient, name){
newClient.writeAccess = "/myMedia/mp3s;myData/notes";
application.acceptConnection();
}
See also
Client.readAccess
load
Availability
Flash Communication Server MX.
Usage
load(filename);
Parameters
filename The relative path to an ActionScript file in relation to the main.asc file.
Returns
Nothing.
Description
Method (global); loads an ActionScript file inside the main.asc file. This method executes only
when the ActionScript file is first loaded. The loaded file is compiled and executed after the
main.asc file is successfully loaded, compiled, and executed, and before
application.onAppStart is executed. The path of the specified file is resolved relative to
main.asc. This method is useful for loading ActionScript libraries.
Przeglądanie stron 332
1 2 ... 328 329 330 331 332 333 334 335 336 337 338 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag