Reference Points To Anchor Points? (Newbie)

can you please help me with the following. I’m converting an app built with a previous version of Corona. It keeps telling me “object:setReferencePoint() is only available in v1Compatibility mode. Use anchor points instead.” 

    \_G.buttonShowInfo = display.newImageRect( \_G.imagePath.."info.png", display.contentWidth\*0.12, display.contentHeight\*0.08)     --\_G.buttonShowInfo:setReferencePoint( display.BottomLeftReferencePoint )     \_G.buttonShowInfo:setReferencePoint( display.BottomRightReferencePoint )  

I tried switching it to the following, but no luck.Could you point me in the right direction?

    \_G.buttonShowInfo = display.newImageRect( \_G.imagePath.."info.png", display.contentWidth\*0.12, display.contentHeight\*0.08)     \_G.buttonShowInfo:info.anchorX = 0.0;     \_G.buttonShowInfo:info.anchorY = 1.0;  

You’re on the right track. Basically you must now set anchorX and anchorY rather than giving a reference point codeword.

[lua]

– There’s no :info. stuff, it’s just object.anchorX or Y

_G.buttonShowInfo.anchorX = 0

_G.buttonShowInfo.anchorY = 1

– Remember to set your object position afterward![/lua]

Thanks so much! That worked!

You’re on the right track. Basically you must now set anchorX and anchorY rather than giving a reference point codeword.

[lua]

– There’s no :info. stuff, it’s just object.anchorX or Y

_G.buttonShowInfo.anchorX = 0

_G.buttonShowInfo.anchorY = 1

– Remember to set your object position afterward![/lua]

Thanks so much! That worked!