PDA

View Full Version : Jsfl for set the selected motion tween values


Ambiga.S
01-27-2011, 06:19 AM
hi i want to set the motion tween values from one layer to all layers using JSFL

Actually i have a lot of motion tween animations in my time line.I want to set the Tween values(easing values) for only one frame manually. (say for example layer 1 )By executing JSFL all other remaing layers which contains tween motion has to set the same values which i mentioned in the layer 1

if any one have the idea pls tell me

Ambiga.S
01-27-2011, 08:05 AM
hi i want to set the motion tween values from one layer to all layers using JSFL

Actually i have a lot of motion tween animations in my time line.I want to set the Tween values(easing values) for only one frame manually. (say for example layer 1 )By executing JSFL all other remaing layers which contains tween motion has to set the same values which i mentioned in the layer 1

if any one have the idea pls tell me

i got it


var doc=fl.getDocumentDOM();
var tl=doc.getTimeline()
var len=tl.layers.length
fl.trace("lay:"+Layers)
tl.setSelectedLayers(len-1)
fl.getDocumentDOM().getTimeline().copyMotion();
var frameName =tl.getFrameProperty("tweenType");
fl.trace(frameName);
for (i=0;i<=len;i++)
{
fl.getDocumentDOM().getTimeline().setSelectedLayer s(i, true);
var layerArray = fl.getDocumentDOM().getTimeline().getSelectedLayer s();
fl.getDocumentDOM().getTimeline().pasteMotion();
}

planetcode
07-20-2011, 05:40 PM
hi i want to set the motion tween values from one layer to all layers using JSFL

Actually i have a lot of motion tween animations in my time line.I want to set the Tween values(easing values) for only one frame manually. (say for example layer 1 )By executing JSFL all other remaing layers which contains tween motion has to set the same values which i mentioned in the layer 1

if any one have the idea pls tell me

Stupid question, but would you be willing to post your animation? I am a new user and am having a hard time if you are constructing a loop animation or something with a start and an end. what was the environment for this project? Flash is killing me right meow...