
About Flash Media Server classes
39
To place a Video object on the Stage from within Flash:
1.
In Flash, select Window > Library to display the Library panel if it isn’t open.
2.
Add an embedded Video object to the library by clicking the Options menu at the upper
right of the Library panel and selecting New Video.
3.
Drag the Video object to the Stage and use the Property inspector to give it a unique name.
About Server-side classes
These classes are used only in server-side ActionScript. For more information about these
classes, see the
Server-Side Media ActionScript Language Reference.
Application class
The server-side Application class lets you create objects that contain
information about a Flash Media Server application instance; the object lasts until the
application instance is unloaded. The Application class lets you accept and reject client
connection attempts, register and unregister classes and proxies, and create functions that are
invoked when an application starts or stops, or when a client connects or disconnects.
Client class
The server-side Client class lets you create objects that represent each user’s
connection to a Flash Media Server application instance. A Client object can receive messages
sent by a client-side
NetConnection.call()
command, and can invoke methods of the
client-side NetConnection object. You can use the properties of a Client object to determine
the version, platform, and IP address of each client. Using the Client class, you can also set
individual read and write permissions of various application resources such as Stream objects
and SharedObject objects. For more information, see
“Implementing dynamic access control”
on page 94
.
File class
The server-side File class lets applications write to the server’s file system.
LoadVars class
The server-side LoadVars class lets you to load variables into a server-side
script from a remote or local location.
NetConnection class
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 also use server-side NetConnection objects to create more powerful
applications; for example, you could get weather information from an application server, or
share an application load with other Flash Media Servers or application instances.
Using a NetConnection object, you can 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 (RTMP).
Содержание FLASH MEDIA SERVER 2-DEVELOPING MEDIA
Страница 1: ...Developing Media Applications ...
Страница 6: ...6 ...
Страница 10: ...10 About This Manual ...
Страница 36: ...36 Flash Media Server Architecture ...
Страница 80: ...80 Debugging and Monitoring Applications ...
Страница 106: ...106 Application Development Tips and Tricks ...
Страница 114: ...114 ...