From 05f47b10520dd888dc58cab5d3f10416a27a1e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 28 Sep 2014 11:52:28 +0200 Subject: [PATCH] Issue #524 Mask layer not applied when script layer not empty --- .../src/com/jpexs/decompiler/flash/xfl/XFLConverter.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java index e1d36d03c..9f6ce8f5d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java @@ -2199,11 +2199,16 @@ public class XFLConverter { ret += ""; ret += convertLabelsLayer(spriteId, tags, timelineTags, backgroundColor); - ret += convertActionScriptLayer(spriteId, tags, timelineTags, backgroundColor); + String scriptLayer = convertActionScriptLayer(spriteId, tags, timelineTags, backgroundColor); + int index = 0; + if(!scriptLayer.isEmpty()){ + index++; + } + ret += scriptLayer; int layerCount = getLayerCount(timelineTags); Stack parentLayers = new Stack<>(); - int index = 0; + for (int d = layerCount; d >= 1; d--, index++) { for (Tag t : timelineTags) { if (t instanceof PlaceObjectTypeTag) {