[Flashcoders] compare Objects

2007-04-30 Thread Gilles Roquefeuil
Hello, seems trivialo, but is there a simpler way to compare two identically formed objects than recursively compare their props (and types and values of their props)? var obj1:Object = {a:0,b:1,c:[0,1,2],d:[{x:0,y:10},{x:10,y:0}]} var obj2:Object =

Re: [Flashcoders] compare Objects

2007-04-30 Thread Ron Wheeler
It is more reasonable to include a method in the class to compare itself to another instance of itself. x= new myObj(1,2,3) y=new MyObj(1,2,4) trace (x.isequal(y)) Ron Gilles Roquefeuil wrote: Hello, seems trivialo, but is there a simpler way to compare two identically formed objects than

Re: [Flashcoders] compare Objects

2007-04-30 Thread Ron Wheeler
Fix a small typo It is more reasonable to include a method in the class to compare itself to another instance of itself. x= new MyObj(1,2,3) y=new MyObj(1,2,4) trace (x.isequal(y)) Ron Gilles Roquefeuil wrote: Hello, seems trivialo, but is there a simpler way to compare two identically