JPEXS Free Flash Decompiler Issue Tracker

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 issuesList of issues

#1093 wrong code in AS3
Author: user refgd
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3Decompilation
State: closed Help

right code should be: for each(_loc5_ in param1) { _loc4_[_loc5_[param2]] = _loc5_; } after decompiler, the code become: for each(_loc4_[_loc5_[param2]] in param1) { } this is wrong!!
admin
Attach the SWF file please, otherwise we can't fix it.
user
attached the example SWF file. original code below: public static function array2Map(_arg1:Object, _arg2:String, _arg3:Class):Object { var _local5:Object; var _local4:Object = new _arg3(); for each (_local5 in _arg1) { _local4[_local5[_arg2]] = _local5; } return _local4; }
user
i think its fixed
admin
State: new→closed