Senocular drawing board question!

Hi everyone… the other day i came across this drawing board made by senocular. I wanted to make some modifications but i cant quite get a grip on the AS he used at the moment! What i want to do is to be able to input a name for the drawing and then automatically save the drawing like for example each 2 seconds or so… and another thing i wanted to do was to first select a file to load, and then that each 2 seconds or so that it could load itself automatically so each new change made on the automatically saved file could be seen on the automatically loaded one!

If this does not make sence please tell me so and i’ll try to explain myself better!! btw you can get the source files here… thanks in advance!!