Skip to main content
Known Participant
Jan 12, 2022 7:51 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

7 replies

kqskcmAuthor
Known Participant
Jan 22, 2022 9:51 AM UTC

No one knows?

Translate
kqskcmAuthor
Known Participant
Jan 14, 2022 2:12 PM UTC

No one knows?🥲

Translate
JoãoCésar17023019
Community Expert
Community Expert
Jan 12, 2022 10:25 AM UTC

Hi.

 

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

 

Regards,

JC

Translate
kqskcmAuthor
Known Participant
Jan 12, 2022 1:42 PM UTC

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

Translate
Community Expert
Jan 14, 2022 5:57 PM UTC

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

Translate