No Clean Feed - Stop Internet Censorship in Australia
«
»

AS3, Flash, Flex

puremvc and prana

04.21.08 | 8 Comments

After dealing with the fallout from several developers at varying levels of experience coding with their own ad hoc styles, to deadlines, I want to settle on an AS3 framework to form the basis of future large-scale projects. I considered Cairngorm for a while, but I’m now leaning towards PureMVC for several reasons.

First, the ability to use PureMVC in a Flash CS3 context. Although (see my previous posts) I have serious gripes with Flash CS3 as a development platform, the reality of the situation at work is that we create graphics-intensive applications with highly customised look-and-feel, and doing this in the context of a Flex workflow is much more time consuming compared to the same process in Flash. This might be just my relative inexperience with Flex – and I will certainly try to use Flex for future projects, and find ways to improve the workflow – but right now I don’t feel comfortable closing the door on development in Flash. If the framework we choose only works in Flex, this means any Flash projects will have to be treated as ad hoc throwaway chunks of code, and can’t benefit from the time invested learning the framework, and any in-house libraries based on, or depending on, that framework.

Second, the fact that PureMVC has been ported to other languages. As well as a longtime interest in Java and Ruby, recent tinkering with Google’s AppEngine has made me curious about Python, and the idea of using a port of the same framework on the server side is a highly attractive one.

Finally, the arguments (and I can’t pretend to have investigated them, I’m contenting myself with the summary, and trusting in the credibility of the AssertTrue folks) presented in favour of PureMVC in a comparison of AS3 frameworks, in October last year. (Have there been any significant changes in the framework scene since then? If so I would love to hear about them.)

At my last job, I often peeked over the shoulder of my Java-coding colleagues and heard them wax lyrical about the benefits of Spring. The Inversion of Control concept, realised using dependency injection, is the main element that I fully understand in a way that’s relevent to my own development experience (other features, like AOP, sound interesting but are still mysterious to me).

So I was pleased to see the latest release of the Prana Framework, a lightweight IoC container for AS3, has more support for PureMVC. (There are other AS3 IoC containers out there, but Prana seems the most mature and serious.) Up to this point, however, documentation of how to use Prana and PureMVC together is pretty thin on the ground … there’s been some murmuring on the mailing list, but I can’t seem to find anything on the web. Understandably, because it’s recent development. But before I commit myself and the other Fl(ash|ex) developers at my workplace to using PureMVC, I’d like to be either see a concrete example of use of Prana with PureMVC or build one myself (preferably the former, obviously) … can anyone point me in the right direction?

related

8 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


«
»
Close
E-mail It