Re: [flexcoders] Re: Actionscript: Copy an Object or Dictionary

2007-12-03 Thread Tom Chiverton
On Friday 30 Nov 2007, polestar11 wrote: > for each(item in myDictionary) { > newDict[?] = item; > } newDict[item]=myDict[item]; -- Tom Chiverton Helping to continually reinvent essential channels on: http://thefalken.livejournal.com Please

RE: [flexcoders] Re: Actionscript: Copy an Object or Dictionary

2007-11-30 Thread Peter Farland
mx.utils.ObjectUtil.copy() won't work for Dictionary or Class as these types are not supported by AMF. (I logged bug SDK-13787 to track this). (Also, I think it doesn't make sense to copy a Class instance in AS3 as there is only one definition per application domain). Pete -Original Message

Re: [flexcoders] Re: Actionscript: Copy an Object or Dictionary

2007-11-30 Thread Douglas Knudsen
take a look at http://www.darronschall.com/weblog/archives/000271.cfm You can use ObjectUtil.copy() and retain types DK On Nov 30, 2007 10:30 AM, polestar11 <[EMAIL PROTECTED]> wrote: > --- In flexcoders@yahoogroups.com , " > ben.clinkinbeard" > > <[EMAIL PROTECTED]> wrote: > > > > > it only