What

HydraMVC is the result of a total rewrite of the PureMVC API exclusively for Flex, allowing Flex developers to take advantage of the PureMVC paradigm while leveraging native Flex features.

In addition to using Events vs. an independent Observer pattern, HydraMVC also streamlines implementation, encapsulating much of the initialization code that needed to be written when implementing PureMVC.

HydraMVC was written out of a love / hate relationship with PureMVC; it’s not our intent to say it’s "better" than PureMVC, because the mission of the frameworks are entirely different. PureMVC intends to be language-agnostic, where HydraMVC is a compromise by design.

While HydraMVC is an MVC framework, the demos also imply a strategy for package structure, although the implementation of HydraMVC will work regardless of whatever package structure convention you use. The goal was to create a structure that scales well for large applications, but it also allows you to quickly develop small applications in a proper MVC.

Why

Take advantage of the Flex event model: Notification event types can bubble / capture, and MVC actors are aware of UIComponent events.

Actors can belong to multiple MVC triads. For example a Singleton proxy can observe and dispatch events to multiple Facades. HydraMVC does not use the Multion pattern like PureMVC MultiCore. (Check out the demos.)

In addition to the MVC, a Plugin framework is included which allows you to develop modular, distributable APIs by encapsulating application logic into Plugins.

The Facade adds the use of delegates that promotes an Inversion of Control implementation for data access in Proxies or Commands.

It is aware of the Flex display model which simplifies instantiation of the MVC actors.

If you are already used to developing with PureMVC, you can leverage your existing knowledge and best practices.

Rapidly port existing PureMVC-based applications to leverage the enhanced features of HydraMVC.

Twitter Updates

TWITTER @HydraMVC

Demos

Click here to view the Website demo. I want to be clear that we're not advocating building websites that should clearly be HTML in Flash...this is a capabilities and methodology demo only.

Please clone the demo from GitHub here.

Downloads

HydraMVC and the HydraFramework is hosted on GitHub:

GET HydraMVC

HydraMVC is an open-source software project created and maintained by andCulture, Inc., Copyright © 2009, Some rights researved.

Your reuse of the framework, demos, and utilities on this site is governed by the MIT License.

Follow us on Twitter!