Re: [flexcoders] Re: Deep Object Copy?

2010-02-18 Thread Alex Harui
The 4.0 SDK is frozen. A major bug would have to be found to un-freeze it. All new work will be shipped in 4.1 (right on the heels of 4.0) or 4.5 (probably next year). Flash Builder 4 is almost frozen. They are only fixing known major problems. Then it will be considered final and shipped an

Re: [flexcoders] Re: Deep Object Copy?

2010-02-18 Thread Nick Middleweek
Hey Alex, What does that mean? Frozen? Is development frozen on it? Also, I'm confused, is that Flash Builder 4 or the SDk 4? Cheers, Nick On 18 February 2010 01:48, Alex Harui wrote: > > > Yeah, I didn’t even know about it. We took a look at it today and we’re > going to pull it after Fl

Re: [flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Alex Harui
Yeah, I didn’t even know about it. We took a look at it today and we’re going to pull it after Flex 4 since Flex 4 is pretty much frozen. We should’ve put that patch through more scrutiny before accepting it. On 2/17/10 12:33 PM, "Mike" wrote: Alex, Do you mean that the clone() method

[flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Mike
Alex, Do you mean that the clone() method was provided by a party other than Adobe, and hasn't passed or won't pass a Q/A cycle? Mike

Re: [flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Nick Middleweek
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 wrote: > > > I just noticed the ObjectUtil.clone() method, new for Flex SDK 4. > > public static function clone(value:Object):Object >

Re: [flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Alex Harui
Looks like it was a community patch. I don’t think it is quite right now. ObjectUtil.copy with all classes involved having registerClassAlias should work. On 2/17/10 9:10 AM, "Mike" wrote: I just noticed the ObjectUtil.clone() method, new for Flex SDK 4. public static function clone(val

[flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Mike
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:

[flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Mike
You can see the source code for ObjectUtil.copy() here: http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as You can use this type of code to write unit tests that exercise ActionScript serialization and deserialization for your value

Re: [flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Nick Middleweek
Hi HP... I think that's what ObjectUtil.copy does under the bonnet so I'm guessing it will also strip the Class information from the original objects in serialize/ deserialize process. Cheers, Nick On 16 February 2010 22:34, hpatino.rm wrote: > > > From Programming ActionScript 3.0 (page 157)

[flexcoders] Re: Deep Object Copy?

2010-02-16 Thread hpatino.rm
>From Programming ActionScript 3.0 (page 157) Have you tried this: import flash.utils.ByteArray; function clone(source:Object):* { var myBA:ByteArray = new ByteArray(); myBA.writeObject(source); myBA.position = 0; return(myBA.readObject()); } HP