package komponendid{ import flash.display.*; import flash.events.*; import mx.core.*; public class PunaneAare extends Aare{ private var keerleb:Boolean=false; private var nurk:Number=0; public function PunaneAare(){ ala.graphics.beginFill((int)(0XFF0000)); ala.graphics.drawRect(0, 0, laius, korgus); addEventListener(Event.ENTER_FRAME, liigu); } public function teeRing():void{ keerleb=true; } public function liigu(e:Event):void{ if(nurk<360 && keerleb){ nurk++; rotation=nurk; } if(nurk>=360){ keerleb=false; nurk=0; } } } }