JPEXS Free Flash Decompiler Issue Tracker

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.

Error: Please login first to download files from the Issue Tracker. You can register for free.
List of issuesList of issues

#2468 CLI -replace doesn't recognize script name
Author:
Date created:
Type: feature
Visibility: Everybody
Assigned to:
State: upgraded Help

> What steps will reproduce the problem? ./ffdec.sh -replace ./replace.swf ./replace2.swf "/frame 1 - DoAction" ./script.as > What is the expected output? What do you see instead? Expected: Replace AS1/2 Warning: This feature is EXPERIMENTAL Bugged: /frame 1 - DoAction is not recognized as a CharacterId or a script name. > What version of the product are you using? Is it "nightly build"? Which operating system do you have? JPEXS nightly 3202/release 23.0.1, Linux/Windows 11 > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. The issue is present in JPEXS versions newer than release 22.0.2. Issue #2407 seems to be the same/very similar, but latest JPEXS versions still don't recognize the script name from -dumpAS2. Latest JPEXS version dump the AS2 differently (old: "/frame 1/DoAction", new: "/frame 1 - DoAction"), but the issue still occurs when accounting for this.
Downloadreplace.swf (67 B)Downloadscript.as (66 B)
-dumpas2 CLI command prints out script names in "display" format = what's displayed in the GUI of FFDec, on the other hand, the -replace command accepts script names in so called "export format". Export format means the format in which the scripts are written to the disk when exporting. Example: Display format: \DefineSprite (chid: 15)\frame 1\DoAction \frame 1\PlaceObject2 (chid: 2, exp: blue, dpt: 1)\CLIPACTIONRECORD onClipEvent(load) \frame 24 - DoAction The same scripts in export format: \DefineSprite_15\frame_1\DoAction \frame_1\PlaceObject2_2_blue_1\CLIPACTIONRECORD onClipEvent(load) \frame_24\DoAction In nightly 3203 I added new option to -dumpas2 command: -exportNames. When you add that option, it will print script names in export format. Then you can use these names in -replace. Example: ffdec -dumpas2 -exportNames myfile.swf
State: new→upgraded
Type: bug→feature
I see. I can replace scripts properly now.