SomaCore AS3 MVC Framework event-based
Posted by: Romuald in talking, tags: as3, class, flash, flex, frameworkFollowing my previous post about MVC design philosophy and an AS3 MVC Framework that suit my needs and expectations, I’ve started using SomaCore in a relatively complicated AIR modular application, and I’m really enjoying it.
I made some small changes to the code and I thought it would be a good idea to provide you the sources. SomaCore was a missing tool in my actionscript work.
I’ve started to feel the power of the native Flash event system (even if criticized!) by being able to listen to commands independently of the commands itself (and what the command is doing), or being able to “preventDefault” any command, or to monitor very easily everything that is going on in the framework. The wires have been a good help to keep my code very clean without tons of classes, while keeping my models and views completely free of framework code.
I also found out some kind of hidden capabilities I didn’t think about while making it. One of them is an “easy module communication”, so easy that, you have absolutely nothing to do to enable it. When I say module, it could be another SomaCore instance, a loaded SWF, another SomaCore instance in a loaded SWF, and so on. But I’ll give more details later.
You can now find the (updated) SomaCore resources on the SomaCore Page.
Special thanks to Henry for his testing and feedback!
Feel free to use the sources and give me some feedback. I’ll try later to give more explanation on how to use SomaCore and the Wires, new demos and tutorials.
Romu


Entries (RSS)
February 12th, 2010 at 1:29 pm
Hi Romu,
Soma/SomaUI looks very interesting and I am going to check it out in more detail for my next project. I was just wondering – and I hope you don’t mind me asking – what are some of the main differences between Somu and GAIA? From what I can see, SomuUI does not use external swfs for each page, but rather contains the design of each page in the main swf, correct?
Thanks
Ryan