Besley - Foundation ActionScript for Flash 8 (Apress, 2006).pdf

(9107 KB) Pobierz
204419705 UNPDF
204419705.003.png
Foundation ActionScript
for Flash 8
Kristian Besley
Sham Bhangal
David Powers
with Eric Dolecki
204419705.004.png 204419705.005.png
Foundation ActionScript for Flash 8
Copyright © 2006 by Kristian Besley, Sham Bhangal, and David Powers
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying, recording, or by any information storage or retrieval system, without the
prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-59059-618-0
ISBN-10 (pbk): 1-59059-618-8
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked
name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of
infringement of the trademark.
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013.
Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com.
For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley, CA 94710.
Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com, or visit www.apress.com.
The information in this book is distributed on an “as is” basis, without warranty. Although every precaution has been taken in the
preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to
any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work.
The source code for this book is freely available to readers at www.friendsofed.com in the Downloads section.
Credits
Lead Editor
Chris Mills
Assistant Production Director
Kari Brooks-Copony
Technical Reviewers
Kristian Besley and David Powers
Production Editor
Kelly Winquist
Editorial Board
Steve Anglin, Dan Appleman,
Ewan Buckingham, Gary Cornell,
Jason Gilmore, Jonathan Hassell,
James Huddleston, Chris Mills,
Matthew Moodie, Dominic Shakeshaft,
Jim Sumser, Matt Wade
Compositor
Dina Quan
Artist
Kinetic Publishing Services, LLC
Proofreader
Linda Seifert
Project Manager
Denise Santoro Lincoln
Indexer
Julie Grady
Copy Edit Manager
Nicole LeClerc
Cover Image Designer
Corné van Dooren
Copy Editors
Ami Knox and Nicole LeClerc
Interior and Cover Designer
Kurt Krames
Manufacturing Director
Tom Debolski
204419705.006.png
CONTENTS AT A GLANCE
About the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
About the Cover Image Designer . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Chapter 1 Interactive Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Chapter 2 Making Plans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Chapter 3 Movies That Remember . . . . . . . . . . . . . . . . . . . . . . . . . 59
Chapter 4 Movies That Decide for Themselves . . . . . . . . . . . . . . . 105
Chapter 5 More Power, Less Script . . . . . . . . . . . . . . . . . . . . . . . . 139
Chapter 6 Movies That Remember How to Do Things . . . . . . . . . . 185
Chapter 7 Objects and Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Chapter 8 Objects on the Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Chapter 9 Reusable Code and Realistic Movement . . . . . . . . . . . . 299
Chapter 10 Games and Sprites . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Chapter 11 Drawing API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409
Chapter 12 Adding Sound to Flash . . . . . . . . . . . . . . . . . . . . . . . . . 453
Chapter 13 Loading Dynamic Data with XML . . . . . . . . . . . . . . . . . 487
Chapter 14 Finishing the Futuremedia Case Study . . . . . . . . . . . . . 525
Chapter 15 Advanced ActionScript: Components and Classes . . . . 559
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607
iii
204419705.001.png
204419705.002.png
Zgłoś jeśli naruszono regulamin