package launcher.panel.buttonBar 
{
	import adobe.utils.CustomActions;
    import flash.display.MovieClip;
    import flash.text.TextField;
    import flash.text.TextFormat;
	import fonts.Fonts;
	import flash.events.MouseEvent;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	import flash.geom.ColorTransform;
	import launcher.panel.buttonBar.icons.*;
	import launcher.panel.languagePanel

    public class quickPanel extends MovieClip 
    {
        public var home:icon_home = new icon_home();
		public var star:icon_star = new icon_star();
		public var comment:icon_comment = new icon_comment();
		public var money:icon_money = new icon_money();
		public var education:icon_education = new icon_education();
		
		
		public var homeURL:String = "https://home/";
        public var homeButton:MovieClip = new MovieClip();
		public var homeText:TextField = new TextField();
		public var hometextFormat:TextFormat = new TextFormat();
		public var textField:TextField = new TextField();

        public function quickPanel() 
        {
            Fonts.registerFonts();
            homeButton.addChild(home);
            homeButton.buttonMode = true;
			homeButton.addEventListener(MouseEvent.CLICK, onClickOnHome);
            homeButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverHome);
            homeButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOutHome);
            homeButton.addEventListener(MouseEvent.MOUSE_DOWN, onHomeButtonDown);
            homeButton.addEventListener(MouseEvent.MOUSE_UP, onHomeButtonUp);
            addChild(homeButton);
            homeText.embedFonts = true;
            homeText.text = "Главная";
            homeText.width = 90; // установите ширину текстового поля
            homeText.height = 30; // установите высоту текстового поля
			homeText.x = 20;

           
           hometextFormat.font = "MyCustomFont";
		   hometextFormat.bold = true; // Делаем текст жирным
		   homeText.mouseEnabled = false;
           hometextFormat.size = 16; // установите размер текста
           hometextFormat.color = 0xFFFFFF; // установите цвет текста (белый)
           homeText.defaultTextFormat = hometextFormat;
           homeText.setTextFormat(hometextFormat);

           homeButton.addChild(homeText);
		   homeText.x = home.width + 5;
           homeText.y = home.height - 17;
		   
		   		           updateHeaderText();
        languagePanel.addEventListener("languageChanged", updateHeaderText);
		   
        }
		
		public function onClickOnHome(event:MouseEvent):void 
		{
            navigateToURL(new URLRequest(homeURL), "_blank");
            home.transform.colorTransform = new ColorTransform(0x00 / 0xFF, 0xa5 / 0xFF, 0xec / 0xFF);
            homeText.textColor = 0x00a5ec; 
        }
		
		////СЛУШАТЕЛИ КНОПКИ ДОМОЙ
        private function onMouseOverHome(event:MouseEvent):void
        {
            home.transform.colorTransform = new ColorTransform(0x75 / 0xFF, 0xD6 / 0xFF, 0xFF / 0xFF);
            homeText.textColor = 0x75d6ff; 
        }

        private function onMouseOutHome(event:MouseEvent):void
        {
            home.transform.colorTransform = new ColorTransform(); 
            homeText.textColor = 0xFFFFFF; 
        }

        private function onHomeButtonDown(event:MouseEvent):void
        {
            home.transform.colorTransform = new ColorTransform(0x00 / 0xFF, 0xa5 / 0xFF, 0xec / 0xFF); 
            homeText.textColor = 0x00a5ec; 
        }

        private function onHomeButtonUp(event:MouseEvent):void
        {
            home.transform.colorTransform = new ColorTransform(); 
            homeText.textColor = 0xFFFFFF; 
        }
        ///////////		
        private function updateHeaderText():void {
            if (languagePanel.selectedLanguage == "RU") {
                homeText.text = "Главная";
            } else if (languagePanel.selectedLanguage == "EN") {
                homeText.text = "Home";
            }
        }
		
    }
} как исправить C:\Users\Alexander\Desktop\project\Preloader\src\launcher\panel\buttonBar\quickPanel.as(225): col: 23 Error: Call to a possibly undefined method addEventListener through a reference with static type Class.
        languagePanel.addEventListener("languageChanged", updateHeaderText);
                      ^
Build halted with errors (fcsh).