check this post. it’s a very usefull turorial about this subject
http://danny-t.co.uk/index.php/tutorials/free-flex2-development-environment/
Danny-T.co.uk » Free Flex2 Development Environment
and if ya need some templates for new projects
http://www.bit-101.com/blog/?p=872
or.. just download it from here: