Using Communication Components > PresentationText component > Using the PresentationText component

 

Using the PresentationText component

This component can add supplemental material to any presentation application.

The following list describes two ways to use this component:

Training seminars: Make notes and outline examples in a training application.

Meeting notes: Keep all users current with issues and topics in a meeting application.

In the following example, you create two client files: presentText_test_speaker is for the speaker who has control of the slides and an outline for the presentation, and presentText_test is for a viewing participant who does not have speaker capabilities. Whereas both of these clients point to the same application, presentText_test, only clients that are in speaker mode have the added speaker capabilities.

 
To use the PresentationText component in your speaker application:

1

Make sure Flash Communication Server is running.

2

Create a directory in the Flash Communication Server MX /application directory, and name it presentText_test.

3

In the presentText_test directory, create a file named main.asc with the following code:

load("components.asc");

Note: You can also copy the main.asc file from another application directory to this application's directory.

4

In Flash MX, drag the PresentationText component onto the Stage and, in the Property inspector, give it an instance name, such as presentText_mc.

Note: The only property in the Property inspector is Speaker Mode, and the default setting is true. This enables speaker capabilities for this client.

5

Drag the SimpleConnect component onto the Stage.

6

In the Property inspector for the SimpleConnect component, provide the following two parameters:

In the Application Directory text box, type the URI of the application that you created in Step 2: rtmp:/presentText_test.

Double-click the Communication Components text box. In the Values dialog box that appears, click the plus sign (+) and type the instance name of the PresentationText component: presentText_mc. Click OK.

By providing this value, you are using the SimpleConnect component to handle the connection for the PresentationText component. When the SimpleConnect component successfully connects to the server, the PresentationText component automatically connects to the server.

7

Save and publish the speaker file as presentText_test_speaker.fla.

 
To use the PresentationText component in your viewer application:

1

Make a copy of the presentText_test_speaker.fla file and name it presentText_test.fla.

2

In presentText_test.fla, select the PresentationText component, and in the Property inspector, change the Speaker Mode parameter to false.

3

Save the presentText_test.fla file.

 
To test the PresentationText component in both modes:

1

Open the presentText_test_speaker.swf file or, in the Flash MX authoring environment, choose Control > Test Movie, and log in.

2

Open the presentText_test.swf file or, in the Flash MX authoring environment, choose Control > Test Movie, and log in as a different user.

In presentText_test_speaker.swf, you are a speaker: you can create new slides and click back and forth through the presentation. You also have an outline of the presentation.

In presentText_test.swf, you are a viewer: you can view the slides, but only as directed by the speaker.

The following figure shows the speaker client application in the background and the viewer presentation in the foreground.

 
PresentationText component Property inspector

Name

Variable

Description

Speaker Mode

speakerMode

A Boolean value; the default value is true. If true, the user can add, edit, or remove slides. The user can also change the current slide that other users view. If false, users can view only the slide that the speaker chooses to display. To set this variable programmatically, call _global.speakerMode=[true or false].