MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificações Página 90

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 369
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 89
Chapter 112
Local shared object
Client-side local shared objects let you store information on a users
computer, such as the high score in a game, that can be used later by the same application or by a
different application running on that computer. For more information about local shared objects,
see “Understanding shared objects” on page 14.
Video object The client-side Video object lets you display streaming video on the Stage. To
display a video feed being played or captured through the use of a
NetStream.play or
Camera.get command, place a Video object on the Stage and use the Video.attachVideo
method to attach the feed to the object.
To place a Video object on the Stage:
1 If the Library panel isnt visible, select Window > Library to display it.
2 Add an embedded Video object to the library by clicking the Options menu at the upper right
of the Library panel and choosing New Video.
3 Drag the Video object to the Stage and use the Property inspector to give it a unique name.
Server-side objects
These objects are used only in server-side ActionScript. For more information about these objects,
see the Server-Side Communication ActionScript Dictionary.
Application object The server-side Application object contains information about a Flash
Communication Server application instance that lasts until the application instance is unloaded.
The Application object 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 object The server-side Client object represents each user’s connection to a Flash
Communication Server application instance. The 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 the Client object to determine the version,
platform, and IP address of each client. Using the Client object, 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 57.
NetConnection object The server-side NetConnection object lets you create a two-way
connection between a Flash Communication Server application instance and an application
server, another Flash Communication Server, or another Flash Communication 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 Communication Servers or
application instances.
Using this object, you can connect to an application server for server-to-server interactions using
standard protocols (such as HTTP), or connect to another Flash Communication Server for
sharing audio, video, and data using the Macromedia Real-Time Messaging Protocol (RTMP).
You can use Macromedia Flash Remoting with the Flash Communication Server to communicate
with application servers such as Macromedia ColdFusion MX, .NET, and J2EE servers. For more
information, see the Flash Remoting site (http://www.macromedia.com/go/flashremoting).
Vista de página 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 368 369

Comentários a estes Manuais

Sem comentários