Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 457 Bytes

File metadata and controls

23 lines (14 loc) · 457 Bytes

Tween. duration

Availability

Flash Pro CC

Usage

Tween.duration

Description

Duration of a tween span that is equal to number of frames in a tween.

Example

var tweenObj = fl.getDocumentDOM().getTimeline().layers[0].frames[0].tweenObj;
if( tweenObj.tweenType == "shape") {
for(var i = 1; i < tweenObj.duration; i++) {
var shape = tweenObj.getShape(i); ///// code to perform some operation on returned shape } }