I'm trying to figure out how to copy the values from one object to another object.

I have 3 objects in my movie with about 40 values in each of them. I want to save all of them in an object in my sharedObject. Instead of doing this.

game1.data.charA.name=_root.a.name;
game1.data.charA.hp=_root.a.hp;

and so on... is there a way to just copy the object directly.. i tryed in a test fla... basically things like this..

b = new Object();
b.a = 1;
b.b = 2;
b.c = 3;

c = new Object();
c = b;

.... or this...

c = newObject(b);

but nothing really worked... anyone able to shed some light onto my situation??? Thanks

~Bill