JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit

: The issue tracker is now writable again and logged users can download files too. But note that our support is very LIMITED.

List of issuesList of issues

#304 editing AS directly: local variable names are lost
Author: developer honfika
Date created:
Type: bug
Visibility: Everybody
Assigned to: admin JPEXS
Labels: AS1/2Direct Editation
State: postponed Help

> 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.
Sorry, usually i forget to attach the swf:)
Download1.swf (3 KiB)
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: new→opened
Assigned:admin JPEXS
State: opened→upgraded
State: upgraded→postponed