forked from: forked from: TweenLite_easing_Back_easeInOut

by bremen.propeller
TweenLite Basic Sample easing.Back.easeInOut
♥0 | Line 35 | Modified 2011-02-25 03:45:36 | MIT License
play

ActionScript3 source code

/**
 * Copyright bremen.propeller ( http://wonderfl.net/user/bremen.propeller )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/av6F
 */

// forked from takahashitakash's forked from: TweenLite_easing_Back_easeInOut
// forked from ariki4160's TweenLite_easing_Back_easeInOut
// TweenLite Basic Sample easing.Back.easeInOut
package {
    import flash.events.Event;
    import flash.display.Shape;
    import flash.display.Sprite;
    import gs.easing.Back;
    import gs.TweenLite;
    public class TestTweenLite extends Sprite
    {
        public var s:Shape;
        public var s2:Shape;
        public var circle:Sprite;
        public function TestTweenLite()
        {
            s = new Shape();
            s.graphics.lineStyle(3, 0x000000);
            s.graphics.drawCircle(0, 0,40);
            s.graphics.drawRect(-5, -5, 100, 100);
            this.addChild(s);
            
            s2 = new Shape();
            s2.graphics.lineStyle(3, 0x00000000);
            s2.graphics.drawCircle(0, 0, 40);
            //this.addChild(s2);
            
            circle = new Sprite();
            circle.graphics.beginFill(0xff3300);
            circle.graphics.drawCircle(0,0,30);
            addChild(circle);
            circle.graphics.endFill();
            
            
            s.x = 50;
            s.y = 50;
            //TweenLite.to(s, 1, {x:400, y:200, ease:Back.easeInOut, onComplete:onCompleteHandler});
        }
        
        public function onCompleteHandler()
        {
            TweenLite.to(s, 1, {x:0, y:0, scaleY:.5});
        }

    }
}