RE: [flexcoders] Singletone class in Application and Modules !?

2008-03-26 Thread Rick Winscot
Subject: Re: [flexcoders] Singletone class in Application and Modules !? On 3/26/08, lytvynyuk <[EMAIL PROTECTED] <mailto:lytvynyuk%40yahoo.com> > wrote: > > Is it true if I have singleton class instantiated in main application and > in module, instances will be different?

Re: [flexcoders] Singletone class in Application and Modules !?

2008-03-26 Thread Manish Jethani
On 3/26/08, lytvynyuk <[EMAIL PROTECTED]> wrote: > > Is it true if I have singleton class instantiated in main application and > in module, instances will be different? [snip] If you don't include the class in the main application, each of the modules will have their own instance of the class. Cl

RE: [flexcoders] Singletone class in Application and Modules !?

2008-03-25 Thread Alex Harui
They would be the same. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lytvynyuk Sent: Tuesday, March 25, 2008 12:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Singletone class in Application and Modules !? Is it true

[flexcoders] Singletone class in Application and Modules !?

2008-03-25 Thread lytvynyuk
Is it true if I have singleton class instantiated in main application and in module, instances will be different? public class DataManager { private static const singleton_:DataManager = new DataManager(); public static function get instance():DataManager {