: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.

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.
developer
Sorry, usually i forget to attach the swf:)
Download1.swf (3 KiB)
admin
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
admin
State: opened→upgraded
admin
State: upgraded→postponed
 
Google Translate: Translate to Czech Translate to Slovak Translate to Russian Translate to Hungarian Translate to Swedish Translate to French Translate to German Translate to Spanish Translate to Italian
Change style: oceanic classic