}
}
args.add(tempMXMLFile.getAbsolutePath());
// Use MXMLC to compile the MXML file against playerglobal.swc and possibly other SWCs.
MXMLC mxmlc = new MXMLC();
int exitCode = mxmlc.mainNoExit(args.toArray(new String[0]));
// Check that there were no compilation problems.
List<ICompilerProblem> problems = mxmlc.getProblems().getProblems();
StringBuilder sb = new StringBuilder("Unxpected compilation problems:\n");
for (ICompilerProblem problem : problems)
{
sb.append(problem.toString());
sb.append('\n');