# Accessing stage variables from class

**URL:** <https://forum.kirupa.com/t/accessing-stage-variables-from-class/255718>\
**Category:** Uncategorized\
**Created:** [March 26, 2008, 11:05am UTC](https://forum.kirupa.com/t/accessing-stage-variables-from-class/255718 "2008-03-26T11:05:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanglingChap](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@DanglingChap](https://forum.kirupa.com/u/DanglingChap)\
**Post date:** [March 26, 2008, 11:05am UTC](https://forum.kirupa.com/t/accessing-stage-variables-from-class/255718/1 "2008-03-26T11:05:25Z")

</div>

hi …

I have written some action script (well most of the script) on main time line without using any CLASS - (bad practice) … there are many variables that i have created there and the stage objects … I am using those objects on main time line as …

```auto

this.mVideo.someProperty ... 

```

now i have written a class say … “Test.as” which i have placed in the same directory. now while being in that class method, how can i access variables define on the timeline actionscript + on the stage …

how can i access that “mVideo” object from that class ??
