Loading a .txt(Or something else) containing my game engine A.S into flash

I wanted to add all my engine script to something else for easy editing, then just make 3 scripts (frame1, 2, and 3) then just loading each up into flash, for easy editing/playing.