RocketBoots have always used Cairngorm for both Flash and Flex
projects - here is a presentation about MVC and Cairngorm I did at
WebDU last year that may help:
http://onair.adobe.com/blogs/videos/2007/05/01/webdu-easy-as-mvc-
architecture-and-frameworks-for-non-believers-robin-hilliard/
Cheers,
Robin
Robin Hilliard
CEO - RocketBoots Pty Limited
Consulting . Recruitment . Software Licensing . Training
http://www.rocketboots.com.au
switch +61 (0)2 9323 2500
fax +61 (0)2 9323 2501
direct +61 (0)2 9323 2507
mobile +61 (0)418 414 341
email ro...@rocketboots.com.au
I read an interesting article recently on choosing between Flash and
Flex here,
http://theflashblog.com/?p=334
If you are building your application in Flash with language are you
using ? AS2 or AS3 ?
Gaia Framework seems to be a supported flash application framework.
http://www.stevensacks.net/gaia/
regards,
Bjorn
Depending on client requirements, we may be stuck using AS2, in which case it would be done in Flash.
If we can go to AS3, it will likely be a mixture of Flex and Flash.
In any case there will likely be independent drop-in components which will need to be of lighter weight than the Flex framework allows.
I am looking for something lightweight that could be easily be used across AS2/AS3/Flex.
Andrew
Cairngorm is a flex framework. Even-though Robin Hilliard has used Cairngorm for flash apps there is no AS3 implementation for Flash. At least as far as I know. :-)
I wrote a pure very lightweight AS 3 application framework, which I currently use In one of my flash apps. The framework is very similar to Cairngorm. Actually is has pretty much the same structure.
I'm pretty busy at the moment but I should be able to share the source and post a "hello world" example by the end of the week in case you are interested.
Robin
>>Hi Andrew,
>>RocketBoots have always used Cairngorm for both Flash and Flex
>>projects - here is a presentation about MVC and Cairngorm I did at
>>WebDU last year that may help:
>>http://onair.adobe.com/blogs/videos/2007/05/01/webdu-easy-as-mvc-
>>architecture-and-frameworks-for-non-believers-robin-hilliard/
>>Cheers,
>>Robin
Andrew
Not true,
Cairngorm does have Flex Framework specific dependencies in it.
Do a search for "mx" in your Cairngorm source.
Well, that's true, but all the dependencies are up in the
ServiceLocator, they're only there to help you use the Flex versions
of the various service types - you would obviously just use the
corresponding service classes available to you in Flash (remote
objects, web services, http stuff, sockets etc) and write your own
service locator (a 5 line singleton, just like model locator). You
don't have to use every Cairngorm class in a Cairngorm app, just the
ones that are applicable to your application. Flash apps don't use
Flex services.
I'm on the public record saying that I'd rather people understood the
MVC pattern and didn't use Cairngorm than the other way round, but at
the same time I have to say that 99% of the time the reasons people
give for not using Cairngorm don't really make sense to me, e.g
someone mentioned to me recently:
"Cairngorm is too complex, I cut it down to make a more efficient
framework"
Cairngorm is really a very, very small code base - if you took the
(copious) comments and spaces out you could probably print it out in
six pages. The reason so many MVC frameworks are so similar is that
there really aren't that many variations on how to do it. Most of
the things I've heard people "simplify" are perfectly doable while
using Cairngorm, and occasionally the "simplifications" are throwing
out important aspects of the MVC pattern - nullifying the advantage
of the framework.
There are now millions of lines of code written in Cairngorm
applications around the world. If you can find an experienced Flex
developer to hire (we have some available at the moment ) then it's
very likely they have already worked with Cairngorm - these are not
inconsiderable advantages.
Lastly, if you're giving an opinion about frameworks, I think you owe
it you your readers to tell them whether or not you've used the
framework in a production application. If you're seeking the opinion
of others about frameworks, I'd be looking for people who have
developed multiple production applications using those frameworks.
Cheers,
Robin
PS: Whoever made the comment about bad documentation, have you read
the code comments or visited the Cairngormdocs site?