package komponendid{ import flash.display.*; import flash.events.*; import flash.events.MouseEvent; import flash.ui.*; import mx.core.*; import mx.controls.*; import flash.text.*; public class Ala extends UIComponent{ private var ala:Sprite=new Sprite(); private var rada:Sprite=new Sprite(); private var rada2:Sprite=new Sprite(); private var rada3:Sprite=new Sprite(); private var rada4:Sprite=new Sprite(); private var rada5:Sprite=new Sprite(); private var rada6:Sprite=new Sprite(); private var rada7:Sprite=new Sprite(); private var rada8:Sprite=new Sprite(); private var rada9:Sprite=new Sprite(); private var rada10:Sprite=new Sprite(); private var l6pp:Sprite=new Sprite(); private var laius:int=800; private var korgus:int=600; private var t2pp:T2pp=new T2pp; public function Ala(){ ala.graphics.beginFill(0x000000); ala.graphics.drawRect(0, 0, laius, korgus); addChild(ala); rada.graphics.beginFill(0x0000FF); rada.graphics.drawRect(0, 20, 800, 40); addChild(rada); rada2.graphics.beginFill(0x0000FF); rada2.graphics.drawRect(500, 60, 40, 300); addChild(rada2); rada3.graphics.beginFill(0x0000FF); rada3.graphics.drawRect(100, 250, 520, 40); addChild(rada3); rada4.graphics.beginFill(0x0000FF); rada4.graphics.drawRect(30, 360, 510, 40); addChild(rada4); rada5.graphics.beginFill(0x0000FF); rada5.graphics.drawRect(30, 400, 40, 160); addChild(rada5); rada6.graphics.beginFill(0x0000FF); rada6.graphics.drawRect(30, 530, 100, 40); addChild(rada6); rada7.graphics.beginFill(0x0000FF); rada7.graphics.drawRect(130, 450, 25, 120); addChild(rada7); rada8.graphics.beginFill(0x0000FF); rada8.graphics.drawRect(130, 450, 75, 25); addChild(rada8); rada9.graphics.beginFill(0x0000FF); rada9.graphics.drawRect(205, 450, 25, 75); addChild(rada9); rada10.graphics.beginFill(0x0000FF); rada10.graphics.drawRect(205, 500, 325, 25); addChild(rada10); l6pp.graphics.beginFill(0xFF0000); l6pp.graphics.drawRect(530, 500, 25, 25); addChild(l6pp); t2pp.x=20; t2pp.y=25; addChild(t2pp); addEventListener(Event.ENTER_FRAME, liigu); if(stageX<100){ addEventListener(MouseEvent.MOUSE_MOVE, hiirLiigub); Mouse.hide(); } } public function hiirLiigub(e:MouseEvent):void{ var hiirex:int=e.stageX-x; var hiirey:int=e.stageY-y; if(hiirex