[Flashcoders] Re: Extending a singleton

2006-03-23 Thread A.Cicak
and in B.getInstance just call A.getInstance, just in case B.getInstance is called before A.getInstance in code "A.Cicak" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > why dont you initialize properties var in your A's getInstance method > like: > > public static function getIns

[Flashcoders] Re: Extending a singleton

2006-03-23 Thread A.Cicak
why dont you initialize properties var in your A's getInstance method like: public static function getInstance() { if(Singleton._instance == null) { Singleton._instance = new Singleton(); //initialize properties var here } return Singleton._