Books & Videos

Table of Contents

  1. Chapter 1 Robotlegs is a lightweight framework for ActionScript 3

    1. What does Robotlegs actually do?

    2. Do you need a framework at all?

    3. Less boilerplate code is a good thing...

  2. Chapter 2 The Robotlegs dream...

    1. 80% of the problems can be solved with 20% of the API

    2. Coding for Robotlegs shouldn’t tie you to the framework

    3. Robotlegs aims to enable and not dictate

    4. Most AS3 applications benefit from the MVCS approach

    5. Testing, testing! (We test, and we make it easy for you to test)

    6. Some final things every Robotlegs cadet should know

  3. Chapter 3 Anatomy of a Robotlegs application

    1. Joel’s Personal Kanban

    2. Lindz’s Mosaic Design Tool

    3. How a Robotlegs application gets things done

    4. Getting to grips with Robotlegs architecture

    5. User stories as implemented in Robotlegs

    6. All of this is possible because of the Robotlegs Injector

  4. Chapter 4 Automated Dependency Injection

    1. So, what exactly is Automated Dependency Injection?

    2. You already use Dependency Injection

    3. There are different ways to inject dependencies

    4. Automated DI gets around the need to ‘pass the parcel’, but keeps code flexible

    5. How does Robotlegs Injection work?

  5. Chapter 5 The Robotlegs context in action

    1. Provide the context with a root-view

    2. Ask it to run startup()—immediately or when you’re ready

    3. Use startup() to provide your injection rules, map your mediators to views and commands to events

    4. Shutting down a Context

    5. Now you have some Context

  6. Chapter 6 The CommandMap in action

    1. A Command is a concise single-purpose controller object

    2. Commands are triggered by events

    3. Commands can be any class with an ‘execute’ method

    4. Commands should do their thing and then die

    5. Commands rely on their injections to be useful

    6. Commands know about the injector, command map, mediator map and context view

    7. Commands can also dispatch events

    8. Great command names pay dividends

    9. Use helper classes for shared logic

    10. Detain and release when you need your command to hang around

  7. Chapter 7 Models and services: How are they different?

    1. Models and Services usually extend Actor

    2. They don’t listen, they only talk

    3. Use your API through a Command

    4. Distinguishing Models from Services

    5. Classes that don’t dispatch events to the shared event dispatcher don’t need to extend Actor

    6. Configuring services

    7. Working with non-Actor models and services (including third party code)

    8. Model design tips for Robotlegs

    9. Managing the relationships between models and services

  8. Chapter 8 Connecting views with Mediators

    1. Introducing the MediatorMap

    2. Mediating your view components

    3. Why can’t Mediators be injected into other objects?

    4. Working with complex composite views

    5. Using the same mediator with more than one view

    6. A good Mediator is just a mailman

  9. Chapter 9 Working with Robotlegs: Rich Examples

    1. Feature implementation walk-through: Mosaic Tool

    2. Feature implementation walk-through: Personal Kanban App

    3. Wait, I want more examples!

  10. Chapter 10 Testing your Robotlegs application

    1. Your test provides the injections

    2. Testing models

    3. Testing services

    4. Testing commands

    5. Testing mediators

  11. Chapter 11 Power-ups

    1. Bootstraps can break up fat contexts

    2. The ContextEvents help keep control

    3. Tag methods with [PostConstruct] to run them after injection is complete

    4. Use Signals between complex views and their mediators

    5. Modular and multiple-context Robotlegs

    6. Extend Robotlegs with utilities and add-ons

    7. ViewMap—injection for your views

    8. Mediator map performance

  1. Appendix Troubleshooting tips

    1. Problem: Injection doesn’t occur

    2. Problem: Things work for a while and then mysteriously stop

    3. Problem: Event dispatch does not work as expected

    4. Problem: Mediator isn’t running onRegister

    5. Problem: Handlers in the mediator are running repeatedly

    6. Error: Injector missing rule for X

    7. Warning: Duplicate mapping in the injector

    8. Error: Call to a possibly undefined method X

    9. Where to get more help

  2. Appendix Swiftsuspenders: The power behind the Robotlegs Injector

    1. What does Swiftsuspenders actually do?

    2. We think limited metadata is a good thing

  3. Colophon