Highlighted

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

Community Beginner ,
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.

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

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

TOPICS
Discussions

Views

62

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

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

Community Beginner ,
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.

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

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

TOPICS
Discussions

Views

63

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
May 03, 2019 0
Adobe Community Professional ,
May 03, 2019

Copy link to clipboard

Copied

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

__________________________________________
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...
May 03, 2019 0