- Full Description
This book is a compilation of advanced ActionScript 3.0 animation techniques for any user creating games, user interaction, or motion control with ActionScript. It's an anthology of topics that follow from the author's earlier book, Foundation ActionScript 3.0 Animation: Making Things Move, and things that became possible in version 10 of Flash Player. This book covers a diverse selection of topics that don't necessarily lead one into the other. You don't need to start with Chapter 1 and read it cover to cover. Just start with any chapter that looks interesting and jump around as you see fit. In this book, you'll find chapters on advanced collision detection, artificial intelligence and steering behaviors, isometric projection, using the camera and microphone for input, 3D, and much, much more.
AdvancED ActionScript 3.0 Animation is also more experimental in nature. The techniques shown here might not be the best way to do things, but they should work well and get you started in your own efforts to achieve a perfect implementation. In fact, many of the chapters can be seen as introductions to very complex topics that could fill a whole book by themselves. Many of these subjects have been extensively covered elsewhere, but not necessarily targeted for Flash or ActionScript 3.0. So it took a fair amount of work to pull the data together and get it all working and explain it all clearly in ActionScript. This book will inspire you to find out about subjects that you might not have considered before, acting as a springboard into your own research into the possibilities of ActionScript 3.0.
What youll learn
- Leverage Flash 10 3D, the drawing API commands, and Pixel Bender
- Create isometric worlds for games
- Construct powerful artificial intelligence routines including pathfinding, steering, and flocking behaviors
- Use numerical integration for real world physics effects
- Build advanced collision detection routines for more accurate simulations
- Source Code/Downloads
If you think that you've found an error in this book, please let us know by emailing to firstname.lastname@example.org . You will find any confirmed erratum below, so you can check if your concern has already been addressed.On page 279:assigning a PerspectiveProjection object to a shape must first be instantiated or it will not work.
perhaps this was inferred, but it's confusing nonetheless.
s.transform.perspecitveProjection.projectionCenter = new Point(stage.stageWidth / 2, stage.stageHeight / 2);
should be something like:
var projection:PerspectiveProjection = new PerspectiveProjection();
projection.projectionCenter = new Point(stage.stageWidth / 2, stage.stageHeight / 2);
s.transform.perspectiveProjection = projection;