Singleton in AS3

Lots of discussion, loads of different versions, I’m using this and still haven’t noted any “flaws”: // ActionScript file package { public class MyTestClass { /* singleton */ { trace ( “Initialising MyTestClass singleton” ); _singleton = true; _instance = new MyTestClass ( ); _singleton = false;  } private static var _instance : MyTestClass; private […]