Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying properties from one object to another

Status
Not open for further replies.

apatterno

Programmer
Nov 26, 2002
368
US
I have an Object, and I need to copy all its properties to another Object. I have tried simply assigning one object to the other like this: myNewObject = myObject;

However, that causes a weird problem. When I change a property of myNewObject, the same property changes in myObject!

Please help, I don't understand why setting values in one object should affect values in another.

Using Flash MX (not 2004).
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top