Posts filed under 'Flex'
Improving Cairngorm’s ModelLocator Part 5 - The singleton factory
So far, I’ve looked at two possible replacements for Cairngorm’s use of the Singleton pattern in its ModelLocator. I want to briefly introduce a third alternative before concluding this long string of posts.
Posted on 8 May 2008 | no comments | continue reading
Improving Cairngorm’s ModelLocator Part 4 - The monostate
In the first article in this ad-hoc series I expressed my desire to replace the Cairngorm developers expressed preference for implementing the ModelLocator as a singleton with an alternative implementation as a monostate. … The monostate pattern describes a class that can be instantiated as often as one likes and where each instance uses the same set of data - there is only one state shared by all instances, hence the name…
Posted on 6 May 2008 | no comments | continue reading
Improving Cairngorm’s ModelLocator Part 3 - Hiding the singleton II
In the previous post in this series, I showed how we can use a second class to access the ModelLocator singleton. This enables instances of this second class to be created, modified, bound to and disposed of as often as one wishes while maintaining the integrity of the data in the core singleton. Each instance of the second class mirrors the data in the singleton, modifying the data in an instance modifies the singleton, and modifications to the singleton are immediately reflected back out to every instance of the second class…
Posted on 21 April 2008 | 1 comment | continue reading
Improving Cairngorm’s ModelLocator Part 2 - Hiding the singleton
Following on from yesterday’s post about Cairngorm’s ModelLocator, I’ve devised some improvements to the code. This doesn’t alter the technique, but it does remove most of the repetition in the code.
Posted on 15 April 2008 | 3 comments | continue reading
Improving Cairngorm’s ModelLocator Part 1 - The problem
Neil Webb recently wrote about the problems with singletons in Cairngorm, and in particular the ModelLocator. In fact, there’s been a lot of criticism of Cairngorm’s over-dependence on singletons - sometimes, when working with Cairngorm it seems that everywhere you turn there’s a singleton waiting to bite you…
Posted on 14 April 2008 | 4 comments | continue reading
Flint Particle System version 1.0.1 released
I released version 1.0.1 of the Flint Particle System today. This is a minor change to add more versatility to the BitmapRenderer and PixelRenderer classes. More info on the Flint Website.
Posted on 14 April 2008 | no comments | continue reading
Flocking with particles
Among the new features in version 1.0 of the Flint Particle System are actions that enable the creation of flocking behaviour between particles. The result looks like this...
Posted on 10 April 2008 | 1 comment | continue reading
Flint Particle System version 1.0 released
I released version 1.0 of the Flint Particle System yesterday. Lots of new behaviours added, plus a couple of changes. More info on the Flint Website.Posted on 8 April 2008 | 2 comments
