Код: Выделить всё
public function Sett(event:MouseEvent):void { if (MS.allpha == 1) { MS.Window.visible = false; MS.allpha = 0; } if (MS.allpha == 0) { MS.Window.visible = true; MS.allpha = 1; } }
Код: Выделить всё
public var Window:SettingsWindow; public var allpha:int; public function MainSettings() { allpha = 0; Window = new SettingsWindow(); Window.x = 500; Window.y = 300; addChild(Window); Window.visible = false; }