Hmm, I believe this should work.  Can you put together a case that fails
regularly?

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sergey Kovalyov
Sent: Thursday, February 09, 2006 1:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Singleton inline initialization problem?

Hi All!

Sometimes application doesn't work correctly when I initialize singleton
inline like this:

private static var authenticationManager : AuthenticationManager =
AuthenticationManager.getInstance();

And then use authenticationManager in class instead of
AuthenticationManager.getInstance().

Could you please tell whether I deal with some kind of Flex/Flash
bug/feature or such an inline initialization is a mistake by its nature?

Thank you in advance!

Sergey.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to