Preface

Robotlegs: Something a little bit special

In April 2009, Shaun Smith posted the following on his blog:

Want a framework like PureMVC but without Singletons, Service Locators, or casting? Perhaps one with Dependency Injection and Automatic Mediator Registration?

Well, you might enjoy RobotLegs AS3: yet another lightweight micro-architecture for Rich Internet Applications.

It’s got the bits that I like about PureMVC (Mediators, Commands and Proxies) without any of the bits that I’m not so fond of (Service Locator, Singletons, casting casting casting!)

Over the following six months, Shaun’s Robotlegs concept gradually picked up support, gathered momentum, and through the collective efforts of a group of people who had never met in person, Robotlegs 1.0 was born.

Open source development is well understood in our community. But we shouldn’t take it for granted. I (Stray) was working on some of the diagrams for the book on a flight back from the first ever Robotlegs team meet-up, and the man next to me started asking questions about what I was doing. When I told him I was working on a book about a project that was the collective effort of strangers from all over the world, none of whom expected to be paid, he was amazed.

Robotlegs has brought coding-joy to thousands of AS3 developers. There is something about using Robotlegs that not only solves our immediate coding problems but gives us insight into our architecture on a much deeper level. Joel and I each have many, many experiences of people sharing with us how Robotlegs has clarified concepts that were previously confusing to them. After only a short time using Robotlegs, developers tell us that they have become better programmers and architects generally.

The most rewarding part of being involved with Robotlegs has been witnessing people grow as programmers to the point where they become contributors of utilities and patches for the framework. Robotlegs owes its success not just to Shaun, Till, Robert and Joel, but to the dozens of people who got involved in the early discussions, the scores who have built utilities and extensions, the hundreds of early-adopters who have written tutorials and shared their enthusiasm with others, and the thousands of users who have put their trust in the framework and given Robotlegs a shot.

Shaun could never have dreamed that his little framework idea would grow and grow until O’Reilly commissioned a book about it. We hope this book does justice to Robotlegs, and the collective energy that has brought it into our world.

Who this book is for

ActionScript Developer’s Guide to Robotlegs is for Flash, Flex and AIR application developers interested in using, or already using, the Robotlegs AS3 framework. It demonstrates and explains the core functionality of the Robotlegs framework and also explores the deeper issues in AS3 architecture generally and how developers can solve those problems in clean and flexible ways using Robotlegs.

This book also covers testing (TDD) of Robotlegs applications, and the rich example applications come with extensive tests.

Who this book is not for

This book is not for developers who are brand new to object-oriented programming. It assumes some understanding of classes, interfaces and inheritance as implemented in AS3. It is not a quick reference guide to the Robotlegs API.

Conventions used in this book

The following typographical conventions are used in this book:

Italic

Indicates new terms, URLs, email addresses, filenames, and file extensions.

Constant width

Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.

Constant width bold

Shows commands or other text that should be typed literally by the user.

Constant width italic

Shows text that should be replaced with user-supplied values or by values determined by context.

Tip

This icon signifies a tip, suggestion, or general note.

Caution

This icon indicates a warning or caution.

Using code examples

This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “ActionScript Developer’s Guide to Robotlegs by Joel Hooks and Stray (Lindsey Fallow) (O’Reilly). Copyright 2011 Newloop Ltd. and Visual Empathy LLC, 978-1-449-30890-2.”

If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

Safari® Books Online

Note

Safari Books Online is an on-demand digital library that lets you easily search over 7,500 technology and creative reference books and videos to find the answers you need quickly.

With a subscription, you can read any page and watch any video from our library online. Read books on your cell phone and mobile devices. Access new titles before they are available for print, and get exclusive access to manuscripts in development and post feedback for the authors. Copy and paste code samples, organize your favorites, download chapters, bookmark key sections, create notes, print out pages, and benefit from tons of other time-saving features.

O’Reilly Media has uploaded this book to the Safari Books Online service. To have full digital access to this book and others on similar topics from O’Reilly and other publishers, sign up for free at http://my.safaribooksonline.com.

How to contact us

Please address comments and questions concerning this book to the publisher:

O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at:

http://www.oreilly.com/catalog/9781449308902

To comment or ask technical questions about this book, send email to:

For more information about our books, courses, conferences, and news, see our website at http://www.oreilly.com.

Find us on Facebook: http://facebook.com/oreilly

Follow us on Twitter: http://twitter.com/oreillymedia

Watch us on YouTube: http://www.youtube.com/oreillymedia

Acknowledgments

Shaun Smith, Till Schneidereit and Robert Penner—without you there would be no Robotlegs. You rock.

We’d like to thank our tech reviewers, who contributed insights that greatly improved the book, as well as encouraging us over the finish line: Simon Bailey, Angela Relle, Sean Moore, Doug Reynolds, Neil Manuell, Dave Hunter, Mike Cann, Weyert de Boer and James Wagstaff.

Stray says: “I need to thank my wife and family for unending support and ensuring I still ate, drank and slept while working on this book. And the amazing twitter AS3 community who boost me regularly with their love for Robotlegs. And Joel for sharing this opportunity with me and tolerating my bossiness.”

Joel says: “Kristina, Cree, Haze, Tripp and Cyan—thanks for putting up with me!”

A huge thank you to Rich Tretola, Meghan Blanchette, Mary Treseler and all at O’Reilly who made this book possible.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.77.71