Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how do i get the keyframe data from flash

New Here ,
Sep 09, 2013 Sep 09, 2013

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

TOPICS
Exchange extensions
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 02, 2013 Oct 02, 2013
LATEST

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

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines