diff --git a/CHANGELOG.md b/CHANGELOG.md index 058859c17..96d7d6015 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,8 @@ All notable changes to this project will be documented in this file. - [#2290] FLA export - not generating sound bin files causing sound compression setting to be ignored - [#2296] AS decompilation - goto problems - AS3 - displaying imports of class parent chain -- AS3 - imports for script traits +- AS3 - imports for script slot/const traits +- AS3 direct editation - script slot/const traits assignments ## [21.0.5] - 2024-09-05 ### Fixed diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java index 8560728ad..a58e56809 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java @@ -1226,9 +1226,9 @@ public class ActionScript3Parser { } GraphTargetItem tar; if (isConst) { - tar = new ConstAVM2Item(metadata, ns, null, false, vcname, type, value, lexer.yyline(), false); + tar = new ConstAVM2Item(metadata, ns, null, true, vcname, type, value, lexer.yyline(), false); } else { - tar = new SlotAVM2Item(metadata, ns, null, false, vcname, type, value, lexer.yyline()); + tar = new SlotAVM2Item(metadata, ns, null, true, vcname, type, value, lexer.yyline()); } traits.add(tar); if (s.type != SymbolType.SEMICOLON) {