package { import flash.display.Sprite; import flash.events.Event; public class animation_ch05_RotationalVelocity extends Sprite { private var arrow:animation_ch05_Arrow; private var vr:Number = 5; public function animation_ch05_RotationalVelocity() { init(); } private function init():void { arrow = new animation_ch05_Arrow(); addChild(arrow); arrow.x = stage.stageWidth / 2; arrow.y = stage.stageHeight / 2; addEventListener(Event.ENTER_FRAME, onEnterFrame); } private function onEnterFrame(event:Event):void { arrow.rotation += vr; } } }