Trace mouse movement to bezier curves

hi,

I am looking to trace mouse movement and convert to curves then have a spritefollow the traced path - similar to the iphone app Flight Control. Any ideas on how to do this?

thanks