Highlighted

A few questions about JSFL

Enthusiast ,
Jul 19, 2018

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

Hi.

Try this:

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

Regards,

JC

Views

782

Likes

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

A few questions about JSFL

Enthusiast ,
Jul 19, 2018

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

Hi.

Try this:

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

Regards,

JC

Views

783

Likes

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
Jul 19, 2018 0
Adobe Community Professional ,
Jul 19, 2018

Copy link to clipboard

Copied

Likes

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
Reply
Loading...
Jul 19, 2018 0
Enthusiast ,
Jul 19, 2018

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Jul 19, 2018 0
Adobe Community Professional ,
Jul 19, 2018

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Jul 19, 2018 0
Enthusiast ,
Jul 19, 2018

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Jul 19, 2018 0
Enthusiast ,
Jul 19, 2018

Copy link to clipboard

Copied

KeyFrames actually can I try again later

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

Likes

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
Reply
Loading...
Jul 19, 2018 0
Adobe Community Professional ,
Jul 19, 2018

Copy link to clipboard

Copied

you're missing a frame index. eg,

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

Likes

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
Reply
Loading...
Jul 19, 2018 0
Enthusiast ,
Jul 19, 2018

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Jul 19, 2018 0
Adobe Community Professional ,
Jul 19, 2018

Copy link to clipboard

Copied

Hi.

Try this:

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

Regards,

JC

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

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
Reply
Loading...
Jul 19, 2018 0
Enthusiast ,
Jul 19, 2018

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Jul 19, 2018 1
Adobe Community Professional ,
Jul 19, 2018

Copy link to clipboard

Copied

You're welcome!

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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

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
Reply
Loading...
Jul 19, 2018 0
Enthusiast ,
Jul 19, 2018

Copy link to clipboard

Copied

Thank you for your encouragement.

I'll study hard.

Likes

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
Reply
Loading...
Jul 19, 2018 1
Community Beginner ,
Jun 10, 2020

Copy link to clipboard

Copied

How do you debug JSFL files?

Likes

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
Reply
Loading...
Jun 10, 2020 0
Enthusiast ,
Jul 20, 2018

Copy link to clipboard

Copied

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);

Likes

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
Reply
Loading...
Jul 20, 2018 0