Re: [Flashcoders] static vs singleton

2007-09-14 Thread T. Michael Keesey
On 9/13/07, Alan Watts [EMAIL PROTECTED] wrote: hi all, I have a model class that contains xml data for a file I am manipulating. What would be the difference between setting it up as a singleton and just accessing it via static vars and methods? I wouldn't use either of those solutions,

RE: [Flashcoders] static vs singleton

2007-09-14 Thread Norman Cousineau
Seems like using a singleton is a good way to load the xml only once. Calling getInstance() will return the info you need each time. The getInstance function can be static. Norm -Original Message- From: Alan Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 6:47 PM To: