Re: [flexcoders] How to copy each property of object A to B ?

2008-08-22 Thread Laurent Cozic
Have a look at mx.utils.ObjectUtil.copy() -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Fri, 8/22/08, piotrchruscielewski <[EMAIL PROTECTED]> wrote: From: piotrchruscielewski <[EMAIL PROTECTED]> Subject: [flexcoders] How to copy each

[flexcoders] How to copy each property of object A to B ?

2008-08-22 Thread piotrchruscielewski
Hi I`ve got one small question, that I still can`t resolve. suppose we have class Person , and variables: var p1:Person; p1.name = 'John'; not we have some other reference to this object (for.ex. from other part of program) var p2:Person = p1; If I`ll now make p1.name = 'Steve' of course