@Roaminggamer gave you all of the code needed to accomplish this. It’s in the github link he posted above. It’s all in lua and can be used to create the effect which you are trying to achieve.
Judging from your other posts, you are basically trying to run before you can walk. You need to go back to square one and try to understand the basic concepts behind Corona SDK, lua code structuring and game development philosophy.
I started out asking questions which had answers far above my pay grade, so I understand trying to get to work and build what you want without waiting. But, you still need to learn first. People like Ed can only provide so much support for free before they need to go back to actually logging billable hours.
Searching with Google and through past Corona forum posts are going to be your best friend here. I put together the “From the Forum” posts every Friday, and I know there is a wealth of information available. All you need to do is search for it. Don’t get discouraged, keep experimenting, try stuff, see it break, and try to fix it. Oh, and always adhere to the advice roaminggamer gives in this thread.
TL;DR: Google is your friend. I posted a snippet of how to achieve this exact behavior on my github page as well. It’s barebones, and couldn’t be more simple.
https://github.com/pancinteractive/axisrotation