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](/flash/images/issue_list.png)
#304 editing AS directly: local variable names are lost
Author:
honfika
![developer developer](/flash/images/user_developer.png)
Date created:
Type: bug
Visibility: Everybody
Assigned to:
JPEXS
![admin admin](/flash/images/user_admin.png)
Labels: AS1/2Direct Editation
State: postponed ![Help](/flash/images/help.png)
![Help](/flash/images/help.png)
> What steps will reproduce the problem?
Open attached swf.
Open scripts/frame1/DoAction
Press Edit (in AS source)
Press save
The local variable names are lost.
E.g: Original was:
function transfer()
{
var me = _url;
return me;
}
After saving:
function transfer()
{
var _loc1_ = _url;
return _loc1_;
}
> What is the expected output? What do you see instead?
> What version of the product are you using? On what operating system?
1.7.0
> Please provide any additional information below. Attach the file you have problem with
if neccessary. If you do not want to publish files YOU CAN CHANGE VISIBILITY TO PRIVATE
Maybe it is a bug, maybe a feature request (to preserve the variable names) You can
decide, but i think it is a bug.
I pushed some changes. The transfer function here should not lose variable names.
But other functions do. I don't know why but some of functions use both registers and
variables and I cannot distinguish it so if it is DefineFunction2 I always use registers.
And I put DefineFunction2 there when it is inner function or method or use reserved words
as super,_global,_root, etc.
State: opened→upgraded
State: upgraded→postponed