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

#2301 Compile generates incorrect code when editting ActionScipt
Author: user GrizBane
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed Help

> What steps will reproduce the problem? Change ActionScript in a script file, click on "save" to save and compile the code > What is the expected output? What do you see instead? expected: The compiled code should match the original source code Instead: compiler sometimes generates incorrect code where local public/private variables show up with an additional and incorrect code block trying to set a value to the variable. Note that this problem did not occur with the previous version of JPEXS > What version of the product are you using? Is it "nightly build"? Which operating system do you have? version 21.0.4 > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. Please see the attached screen shots showing the original source code prior to "save" and then the incorrectly generated compiled code. Look for the lines that refer to "CurrentPipIndex" I've attached a copy of the source code that I attempted to save/compile - not sure if you can use it without the entire collection of associated scripts
user
DownloadBeforeSave.png (313 KiB)
user
DownloadAfterSave.png (376 KiB)
user
Correction - the problem first showed up in 21.0.3. The problem is not present in 21.0.2. In addition, if I open a SWF file that has the bad compiled code, versions 21.0.3 and 21.0.4 decompile the code incorrectly (missing curly braces around the errant line). Version 21.0.2 not only does not generate the errant line, but if one opens a SWF that was mis-compiled by 21.0.4 it at least decompiles the p-code correctly and include the curly braces around the errant line.
admin
It would be easier for me if you could add the SWF file where this AS file is in. Can you please attach it? Thank you in advance.
admin
Nevermind, I think I don't need the SWF. I can reproduce the problem with the AS file you provided...
admin
This is fixed in version 21.0.5
State: new→upgraded
admin
State: upgraded→closed