Flare on PureMVC in Flex example

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.

Related posts:

  1. Using Flex Code Generator (FCG) with Flex & PureMVC
  2. Flare vs. Axiis
  3. Griffon and a PureMVC Plugin: Some Initial Thoughts
  4. Learning PureMVC the Hard Way (is there any other way?)
  5. Flex Camp Chicago ‘09 Community Showcase Presentation Summary

Comments: 3 so far

  1. 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.

    Comment by Malte, Thursday, January 8, 2009 @ 4:32 pm

  2. 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.

    Comment by jason, Thursday, January 22, 2009 @ 11:39 am

  3. 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

    Comment by Rob McCardle, Sunday, March 15, 2009 @ 12:43 pm

Leave a comment

Powered by WP Hashcash

Launch: Pathfinder Newsletter

    Get a monthly update on best practices for delivering successful software.

    Subscribe via email


    Subscribe via RSS      RSS icon

Topics

Search

WordPress

Comments about this site: info@pathf.com