package{ import flash.display.*; import flash.events.Event; public class TeineLiigub extends Sprite{ public var pall:Sprite=new Sprite(); public function TeineLiigub(){ var g:Graphics=pall.graphics; g.beginFill(0XFF0000); g.drawCircle(0, 0, 50); g.beginFill(0X000000); g.drawRect(-20, -10, 5, 5); g.drawRect( 10, -10, 5, 5); g.endFill(); addChild(pall); x=50; y=50; addEventListener(Event.ENTER_FRAME, liigu); } public function liigu(andmed:Event):void{ pall.rotation++; } } }