Email: enquiries@yellowbadger.com Tel: +1 360 820 1469

Category: Design Patterns

Singletons in ActionScript 3 Wed 07 February 2007 16:03
UPDATED Tue 20 March 2007 15:48

Mike Chambers posted an entry on his blog about using Application.application.foo as an approach to allow global variables in Flex Applications. A couple of people, myself included, mentioned in the comments that an alternative was to use one or more singleton classes instead and Dave asked for a more complete example of using singletons. Well here it is Dave, for you and anyone else who might...

135 comments Link