Trying to combine Joe's constrain to circle demo with tshirtbooth's touch offset

Hi guys,
I think the title says it pretty well but I'm using Firemaple Game's constrain to circle demo:
http://gamesalad.com/game/2907?GSCVersion=0.9.80
And it's great for what I need except that I want it to work with a touch offset, similar to the way tshirtbooth does it here:
http://gshelper.com/?p=183
I've tried combining the two as best I can, but I'm stuck on how to factor the touch offset in to the circle constraint equations. If anyone can provide an equation then they'll be my hero for life. Or if anyone can point me to a template I'll happily pay for it if necessary. Cheers.
I think the title says it pretty well but I'm using Firemaple Game's constrain to circle demo:
http://gamesalad.com/game/2907?GSCVersion=0.9.80
And it's great for what I need except that I want it to work with a touch offset, similar to the way tshirtbooth does it here:
http://gshelper.com/?p=183
I've tried combining the two as best I can, but I'm stuck on how to factor the touch offset in to the circle constraint equations. If anyone can provide an equation then they'll be my hero for life. Or if anyone can point me to a template I'll happily pay for it if necessary. Cheers.
Comments
To put it basically I'm looking to use the constrain to circle demo, but with an offset for where the screen is touched. At the moment once you drag your finger outside the circle the dot stays constrained within the circle, but then when moving back toward the circle the dot doesn't start moving with you until you get back inside the circle. I want the dot to move with my finger regardless of whether my finger is within the circle or not.
I hope that makes sense, I didn't intend to write that much!
http://bit.ly/qVa3BD
Anyways, nice work Rob. Just thought I would mention my modification in case it is helpful to anyone.
cheers
@scitunes thats's what I did so that I can test it on the mac, and it works like a charm.