A good alternative to CS4 is Flash Develop.
Flash Develop Main Page
It's an open source (free) actionscript source code editor. To compile, you'll need to download Adobe Flex SDK (also free), and this website also has links to a walkthrough on how to do that. Hope this helps any aspiring flash developers who (like me) are way to poor to shell out for CS4.