The calling client should include the following functionality:
The user should be asked to log in before connecting to the FlashCom application and being allowed to place a call.
When the client first connects, the user should be presented with a button that enables him to place a call.
If the administrator is not online or otherwise cannot accept the call, the Place Call button should change to a Record button to allow the user to record a message.
If the user’s call is accepted by the administrator, the client should display the video from both the calling client and the administrator client. Additionally, the client should play the audio from the administrator. The button should change to an End Call button, so the user can end the call.
Here are the steps to follow to create the calling client:
Create a new Flash document named callingClient.fla and open it.
Add the PushButton component symbol to the Library. You can do this by dragging an instance of the push button to the Stage and then deleting it.
Add a new video symbol by choosing New Video from the Library panel’s pop-up Options menu.
Create a new movie clip symbol named
videoMc, and create an instance of the
video symbol within it so that the video symbol instance is placed at
Name the video symbol instance
Open the linkage properties for
Select the Export for ActionScript and Export on First Frame options
and set the linkage identifier to
Add the following ...