Skip to main content
chenjil43641795
Legend
July 19, 2018
Answered

A few questions about JSFL

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

    This topic is closed to new replies. Start a new post to keep the conversation going.
    JoãoCésar17023019
    JoãoCésar17023019Correct answer
    Community Expert
    July 20, 2018

    Hi.

    Try this:

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

    Regards,

    JC

    13 replies

    chenjil43641795
    Legend
    July 21, 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
    JoãoCésar17023019
    Community Expert
    JoãoCésar17023019Community ExpertCorrect answer
    Community Expert
    July 20, 2018

    Hi.

    Try this:

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

    Regards,

    JC

    Translate
    chenjil43641795
    Legend
    July 20, 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
    JoãoCésar17023019
    Community Expert
    Community Expert
    July 20, 2018

    You're welcome!

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

    Translate
    kglad
    Community Expert
    Community Expert
    July 19, 2018
    chenjil43641795
    Legend
    July 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
    kglad
    Community Expert
    Community Expert
    July 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