# Moving 2 objects with same instance name?

**URL:** <https://forum.kirupa.com/t/moving-2-objects-with-same-instance-name/174317>\
**Category:** Uncategorized\
**Created:** [January 4, 2006, 5:46pm UTC](https://forum.kirupa.com/t/moving-2-objects-with-same-instance-name/174317 "2006-01-04T17:46:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaj](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Vaj](https://forum.kirupa.com/u/Vaj)\
**Post date:** [January 4, 2006, 5:46pm UTC](https://forum.kirupa.com/t/moving-2-objects-with-same-instance-name/174317/1 "2006-01-04T17:46:32Z")

</div>

Is it possible to move to button symbols with same instance name?  
example.

2 button symbols with the instance name \*\*square

\*\*both has the action

\*on (keyPress “\<left\>”) {  
\_root.kvadrat.\_x -= 20;  
}

\*the problem is that only one of the button symbols move. I know that I can change one of the names to something else and have it work like this.

\*on (keyPress “\<left\>”) {  
\_root.kvadrat1.\_x -= 20;  
\_root.kvadrat2.\_x -= 20;  
}

\*But that would ruin my idea, cause I want an easy way to add and remove the same symbol that will move to the keypresses.
