O'Reilly logo

Actionscript Cookbook by Joey Lott

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

    // NetDebug.as is part of Flash Remoting.
    #include "NetDebug.as"
    
    // Include MovieClip.as from Chapter 7 and Date.as from Chapter 10.
    #include "MovieClip.as"
    #include "Date.as"
    
    // Include Table.as and Forms.as from Chapter 11. #include "Table.as" #include "Forms.as" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required