Re: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Spike
Hi Robert, Gordon Smith from Macromedia posted this to another list a while ago. I am reproducing it with his permission. Hopefully it will clarify things a bit: Note, that this applies only to AS 3, not to AS 2 *** 'undefined' is

Re: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Darron J. Schall
Spike wrote: Since Object is the only type that can store undefined, if you try to set a var of another type to undefined, it will be coerced into something different. For example, setting a Number to undefined will coerce it to NaN. The complete list, by the way, is on the Wiki here:

RE: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Robert Edgar
if(x!=null) Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Spike Sent: Friday, October 21, 2005 5:42 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Undefined and null in Flex2 Hi Robert, Gordon Smith from Macromedia posted

Re: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Spike
Subject: Re: [Flashcoders] Undefined and null in Flex2 Hi Robert, Gordon Smith from Macromedia posted this to another list a while ago. I am reproducing it with his permission. Hopefully it will clarify things a bit: Note, that this applies only to AS 3, not to AS 2

RE: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Robert Edgar
Mike, Thanks... I should have checked the FAQ..RTFM Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Chambers Sent: Friday, October 21, 2005 4:45 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Undefined and null in Flex2 What