Client.writeaccess; Load - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

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
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,
objects.
For streams,
writeAccess
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
The relative path to an ActionScript file in relation to the main.asc file.
filename
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
main.asc. This method is useful for loading ActionScript libraries.
property is set to slash (
provides control over who can create and update the shared
writeAccess
provides control over who can publish and record a stream.
is executed. The path of the specified file is resolved relative to
). For example, if
/
myMedia
Server-Side Communication ActionScript
is specified as an access
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash communication server mx

Table of Contents