This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Forgoing the SimpleConnect Component
|
75
other movie’s AVPresence instance. (Be careful and wear headphones during
these tests. If you use an open microphone and regular speakers, you’ll likely
experience harsh audio feedback.) Test different bit rate settings in the SetBand-
width component to see how the quality changes in both the video and audio
output.
Forgoing the SimpleConnect Component
If you are building your own custom FlashCom applications and Flash client mov-
ies, you’ll likely have your own login systems and user interface elements, complete
with username and password fields. In such cases, you’ll need to connect communi-
cation components to your FlashCom applications without the use of the Simple-
Connect component. In this last section, you will learn how to enable the
ConnectionLight component for an application by using your own custom client-
side ActionScript code.
First, create a new server-side application. On the computer running the FlashCom
Server, browse to the applications folder and create a new folder named test_app at
this location. In the next section, you will create a client-side NetConnection object
that connects to this application space.
Building the Client Movie
1. Create a new Flash document (File New), and save the document as no_sim-
pleconnect.fla.
2. Rename Layer 1 to light_mc. On frame 1 of this layer, drag an instance of the
ConnectionLight component from the Components panel to the Stage. Name
the instance
light_mc using the Properties panel.
Figure 2-25. The updated Values list for the Communication Components parameter of the
SimpleConnect component

Get Programming Flash Communication Server now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.