In Flash it is possible to export for QuickTime, Mov and some more!
http://www.macromedia.com/software/f...layback.html#5
But in the most formats, you won´t have any ActionScript! There is only a linear timeline possible.
To smaller your filesize it is necessary to:
work with the library. Copy all images into the library and drag them into the movie.
smaller all jpg´s or gif
use vektorgrafiks, where ever it is possible
maybe work with more movies. So you don´t need to load all scene´s on the begining.