Changed: AS1/2 - Single DoAction tag inside frame as frame node

This commit is contained in:
Jindra Petřík
2025-05-25 21:46:09 +02:00
parent ceee0afb12
commit 50b82c363f
10 changed files with 207 additions and 25 deletions
@@ -182,6 +182,7 @@ import com.jpexs.decompiler.flash.tags.gfx.DefineExternalStreamSound;
import com.jpexs.decompiler.flash.tags.text.TextParseException;
import com.jpexs.decompiler.flash.timeline.AS3Package;
import com.jpexs.decompiler.flash.timeline.Frame;
import com.jpexs.decompiler.flash.timeline.FrameScript;
import com.jpexs.decompiler.flash.timeline.Scene;
import com.jpexs.decompiler.flash.timeline.SceneFrame;
import com.jpexs.decompiler.flash.timeline.SoundStreamFrameRange;
@@ -2958,6 +2959,11 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
if (ts.getTag() instanceof ASMSource) {
as = (ASMSource) ts.getTag();
}
} else if (t instanceof FrameScript) {
FrameScript fs = (FrameScript) t;
if (fs.getSingleDoActionTag() != null) {
as = fs.getSingleDoActionTag();
}
}
if (as != null) {
SWF s = as.getSourceTag().getSwf();
@@ -6152,6 +6158,14 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
treeItem = ((TagScript) treeItem).getTag();
preferScript = true;
}
if (treeItem instanceof FrameScript) {
FrameScript fs = (FrameScript) treeItem;
DoActionTag doAction = fs.getSingleDoActionTag();
if (doAction != null) {
treeItem = doAction;
}
}
folderPreviewPanel.clear();
folderListPanel.clear();