By this time, I am very happy and impressed with PureMVC. In combination with Flex Code Generator, plumbing downtime is minimal and the more you work on a project, the more you see the benefits.
Out of all visualization frameworks for Flash Platform that I came in contact with, Flare is looking like the most customizable. I also like it’s structure. At first I didn’t, but now I love the fact that Visualizations are based on Sprites. I find that good for performance and transitions. You have to do a little extra work, but you will be happy with the result. All in all, I’m sold on it for now.
I was happy to see that PureMVC plays well with other kids (frameworks). In this example you can see among other things:
- How to run Flare on PureMVC
- How to dynamically register Proxies and Mediators
Now I’m not saying this is the best way, but a prototype that I’m working on is doing really well with this approach.
One important thing missing in this example is removing Proxies and Mediators when you delete an object. The principle is exactly the same as is for dynamically adding them, so I didn’t go into it.
I would be very curious to hear any comments on this approach.
You can view/download the source here.
Hold Control(Windows) or Command(Mac) and click on a node to add a child node.

I think it is a little sad that PureMVC is using the household names Model, View and Controller for infrastructure code while using weird names like Mediator and Proxy for the actual implementations. Also the facade doesn’t really seem to be a facade. Anyway, enough bitching, I just dug into a large Flex app using PureMVC and it definetely was easy to grasp the flow and structure of the application.
I also tried out the still experimental JS port and developed a Joose bridge for it in a couple minutes (http://joose-js.blogspot.com/2009/01/joosifying-puremvc.html) I look forward to using it in a real application.
Any chance of you recreating this and video/screen capturing this? You probably get a lot of hits are recog off a video tutorial on this.
I have never seen nor heard of the code generator.
Hi there, thanks for the interesting tutorial. It’s kind of cool but I was trying to convert it to pure AS3 not reliant on the MXML, Flex framework and mx package and wasted a bit of time as there are so many dependencies in here it’ll be quicker to start from scratch so I thought I’d warn here – this is Flex code not pure AS3 FDT compatible. Ta