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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 14
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
12
application.clearStreams("/");
}
The following example clears all MP3 files from the application instances /disco subdirectory:
function onApplicationStop(){
application.clearStreams("mp3:/disco/*");
}
application.clients
application.clients
Read-only; an Array object containing a list of all the clients connected to an application. Each element in the array
is a reference to the Client object; use the
application.clients.length property to determine the number of
users connected to an application.
Do not use the index value of the
clients array to identify users between calls, because the array is compacted when
users disconnect and the slots are reused by other Client objects.
Availability
Flash Communication Server 1
Example
The following example uses a
for loop to iterate through each element in the application.clients array and calls
the
serverUpdate() method on each client:
for (i = 0; i < application.clients.length; i++){
application.clients[i].call("serverUpdate");
}
application.config
application.config
Provides access to properties of the ApplicationObject element in the Application.xml configuration file. To
access properties that you set in the configuration file, use the
application.config property. For example, to set
the value of the
password element, use the code application.config.password.
For more information, see Adobe Flash Media Server Configuration and Administration Guide.
Availability
Flash Media Server 2
Example
Use this sample section from an Application.xml file for this example:
<Application>
<JSEngine>
<ApplicationObject>
<config>
<user_name>jdoe</user_name>
<dept_name>engineering</dept_name>
</config>
</ApplicationObject>
</JSEngine>
</Application>
The following lines of code access the user_name and dept_name properties:
Vedere la pagina 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 154 155

Commenti su questo manuale

Nessun commento