Can anyone help me?

Hello. I’m wondering if anyone can help on how to make this flash. The tutorial I am looking for is that your mouse is chasing an object in which you can never catch it. See example urls.

Example 01:

Exampe 02:

I can’t seem to find a tutorial for this. I would really appreciate your help.