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
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
2 matches
Mail list logo