how to fix this ERROR: object:setReferencePoint()

I’m getting this error and I think I asked this quaestion a long time ago but I cant find where I asked the question.

but How do I either switch the compatibility mode or just update the code to its current form?

ERROR: object:setReferencePoint() is only available in graphicsCompatibility 1.0 mode. Use anchor points instead.

Jason Thomas

With graphics 2.0 reference points have been removed.

They are now referred to as anchors.

You can set them like so:

object.anchorX = 1

object.anchorY = 0

https://docs.coronalabs.com/daily/guide/graphics/transform-anchor.html

I had found the post I created some time ago and yup you are right 

With graphics 2.0 reference points have been removed.

They are now referred to as anchors.

You can set them like so:

object.anchorX = 1

object.anchorY = 0

https://docs.coronalabs.com/daily/guide/graphics/transform-anchor.html

I had found the post I created some time ago and yup you are right