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

#2530 Feature about the script export
Author:
Date created:
Type: feature
Visibility: Everybody
Assigned to:
State: new Help

There is a different approach at my project at github colin-i/actionswf and here with the code. I never requested a feature here. I am writing first post here. Maybe I can modify jpexs-decompiler code if is important. Or maybe it will be modified? The code that is same at my project and at ffdec: if(a&&b)c=1; else d=2; e=3; If I want to break after "a" condition: while(true){ if(a)if(b){ c=1; break; } d=2; break; } e=3; At ffdec is: if(a) { if(b) { c = 1; } else { addr00e6: d = 2; } e = 3; return; } §§goto(addr00e6); I have a script that is parsing ffdec for validation and it is complicated now. The solution now is this: if(a==false)d=2; else if(b==false)d=2; else c=1; And is not elegant.
Unfortunately, this is a known problem of FFDec. I call such loops "Always break loops" since they contain break just before ending brace. There already exists an issue for it - #2473 which is still unfinished. I had a very hard times trying to fix this problem (avoid generating §§goto in these cases) in the past, still without a solution. I am not sure you can modify it in my code yourself, the code regarding this is pretty spaghetti, and I would need to explain all the concepts to you... This is the main file handling all these: https://github.com/jindrapetrik/jpexs-decompiler/blob/dev/libsrc/ffdec_lib/src/com/jpexs/d ecompiler/graph/Graph.java I think it will be up to me to get this fixed somehow...