Archive for the ‘Robotlegs’ Category
I’ve been using Robotlegs and Signals recently and they really are awesome to work with however I still had to create a Signal for each Signal that was dispatched through the application, which is more times than you would need to create a custom event. I was thinking about an approach to get around this problem when I saw some tweets from Jonnie Hallman about an Application Signal Bus. Luckily he was kind enough to post the following gist to demonstrate.
Continue reading »
In light of my recent post about why Robotlegs benefits from AS3-Signals I thought it was only fitting that I updated my Twitter Search demo! This was really easy to do; partly because the demo is so small. It also allowed me to use interfaces to reference view components in the mediators (one of the advantages of using Signals). The use of interfaces makes it really easy to swap out the view for something different, like a mobile version, without changing any core functionality. Anyway, click the image below to view the demo; view source is enabled and I’ve included the libs and html-template folders this time so it should be easier for you to compile!
My problem with using the Event Model and Robotlegs
One of the things that bugs me about the use of the event model with Robotlegs is that Mediators are tightly coupled with the views. Take my Twitter Search Demo for example, the SearchEntryMediator class expects an instance of the SearchEntry class as its view, see below.
I’ve had chance to play with Robotlegs this weekend and have really enjoyed it. It’s really lightweight and you find that you spend more time coding rather than repeating the same tasks like you would do in other frameworks.
The first demo I put together was a simple Twitter Search application, using the Twitter Search API. You can see the demo in all it’s glory by clicking the image below! View Source is enabled so you can download the source and have a play; you will need the Robotlegs SWC to compile though, you’ll find this on the Robotlegs website. If you have any feedback or questions please leave a comment below!
Continue reading »