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.