If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.
List of issues#2487 (AS3ScriptImporter) SEVERE: uint is not an existing type
Author:
Mino260806
Mino260806Date created:
Type: question
Visibility: Everybody
Assigned to:
State: opened 

I'm trying to use ffdec_lib.jar (version 24.0.1) to automate importing scripts into a swf
(I need to do it programmatically in java).
When I do it from command line, it works without problems:
java -jar "C:\Program Files (x86)\FFDec\ffdec-cli.jar" -importScript "FileA.swf"
"FileB.swf" "../airtest" -air
However, programmatically, I get these errors:
Importing Jul 14, 2025 11:35:01 AM com.jpexs.decompiler.flash.importers.AS3ScriptImporter
importScripts
SEVERE: String is not an existing type on line 31, column -1, file:
D:\...\scripts\airtest.as
+Jul 14, 2025 11:35:02 AM com.jpexs.decompiler.flash.importers.AS3ScriptImporter
importScripts
SEVERE: uint is not an existing type on line 7, column -1, file: D:\...\scripts\agent.as
+ done
My Code:
private static void importScriptsFolder(SWF swf, DoABCTag doAbc) {
Configuration.playerLibLocation.set(ConfigReader.pathPlayerliblocation);
Configuration.airLibLocation.set(ConfigReader.pathAirliblocation);
As3ScriptReplacerInterface as3ScriptReplacer =
As3ScriptReplacerFactory.createByConfig(true);
System.out.println("Script replacer available: " +
as3ScriptReplacer.isAvailable());
ABC abc = doAbc.getABC();
List<ScriptPack> packs = abc.getScriptPacks(null, List.of(abc));
System.out.print("Importing ");
try {
new AS3ScriptImporter().importScripts(as3ScriptReplacer,
ConfigReader.pathScriptsfolder, packs, new ScriptImporterProgressListener() {
@Override
public void scriptImported() {
System.out.print("+");
}
@Override
public void scriptImportError() {
}
},
new ArrayList<>()
);
} catch (InterruptedException e) {
System.out.println(" failed");
e.printStackTrace();
}
System.out.println(" done");
}
Am I doing something wrong ?
I don't know, I can't run the example to debug it, if you want me to help, you need to
provide runnable example code with sample SWF file / as file.
Probably you need to call SWF.initPlayer();,
or set the Configuration.airLibLocation before any of the SWF instance is created.
Configuration.airLibLocation must be path of a directory, which contains file
airglobal.swc
For nonair - Configuration.playerLibLocation must be path of a directory, which contains
playerglobal*.swc file.
State: new→opened
Type: bug→question
Type: bug→question
