Re: [flexcoders] How to tell what type the object is

2007-11-20 Thread Tom Chiverton
On Tuesday 20 Nov 2007, dbronk wrote: > This returns false because beginDate is null. If I change the > declaration to var beginDate : Date = new Date(); it works fine, but 'null' has no type. If you need a 'no data here' Date, try Date(0). -- Tom Chiverton Helping to quickly create user-centri

[flexcoders] How to tell what type the object is

2007-11-20 Thread dbronk
I have a VO object with a fill(xml:XML) method. I have it working fine except for one place. My VO has a var beginDate : Date = null; property. Problem is that when I am looping through the xml is need to: // Say prop = "beginDate" at this point in the loop if ( this[prop] is Date ) This