简体   繁体   English

获取时间轴动画movieclip AS3的y位置?

[英]Get y position of timeline animated movieclip AS3?

I have a timeline animated movieclip (strip1) which animates in a endless loop. 我有一个时间轴动画movieclip(strip1),该动画以无限循环的方式进行动画处理。

Question: During the loop animation all I want to do is call strip1 on the main timeline get the current y value of the tween and have it animate to a certain Y position. 问题:在循环动画过程中,我要做的就是在主时间轴上调用strip1获取补间的当前y值,并将其动画到某个Y位置。

Is that possible? 那可能吗?

Thanks, C 谢谢,C

Are you trying to move that "animation" around the canvas as an independent object?, if so, then you should cut and paste the animation on that timeline into a new movieclip, drop it in the canvas again and give an instance name. 您是否要以独立对象的形式在画布上移动“动画”?如果是这样,则应将时间轴上的动画剪切并粘贴到新的动画片段中,再次将其放到画布中并指定实例名称。 You can control it's Y position with McInstance.y 您可以使用McInstance.y控制其Y位置

Hope this helps. 希望这可以帮助。

CT 电脑断层扫描

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM