Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 673 Bytes

File metadata and controls

33 lines (23 loc) · 673 Bytes

frame.getMotionObjectXML()

Availability

Flash Professional CS5.

Usage

Frame.getMotionObjectXML()

Description

Returns a string of the motion XML from the selected motion object.

Example

The following example returns the motion XML from the selected motion object.

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