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:
Create a new Flash document named adminClient.fla and open it.
Add the PushButton and ListBox component symbols to the Library by creating an instance of each on the Stage and then deleting them.
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
.Edit
videoMc
and create an instance of the video symbol within it so that the video symbol instance is placed at (0,0).Name the video symbol instance
vid
.Open the linkage properties for
videoMc
.Select the Export for ActionScript and Export on First Frame options and set the linkage identifier to
VideoMcSymbol
.Add the following code to the first frame of the main timeline:
//
NetDebug.as
is part of Flash Remoting. #include "NetDebug.as" // IncludeMovieClip.as
from Chapter 7 andDate.as
from Chapter 10. #include "MovieClip.as" #include "Date.as" // IncludeTable.as
andForms.as
from Chapter 11. #include "Table.as" #include "Forms.as" ...
Get Actionscript Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.