How I can change the position of an object (layers) once it was declared.
There are object APIs to move object toFront() and toBack(). See:
https://docs.coronalabs.com/api/type/DisplayObject/toFront.html
https://docs.coronalabs.com/api/type/DisplayObject/toBack.html
Rob
I have also found that using a group works well with the insert APIĀ https://docs.coronalabs.com/api/type/GroupObject/insert.html
There are object APIs to move object toFront() and toBack(). See:
https://docs.coronalabs.com/api/type/DisplayObject/toFront.html
https://docs.coronalabs.com/api/type/DisplayObject/toBack.html
Rob
I have also found that using a group works well with the insert APIĀ https://docs.coronalabs.com/api/type/GroupObject/insert.html