102
Server-Side ActionScript Language Reference
Example
The following example creates a new instance of the Log class:
newLog = new Log();
Log.onLog
Availability
Flash Media Server 2.
Usage
myLog
.onLog(
message
){}
Parameters
message
A log message.
Returns
Nothing.
Description
Event handler; invoked when a log message is sent to a log.
NetConnection class
Availability
Flash Communication Server MX 1.0.
The server-side NetConnection class lets you create a two-way connection between a Flash
Media Server application instance and an application server, another Flash Media Server, or
another Flash Media Server application instance on the same server. You can use
NetConnection objects to create powerful applications; for example, you can get weather
information from an application server or share an application load with other Flash Media
Servers or application instances.
You can use the
NetConnection.connect()
method to connect to an application server for
server-to-server interactions using standard protocols (such as HTTP) or connect to another
Flash Media Server for sharing audio, video, and data using the Macromedia Real-Time
Messaging Protocol format (RTMP) or SSL (RTMPS). SSL in Flash Media Server uses a
third-party open source library called OpenSSL.