【问题标题】:How to get a movie clip from one position to another over the course of 11700 frames?如何在 11700 帧的过程中将影片剪辑从一个位置转移到另一个位置?
【发布时间】:2012-10-10 17:55:41
【问题描述】:

我正在尝试将影片剪辑从 X24.5 移动到 X275,从 Y400 移动到 Y100,但在 11700 帧或 6.5 分钟的过程中。我已经尝试了几个小时,但无济于事。我敢打赌,答案很简单,但我一直无法弄清楚。任何帮助将不胜感激。

【问题讨论】:

    标签: actionscript-3 flash actionscript


    【解决方案1】:

    您可以使用 Flash 内置的 tween 方法对其进行补间,或者您可以尝试我的偏好 Greensock's TweenLite

    代码区别如下:

    Flash 默认补间

    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    
    myTween = new Tween(myObj, "x", Regular.easeIn, startingX, endingX, animationTiming, true);
    myTween.addEventListener(TweenEvent.MOTION_FINISH, functionToCall);
    

    TweenLite:

    import com.greensock.TweenLite;
    import com.greensock.easing.*;
    
    TweenLite.to(myObj, aniTiming, {x:endingX, ease:Regular.easeIn, onComplete:functionToCall});
    

    【讨论】:

      猜你喜欢
      • 2015-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-28
      • 1970-01-01
      • 1970-01-01
      • 2011-06-06
      • 1970-01-01
      相关资源
      最近更新 更多