package { import flash.display.*; import flash.events.*; import mx.effects.easing.*; public class FlashTest extends Sprite { public var mc0 : Shape; public var t : Number; public function FlashTest() { mc0 = new Shape(); mc0.graphics.beginFill(0x00ff00,0.6); mc0.graphics.drawRect(-50,-100,100,100); mc0.graphics.endFill(); mc0.x = mc0.y = 100; mc0.rotationX = 0; addChild( mc0 ); t = 0; addEventListener( Event.ENTER_FRAME, ef ); } protected function ef( evt:Event ):void { mc0.rotationX = Sine.easeIn( (t>30)?t=0:t++, 0, 180, 30 ); }; } } flash on 2009-3-24