Parsley example project with source
27th October 2009
I recently posted a number of versions of the same Flex project, built using various different frameworks. These related to my presentation at Flash on the Beach this year. I’m repeating that presentation, with variations, at the London Flash Platform User Group in a few days and for that talk I’ll be adding Parsley to the set of frameworks I’ll compare.
As a warm-up to that I’ve recreated the same example as before, this time using the Parsley framework. The example is below. Links to the other versions follow. All versions have identical functionality. Right click on the swf to view the source.
Flash required: You need version 9 or later of the free Flash player from Adobe to use this content. To download and install the free player from Adobe's web site click here.
The other versions can be viewed here…
- Flexcaster no framework project source
- Flexcaster Cairngorm project source
- Flexcaster PureMVC project source
- Flexcaster Mate project source
- Flexcaster Swiz project source
- Flexcaster Robotlegs project source
- Flexcaster SmartyPants-ioc and As3-signals project source
- Flexcaster Spring Actionscript project source
Tags: Flex, Frameworks, Parsley

5 Comments add your own
Hi Richard,
Thanks for all of these examples. Do you mind if i use them to train people here at Dare? Are you planning to produce the same example using Robotlegs and perhaps just smartypants and a simple event bus?
Thanks once again for the talk at LFPUG, I got lots out of it.
All the best
James
James Deakin | 10th November 2009 at 15:06
Hi James
Yes, do use them. Just credit where they came from.
Regarding Robotlegs, yes I’ll post an example. Robotlegs has been moving very fast but version 1.0 is imminent so I’m waiting for the stability that brings.
And I will add other examples too, possibly including a SmartyPants + event bus one.
Richard
Richard | 10th November 2009 at 16:07
Hi Richard,
Thanks for your presentation at LFPUG in November, we learned a whole lot about DI frameworks.
I’m torn between Parsley and RobotLegs. We work with regular AS3 apps and games and would ideally like to use the same DI framework for all projects, any advice? I’ve heard that MVC isn’t best suited for games but would love to be set right!
Anton
Anton Mills | 30th November 2009 at 17:46
The thing to remember about both Parsley and Robotlegs is that they’re both just boxes of tools. They include tools for dependency injection, for multiple event buses, and various other activities.
You can use these tools to create an MVC architecture (in Parsley’s case, there is documentation how to do this, in Robotlegs’ case there’s a reference MVC implementation in the library) but you’re not restricted to this specific architecture.
If MVC isn’t suitable for your games, then dependency injection and event buses will still be very useful. So either framework will help you out a lot and can be assembled into whatever architecture you deem more suitable.
Richard | 30th November 2009 at 19:58
Great just what I wanted to hear!
Either way we go with the decision it’s good to know they’re both frameworks that suit our needs. It’s nice to be spoiled for choice!
Anton
Anton Mills | 1st December 2009 at 11:35
Leave a Comment comment policy
XHTML: you can use these tags - <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>Subscribe to the comments via RSS Feed