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

A few questions about JSFL

Enthusiast ,
Jul 19, 2018 Jul 19, 2018

Jump to top 1 keyframes

Jump to the back 1 keyframes

How to Write.("Alt +," and "Alt +.")

Make a SWF extension panel

Using the SWF call JSFL how to invoke the.

I use "Mmexecute" to perform simple JSFL commands.

But how to invoke a JSFL file that is already done

2.0K
Translate
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

correct answers 1 Correct answer

Community Expert , Jul 19, 2018 Jul 19, 2018

Hi.

Try this:

MMExecute('fl.runScript( fl.configURI + "/WindowSWF/your_script.jsfl");');

Regards,

JC

Translate
Community Expert ,
Jul 19, 2018 Jul 19, 2018
Translate
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
Enthusiast ,
Jul 19, 2018 Jul 19, 2018

Hello, I have saved this, but I can't find the command to jump keyframes, nor do they appear in the history record.

Examples of "mmexecute" have but not written how to invoke the Jsfl file.

Translate
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
Community Expert ,
Jul 19, 2018 Jul 19, 2018

use the layer's frames array and compare to the frame's startFrame to find keyframes.  there's an example in layers.frames in that pdf.

use commands>run command from animate to execute jsfl on the current fla.

Translate
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
Enthusiast ,
Jul 19, 2018 Jul 19, 2018

I'm making the expansion panel.Do not depend on menu running.

Now I've made 3 buttons.

Put in"C:\Users\myname\AppData\Local\Adobe\Animate CC 2018\zh_CN\Configuration\WindowSWF"

But other command-JSFL files, SwF calls outside of the JSFL this is encountering a problem

I see an example of a key frame, but not running

捕获.JPG

捕获1.JPG

捕获2.JPG

Translate
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
Enthusiast ,
Jul 19, 2018 Jul 19, 2018

KeyFrames actually can I try again later

The main idea at the moment is to use "Mmexecute" to execute the completed JSFL file.

Translate
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
Community Expert ,
Jul 19, 2018 Jul 19, 2018

you're missing a frame index. eg,

MMExecute("fl.getDocumentDOM().getTimeline().insertKeyframe(2);");

Translate
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
Enthusiast ,
Jul 19, 2018 Jul 19, 2018

No, this is a replacement for F7.

This screenshot just shows that there is no problem with doing so.

What I need is to call the external JSFL

Like I make a keyframe.JSFL

"keyframe.JSFL "In the same folder as the SWF(\WindowSWF)

So how do I run this JSFL?

MMExecute(keyframe.JSFL)?

It must be wrong to write this.

Translate
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
Community Expert ,
Jul 19, 2018 Jul 19, 2018

Hi.

Try this:

MMExecute('fl.runScript( fl.configURI + "/WindowSWF/your_script.jsfl");');

Regards,

JC

Translate
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
Enthusiast ,
Jul 19, 2018 Jul 19, 2018

Thank you so much.

When looking at the example,

MMExecute(Path,Method)

Results, how to write do not know

You really helped me a lot.

Thanks again.

Translate
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
Community Expert ,
Jul 19, 2018 Jul 19, 2018

You're welcome!

And I hope you come up with cool addons for Animate.

Translate
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
Enthusiast ,
Jul 19, 2018 Jul 19, 2018

Thank you for your encouragement.

I'll study hard.

Translate
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
Community Beginner ,
Jun 10, 2020 Jun 10, 2020
LATEST

How do you debug JSFL files?

Translate
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
Enthusiast ,
Jul 20, 2018 Jul 20, 2018

My ideas are too complicated.

Actually, it's simple.

In the forum to find other people's posts, to achieve the key frame of the jump.

ar theDocument = flash.getDocumentDOM();
var theTimeline = theDocument.getTimeline();

var l = theTimeline.currentLayer;
var c = theTimeline.currentFrame;
var f = theTimeline.layers.frames.startFrame + theTimeline.layers.frames.duration;

theTimeline.currentFrame = f;
theTimeline.setSelectedFrames(f,f+1,true);

Translate
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