Good Reference for Serious AS Programmers, 2006-07-10
Reviewer rating:
"Learning ActionScript 2.0 for Macromedia FLASH 8" is an official Macromedia Press publication and was written by Jan and Peter deHaan, both of whom are clearly ActionScript experts. The book is targeted at individuals with at least some Flash development experience. However, as mentioned later in the book Action Script 2.0 should be primarily of interest to intermediate and advanced Flash programmers.
The authors state that ActionScript will seem familiar if you have previous scripting language experience (i.e. JavaScript), but if you have no programming background ActionScript basics are easy to learn. This may be true. However, I found that this book really requires that readers already have a good foundation of programming background -at least in terms of concepts, syntax, and scripting language structure. For example in Chapter 4: Data and Data Types, I found the code examples to be too abstract without some working knowledge of programming languages and a description of what the code syntax is supposed to be doing.
This book is well organized for topical reference, but is intended for linear reading (though I doubt anyone would actually do this) since many chapters build off of the previous ones. The topical structure of this book is actually its best feature, with each of the 19 chapters addressing a specific Flash feature and how ActionScript 2.0 drives and controls it. Chapter 5: Syntax and Language Fundamentals, however, seems out of place for those of us unfamiliar with scripting languages. This chapter should be moved up front to at least precede the previous chapters on "Writing and Editing AS 2.0" and "Data and Data Types."
The chapter topics are outlined below to show how the book is organized:
o Chapter 1: What's New in ActionScript 2.0
o Chapter 2: Writing and Editing AS 2.0
o Chapter 3: About ActionScript
o Chapter 4: Data and Data Types
o Chapter 5: Syntax and Language Fundamentals
o Chapter 6: Functions and Methods
o Chapter 7: Classes
o Chapter 8: Inheritance
o Chapter 9: Interfaces
o Chapter 10: Handling Events
o Chapter 11: Working with Movie Clips
o Chapter 12: Working with Text and Strings
o Chapter 13: Animation, Filters and Drawings
o Chapter 14: Creating Interaction with AS
o Chapter 15: Working with Images, Sound and Video
o Chapter 16: Working with External Data
o Chapter 17: Understanding Security
o Chapter 18: Debugging Applications
o Chapter 19: Best Practices and Coding Conventions for AS 2.0
o Extensive Appendices
The book is equally well structured and written at the chapter-level. Each chapter starts off with a brief definition and explanation of the topic to be covered and contains references for locating more detailed or additional information elsewhere in the book. Highlighted "Notes" and "Tips" are used extensively throughout the book to emphasize key points and best practices. I often found these to be good 'knowledge nuggets' that broadened my overall understanding of Flash and ActionScript.
The real focus of this book is on the 'nitty gritty' of working with ActionScript. Each chapter contains extensive topical examples and associated ActionScript 2.0 code. Many of the code examples are nicely presented in the form of step-by-step exercises. The authors do a nice job of describing what the code is doing as at key points along the way and also have you modify and test the code as you work through their examples and exercises.
There are literally hundreds of ActionScript programming examples and exercises contained in this book. The breadth and depth of these highlight an incredibly wide range of useful ActionScript programming features and capabilities. The trick here is to dig through all of this and figure out how to apply it to your particular needs. However, if you are already an experienced AS programmer, the very granular topical structure of this book should make it very usable for you.
Having no scripting language background, I found the handful of AS programming examples that I worked through difficult to understand. For me, this was due to the fact that many of the examples and exercises in this book illustrate abstract programming concepts, such as the manipulation of various code properties then testing the movie and analyzing what the ActionScript is doing via the Output panel. Having more concrete examples for applying ActionScript and seeing how content on the stage responds would be helpful for non-programmers like me. It would also be helpful if some of the examples focused on working with Flash 8's pre-scripted behaviors, which provide a lot of nice functionality.
If you are an experienced programmer you should be able to find the AS samples and exercises very useful in your day-to-day workings with Flash. One thing that this book does not have that would be helpful is a companion CD that contains the ActionScript examples covered in the book. Many of the code samples are fairly long and being able to cut and paste many useful code samples directly into Flash would be nice.
In summary, this a good reference book for creating and manipulating lots of ActionScript functionality within your Flash applications. It will be most useful to those already familiar with ActionScript or if you at least have a good understanding of scripting language programming fundamentals. It is well laid-out for easy topical reference and probably should be used as such, rather than as an end-to-end read through. As a new Flash programmer, I will be looking for additional ActionScript books that focus more on learning ActionScript basics, as well as scripting language fundamentals. However, I will certainly keep my copy of "Learning ActionScript 2.0 for Macromedia FLASH 8" handy. It does contain quite a bit of good material relevant to any new Flash developer who is serious about learning ActionScript.