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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 369
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 162
85
CHAPTER 5
Application Server Connectivity
This chapter explains how to use Macromedia Flash Remoting services to add application server
connectivity to your Macromedia Flash Communication Server MX application. Macromedia
Flash Remoting is a gateway that connects your communication application to J2EE application
servers and Microsoft Windows .NET servers. Flash Remoting relies on its own client-side
ActionScript library, called NetServices, to link Macromedia Flash MX movies to a server-side
gateway.
The samples in this chapter illustrate how you can make Flash Remoting calls in your server-side
ActionScript to access NetServices. In the context, the Flash Communication Server acts as a
client to Flash Remoting. These samples work with Macromedia ColdFusion MX, which
includes Flash Remoting. To use Flash Remoting with other application servers, see the Flash
Remoting site (http://www.macromedia.com/go/flashremoting).
Connecting through Flash Remoting
“Common client-server workflows” on page 23 describes the different ways you can use Flash
Communication Server to connect clients and servers. The subsection “Connecting to external
sourcesshows the Flash Communication Server connecting to other services. The client invokes
a method on the Flash Communication Server, which in turn invokes a method on additional
servers. The results move from the application server to the Flash Communication Server, and
finally back to the client.
Using the Flash Communication Server together with the Flash Remoting NetServices library,
you’ll invoke a Flash Communication Server method from the client, passing some parameters.
The Flash Communication Server will then invoke a NetServices method. When the NetServices
method passes the result to the Flash Communication Server, the server returns it to the client.
Re-creating the samples
The samples assume youre using the Flash MX authoring environment on the same local host
that is running the Flash Communication Server and ColdFusion MX. Files associated with the
samples (FLA, SWF, HTML, and ASC) are located in subdirectories of the \Macromedia\Flash
MX\flashcom_help\help_collateral directory.
As with the samples in earlier chapters, you’ll create the user interface in a FLA file using the
client-side ActionScript. The client-side ActionScript in the FLA file will invoke a method in the
server-side ASC file that you will also create.
To add Flash Remoting services to your application, you’ll use server-side ActionScript in an ASC
file that you will create. This server-side code will act as a client to the Flash Remoting service by
invoking methods in the ColdFusion CFC file, which you will also create.
Vista de página 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 368 369

Comentários a estes Manuais

Sem comentários