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.

#2317 Adding more params to functions messes with loc vars unless loc renamed
Author:
Thisguy248

Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3Direct Editation
State: closed 

> What steps will reproduce the problem?
Add a parameter to a function that has _loc##_ variables without renaming the loc##
placeholder names.
> What is the expected output? What do you see instead?
Here is an example function, where you add a new parameter "bar"
public function Foo(bar:int) : void
{
var _loc1_:int = 0;
}
When you try to save, it changes to this:
public function Foo(param1:int) : void
{
param1 = 0;
}
Here is another example, where you add a new param
public function Foo(bar:int) : void
{
this.x = bar;
var _loc1_:int = 0;
}
When saving, it results in an error:
No register or slot set for bar on line ###
Here is another example with 2 params
public function Foo(bar:int, bar2:uint) : void
{
var _loc2_:int = 0;
this.x = bar;
}
When saving, it is even weirder as the second param name disappears
public function Foo(bar:int, :uint) : void
{
param2 = 0;
this.x = bar;
}
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
v.21.0.5 nightly build 2901 on Windows 10
This is fixed in nightly 2910.
State: new→upgraded
I see the loc numbers increment now with added params, thanks!
You're welcome.
State: upgraded→closed