RobotLegs AS3: System/Context Event Flow

RobotLegs AS3 is a Dependency Injection Driven MVCS Framework for Flash and Flex inspired by PureMVC.

RobotLegs AS3 Event Flow

Actors may be dependent on actors below them in the diagram, but should not be dependent on anything above them.

Commands, Services and Proxies may dispatch system events, but should never listen for them.

Mediators may both dispatch and listen for system events.

So:

  1. Commands may depend on any number of Mediators, Services and Proxies, and may dispatch system events.
  2. Mediators may depend on other Mediators, Services and or Proxies, and may dispatch and listen for system events.
  3. Services may depend on Proxies, and may dispatch system events.
  4. Proxies may depend on other Proxies, and may dispatch system events.

Why?

Check out the PureMVC FAQ: http://puremvc.org/content/category/3/23/188/

Prompted By:

This comment, thanks!

UPDATE: I somehow completely messed up the diagram when I last updated it.. I got the direction for the Service and Proxy event flow backwards.. Doh!

Posted in Banter, Robotlegs | Tagged , , , , , | 1 Comment