# Combining two generic objects

**URL:** <https://forum.kirupa.com/t/combining-two-generic-objects/267336>\
**Category:** Uncategorized\
**Created:** [July 30, 2008, 9:10pm UTC](https://forum.kirupa.com/t/combining-two-generic-objects/267336 "2008-07-30T21:10:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mleep](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mleep](https://forum.kirupa.com/u/mleep)\
**Post date:** [July 30, 2008, 9:10pm UTC](https://forum.kirupa.com/t/combining-two-generic-objects/267336/1 "2008-07-30T21:10:36Z")

</div>

My problem is quite simple:

I just want to combine two objects and their properties together.

For instance if I have…

```auto
var appleObj:Object = new Object();
appleObj.type = "apple";

var orangeObj:Object = new Object();
orangeObj.shape = "round";

```

I would _like_ to have a new object with all properties from both objects. Such as…

```auto
trace ( fruitObj.shape + " : " + fruitObj.type );
// result: "round : apple"

```
