Common Error on compiling a Flex-AS3-Project: target file must be specified

I tried to load and build a Flex2-Project in Flex SDK in order to run an ActionScript 3 example. It did not compile, although all paths were correct and all necessary files present. I got following error.

Error: a target file must be specified
Use 'mxmlc -help' for information about using the command line.
Build halted with errors (mxmlc).
Done (1)

Solution: You have to specify your main file, so the the compiler knows where to start. To solve the problem, right click your mxmlc-file in the project browser and choose "Always Compile".

Tags: debug, flex, actionscript
Feb_10:2008 .020200 Comments(0)

 Related Entries


Add your Flavour to the Article