Skip to main content
Participant
September 9, 2013
Question

how do i get the keyframe data from flash

  • September 9, 2013
  • 1 reply
  • 1539 views

I want the keyframes in the motionpath,so how do i get these programmatically?!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Amy Blankenship
Legend
October 2, 2013

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.");

}