package komponendid{ import flash.display.*; import flash.events.*; import mx.core.*; public class Reket extends Sprite{ private var ala:Sprite=new Sprite(); public var laius:int=50; public var korgus:int=5; public function Reket(){ ala.graphics.beginFill(0X00FF00); ala.graphics.drawRect(0, 0, laius, korgus); addChild(ala); } } }