How do I change the picture displayed by the picture object?

I created a picture display object: instance1 = display.newImageRect (path1, w*wb, h*hb)

How to change the size of the object as instance1._xScale = 0.5, change the object pointed to by the instance1 path1 path2 picture, I tried to write directly to instance1 = display.newImageRect (path2, w*wb, h*hb), but he is creating a new object, I want to change the original object display pictures, how to do?

You cannot change the image without removing the original and recreating it.

I recommend you read this tutorial: https://docs.coronalabs.com/tutorial/media/swapImages/index.html

Rob

You cannot change the image without removing the original and recreating it.

I recommend you read this tutorial: https://docs.coronalabs.com/tutorial/media/swapImages/index.html

Rob