Re: [Flashcoders] Singleton issues with AS2 class ...

2006-06-29 Thread Chris Velevitch
You're calling getInstance inside the constructor and getInstance is calling the constructor, thus infinitely calling getInstance. Also, getInstance needs to be static. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au

[Flashcoders] Singleton issues with AS2 class ...

2006-06-28 Thread Stephen Ford
Hi, My singleton is throwing +256 levels of error. Below I will show the code from my class and code from the .fla: DateShaper.as /class Sampler{// :: Private Properties ::private static var dsInstance:Sampler; // The master