From 7f2cc41c100deb2218c0e1ff0064e2ce17ab9429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Sat, 29 Mar 2014 19:47:38 +0100 Subject: [PATCH] AS3 parser - type search fix --- .../flash/abc/avm2/parser/script/ActionScriptParser.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScriptParser.java b/trunk/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScriptParser.java index a3717dab7..c775cfe3a 100644 --- a/trunk/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScriptParser.java +++ b/trunk/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScriptParser.java @@ -237,10 +237,6 @@ public class ActionScriptParser { } } } - - if (parts.get(0).equals("addChild")) { - //System.out.println("ss"); - } //search for variable in openedNamespaces if (!typeOnly) { for (int i = 0; i < openedNamespaces.size(); i++) { @@ -293,7 +289,6 @@ public class ActionScriptParser { //variable not found, gonna search types String pkg = ""; String name = null; - String type = null; int foundNsKind = Namespace.KIND_PACKAGE; int k; loopk: @@ -330,7 +325,7 @@ public class ActionScriptParser { Multiname n = a.constants.constant_multiname.get(ii.name_index); if (n.getNamespace(a.constants).kind == nsKind && n.getNamespace(a.constants).getName(a.constants).equals(nspkg) && n.getName(a.constants, new ArrayList()).equals(name)) { foundNsKind = n.getNamespace(a.constants).kind; - type = n.getNameWithNamespace(a.constants); + pkg = nspkg; break loopk; } }