MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manuel d'utilisateur Page 29

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 172
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 28
26
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Invoked when the server encounters an error while processing a message that was targeted at this application instance.
The
application.onStatus() handler handles any Stream.onStatus() or NetConnection.onStatus()
messages that don’t find handlers. Also, there are a few status calls that come only to
application.onStatus().
Availability
Flash Communication Server 1
Parameters
infoObject An Object with code and level properties that contain information about the status of an application.
Some information objects also have
details and description properties.The following table describes the
information object property values:
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){}
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.
Vue de la page 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 171 172

Commentaires sur ces manuels

Pas de commentaire