Advanced ActionScript 3 with Design Patterns

Advanced ActionScript 3 with Design Patterns
by Joey Lott, Danny Patterson

Advanced ActionScript 3 with Design Patterns
List Price: $49.99
Our Price: $16.80
You Save: $33.19 (66%)
Availability: Usually ships in 1-2 business days
Buy Used: from $5.70 (click here)
Category: Book
See more book details and other editions


(Click here)
Buy this book at online book store in your country
Canada | UK | Germany | France

Book Summary Information

Author: Danny Patterson, Joey Lott
Edition: Paperback
Audio: English (Unknown); English (Original Language); English (Published)
Published: 2006-11-12
ISBN: 0321426568
Number of pages: 304
Publisher: Adobe Press

Book Reviews of Advanced ActionScript 3 with Design Patterns

Book Review: Perfect balance of concepts and AS3 specific idioms
Summary: 5 Stars

This book is clearly written by authors who "think in ActionScript 3" and it's written at the perfect level for folks who already understand design patterns but want some guidance on how they apply (or don't) in AS3.

If you are looking for an introduction to Design Patterns, this book does a decent job of that but it generally assumes you have a bit of understanding in that regard. The HeadFirst book (java) walks you through application evolution which really makes the case for why the patterns are useful. The HeadFirst book also includes exercises that really make the concepts sink in and teach you to recognize when each pattern applies. However, the head first book is very much a java book. Similarly, the original design patterns book by the Gang of Four (GoF) is about design patterns in C++.

This book, however is written clearly from the perspective of an ActionScript 3 (AS3) programmer. In some core ways, AS3 is very different than Java and even more so with respect to C++. The event model is baked into the language and asynchronous programming is a different style. Also, XML and XPath are native constructs in ActionScript 3, not libraries like they are in other languages. These differences (among others) imply that some of the original GoF and Java patterns manifest themselves differently and some patterns don't apply at all. This book doesn't merely take the Java or C++ idioms and make them run under ActionScript 3. They've totally re-thought them and presented the ones that are appropriate for AS3 in a way that is probably ideal for AS3. They've also left out or provided alternatives for the traditional ones that are not appropriate considering the language differences. For instance, the observer pattern is one of the core GoF and HeadFirst patterns. However, it doesn't show up in this book. Instead, there is a chapter on "WORKING WITH EVENTS" which is the native AS3 construct that essentially takes the place of the observer pattern. In contrast, the O'reilly book happily shows you an AS3 translation of the GoF/HeadFirst observer pattern and never tells you to use the built-in event structure instead.

Not only do the authors demonstrate their "thinking in AS3" at the level of design patterns but their code examples include lots of little AS3 specific idioms. AS3 still shows it's dynamic language roots in subtle ways and these authors play to that strength. For instance, a dynamic class inherited from the Proxy class includes a method called, getProperty(). In chapter 4, they override this method and use it in combination with E4X (the native XML capability), to provides an elegant way to build a generic application settings framework that you can use in any application without modification. If your XML settings file changes, the class will appear to magically change its interface. The chapter is about the Singleton pattern but I learned about dynamic/Proxy/getProperty() and E4X idioms as a side benefit.

If I had one complaint about this book, it's a minor one and it's a complaint that I also make about the Java language and I'm now starting to regularly make about Adobe's recommendations with respect to AS3 class interfaces. Like C# and Python and other more recent languages, AS3 has a construct for turning public property references into get/set function calls without changing the calling code. This book shows you that style of coding as well as the Java recommended getSomeProperty/setSomeProperty style but it recommends that you never use public properties in your class interfaces. In my mind, the main advantage to having the get/set function language feature is that you can start out with public properties and later change them to accessors methods without breaking the calling code. The reason we don't recommend that you have public properties in java is that there is no language feature that allows you to later add accessor methods without breaking the calling code. In Java, the lessor of two evils is to have you always create them up front. I see no reason to live with the same evil in AS3. However, this is minor nit and now that you've read my explanation here, you can ignore the recommendation. :)

I highly recommend this book. If you have the least bit of experience with design patterns and are now coding in AS3, just get this book. If you are totally new to the concept of design patterns, then you may want to get the HeadFirst book AND this book.

Summary of Advanced ActionScript 3 with Design Patterns

Today's ActionScript-based applications require increasingly sophisticated architectures and code. This book aids intermediate and advanced ActionScript developers in  learning how to plan and build applications more effectively. You'll learn how to apply design patterns as solutions to common programming scenarios. Beyond a reference, Advanced ActionScript with Design Patterns is a practical guide complete with sample mini-applications illustrating each design pattern.

Table of Contents:

Part I - Successful Projects
1. How to Design Applications
   
2. Programming to Interfaces
   
Part II - Patterns

3. MVC
   
4. Singleton
   
5. Factory (Abstract Factory and Factory Method)
   
6. Proxy
   
7. Iterator
   
8. Composite
   
9. Decorator
   
10. Command
   
11. Memento
   
12. State
   
Part III - Advanced ActionScript Topics

13. Working with Events
   
14. Sending and Loading Data
   
15. E4X (XML)
   
16. Regular Expressions


Graphics & Multimedia Books

Book Subjects
Most talked about in Graphics & Multimedia Books
Linear Algebra and Linear Operators in Engineering, Volume 3: With Applications in Mathematica® (Process Systems Engineering) ImageLinear Algebra and Linear Operators in Engineering, Volume 3: With Applications in Mathematica® (Process Systems Engineering)
by H. Ted Davis, Kendall T. Thomson
Academic Press; Published: 2000-06-26; Hardcover; Book
Best price: $56.20
Price in other shops: $147.00
Phigs and Phigs+: An Introduction to 3-D Computer Graphics ImagePhigs and Phigs+: An Introduction to 3-D Computer Graphics
by Author Unknown
Academic Press; Published: 1993-02-26; Hardcover; Book
Price in other shops: $88.00
The Mathematica Handbook ImageThe Mathematica Handbook
by Martha L. Abell, James P. Braselton
Academic Press Inc; Published: 1992-07; Paperback; Book
Best price: $20.00
LabVIEW Graphical Programming ImageLabVIEW Graphical Programming
by Gary W. Johnson, Richard Jennings
McGraw-Hill Professional; Published: 2001-07-19; Paperback; Book
Best price: $101.44
LabVIEW GUI: Essential Techniques ImageLabVIEW GUI: Essential Techniques
by David J. Ritter
McGraw-Hill Professional; Published: 2001-11-28; Paperback; Book
Price in other shops: $59.95
North America (Where, How & Why) ImageNorth America (Where, How & Why)
by Allan Murray
Collins Educational; Published: 1987; Unbound; Book
Apple Pro Training Series: Final Cut Pro HD ImageApple Pro Training Series: Final Cut Pro HD
by Diana Weynand
Peachpit Press; Published: 2004-06-11; Paperback; Book
Best price: $53.33
Adobe Illustrator CS Hands-On Training ImageAdobe Illustrator CS Hands-On Training
by Jeff VanWest
Peachpit Press; Published: 2004-04-10; Paperback; Book
Best price: $14.99
Price in other shops: $44.99
Final Cut Pro for Avid Editors ImageFinal Cut Pro for Avid Editors
by Diana Weynand
Peachpit Press; Published: 2002-10-09; Paperback; Book
Best price: $167.33
OpenGL Programming for Windows 95 and Windows NT ImageOpenGL Programming for Windows 95 and Windows NT
by Ron Fosner
Addison-Wesley Professional; Published: 1996-11-08; Paperback; Book
Best price: $11.00
Price in other shops: $44.99
Similar Books and other products
ActionScript 3.0 Game Programming University (2nd Edition) ImageActionScript 3.0 Game Programming University (2nd Edition)
by Gary Rosenzweig
Que; Published: 2011-01-23; Paperback; Book
Best price: $23.98
Price in other shops: $44.99
Head First Design Patterns ImageHead First Design Patterns
by Elisabeth Freeman, Eric Freeman, Bert Bates, Kathy Sierra, Elisabeth Robson
O'Reilly Media; Published: 2004-11-01; Paperback; Book
Best price: $24.00
Price in other shops: $49.99
AdvancED Game Design with Flash ImageAdvancED Game Design with Flash
by Rex van der Spuy
friendsofED; Published: 2010-09-01; Paperback; Book
Best price: $29.24
Price in other shops: $44.99
Enterprise Development with Flex: Best Practices for RIA Developers (Adobe Dev Lib) ImageEnterprise Development with Flex: Best Practices for RIA Developers (Adobe Dev Lib)
by Yakov Fain, Victor Rasputnis, Anatole Tartakovsky
O'Reilly Media; Published: 2010-03-30; Paperback; Book
Best price: $5.64
Price in other shops: $54.99
AdvancED ActionScript 3.0 Animation ImageAdvancED ActionScript 3.0 Animation
by Keith Peters
friendsofED; Published: 2008-12-23; Paperback; Book
Best price: $16.12
Price in other shops: $39.99
Foundation Actionscript 3.0 Animation: Making Things Move! ImageFoundation Actionscript 3.0 Animation: Making Things Move!
by Keith Peters
friendsofED; Published: 2007-04-09; Paperback; Book
Best price: $17.99
Price in other shops: $39.99
Flex 4 Cookbook ImageFlex 4 Cookbook
by Joshua Noble, Todd Anderson, Garth Braithwaite, Marco Casario, Rich Tretola
O'Reilly Media; Published: 2010-05-27; Paperback; Book
Best price: $24.94
Price in other shops: $49.99
ActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers ImageActionScript 3.0 Cookbook: Solutions for Flash Platform and Flex Application Developers
by Joey Lott, Darron Schall, Keith Peters
Adobe; O'Reilly Media; Published: 2006-10-18; Paperback; Book
Best price: $3.85
Price in other shops: $39.99
Essential ActionScript 3.0 (Essential) ImageEssential ActionScript 3.0 (Essential)
by Colin Moock
Adobe Dev Library; Published: 2007-06-22; Paperback; Book
Best price: $18.20
Price in other shops: $54.99
ActionScript 3.0 Design Patterns: Object Oriented Programming Techniques (Adobe Developer Library) ImageActionScript 3.0 Design Patterns: Object Oriented Programming Techniques (Adobe Developer Library)
by William Sanders, Chandima Cumaranatunge
Adobe Developer Library; Published: 2007-07-23; Paperback; Book
Best price: $18.20
Price in other shops: $44.99
Book store. Illustrated catalog of books on different categories