How to pass variable between action script files?

I am new in AS3 and i need to learn how to pass variables from one Movie clip’s AS file to my Main AS file.

Let say my Movieclip’s AS file is calling damage = 1;

so how the Main AS file retrieve the damage value from the Movieclip’s AS? :puzzled:

hope my explanation is very clear and understandable.

thanks in advance!

 public class robotMC extends MovieClip
    {

        public function robotMC()
        {
           addEventListener(Event.ENTER_FRAME, loop, false, 0, true);
           
        }
                private function loop(e:Event) : void 
        {
    
            
            if(currentLabel == "attack1"){
                    
                    daamage = 1;
                    }
        }

this is the sniplet of my code for my Movieclip’s AS file