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

**URL:** https://forum.kirupa.com/t/refering-to-a-var-in-the-main-timeline-from-a-class/235208
**Category:** Uncategorized
**Created:** [August 9, 2007, 11:01am UTC](https://forum.kirupa.com/t/refering-to-a-var-in-the-main-timeline-from-a-class/235208 "2007-08-09T11:01:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DarkGloveLove](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DarkGloveLove](https://forum.kirupa.com/u/DarkGloveLove)
#### Post date: [August 9, 2007, 11:01am UTC](https://forum.kirupa.com/t/refering-to-a-var-in-the-main-timeline-from-a-class/235208/1 "2007-08-09T11:01:44Z")

</div>

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.
