In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

TweenMax startAt

TweenMax startAt
Get Adobe Flash player
by AsaToBan 30 May 2011
    Embed
/**
 * Copyright AsaToBan ( http://wonderfl.net/user/AsaToBan )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/7D9f
 */

package {
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import com.greensock.*;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // 丸をx:0, y:0に作成
            var mc:MovieClip = new MovieClip();
            mc.graphics.beginFill(0xCCCC99);
            mc.graphics.drawCircle(0, 0, 20);
            addChild(mc);
            
            //startAtだと一瞬表示されてしまう
            TweenMax.to(mc,3,{x:300,startAt:{x:20,y:20}});
        }
    }
}