Posts tagged as 'Free code'
Creating weak references in Actionscript 3
A weak reference is a reference that does not prevent the object from being garbage collected. It’s great that Actionscript 3 has weak references in the EventDispatcher and Dictionary classes. But sometimes you want to create your own weak references. The source code is very short…
Posted on 15 August 2007 | 1 comment | continue reading
Events in Actionscript 2
I documented my technique for implementing event dispatching over on the Flash Game Code site. I’ve been using this method for a couple of years now and I think it’s a lot better than EventDispatcher or ASBroadcaster. Take a look if your interested. Comments are welcome...
Posted on 14 August 2007 | 6 comments | continue reading
Singleton Factory
I’ve mentioned before how I dislike the Singleton pattern… So this morning I was experimenting with various other possible ways to create singletons in Actionscript 3 and came up with a function that can be used to create and reuse a single instance of any class. I don’t know how useful it will turn out to be but here it is....
Posted on 27 July 2007 | 7 comments | continue reading