Adapt Useful JSFL Scripts for Animate/Canvas
as programmer likes automating lot have used/made lot of jsfl scripts flash in past.
some new users might not know these scripts can adapted javascript/canvas.
for example:
with timeline selected try this:
/*
* [kc] add stop frames
* kevin cao(http://kevincao.com)
* 2005.6.19
*/
// inserts keyframes stop command in every frame of selection
var dom=fl.getdocumentdom()
var timeline=dom.gettimeline()
var selections=timeline.getselectedframes()
var numselections=selections.length
for(s=0;s<numselections;s+=3)
{
clayer=selections[s]
startframe=selections[s+1]
endframe=selections[s+2]
timeline.setselectedframes([clayer,startframe,endframe],true);
timeline.converttokeyframes();
for(f=startframe;f<endframe;++f)
{
timeline.layers[clayer].frames[f].actionscript="this.stop();";
}
}
jsfl doesn`t care if use "real" actionscript.
thought might helpful.
hi moccamaximum ,
thank taking time share information community. appreciated.
do remember if no 1 responds, there many people visit forum seek information without ever responding.
thanks,
preran
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment