MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spezifikationen Seite 110

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 109
Chapter 3 32
Specifying publishing formats.
You should have Flash MX configured to publish both SWF and
HTML files. To specify formats to be created during publishing, choose File > Publish Settings in
the Flash MX authoring environment.
Writing client-side ActionScript code. Unless otherwise noted, your client-side ActionScript code
should be attached to a layer on the first keyframe of your FLA file, not to individual objects.
Writing server-side ActionScript code. For the samples that use server-side ActionScript code,
your main.asc file should be written in a JavaScript editor, such as Macromedia Dreamweaver
MX. For more information on appropriate JavaScript editors, see “Setting up your development
environment” on page 17. Also, remember that server-side code is case-sensitive.
Initializing your client-side code. Add the following code as the first two lines in each sample as
you re-create it (these lines are in each sample FLA but are not included in the steps for re-
creating the sample):
stop();
#include "netdebug.as"
The first line simply ensures that movies stop running before the sample starts. The second line
enables the use of the NetConnection debugger, which lets you trace and diagnose details about
the streams and shared objects your application is using. For more information on the debugger,
see “Using the NetConnection Debugger” on page 105.
Acknowledging the user’s right to privacy. Before recording or broadcasting anyone’s image or
voice, it’s important to inform that person of your intention and to gain their consent or
agreement. In the samples that illustrate how to record or broadcast audio or video, you’ll see
instructions to add a text box that informs users they are being recorded or broadcasted and
gives them the opportunity to exit the application. For a more robust means of letting users
decide whether they want to be recorded or broadcasted, or not, see “Adding a privacy module”
on page 60.
Monitoring running applications. If you have server administration privileges, you can view details
about an application while you are testing it, such as log messages it is generating, values of shared
objects, and so on. To do so, open the Communication App inspector in Flash MX (Window >
Communication App Inspector), connect to the Flash Communication Server, select the
application instance you want to monitor, and choose View Detail. For more information, see
“Using the Communication App inspector” on page 97.
Sample 1: Recording a Stream
This recording sample records a video stream. When the user clicks the Play button, the recorded
data is streamed back to the Flash movie.
About the sample
The user opens the doc_record.html file. After the user grants access to its video device, the live
output appears in the larger video area called
Live_video. When the user clicks the Record
button, the live cameras stream is sent for recording on the Flash Communication Server. When
the user clicks the Stop button, the server stops recording. When the user clicks the Play button,
the server sends the recorded stream back to the application, and the recorded stream plays in the
smaller video area.
Seitenansicht 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare