girton’s devnotes

ongoing developer notes  
Filed under

puremvc

 

AS3 Dependency Injection and [Autowire] « shaun smith

I was able to migrate my current project over to Robot Legs (from PureMVC) in about a day. Not bad considering there were dozens of Commands, over 20 Mediators and around 10 Proxies to convert. It was a bit of a mission creating all the custom Event Classes to replace my Notifications though.

But it was certainly worth it. My application code has tidied up nicely. Many of my Mediators, Proxies and Commands have halved in size, due to the removal of lookup code and notification body casting.

This is an interesting idea that bears keeping an eye on: dependency injection without external XML representation -- the state of the AS3 art moves forward. He used the SmartyPants IOC framework which is on google code. You can see a simple Flex example at

http://code.google.com/p/smartypants-ioc/

It would probably not make a bad migration path from pureMVC.

Loading mentions Retweet
Filed under  //   Flex   IOC   pureMVC  
Posted by George Girton 

Comments [1]

All you have to do is rename, usually turns into something more

Getting set to check out Zedia's PureMVC skeleton, downloaded the rar file, which wouldn't decompress with the onboard version of stuffit expander. A quick visit to the Smith Micro website produced an updated version of stuffit which didn't work. Something about the stuffit engine needing to be installed, reinstall, but that didn't work. Did I buy the US$50 version of Stuffit? I did not. A quick visit to unrarx.com produced a working extractor.
  
So, it's nice to think I have saved 30 minutes the next time I set up a PureMVC project.
 

http://www.zedia.net/2009/puremvc-skeleton-for-flash-applications-websites/
 
http://www.unrarx.com/

Loading mentions Retweet
Filed under  //   pureMVC   RAR  
Posted by George Girton 

Comments [0]