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.

#2528 Temp variables instead of §§push / §§pops
Author:
JPEXS

Date created:
Type: feature
Visibility: Everybody
Assigned to:
State: new 

In situations where §§push / §§pop instructions are present in the code,
it would be nice if they can be replaced in some standard code, like temporary variables.
For example following loop:
```
§§push(5);
do
{
var b:* = §§pop();
trace("TestLoop/" + b);
§§push(--b);
}
while(b != 0);
§§pop();
```
Could be replaced to something like this.
```
var _temp1_ = 5;
do
{
var b:* = _temp1_;
trace("TestLoop/" + b);
_temp1_ = --b;
}
while(b != 0);
```
Similarly to ifs or switches:
```
§§push(1);
if(a == 1)
{
b = §§pop
§§push(2);
§§push(3);
trace("Test1:" + b);
}
else
{
§§push(4);
trace("Test1x:" + a);
}
§§pop
§§pop
```
=>
```
var _temp1_= 1;
if(a == 1)
{
b = _temp1_;
_temp1_=2;
_temp2_=3;
trace("Test1:" + b);
}
else
{
_temp2_=4;
trace("Test1x:" + a);
}
_temp2_
_temp1_
```
Attached SWF file contains sample tests for if/loop/switch.
