Skip to main content
gurmeets39816897
Participant
May 3, 2019
Answered

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

  • May 3, 2019
  • 1 reply
  • 270 views

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.

This topic has been closed for replies.
Correct answer JoãoCésar17023019

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

1 reply

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
May 3, 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 = 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