MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificaciones Pagina 109

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 369
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 108
Sample Applications 31
CHAPTER 3
Sample Applications
This chapter provides examples of a number of Macromedia Flash Communication Server MX
programming techniques, and illustrates how to use many of the Flash Communication Server
objects. These samples are different from the ones provided in the flashcom application directory,
although certain concepts are illustrated in both sets of samples. In general, the samples in this
chapter are simpler than a full-blown application would be; they have been designed specifically
to illustrate certain features in context.
About the samples
The samples in this chapter are progressive: skills shown in later samples rely on information you
gain from working with the prior samples. If youre not sure how to proceed with a step, check an
earlier sample. You can read more about the commands used here in the Client-Side
Communication ActionScript Dictionary and the Server-Side Communication ActionScript
Dictionary. For the core ActionScript commands, see the online ActionScript Dictionary in
Macromedia Flash MX.
Each sample section provides an overview of the sample, a description of the user experience, a
procedure for creating the user interface and the ActionScript code, and a suggested methodology
for testing your application.
Files associated with the samples (FLA, SWF, HTML, and ASC) are located in subdirectories of
the \Macromedia\Flash MX\flashcom_help\help_collateral directory.
Creating your working environment
This section explains what you need to know before trying to re-create any of the samples.
Make sure the server is running. The samples assume that the Flash Communication Server is
running. For more information, see “Starting the service” on page 18.
Specifying the server URI. The samples assume youre using the Flash MX authoring environment
on the same computer that is running the Flash Communication Server. If that isnt the case, add
your server name to all the
connect commands in the samples. For example, if your server is
running at
myServer.myDomain.com, change a line like this:
new_nc.connect("rtmp:/doc_record/room_01");
to this:
new_nc.connect("rtmp://myServer.myDomain.com/doc_record/room_01");
Note: Be sure you use two slashes (//) after rtmp: in the revised code. The use of a single slash is supported only
when the SWF application and the Flash Communication Server are running on the same machine.
Vista de pagina 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 368 369

Comentarios a estos manuales

Sin comentarios