Loading variable

I have attached the actionscript file on stage, however I can’t access function or variables inside movieclip. Instead I can access them on main timeline, is there a way to access function and variables inside movieclip