Creating the Administrator Client

The administrator client should include the following functionality:

  • The administrator should be able to view a list of available messages that have been left.

  • The administrator should be able to play and/or delete messages.

  • The administrator should be alerted when there is an incoming call and should be able to accept or ignore the call.

  • If the administrator accepts a call, she should be able to end the call by clicking on a button.

Complete the following steps to make the administrator client movie:

  1. Create a new Flash document named adminClient.fla and open it.

  2. Add the PushButton and ListBox component symbols to the Library by creating an instance of each on the Stage and then deleting them.

  3. Add a new video symbol by choosing New Video from the Library panel’s pop-up Options menu.

  4. Create a new movie clip symbol named videoMc.

  5. Edit videoMc and create an instance of the video symbol within it so that the video symbol instance is placed at (0,0).

  6. Name the video symbol instance vid.

  7. Open the linkage properties for videoMc.

  8. Select the Export for ActionScript and Export on First Frame options and set the linkage identifier to VideoMcSymbol.

  9. Add the following code to the first frame of the main timeline:

    // is part of Flash Remoting.
    #include ""
    // Include from Chapter 7 and from Chapter 10.
    #include ""
    #include ""
    // Include and from Chapter 11. #include "" #include "" ...

Get Actionscript Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.