Calling variables from inside a class

Hey…
Just wondering if anyone knows how to call a variable (in the actions layer of my main timeline) from a class??
any help would be awesome, thanks