Skip to Content
Actionscript Cookbook
book

Actionscript Cookbook

by Joey Lott
July 2003
Intermediate to advanced
896 pages
45h 43m
English
O'Reilly Media, Inc.
Content preview from Actionscript Cookbook

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" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ActionScript 3.0 Cookbook

ActionScript 3.0 Cookbook

Joey Lott, Darron Schall, Keith Peters
ActionScript 3.0 Design Patterns

ActionScript 3.0 Design Patterns

William Sanders, Chandima Cumaranatunge

Publisher Resources

ISBN: 0596004907Catalog PageErrata