Preface

Preface

The ActionScript Cookbook is written with all levels of ActionScript developers in mind?people like you, who want practical solutions to common problems. Keep this book next to your computer to tackle programming challenges such as how to use ActionScript to draw a circle or load images at runtime, or work with Flash Communication Server (FlashCom) and Flash Remoting. This book is filled with exciting yet accessible and practical examples, solutions, and insights into the situations that Flash and ActionScript developers are sure to encounter.

The book is divided into three parts. The first two parts follow the classic O'Reilly Cookbook series format, in which each recipe presents the problem, the solution, and a discussion of the solution. You can quickly locate the recipe that most closely matches your situation and get the solution without having to read the whole book to understand the underlying code. The Discussion sections of each recipe offer a deeper analysis of how the solution works and possible design choices and ramifications. So you get the best of both worlds?quick and easy access to the answers you want and deeper insights into the nature of both the problem and the solution. The ActionScript Cookbook helps you develop your understanding of concepts by applying them in real situations.

Part I contains "local recipes," which address problems that involve client-side ActionScript only (scripting within the Flash movie). These recipes cover working with color, movie clips, text, forms, and so on.

Part II contains "remote recipes," which involve some kind of server interaction. For example, Part II includes recipes on working with FlashCom applications; loading external assets such as MP3s, SWFs, and JPEGs; using XML with your Flash movies; and using Flash Remoting.

Part III diverges somewhat from the classic O'Reilly Cookbook recipe approach, but I'm particularly excited about this part of the book. Each of the chapters in Part III show you, step by step, how to create complete applications that incorporate many of the recipes from Part I and Part II. These chapters help you understand how to use many of the techniques in the context of a complete application.



    Part I: Local Recipes
    Part II: Remote Recipes