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#2585 "continue" in for loop disappears when saving DoAction
Author:
kjarosh
kjaroshDate created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS1/2Direct Editation
State: upgraded 

> What steps will reproduce the problem?
1. Create an empty SWF
2. Add a new DoAction tag.
3. Paste the following code in it.
for(var i in j) {
if (i == j) continue;
}
> What is the expected output? What do you see instead?
The "continue" instruction should be compiled, instead, I see the following:
for(var i in j)
{
if(i == j)
{
}
}
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
24.1.0
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
for(var i in j) {
if (i == j) continue;
}
is
the same as
for(var i in j) {
if (i == j) {
continue;
} else {
continue;
}
}
so we eliminate it to
for(var i in j) {
if (i == j) {
}
continue;
}
and then
for(var i in j) {
if (i == j) {
}
}
It has the same meaning.
One algorithm can be written by many different styles, but the execution order is the
same.
What you compile in FFDec editor does not neccessarily produce the same style output,
but the execution order will be the same.
State: new→opened
Type: bug→question
Type: bug→question
Yeah, sorry, that was a stupid example, didn't really think this through.
Use the following one:
for(var i in j) {
if(i == j) {
continue;
}
trace("x");
}
It's compiled into:
for(var i in j)
{
if(i == j)
{
}
trace("x");
}
This is fixed in nightly 3356.
State: opened→upgraded
Type: question→bug
Type: question→bug
