APPENDIX A
A
Server-Side Information
Objects
The Application, NetConnection, and Stream classes provide an
event handler that
onStatus
uses an information object for providing information, status, or error messages. To respond to
this event handler, you must create a function to process the information object, and you
must know the format and contents of the information object returned.
You can define the following global function at the top of your main.asc file to display all the
status messages for the parameters that you pass to the function. You need to place this code
in the main.asc file only once.
function showStatusForClass(){
for (var i=0;i<arguments.length;i++){
arguments[i].prototype.onStatus = function(infoObj){
trace(infoObj.code + " (level:" + infoObj.level + ")");
}
}
showStatusForClass(NetConnection, Stream);
For more information about information objects, see the appendix of the Client-Side
Communication ActionScript Language Reference for Flash Media 2.
An information object has the following properties:
,
,
, and
level
code
description
. All information objects have
and
properties, but only some have the
details
level
code
and/or
properties. The following tables list the
and
description
details
code
level
properties as well as the meaning of each information object.
229
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?