MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 34

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 33
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
31
// The ip property is already built in to the Client class.
var uniqueID = "re123mn"
// You would need to write code in the above line
// that creates a unique ID for each client instance.
return uniqueID;
}
// Second step: assign prototype methods to the functions.
Client.prototype.getWritePermission = Client_getWritePermission;
Client.prototype.createUniqueID = Client_createUniqueID;
// A good naming convention is to start all class method
// names with the name of the class followed by an underscore.
You can also add properties to prototype, as shown in the following example:
Client.prototype.company = "Adobe";
The methods are available to any instance, so within application.onConnect(), which is passed a clientObj
parameter, you can write the following code:
application.onConnect = function(clientObj){
var clientID = clientObj.createUniqueID();
var clientWritePerm = clientObj.getWritePermission();
};
Availability
Flash Communication Server 1
Property summary
Property Description
Client.agent Read-only; the version and platform of the client.
Client.audioSampleAccess Enables Flash Player to access raw, uncompressed audio data from streams in the specified
folders.
Client.id Read-only; a string that uniquely identifies the client.
Client.ip Read-only; A string containing the IP address of the client.
Client.pageUrl Read-only; A string containing the URL of the web page in which the client SWF file is
embedded.
Client.protocol Read-only; A string indicating the protocol used by the client to connect to the server.
Client.readAccess A string of directories containing application resources (shared objects and streams) to
which the client has read access.
Client.referrer Read-only; A string containing the URL of the SWF file or the server in which this connection
originated.
Client.secure Read-only; A boolean value that indicates whether this is an SSL connection (true) or not
(false).
Client.uri Read-only; the URI specified by the client to connect to this application instance.
Vedere la pagina 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 154 155

Commenti su questo manuale

Nessun commento