diff --git a/CHANGELOG.md b/CHANGELOG.md index 97cc14b66..1e0ddd0c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file. - AS3 Direct editation - Using "/" separator for method names - Folder preview resizing (scrollbar too long) - [#1872] Removing PlaceObject/RemoveObject with no characterid with Remove character action +- [#1692] Resolving use namespace ## [16.3.1] - 2022-11-14 ### Fixed @@ -2592,6 +2593,7 @@ All notable changes to this project will be documented in this file. [#1875]: https://www.free-decompiler.com/flash/issues/1875 [#1869]: https://www.free-decompiler.com/flash/issues/1869 [#1872]: https://www.free-decompiler.com/flash/issues/1872 +[#1692]: https://www.free-decompiler.com/flash/issues/1692 [#1867]: https://www.free-decompiler.com/flash/issues/1867 [#1868]: https://www.free-decompiler.com/flash/issues/1868 [#1649]: https://www.free-decompiler.com/flash/issues/1649 diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/UnresolvedAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/UnresolvedAVM2Item.java index 510dc60f6..322f40f3f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/UnresolvedAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/UnresolvedAVM2Item.java @@ -433,8 +433,12 @@ public class UnresolvedAVM2Item extends AssignableAVM2Item { } } + DottedChain classChain = DottedChain.parseWithSuffix(currentClass); + DottedChain pkg = classChain.getWithoutLast(); + //Search for types in opened namespaces for (NamespaceItem n : openedNamespaces) { + n.resolveCustomNs(abcIndex, importedClasses, pkg, openedNamespaces, localData); Namespace ons = abc.getSelectedAbc().constants.getNamespace(n.getCpoolIndex(abc)); TypeItem ti = new TypeItem(ons.getName(abc.getSelectedAbc().constants).addWithSuffix(name.get(0))); AbcIndexing.ClassIndex ci = abc.findClass(ti);