Actionscript 如何获得类似于链接中所示的弹簧效果(tween)

Actionscript 如何获得类似于链接中所示的弹簧效果(tween),actionscript,actionscript-3,Actionscript,Actionscript 3,我看到了,我很喜欢。只需将鼠标移到拇指上即可看到弹簧效果。我知道这对专业人士来说可能很容易,但我不知道这是怎么做到的 如果有人能建议我如何获得类似的效果,我将不胜感激,或者更好的是,建议一个我可以学习的教程。使用。使用Bounce.easeOut,持续时间约为0.75。 一定要进口特威利特 package { import com.greensock.TweenLite; import com.greensock.easing.Bounce; import flash.

我看到了,我很喜欢。只需将鼠标移到拇指上即可看到弹簧效果。我知道这对专业人士来说可能很容易,但我不知道这是怎么做到的

如果有人能建议我如何获得类似的效果,我将不胜感激,或者更好的是,建议一个我可以学习的教程。

使用。使用Bounce.easeOut,持续时间约为0.75。
一定要进口特威利特

package
{
    import com.greensock.TweenLite;
    import com.greensock.easing.Bounce;

    import flash.display.Sprite;
    import flash.events.MouseEvent;

    public class Testerooni extends Sprite
    {
        public var ball:Sprite = new Sprite();
        public function Testerooni()
        {
            createBall();
            addChild(ball);
            ball.x = 100;
            ball.y = 100;
            ball.addEventListener(MouseEvent.MOUSE_OVER,bounceOver);
            ball.addEventListener(MouseEvent.MOUSE_OUT,bounceOut);
        }

        protected function bounceOver(e:MouseEvent):void
        {
            TweenLite.to(ball,0.5,{scaleX:2,scaleY:2,ease:Bounce.easeOut});
        }

        protected function bounceOut(e:MouseEvent):void
        {
            TweenLite.to(ball,0.5,{scaleX:1,scaleY:1,ease:Bounce.easeOut});
        }

        private function createBall():void
        {
            ball.graphics.lineStyle(1);
            ball.graphics.beginFill(0x0000FF,0.4);
            ball.graphics.drawCircle(0,0,15);
        }
    }
}

非常感谢您抽出时间回复。谢谢雅各布。不使用TweenLite是不可能的。事实上,到目前为止,我从未使用过TweenLite。“到目前为止,我从未使用过TweenLite”现在是学习的最佳时机:)你会喜欢它的@如果这回答了你的问题,你应该接受它作为答案。