Save FLA actionscript to file?

Is there a way I can save all the actionscript in a FLA to a text file? Or do I just need to copy and paste each panel?

Thanks