How to compile AS3 from TexMate using Flex SDK?
The Floorplanner blog article is a nice read on setting up.
Also you might find ProjectSprouts interesting.