[Flashcoders] static vs singleton

2007-09-14 Thread Alan Watts
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? myFile.load(file name='oldName'); myFile.setFileName('NewFileName'); with the class

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
To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] static vs singleton 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? myFile.load(file