mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 16:05:05 +00:00
show frame number during play
FlashPlayer - show controls for DefineSprite display Goto frame on click
This commit is contained in:
@@ -1075,6 +1075,21 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
}
|
||||
}
|
||||
|
||||
public void gotoFrame(int frame){
|
||||
TreeItem treeItem = (TreeItem) tagTree.getLastSelectedPathComponent();
|
||||
if (treeItem == null) {
|
||||
return;
|
||||
}
|
||||
if(treeItem instanceof Timelined){
|
||||
Timelined t = (Timelined)treeItem;
|
||||
Timeline tim = t.getTimeline();
|
||||
Frame f = ((TagTreeModel)tagTree.getModel()).getFrame(treeItem.getSwf(), t, frame);
|
||||
if(f!=null){
|
||||
setTagTreeSelectedNode(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void gotoDocumentClass(SWF swf) {
|
||||
if (swf == null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user