mxlmc in the Apache Flex Compilers will do both. I used it before adobe gave it to apache for flash games/apps. It worked just fine.

It's also possible to do animations that way, but it'd be better to use something geared toward animation. Tupitube (formerly ktoon) supports swf, I think. But, it looks dead.

https://svn.apache.org/repos/asf/flex/site/branches/flexdoc/...