PureMVC – a few tips

Just in case someone else is having the same issues solving coding problems with PureMVC, which is some darn great core for any application, here are my musings:

Re-using Mediators

I used PureMVC to recreate my existing AS2 framework, which means my mediators don’t know in detail, when and how many are used, etc. And for re-usablity reasons, I have to re-name them to establish a unique identifier. For example: all my static components pretty much just need one mediator which initializes the component, can switch them on/off and change layout, etc.

To make it short: one mediator for any number of text components. Unique identifiers for each mediator.

PureMVC’s elements(mediators, proxies) are using two ways to identify themselves, NAME and proxy/mediatorName, the latter is changeable, so there is your way to rename it.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Tags: ,

Leave a Reply