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?
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
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
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 {
4 matches
Mail list logo