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.
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 =
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