# Moving and removing object references

**URL:** https://forum.kirupa.com/t/moving-and-removing-object-references/294704
**Category:** Uncategorized
**Created:** [August 18, 2009, 7:54pm UTC](https://forum.kirupa.com/t/moving-and-removing-object-references/294704 "2009-08-18T19:54:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zachwlewis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zachwlewis/32/350_2.png) [@zachwlewis](https://forum.kirupa.com/u/zachwlewis)
#### Post date: [August 18, 2009, 7:54pm UTC](https://forum.kirupa.com/t/moving-and-removing-object-references/294704/1 "2009-08-18T19:54:07Z")

</div>

I have a 2-dimensional array of Objects. Their location in the array determines where they appear on the screen. When I want to move an object down, I am trying something like this:

[AS]LocationArray\*[j+1] = LocationArray\*[j];  
LocationArray\*[j] = null;[/AS]Of course, with the way AS3 handles objects and references, it removes the object completely. How can I simply move a reference (or remove an reference) without destroying the object?
