|
AvailabilityFlash
Professional CS5.
UsageFrame.setMotionObjectXML( xmlstr [, endAtCurrentLocation] )
Parameters- xmlstr
- A string value that specifies the XML string.
- endAtCurrentLocation
- A boolean value that determines whether the tween starts
or ends at the current position.
DescriptionMethod;
applies the specified motion XML to the selected motion object.
ExampleThis
example specifies that the motion XML identified as myMotionXML be applied
to 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();
theFrame.setMotionObjectXML(myMotionXML.toString(), false);
|
|
|