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.

#1093 wrong code in AS3
Author:
refgd

Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3Decompilation
State: closed 

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!!
Attach the SWF file please, otherwise we can't fix it.
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;
}

i think its fixed
State: new→closed