package komponendid{ import flash.display.*; import flash.events.*; import mx.core.*; import mx.controls.*; public class Tulpdiagramm extends UIComponent{ private var ala:Sprite=new Sprite(); private var tulbad:Array=new Array(); public function set andmed(sisu:String):void{ var m:Array=sisu.split(" "); ala.graphics.beginFill(0xFFccFF); ala.graphics.drawRect(-30, -100, (m.length+1)*40, 110); addChild(ala); for(var i:int=0; i