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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 25
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
23
Returns
Any value that the callback function returns.
Example
application.onStatus = function(info){
trace("code: " + info.code + " level: " + info.level);
trace(info.code + " details: " + info.details);
};
// Application.Script.Warning level: warning
application.onUnpublish()
application.onUnpublish = function (clientObj, streamObj){}
Invoked when a client stops publishing a stream to an application. Use this event handler with
application.onPublish()to send traffic to other servers when youre building a large-scale, live broadcasting appli-
cation.
Note:
You cannot change Client object properties in this handler.
Availability
Flash Media Interactive Server 3 and Flash Media Development Server 3
Parameters
clientObj A Client object; the client publishing the stream to the application.
streamObj A Stream object; the stream being published to the application.
Returns
Server ignores any return value.
Code property Level property Description
Application.Script.Error
error
The ActionScript engine has encountered a runtime error.
This information object also has the following properties:
filename: name of the offending ASC file.
lineno: line number where the error occurred.
linebuf: source code of the offending line.
Application.Script.Warning
warning
The ActionScript engine has encountered a runtime warning.
This information object also has the following properties:
filename: name of the offending ASC file.
lineno: line number where the error occurred.
linebuf: source code of the offending line.
Application.Resource.LowMemory
warning
The ActionScript engine is low on runtime memory. This provides an
opportunity for the application instance to free some resources or to take
suitable action.
If the application instance runs out of memory, it is unloaded and all users
are disconnected. In this state, the server does not invoke the
application.onDisconnect() event handler or the
application.onAppStop() event handler.
Vedere la pagina 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 154 155

Commenti su questo manuale

Nessun commento