O'Reilly logo

Flex on Rails: Building Rich Internet Applications with Adobe Flex 3 and Rails 2 by Daniel Wanja, Tony Hillerson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

16 Reusing Commands with Prana Sequences

Goal

You’re using Cairngorm, and you want to describe sequences of events that take place on certain user actions. These sequences of events involve different commands that you’d like to keep separate from each other, so that each remains reusable in the maximum number of scenarios.

Solution

Use Prana (http://pranaframework.org) and its EventSequence class to describe a sequence of CairngormEvents, the properties of which, when changed, should trigger them.

Sequences

Keep your Cairngorm commands reusable by keeping them from knowing too much about other commands. Commands should be as atomic as possible; to use a time-honored phrase, they should do one thing and do it well. If ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required