tags:

views:

999

answers:

7

I used PureMVC in a prior Flash (not Flex) project. After adjusting to its requirements, it worked well, but I'm left feeling that it was too over-engineered and cumbersome. I noticed that Mate had lots of positive reviews due to its clarity and simplicity, but it is only for Flex projects, not Flash.

Would it be simpler/clearer to just maintain my own separation of MVC without a framework like PureMVC in Flash, or are there any better alternatives to PureMVC?

Edit: The only lightweight contender I found was flashMVC.

A: 

You could try Gaia (http://www.gaiaflashframework.com/). It's more of a front-end framework, but I'm sure its better than nothing. You could build a very simple back end that would pair nicely with it.

Could be worth a try.

Alex Jillard
A: 

You can give ASAP a try. It's pretty cool.

George Profenza
+1  A: 

I actually found PureMVC to be less engineered than most frameworks out there and nicer to jump between Flash and Flex with reusable code. Your best bet is to roll your own if you truly want the "best alternative" but I think a "personal" framework that's built on top of Pure could be very hot (that's what I'm working with right now) ... there are loads though. Check out the OOP frameworks section on this link:

http://www.adrianparr.com/?p=83

Typeoneerror
A: 

I am trying to understand Pure MVC, but it seems impossible for now... I hope to not be disappointed when I will finally succeed to understand it

Don't be too hard on yourself! I had a similar experience - not helped by the fact that the sample code is almost always written in Flex.The best advice I found was this: just think in terms of MVC, with notifications forming the command flow.Stick with it: once you get it it becomes very natural-feeling.
Coded Signal
A: 

Have a look at Swiz. While the project itself states that it is a Flex framework, there is really only one file that relies on MXMLC (the Beans.mxml file). This can be reworked into an ActionScript file by following Aral's example on his weblog.

Architecturally, Mate and Swiz are a lot alike in regards to what they offer. They are both MVC frameworks and share a lot of the same fundamental ideas. The key differences are really just the implementation details. For example, in Mate you have an Event map and in Swiz you [Mediate] to handle events. Mate handles events using MXML tags, Swiz handles events by writing ActionScript event handler methods. Additionally, in Mate you use Injectors inside of a map for dependency injection and in Swiz you [Autowire].

darronschall
+1  A: 

Do you need a hammer, a mallet, or a shoe?

There is no one answer.. A framework is only as good as it's intended utilization.

what I'm saying is it's ok that there isn't ONE ultimate solution. take it project by project. I've been coding AS since AS first existed and have spun my wheels on these questions only to find there is no one objective answer other than that.

good luck!

defbyte
A: 

Although my answer is biased as I am the author of FlashMVC (www.flashmvc.com), I do hold that it was made to have the highest flexibility while being as easy as possible to implement. There's one import statement needed and the whole framework is about 3 classes. A hello-world example can be just a couple lines of code as oppose to PureMVC which can be dozens. I have used it on both really small projects to industrial size builds.