Foundation.Actionscript.3.0.Animation.Apr.2007.pdf

(3443 KB) Pobierz
99119611 UNPDF
Foundation
ActionScript 3.0 Animation
Making Things Move!
Keith peters
ForewordbyAralBalkan
Find all the formulas and techniques you’ll need to create
dynamic scripted animation, including real-world physics
Covers ActionScript 3.0 object-oriented techniques
Supports the Flash IDE, Flex Builder 2, and the free Flex 2 SDK
99119611.050.png 99119611.053.png 99119611.054.png 99119611.055.png 99119611.001.png 99119611.002.png 99119611.003.png 99119611.004.png 99119611.005.png 99119611.006.png 99119611.007.png 99119611.008.png 99119611.009.png 99119611.010.png 99119611.011.png 99119611.012.png 99119611.013.png 99119611.014.png 99119611.015.png 99119611.016.png 99119611.017.png 99119611.018.png 99119611.019.png 99119611.020.png 99119611.021.png 99119611.022.png 99119611.023.png 99119611.024.png 99119611.025.png 99119611.026.png 99119611.027.png 99119611.028.png 99119611.029.png 99119611.030.png 99119611.031.png 99119611.032.png 99119611.033.png 99119611.034.png
 
99119611.035.png 99119611.036.png 99119611.037.png 99119611.038.png 99119611.039.png 99119611.040.png 99119611.041.png 99119611.042.png 99119611.043.png 99119611.044.png 99119611.045.png 99119611.046.png
Foundation
ActionScript 3.0 Animation
Making Things Move!
Keith Peters
99119611.047.png 99119611.048.png
Foundation ActionScript 3.0 Animation:
Making Things Move!
Copyright © 2007 by Keith Peters
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-791-0
ISBN-10 (pbk): 1-59059-791-5
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 Reviewer
Todd Yard
Compositor
Dina Quan
Editorial Board
Steve Anglin, Ewan Buckingham,
Gary Cornell, Jason Gilmore,
Jonathan Gennick, Jonathan Hassell,
James Huddleston, Chris Mills,
Matthew Moodie, Jeff Pepper,
Paul Sarknas, Dominic Shakeshaft,
Jim Sumser, Matt Wade
Artist
April Milne
Proofreader
April Eddy
Indexer
John Collin
Project Manager | Production Editor
Laura Esterman
Cover Image Designer
Corné van Dooren
Copy Edit Manager
Nicole Flores
Interior and Cover Designer
Kurt Krames
Copy Editors
Nicole Flores, Ami Knox
Manufacturing Director
Tom Debolski
99119611.049.png
To Kazumi and Kristine, who again put up with me doing this
whole writing-a-book thing. Just a few dozen more, at most.
99119611.051.png
CONTENTS AT A GLANCE
PART ONE ACTIONSCRIPTED ANIMATION BASICS . . . . . . . . . . 1
Chapter 1 Basic Animation Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 2 Basics of ActionScript 3.0 for Animation . . . . . . . . . . . . . . . 13
Chapter 3 Trigonometry for Animation . . . . . . . . . . . . . . . . . . . . . . . 51
Chapter 4 Rendering Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
PART TWO BASIC MOTION . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Chapter 5 Velocity and Acceleration . . . . . . . . . . . . . . . . . . . . . . . . 121
Chapter 6 Boundaries and Friction . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Chapter 7 User Interaction: Moving Objects Around . . . . . . . . . . . . . 173
iv
99119611.052.png
Zgłoś jeśli naruszono regulamin