package komponendid{ import flash.display.*; import flash.events.*; import mx.core.*; public class T2pp extends UIComponent{ private var t2pp:UIComponent; public var laius:int=20; public var korgus:int=20; public function T2pp(){ t2pp=new UIComponent(); var g:Graphics=t2pp.graphics; /* t2pp.graphics.beginFill(0xFFFFFF); t2pp.graphics.drawRect(0, 0, laius, korgus);//kontroll ruut*/ t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(1, 3, 13, 14);//keha-must' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(5, 0, 15, 15);//keha-vaga-tume-must' t2pp.graphics.beginFill(0x950000); t2pp.graphics.drawRect(5, 1, 14, 13);//keha-vaga-tume' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(3, 1, 3, 4);//keha-vaga-tume-nurk-8lemine-must t2pp.graphics.beginFill(0x950000); t2pp.graphics.drawRect(4, 2, 5, 4);//keha-vaga-tume-nurk-8lemine t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(14, 15, 3, 1);//keha-vaga-tume-nurk-alumine-must t2pp.graphics.beginFill(0x950000); t2pp.graphics.drawRect(14, 14, 3, 1);//keha-vaga-tume-nurk-alumine t2pp.graphics.beginFill(0xD21803); t2pp.graphics.drawRect(2, 4, 12, 12);//keha-kesk-tume' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(0, 6, 3, 7);//käsi vasak-must t2pp.graphics.beginFill(0xD21803); t2pp.graphics.drawRect(1, 7, 1, 5);//käsi vasak t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(15, 7, 4, 6);//käsi parem-must t2pp.graphics.beginFill(0xD21803); t2pp.graphics.drawRect(16, 8, 2, 4);//käsi parem t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(2, 15, 5, 5);//jalg vasak-must t2pp.graphics.beginFill(0xD21803); t2pp.graphics.drawRect(3, 16, 3, 3);//jalg vasak t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(9, 15, 5, 5);//jalg vasak-must t2pp.graphics.beginFill(0xD21803); t2pp.graphics.drawRect(10, 16, 3, 3);//jalg vasak t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(4, 6, 2, 3);//silm-vasak' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(9, 6, 2, 3);//silm-parem' t2pp.graphics.beginFill(0xFFFFFF); t2pp.graphics.drawRect(4, 11, 7, 1);//suu-8lemine-valge-osa' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(4, 12, 7, 1);//suu-8lemine-osa' t2pp.graphics.beginFill(0xFFFFFF); t2pp.graphics.drawRect(5, 13, 5, 1);//suu-alumine-osa' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(5, 13, 2, 1);//suu-alumine-must-osa' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(9, 13, 2, 1);//suu-alumine-must-osa' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(7, 11, 1, 1);//suu-hambavahe-8lemine' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(4, 11, 1, 1);//suu-hambavahe-8lemine' t2pp.graphics.beginFill(0x000000); t2pp.graphics.drawRect(10, 11, 1, 1);//suu-hambavahe-8lemine' addChild(t2pp); } } }