ActionScript: The Definitive Guide by Colin Moock
Given its ability to deliver high-impact experiences even over low-bandwidth connections, Flash has become the de facto standard for hundreds of thousands of multimedia Web developers worldwide. Flash 5 includes a full-fledged programming language called ActionScript for controlling animation and multimedia. It's a quantum leap from the bare-bones Actions supported in Flash 4, and this text is dedicated entirely to documenting and demonstrating this new language. ActionScript includes all fundamental programming constructs (variables, loops, conditionals, functions, and so on), and is inextricably fused with Flash's authoring behaviours and animation timelines. Because ActionScript is based heavily on the ECMAScript Language Specification (ECMA-262) and is syntactically nearly identical to JavaScript, Macromedia expects thousands of existing JavaScript programmers to migrate to ActionScript. This book is divided into three sections. ActionScript Fundamentals introduces both programmers and non-programmers to the new language by first describing fundamental programming concepts and then delineating in detail the components, syntax, and usage of ActionScript. Applied ActionScript Code Depot shows you how to use common applications, such as processing online forms. Language Reference is a detailed reference that aims to make all ActionScript globals, properties, and objects, including extensive implementation samples, easy to find quickly. Code samples are also available from the Code Depot on the author's Web site devoted to Flash developers. Topics covered in this book include: step-by-step tutorials of the most common ActionScript behaviours; object-oriented programming in Flash; intelligent interface development; server communication; dynamic content generation; password protection; string handling; message boards; basic physics; and games. The book is structured so both programmers and non-programmers can learn how to use ActionScript. It aims to take the reader well beyond simple Flash animations so they can create their own enhanced Flash-driven sites.