Copy link to clipboard
Copied
I want the keyframes in the motionpath,so how do i get these programmatically?!
Copy link to clipboard
Copied
This is kind of an old question, but maybe this will help future users. I found this in the Extending Flash docs under Frame.getMotionObjectXML()
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();
if(theFrame.isMotionObject()) {
//fl.trace(theFrame.getMotionObjectXML());
}else{
fl.trace("It is not motion.");
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now