AS3: Fix exporting namespaces

This commit is contained in:
Jindra Pet��k
2012-12-29 07:26:44 +01:00
parent 18b281ebb2
commit 0ac8e4a9b1
+2 -2
View File
@@ -613,7 +613,7 @@ public class ABC {
modifiers += " ";
}
String nsname = constants.constant_multiname[name_index].getName(constants);
n += IDENT_STRING + modifiers + "namespace " + nsname + "=\"" + Helper.escapeString(constants.constant_namespace[value_index].getName(constants)) + "\";\r\n";
n += IDENT_STRING + modifiers + "namespace " + nsname + " = \"" + Helper.escapeString(constants.constant_namespace[value_index].getName(constants)) + "\";\r\n";
n += ("}\r\n");
ret.put(packageName + "." + nsname, n);
}
@@ -811,7 +811,7 @@ public class ABC {
}
String fileName = outDir.toString() + File.separator + nsName + ".as";
FileOutputStream fos = new FileOutputStream(fileName);
fos.write(n.getBytes());
fos.write(ns.get(n).getBytes());
fos.close();
}