Exporting ActionScript

Is there any easy way to output ALL the ActionScript I’ve used in a movie to a text file or something. I just want a reference for when I’m doing the write up of my coursework.