Cheers Mike, great find! We;re stuck on 3.3 for now but thanks for pointing that out...
Nick p.s. Not sure about UID's .copy? On 17 February 2010 18:10, Mike <msl...@mslinn.com> wrote: > > > I just noticed the ObjectUtil.clone() method, new for Flex SDK 4. > > public static function clone(value:Object):Object > { > var result:Object = copy(value); > cloneInternal(result, value); > return result; > } > > private static function cloneInternal(result:Object, value:Object):void > { > result.uid = value.uid; > var classInfo:Object = getClassInfo(value); > var v:Object; > for each (var p:* in classInfo.properties) > { > v = value[p]; > if (v && v.hasOwnProperty("uid")) > cloneInternal(result[p], v); > } > } > > UID is discussed here: > http://livedocs.adobe.com/flex/3/html/help.html?content=about_dataproviders_8.html > > The clone() docs say "clone() differs from copy() in that the uid property > of each object instance is retained." Is that not true for ObjectUtil.copy() > anyway? > > >