
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
9
application.allowDebug
application.allowDebug
A boolean value that lets administrators access an application with the Administration API
approveDebugSession() method (true) or not (false). A debug connection lets administrators view information
about shared objects and streams in the Administration Console.
The default value for this property is
false and is set in the Application.xml file:
<Application>
...
<Debug>
<AllowDebugDefault>false</AllowDebugDefault>
</Debug>
...
</Application>
Setting application.allowDebug to true in a server-side script overrides the value in the Application.xml file.
Availability
Flash Media Server 2
application.broadcastMsg()
application.broadcastMsg(cmd [, p1,..., pN])
Broadcasts a message to all clients connected to an application instance. To handle the message, the client must
define a handler on the NetConnection object with the same name as the
cmd parameter.
Availability
Flash Media Server 2
Parameters
cmd A string; a message to broadcast. To handle the message, define a handler with the same name as cmd on the
client-side NetConnection object.
p1,..., pN A string; additional messages to broadcast.
Example
The following server-side code sends a message to the client:
application.broadcastMsg("testMessage", "Hello World");
The following client-side code catches the message and outputs “Hello World”:
nc = new NetConnection();
nc.testMessage = function(msg){
trace(msg);
};
application.clearSharedObjects()
application.clearSharedObjects(soPath)
Deletes persistent shared objects files (FSO files) specified by the soPath parameter and clears all properties from
active shared objects (persistent and nonpersistent). Even if you have deleted all the properties from a persistent
shared object, unless you call
clearSharedObjects(), the FSO file still exists on the server.
Commentaires sur ces manuels