Refering to a var in the main timeline, from a class

Hi,

I’m sure this is simple but I’m having trouble finding the answer…

I want to access a var, in this case i from the main timeline, to use it within a class I have written and applied to a movie clip.

would it be something like this?

myFileName == root.[COLOR=#000080]loaderInfo[/COLOR].[COLOR=#000080]parameters[/COLOR].[COLOR=#000080]i[/COLOR];

Thanks for your help.

DGL.