Recording Movement in flash

I’ve seen a few pages where they record fx mouse movement in flash… how do you make that? Is it make with arrays or how? Is there any tutorials out there for it?