diff --git a/src/swf/exporters/animate/AnimateTimeline.hx b/src/swf/exporters/animate/AnimateTimeline.hx index dbe2cca..15cded6 100644 --- a/src/swf/exporters/animate/AnimateTimeline.hx +++ b/src/swf/exporters/animate/AnimateTimeline.hx @@ -372,7 +372,8 @@ class AnimateTimeline extends Timeline { if (activeInstance.displayObject != null && activeInstance.characterID == frameObject.symbol - && activeInstance.depth == frameObject.depth) + && activeInstance.depth == frameObject.depth + && activeInstance.clipDepth == frameObject.clipDepth) { // TODO: Fix duplicates in exporter instance = activeInstance; diff --git a/src/swf/exporters/swflite/timeline/SymbolTimeline.hx b/src/swf/exporters/swflite/timeline/SymbolTimeline.hx index ed1e8d2..2ba01ab 100644 --- a/src/swf/exporters/swflite/timeline/SymbolTimeline.hx +++ b/src/swf/exporters/swflite/timeline/SymbolTimeline.hx @@ -210,7 +210,8 @@ class SymbolTimeline extends Timeline { if (activeInstance.displayObject != null && activeInstance.characterID == frameObject.symbol - && activeInstance.depth == frameObject.depth) + && activeInstance.depth == frameObject.depth + && activeInstance.clipDepth == frameObject.clipDepth) { // TODO: Fix duplicates in exporter instance = activeInstance;