Taking screenshot automatically

I’d like to know if there is any script we can use in a flash movie that will take screenshots of the current screen of the machine being loaded on and saves them to disk.

thank you