Re: [flexcoders] Re: AS - adding dynamic properties to an object

2005-04-04 Thread JesterXL
s] Re: AS - adding dynamic properties to an object Is this the answer to the age old question of 'Who's on first?' :) -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 10:35 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: AS

RE: [flexcoders] Re: AS - adding dynamic properties to an object

2005-04-04 Thread Ben Elmore
Is this the answer to the age old question of 'Who's on first?' :) -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 10:35 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: AS - adding dynamic properties to an object

Re: [flexcoders] Re: AS - adding dynamic properties to an object

2005-04-04 Thread JesterXL
terator(reallyARecordSet); Or something to that effect. - Original Message - From: "Ben Elmore" <[EMAIL PROTECTED]> To: Sent: Monday, April 04, 2005 10:15 PM Subject: RE: [flexcoders] Re: AS - adding dynamic properties to an object A quick way to do it (ugly admittedly

RE: [flexcoders] Re: AS - adding dynamic properties to an object

2005-04-04 Thread Ben Elmore
A quick way to do it (ugly admittedly) is to use the 'instanceof' or 'typeof' operator. if ( obj[propertyName] instanceof Date ) You might need to cast into number or date before you check the instance of to see if it is valid. -Original Message- From: viraf_bankwalla [mailto:[EMAIL

Re: [flexcoders] Re: AS - adding dynamic properties to an object

2005-04-04 Thread Manish Jethani
On Apr 5, 2005 1:20 AM, viraf_bankwalla <[EMAIL PROTECTED]> wrote: > While I can do an object.propertyName in AS to create the property > with a known name, I do not know the property name till runtime > (specified in the dataset that I receive), and did not know how to > create the property at r