diff --git a/CHANGELOG.md b/CHANGELOG.md index d19972c56..0d2bdbe09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file. - [#1748] Wrong matching of DefineEditText fonts for rendering - [#1748] Line height - Descent/ascent in multiline DefineEditText - Editation of font descent colliding with leading +- [#1741] AS1/2 direct editation - new String constructor call ## [14.4.0] - 2021-04-05 ### Added @@ -2206,6 +2207,7 @@ All notable changes to this project will be documented in this file. [#1744]: https://www.free-decompiler.com/flash/issues/1744 [#1687]: https://www.free-decompiler.com/flash/issues/1687 [#1748]: https://www.free-decompiler.com/flash/issues/1748 +[#1741]: https://www.free-decompiler.com/flash/issues/1741 [#1015]: https://www.free-decompiler.com/flash/issues/1015 [#1466]: https://www.free-decompiler.com/flash/issues/1466 [#1513]: https://www.free-decompiler.com/flash/issues/1513 diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java index 6eaca28b5..e45f3becc 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java @@ -1833,6 +1833,12 @@ public class ActionScript2Parser { args.add(((ToNumberActionItem) newvar).value); } ret = new NewObjectActionItem(null, null, pushConst("Number"), args); + } else if (newvar instanceof ToStringActionItem) { + List args = new ArrayList<>(); + if (((ToStringActionItem) newvar).value != null) { + args.add(((ToStringActionItem) newvar).value); + } + ret = new NewObjectActionItem(null, null, pushConst("String"), args); } else if (newvar instanceof GetMemberActionItem) { GetMemberActionItem ca = (GetMemberActionItem) newvar;