I do command-line Flash development from Linux.
You want to get the above-linked mxmlc, but then instead of directly calling that, use my script
fcsh-wrap. That will speed up compile times.
The only required argument to mxmlc/fcsh-wrap is the name of your swf entry-point (i.e. Main.as). That said, my makefile currently looks something like this:
OUTPUT := fall-inwards.swf
ifdef DEBUG
DEBUG_FLAG := true
else
DEBUG_FLAG := false
endif
all:
fcsh-wrap -optimize=true -static-link-runtime-shared-libraries=true -compatibility-version=3.0.0 --target-player=10.0.0 -compiler.debug=$(DEBUG_FLAG) Main.as -output $(OUTPUT)
clean:
rm -f *~ .FW.* $(OUTPUT)
.PHONY: all clean