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.

List of issuesList of issues

#2449 Duplicate names in "libraries"
Author: user killomg
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: new Help

I have a project where ~10 swf files are used as libraries, and ~100 working swf files. When decompiling them, I encounter a problem where many names in the projects are identical (non-linked names), which causes issues when I connect libraries to other projects. They import files, but due to the identical names, they get deleted, causing the projects to malfunction. For example: lib1 File1 File2 lib2 File1 File2 File3 If I add lib1 and lib2, and import any object from lib1, they may use File1, File2, just like when importing an object from lib2, which later causes errors when one of the files gets deleted. I see the solution to the problem in automatically generating names that include the project name or something else that makes them fully unique.
user
Can you tell me, I added this here, and in the editor everything looks good, but it's possible that somewhere in the code the symbol names are checked to start with DefineShape, DefineBitsJPEG, DefineEditText, (any type name), and I need to update the code everywhere to take into account the project name?
DownloadCode.png (34 KiB)DownloadResult.png (31 KiB)
user
Although when exporting to FLA, the result is still bad, the names do not contain the project name.
user
Now it looks like what I need, is it enough to change getSymbolName, or do I need to update some other code?
Download1.png (173 KiB)Download2.png (111 KiB)
admin
For the changes in Tag: The tagName should be name of SWF tag, like DefineSprite, DefineShape. If you want to change how it is displayed in the tree, etc., you should change toString method or getName and getExportFileName for export filenames. For the FLA update: yes, changing getSymbolName in XflConverter should be enough for it. Did you want to change the FLA export primarily? Is the Tag class change crucial?