Question
How to fix the following jsfl code so that he can work normally
Programming is a layman for me
Can the following code be used as jsfl to add animation to symbols
var doc = fl.getDocumentDOM();
var my_tl = doc.getTimeline();
this.getCurrentFrame = function(){
var layer = my_tl.layers[my_tl.currentLayer];
var frame = layer.frames[my_tl.currentFrame];
return frame;
}
var theFrame = getCurrentFrame(); theFrame.setMotionObjectXML('myMotionXML'.toString(), false);
var myMotionXML = '<MotionObject version="1.0"><Motion><Path><Point><X>0</X><Y>0</Y></Point><Point><X>100</X><Y>100</Y></Point></Path><Rotation><Angle>0</Angle></Rotation></Motion><Easing><In type="linear"/></Easing></MotionObject>';
