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 issues
#1489 Problems with negation and for each loops in the AS2 compiler
Labels: AS1/2Direct Editation
> What steps will reproduce the problem? > What is the expected output? What do you see instead? Just open the swf I've prepared for you and compile the frames without changing anything. The problems are also described in the code. 1st frame's DoAction shows the bug in if statements if a singular condition is negated. The compiler improperly adds a "Not" in such cases, which negates the condition and breaks code logic. This doesn't seem to seem to happen in ifs with several conditions as an 'Not' is already there. Deleting the "Not" fixes the problem. 2nd frame's DoAction shows a for each loop which breaks after compiling. The problem is just one "Push" that has improper order. Changing it back to the proper order fixes the problem. 3rd frame's DoAction shows additional problems with negation. (I've actually seen such use of negation in various swfs) Adding or deleting "Not"s fixes the problem. > What version of the product are you using? Is it "nightly build"? Which operating system do you have? Windows 10, latest nightly, however the bugs concerning negation were there since I started using JPEXS 2-3 years ago. I don't remember how long the for each problem was there but it's also been here for a while.
AS2 compiler bugs.swf (1 KiB)
This was fixed in nightly 1797.