/* * repeats = 4 ってしても4回ループしてない? * どうやらrepeatsは追加で動く回数みたい */ package { import flash.display.*; import flash.events.*; import com.flashdynamix.motion.*; [SWF(width="500", height="500", backgroundColor="#000000", frameRate="30")] public class TweensyTest extends Sprite { private var _sp:Sprite; public function TweensyTest() { addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event):void { stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; _sp = new Sprite(); with(_sp.graphics) { beginFill(0xFF0000); drawRect(0, 0, 50, 50); endFill(); } addChild(_sp); //_sp.x = 100; var t:TweensyTimeline = Tweensy.to(_sp, {x:200}, 0.5) ; t.repeatType = TweensyTimeline.LOOP; t.repeats = 4 ; } } } TweensyTest LOOP