mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-24 19:30:49 +00:00
Changed: AS1/2 - Single DoAction tag inside frame as frame node
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user