: 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

#1093 wrong code in AS3
Author: user refgd
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: new 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; }
 
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