This section presents the unique ActionScript Methods and properties used by the Communication UI components.
The AudioConference component provides two-way (full-duplex) audio communication between all clients connected to the application instance. There are no ActionScript methods other than the common methods mentioned above.
The AVPresence component enables a camera and microphone on the client. Each component can receive and send an audio/video stream to the application instance. Remember to set the Presenter SharedObject property to a unique value in the properties panel. There are no ActionScript methods other than the common methods mentioned above.
The Chat component provides a live chat window among all communication clients. The component offers a history window and a text input area. This component supports Lurker mode. The component has methods and roperties within the server-side ActionScript object, FCChat.
This method will delete all chat history from the history window. If the server-side property FCChat.prototype.allowClear is false, this method will not run.
The server-side counterpart to the Chat UI component object controls the operation of the chat history. These settings must be set in the application.onAppStart function. Setting them in application.onConnect will reset the prototype each time a user connects.
This SSAS method clears all chat history and forces each client to update. It is not subject to the allowClear property.
This property sets the maximum number of text messages stored on the server. The default value is 250.
This property sets the chat history to persist even when the application is reloaded. The default value is true.
This read/write property defines whether a chat history can be cleared from the client. The values true and false are Boolean values that determine whether the user can clear the history. The default value is true.
The ConnectionLight component visually shows a NetConnection status. It is also a button that, when clicked, displays information about the connection. The button has four color states:
Green |
Server connection is established. |
Yellow |
Network congestion (high latency). |
Red |
Server disconnected. |
Gray |
Component is not assigned. |
The setUserName method is not used with this object.
This property sets the sample rate of bandwidth and latency.
This property controls the latency value that will turn the light yellow.
The Cursor component is an avatar that represents the mouse pointer of every communication client. The username of the client is shown below the pointer. The client can choose the color of the pointer using the UserColor component.
This method changes the color of the pointer across all clients. The value of newColor is a hexadecimal color value, such as 0xFC00F3.
The PeopleList component displays all users connected to the application instance. Lurkers are not displayed here.
This property returns the number of connected clients that have not supplied a username (in Lurker mode). The value is an integer.
This property returns the number of connected clients that have supplied a username. The value is an integer.
The PresentationSWF component provides a framework to use a special slideshow SWF movie that is dynamically loaded from a web server on each client. The component has two modes: Presenter and Viewer.
The setUserName method is not used with this object.
This method can be called by the "presenter" application. It dynamically loads a new Flash SWF movie on all subscribed clients. swfFile is the absolute or relative location to load a SWF movie
This method moves the play head of the slideshow movie one frame forward. If used within the presenter application, all clients are affected. If used within the viewer application, only the local frame is affected.
This method moves the play head of the slideshow movie one frame backward. If used within the presenter application, all clients are affected. If used within the viewer application, only the local frame is affected.
This method moves the play head of the slideshow movie to the same frame as the presenter. It can be used in the viewer application only.
This _global variable is monitored by the component to control what state the Flash movie is in. A value of true enables Speaker (or Presentation) mode.
The PresentationText component provides a stage to collaboratively produce and deliver a presentation. It operates in two modes: Presenter and Viewer (the default).
This method moves the presentation one frame forward. If used within the presenter application, all clients are affected. If used within the viewer application, only the local frame is affected.
This method moves the presentation one frame backward. If used within the presenter application, all clients are affected. If used within the viewer application, only the local frame is affected.
This method creates a new slide in the presentation. It is only available in Presenter mode.
This method removes a new slide in the presentation. It is only available in Presenter mode.
The RoomList component provides a management framework for developing Lobby applications. The component requires advanced development of HTML files, JavaScript, and Flash Communication Applications. It offers functions for users to create, delete, and join "room" applications, such as a chat room.
This method calls the Create Room dialog box. The user is required to enter a new room name to create.
This method removes a room from the Room list.
The SetBandwidth component provides a simple drop-down box to let the client control inbound and outbound bandwidth between the server. There are four options: Modem, DSL, LAN, and custom. This component is useful if you expect a diverse range of connections to use your application.
The setUserName method is not used with this object.
The properties of SetBandwith let you set the upload and download bandwidth manually. Each property has a default integer value that represents a speed in kilobits per second (Kbps).
This property sets the upload bandwidth for Modem. The default value is 33Kbps.
This property sets the download bandwidth for Modem. The default value is 33Kbps.
This property sets the upload bandwidth for DSL. The default value is 128Kbps.
This property sets the download bandwidth for DSL. The default value is 33Kbps.
This property sets the upload bandwidth for LAN. The default value is 1000Kbps (1Mbps).
This property sets the download bandwidth for LAN. The default value is 1000Kbps (1Mbps).
The SimpleConnect component establishes a connection and a user between the Flash player and the server. It can be used with all Flash UI components. Using this component requires no (or very little) ActionScript on the client or the server. This object has no methods and no ActionScript methods or properties.
The UserColor component allows a client to select a color that will identify him. This component can be used with the Chat and the Cursor components. It also sets a global color value that can be used with future Communication components. The setUserName method is not used with this object.
The VideoConference component reuses the AVPresence component to provide a quick solution for video conferencing. There are no ActionScript methods other then the common methods mentioned previously.
The WhiteBoard component provides a shared drawing space that lets you collaborate with annotations. This can be used as a straight white board or overlaid on an image. The component supports limited drawing tools including text, shape, and line drawing. There are no ActionScript methods other then the common methods mentioned previously. The setUserName method, however, is not used with this object.