当前位置: 动力学知识库 > 问答 > 编程问答 >

actionscript 3 - Possible to Drive Object Properties with Motion Tween?

问题描述:

I'm trying to create a complex parallax effect in Flash video sequence that includes translation and scaling among many layers.

I've been looking for a way to set up my scene to where I could just animate one object (preferably with motion tween) and then apply some percentage of that animation to each background object (or flip values accordingly).

Is there any way to harvest Motion Tween data out of a layer of a MovieClip and translate that into x,y values for objects? [So far I've only created instances of objects and set their positions through actionscript.]

网友答案:

Seems like you need to use a copy motion option of the layer context menu

Also tweening actionscript libraries e.g. TweenMax are capable of tweening any properties of any objects, but they do it with actionscript (which can be easily copied/modified/pasted), not Adobe Flash UI.

网友答案:

So converting every visual element to a movieclip allowed me to position the items in Z as well. That pretty much solved my problem.

Thanks everyone.

分享给朋友:
您可能感兴趣的文章:
随机阅读: