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

#1860 Export to FLA not working
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed Help

> What steps will reproduce the problem? Export to FLA > What is the expected output? What do you see instead? java.util.EmptyStackException null 02/11/2022 21:29:06 SEVERE FLA export error java.util.EmptyStackException at java.util.Stack.peek(Unknown Source) at java.util.Stack.pop(Unknown Source) at com.jpexs.decompiler.flash.xfl.XFLXmlWriter.writeEndElement(XFLXmlWriter.java:165) at com.jpexs.decompiler.flash.xfl.XFLConverter.getShapeLayers(XFLConverter.java:992) at com.jpexs.decompiler.flash.xfl.XFLConverter.convertShape(XFLConverter.java:480) at com.jpexs.decompiler.flash.xfl.XFLConverter.convertFrames(XFLConverter.java:2395) at com.jpexs.decompiler.flash.xfl.XFLConverter.writeLayer(XFLConverter.java:3047) at com.jpexs.decompiler.flash.xfl.XFLConverter.convertTimeline(XFLConverter.java:3015) at com.jpexs.decompiler.flash.xfl.XFLConverter.convertSymbols(XFLConverter.java:1679) at com.jpexs.decompiler.flash.xfl.XFLConverter.convertLibrary(XFLConverter.java:1473) at com.jpexs.decompiler.flash.xfl.XFLConverter.convertSWF(XFLConverter.java:3559) at com.jpexs.decompiler.flash.SWF.exportXfl(SWF.java:2625) at com.jpexs.decompiler.flash.SWF.exportFla(SWF.java:2615) at com.jpexs.decompiler.flash.gui.MainPanel$18.doInBackground(MainPanel.java:2487) at com.jpexs.decompiler.flash.gui.MainPanel$18.doInBackground(MainPanel.java:2480) at com.jpexs.helpers.CancellableWorker$1.call(CancellableWorker.java:61) at java.util.concurrent.FutureTask.run(Unknown Source) at com.jpexs.helpers.CancellableWorker.run(CancellableWorker.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) > What version of the product are you using? Is it "nightly build"? Which operating system do you have? v16.0.3, no, not nightly > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. This was functional in v15 and until then, I'll be downgrading. Would appreciate a fix, thanks in advance.
user
sorry for forgetting to add it into the main post but exporting to an FLA also seems to omit "addFrameScript" and it's rather tedious to copy it from JPEXS to the relevant generated AS file
user
sorry for forgetting to add it into the main post but exporting to an FLA also seems to omit "addFrameScript" and it's rather tedious to copy it from JPEXS to the relevant generated AS file
admin
During the FLA export, addFrameScript calls and associated frame functions are moved into the FLA file as frames. You can just load the FLA into the editor and navigate to specific frame in the timeline and you will see the script there. During the FLA compilation in the Flash IDE, these are compiled back to addFrameScript calls. It might be weird that in FFDec you see it as addFrameScript, but not in the FLA, but thats how FLA file works. To the Empty stack: I will take a look...
admin
To the EmptyStackException: I can't reproduce the problem without sample SWF file, so please attach one where this occurs.
admin
Luckily, I found a SWF file where this happens. Try nightly 2116, it should be fixed there.
State: new→upgraded
user
Tested. Can confirm that my problem is solved, thank you.
user
however, I think you should revisit addFrameScripts. It's not functional for me.
DownloadCapture.PNG (1 KiB)DownloadCapture2.PNG (7 KiB)
user
I apologize for my scatterbrained messages. I feel it's necessary to give more info and clarify better than I already have. This next capture is what's shown in JPEXS. Notice that there are only 15 frames in the first screenshot but it wants to add a frame script onto frame 16. The frame script line is removed in the second screenshot(from export to FLA output) but there are no frame scripts shown on the timeline. I am using and exporting with the Flash CS6 Document preset.
DownloadCapture3.PNG (8 KiB)
admin
Please attach your SWF file which has this problem. I cannot reproduce it on my files.
user
sorry, here you go. For context, I've started using JPEXS less for modding and have instead started trying to recreate the "source code" of games as it is much easier to mod alongside being an excellent way to document and archive such things
admin
This is fixed in nightly 2119. This SWF file is specific that it use getlex instruction instead of getproperty (probably different compiler than I tried before). Now it should work. If you find another bug, please create new issue.
user
New Nightly version solved my problem, thank you.
admin
You're welcome.
State: upgraded→closed