Only in AS3, not AS2. In AS2: trace ( null == undefined ); // true
That's not his problem; that solution works fine. Something else is failing. It's been this way since like Flash 5. ----- Original Message ----- From: "Morten Barklund TBWA\Play" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <[email protected]> Sent: Monday, February 20, 2006 9:40 AM Subject: Re: [Flashcoders] When singletons go bad Manuel Saint-Victor wrote: > I had MyManager declared and in my variable declaration chunk up top but > had > not added in the last part(=null) > > private static var _myManager : MyManager; > > I'm going to try changing that and see how if that helps. That would exactly be the problem - as the variable is undefined when not set - never null. Initialising to null or just casting to boolean in the condition should fix the problem. -- Morten Barklund - Information Architect - TBWA\Play Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark Phone: +45 7027 2227 - Fax: +45 3369 1174 _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

