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