acc.setHeight(Integer.toString(config.getDefaultHeight()));
acc.setWidth(Integer.toString(config.getDefaultWidth()));
acc.setSwfVersion(config.getSwfVersion());
acc.setScriptRecursionLimit(config.getScriptRecursionLimit());
acc.setScriptTimeLimit(config.getScriptTimeLimit());
CompilerConfiguration cc = acc.getCompilerConfiguration();
cc.setAccessible(config.getCompilerAccessible());
List<String> externalLibraries = config.getCompilerExternalLibraryPath();
String[] extlibs = new String[externalLibraries.size()];
externalLibraries.toArray(extlibs);
try
{
cc.cfgExternalLibraryPath(null, extlibs);
}
catch (ConfigurationException e)
{
// TODO Auto-generated catch block
e.printStackTrace();