JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issuesList of issues

PreviousNext not available#2679 AS2 decompilation can produce labeled breaks, but direct editing doesn't accept them
Author:
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS1/2
State: closed Help

> What steps will reproduce the problem? Open the frame 1 script from the attached .swf, try to start editing ActionScript, add and remove a space somewhere and save the changes. > What is the expected output? What do you see instead? Trying to save the code throws an error, even though the code was generated by the decompiler. > What version of the product are you using? Is it "nightly build"? Which operating system do you have? I'm using stable version 25.1.3 on Windows 10. > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you.
Yes, AS1/2 does not support labeled breaks, so this code won't compile. However, some manually written P-code can produce labeled breaks when decompiled. How did you compile such code to produce this SWF? I guess it does not have direct AS1/2 representation (without the labeled breaks). Some other codes which can have version without the labeled breaks are decompied in FFDec with labeled breaks, this is clearly problem, the decompiler should avoid them. In current nightly build, there is a new algorithm for loop detection, which should do this better.
State: new→opened
Yeah, I modified the break jump manually with p-code. If labeled breaks aren't available in AS2, fair enough, I guess this isn't a bug then. I was just a bit bummed because I wanted to use them when writing my own code :P
State: opened→closed