improved AS3 singleton pattern