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

#987 assignment in for each lost
Author: user BeniBela
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed Help

An aassignment to a map was lost in a for each: private function initBuildingArray(param1:ArrayCollection) : void { var _loc2_:BuildingInfo = null; _buildings = param1; _buildingMap = {}; for each(_buildingMap["id:" + _loc2_.buildingType] in param1) { switch(_loc2_.buildingType) { case BuildingsConfig.CONTROLCENTER_TYPE: CollectResMdt.CREDIT_DURING = _loc2_.collectDuring * 3600000; continue; case BuildingsConfig.QUARRIES_TYPE: CollectResMdt.ORE_DURING = _loc2_.collectDuring * 3600000; continue; case BuildingsConfig.POWERPLANT_TYPE: CollectResMdt.ENERGY_DURING = _loc2_.collectDuring * 3600000; continue; default: continue; } } ... } but it should have been private function initBuildingArray(param1:ArrayCollection) : void { var _loc2_:BuildingInfo = null; _buildings = param1; _buildingMap = {}; for each(_loc2_ in param1) { _buildingMap["id:" + _loc2_.buildingType] = _loc2_; switch(_loc2_.buildingType) { case BuildingsConfig.CONTROLCENTER_TYPE: CollectResMdt.CREDIT_DURING = _loc2_.collectDuring * 3600000; continue; case BuildingsConfig.QUARRIES_TYPE: CollectResMdt.ORE_DURING = _loc2_.collectDuring * 3600000; continue; case BuildingsConfig.POWERPLANT_TYPE: CollectResMdt.ENERGY_DURING = _loc2_.collectDuring * 3600000; continue; default: continue; } } ... }
user
Another, clearer example is in AssignShipToHeroUI doSkills
admin
I am sorry for letting you wait so much without an answer and I don't think it is now (after flash shutdown) even relevant, but I think this seems to be fixed in current release (probably earlier). I am closing this issue.
State: new→closed