• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to select the current frame using jsfl?

Participant ,
Jan 10, 2024 Jan 10, 2024

Copy link to clipboard

Copied

I have a code that selects the current frame as follows:

var dom = fl.getDocumentDOM().getTimeline();
var currentFrame = dom.currentFrame;
dom.setSelectedFrames(currentFrame, currentFrame);

This is a normal executable command, but when I had to use MMExecute to execute this command in swf, an error inevitably occurred.

qqq.png

When a symbol is selected, all frames in which the symbol is located will be selected. At this time, the command will be invalid.
Unfortunately, I have to select the symbol before executing subsequent commands.

I tried several methods and still could not solve it. I need some help, thanks.

TOPICS
Code

Views

83

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation