tag:blogger.com,1999:blog-7187806368883279318.post7528769943114932220..comments2023-12-30T06:51:59.850+07:00Comments on pzUH: ActionScript 3.0: Singleton PatternAnonymoushttp://www.blogger.com/profile/16110937224588546598noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-7187806368883279318.post-38914004327743797762013-12-02T18:25:38.961+07:002013-12-02T18:25:38.961+07:00In the Singleton() constructor, you should check w...In the Singleton() constructor, you should check whether the supplied private class is null...<br /><br />if (pvt == null)<br />{<br /> throw new Error("Class cannot be constructed - must use getInstance");<br />}Anonymousnoreply@blogger.com