PureMVC 2.0.1 List of Likes

With the new release of version 2.0.1 for the ActionScript 3 platform I have got to say I am buzzing. There are some nice changes to the framework which have already made my code cleaner and simpler. So, I thought it would be cool for people to list there likes for this version (not just the new changes made) and maybe an example of how they implement there highlighed likes. Lets get the ball rolling:

Like: facade.hasMediator

Example: I found this great for creating popups, using facade.hasMediator I can check to see if there is already a mediator already registered and prevent duplicate popups being instantiated.

1
2
3
4
5
var pop_registered:Boolean = facade.hasMediator( PopMediator.NAME );
if( pop_registered == false )
{
PopManager.openPopUpWindow( MyPop, PopMediator, true );
}

Comments