I assume that classA and classB are .as
files. In that case, you need not use -includes
option at all - just import them to your main class (ClassC
), as you'd normally do and compile using mxmlc com.example.ClassC
from the folder that contains the com
folder.
According to this page, -includes
option is to specify a list of classes to the resulting application SWF file, whether or not those classes are required at compile time. Normally a class in the source path is compiled only if it is required - ie, only if it used by some other class that is being compiler. This option tells compiler to compile a class even if it is not used in any of your classes - may be to use getDefinitionByName
to create instances of that class at runtime.