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

Is it possible to edit multiple text under different frame through "Edit multiple frames"?

Community Beginner ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

Through icon "edit multiple frames", I am able to align same text and images coming in different layers and frames. But I am unable to edit same text coming in different frames.

I want to change the content of text. Is it possible? Kindly help me out.

Views

199

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

correct answers 1 Correct answer

Community Expert , May 03, 2019 May 03, 2019

Hi.

Not natively.

But you can add this feature by using some JSFL script.

Here is a sample that allows you to select multiple text fields on stage and set the same text for all of them.

JSFL code:

var doc = fl.getDocumentDOM();

var selection = doc.selection;

var input;

function start()

{

    if (!doc)

    {

          alert("Please open up a FLA first.");

          return;

    }

    if (selection.length === 0)

    {

          alert("Please select at least one text field first.");

          return;

    }

    input =

...

Votes

Translate

Translate
Community Expert ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

LATEST

Hi.

Not natively.

But you can add this feature by using some JSFL script.

Here is a sample that allows you to select multiple text fields on stage and set the same text for all of them.

JSFL code:

var doc = fl.getDocumentDOM();

var selection = doc.selection;

var input;

function start()

{

    if (!doc)

    {

          alert("Please open up a FLA first.");

          return;

    }

    if (selection.length === 0)

    {

          alert("Please select at least one text field first.");

          return;

    }

    input = prompt("Type a text.");

    selection.forEach(function(element)

    {

          if (element.elementType === "text" || element.elementType === "tlfText")

              doc.setTextString(input);

    });

}

start();

JSFL script Change Texts download:

animate_cc_jsfl_change_texts.zip - Google Drive

Usage:

One of the following:

- Double click the JSFL file;

- Drag and drop the JSFL file over the Animate IDE;

- Put the JSFL file in the Commands folder directory.

I hope this helps.

Regards,

JC

Votes

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