Skip to main content
Known Participant
January 12, 2022
Question

how to solve In the "typewriter.jsfl" file,A javascript error has occured.

  • January 12, 2022
  • 3 replies
  • 467 views

var doc = fl.getDocumentDOM();

doc.breakApart();
doc.distributeToLayers();
doc.selectAll();


var obs = doc.selection;
doc.getTimeline().insertFrames( obs.length * 2, true, 1);

var tl = doc.getTimeline();
var total = obs.length;
var i = total + 1;


while( i-- ){
tl.setSelectedLayers( total - i, true );
tl.cutFrames(0);
tl.pasteFrames( i * 2 );
tl.clearFrames(0, (i * 2));

}

This topic has been closed for replies.

3 replies

kqskcmAuthor
Known Participant
January 22, 2022

No one knows?

kqskcmAuthor
Known Participant
January 14, 2022

No one knows?🥲

JoãoCésar17023019
Community Expert
Community Expert
January 12, 2022

Hi.

 

Can you give more details of what you're trying to achieve?

 

Regards,

JC

kqskcmAuthor
Known Participant
January 12, 2022

This is an JSFL typewriter effects for adobe animate2021,After finishing execution,error message,How to avoid error message?

Community Expert
January 14, 2022

This looks like regular animation what do you need Javascript for? Are you trying to stop it at the end?