TweenMax startAt
TweenMax startAt
/**
* 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}});
}
}
}