Woah, I never noticed you can private your constructor!! Lol
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: October 29, 2005 1:15 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question Well, actually there is a difference. In AS3, class constructors can not be Private. In AS2 they can. So in AS2 you can do this: class MySingleton { private function MySingleton() { } public static function getInstance() { // bah blah.. } } Which is not allowed in AS3. regards, Muzak ----- Original Message ----- From: "Frédéric v. Bochmann" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" <flashcoders@chattyfig.figleaf.com> Sent: Saturday, October 29, 2005 6:32 PM Subject: RE: [Flashcoders] Newbie AS3 question > (*Just looking back at the title of this Thread*) > > Just in case someone's wonders; creating a Singleton is nothing new in > ActionScript, it can be done in AS1, AS2 or AS3. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders